:root {
  --ink: #111317;
  --muted: #5d6673;
  --line: #dfe5ea;
  --paper: #f7f9fb;
  --white: #ffffff;
  --accent: #0f9f8f;
  --accent-dark: #087568;
  --cobalt: #265df2;
  --shadow: 0 24px 70px rgba(17, 19, 23, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 76px;
  padding: 0 6vw;
  color: var(--white);
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 10px 40px rgba(17, 19, 23, 0.08);
  backdrop-filter: blur(18px);
}

.legal-header {
  position: sticky;
}

.legal-page-main {
  padding-top: 24px;
}

.legal-page-title {
  max-width: 850px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  line-height: 0.96;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  font-weight: 800;
  font-size: 1.05rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-size: 0.9rem;
}

.brand-logo {
  width: 42px;
  height: auto;
  border-radius: 8px;
}

.brand-name {
  font-weight: 900;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  order: 2;
  font-weight: 700;
  font-size: 0.94rem;
}

.language-switch {
  display: inline-flex;
  order: 3;
  padding: 4px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.language-button {
  min-width: 38px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.language-button.is-active {
  color: var(--ink);
  background: var(--white);
}

.site-header.is-scrolled .language-button.is-active {
  color: var(--white);
  background: var(--ink);
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  order: 4;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 8px;
  color: inherit;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 88svh;
  overflow: hidden;
  color: var(--white);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 8, 12, 0.92) 0%, rgba(5, 8, 12, 0.68) 44%, rgba(5, 8, 12, 0.22) 100%),
    linear-gradient(180deg, rgba(5, 8, 12, 0.2) 0%, rgba(5, 8, 12, 0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, 88vw);
  padding: 150px 0 86px;
  margin-left: 6vw;
}

.hero-content > :last-child {
  margin-bottom: 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #7ff0df;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 730px;
  margin: 0;
  font-size: clamp(3.1rem, 8vw, 6.7rem);
  line-height: 0.92;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.25rem);
  line-height: 1.02;
}

h3 {
  margin: 0 0 12px;
  font-size: 1.24rem;
  line-height: 1.2;
}

.hero-lead {
  max-width: 650px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.83);
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--accent);
}

.button-primary:hover {
  background: var(--accent-dark);
}

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.section-inner {
  width: min(1180px, 88vw);
  margin: 0 auto;
}

.intro-section,
.why-section,
.services-section,
.results-section,
.contact-section,
.legal-section,
.terms-section,
.privacy-section {
  padding: 92px 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.5fr 1fr;
  gap: 42px;
  align-items: start;
}

.intro-grid h2 {
  font-size: clamp(1.85rem, 3.2vw, 3.35rem);
}

.intro-grid p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.35fr 1fr;
  gap: 42px;
  align-items: start;
  margin-bottom: 42px;
}

.why-section {
  background: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.why-card {
  min-height: 230px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.why-card span {
  display: inline-flex;
  margin-bottom: 38px;
  color: var(--accent-dark);
  font-weight: 900;
}

.why-card p {
  margin: 0;
  color: var(--muted);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 40px rgba(17, 19, 23, 0.05);
}

.service-number {
  display: inline-flex;
  margin-bottom: 48px;
  color: var(--cobalt);
  font-weight: 900;
}

.service-card p,
.steps p,
.metric p,
.contact-panel > p,
.site-footer p {
  color: var(--muted);
}

.feature-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 680px;
  background: var(--white);
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7vw;
}

.steps {
  display: grid;
  gap: 24px;
  margin-top: 38px;
}

.steps div {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.steps strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.results-layout {
  display: grid;
  gap: 40px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.metric {
  padding: 30px;
  border-radius: 8px;
  color: var(--white);
  background: var(--ink);
  box-shadow: var(--shadow);
}

.metric:nth-child(2) {
  background: var(--accent-dark);
}

.metric:nth-child(3) {
  background: #2c4fa8;
}

.metric span {
  display: block;
  margin-bottom: 46px;
  font-size: clamp(2.5rem, 6vw, 5.4rem);
  font-weight: 900;
  line-height: 0.9;
}

.metric p {
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

.works-panel {
  display: grid;
  gap: 26px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 40px rgba(17, 19, 23, 0.06);
}

.works-heading h3 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.work-card {
  min-height: 178px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.work-card.is-live {
  grid-column: span 3;
  color: var(--white);
  background: var(--ink);
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.work-card.is-live:nth-child(2) {
  background: var(--accent-dark);
}

.work-card.is-live:hover {
  transform: translateY(-2px);
  background: var(--cobalt);
}

.work-card.is-soon {
  grid-column: span 2;
}

.work-card span {
  display: block;
  margin-bottom: 30px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.work-card.is-live span {
  color: rgba(255, 255, 255, 0.76);
}

.work-card h4 {
  margin: 0 0 10px;
  font-size: 1.18rem;
}

.work-card p {
  margin: 0;
  color: var(--muted);
}

.work-card.is-live p {
  color: rgba(255, 255, 255, 0.8);
}

.contact-section {
  background:
    linear-gradient(rgba(247, 249, 251, 0.9), rgba(247, 249, 251, 0.9)),
    url("assets/contact-office.webp") center/cover;
}

.contact-panel {
  width: min(760px, 88vw);
  padding: clamp(28px, 5vw, 58px);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.contact-details a,
.contact-details address {
  min-height: 116px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font-style: normal;
  font-weight: 850;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.contact-details a:hover {
  border-color: rgba(15, 159, 143, 0.55);
  box-shadow: 0 14px 34px rgba(17, 19, 23, 0.08);
  transform: translateY(-2px);
}

.contact-details span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-trust {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.contact-form {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.legal-section {
  background: var(--white);
}

.terms-section,
.privacy-section {
  background: var(--paper);
}

.legal-layout {
  display: grid;
  gap: 12px;
}

.legal-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.terms-content {
  display: grid;
  gap: 16px;
}

.legal-content article,
.terms-content article,
.terms-intro {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.legal-content article:nth-child(4),
.legal-content article:nth-child(5) {
  grid-column: 1 / -1;
}

.legal-content p,
.terms-content p {
  margin: 0;
  color: var(--muted);
}

.terms-content ul {
  margin: 12px 0 0;
  padding-left: 22px;
  color: var(--muted);
}

.legal-content p + p,
.terms-content p + p {
  margin-top: 14px;
}

.legal-content a,
.terms-content a,
.footer-legal {
  color: var(--accent-dark);
  font-weight: 850;
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--accent-dark);
  font-weight: 750;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 6vw;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.site-footer p {
  margin: 0;
}

.site-footer p:first-child {
  color: var(--ink);
  font-weight: 900;
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 178px;
  min-height: 58px;
  padding: 10px 16px;
  border-radius: 8px;
  color: var(--white);
  background: var(--accent-dark);
  box-shadow: 0 18px 44px rgba(17, 19, 23, 0.22);
  font-weight: 900;
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.floating-whatsapp:hover {
  transform: translateY(-2px);
  background: var(--accent);
}

.floating-whatsapp span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 650ms ease,
    transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 920px) {
  .site-header {
    min-height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 68px;
    left: 5vw;
    right: 5vw;
    display: grid;
    gap: 0;
    padding: 12px;
    max-height: calc(100svh - 88px);
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: var(--white);
    box-shadow: var(--shadow);
    transform: translateY(-18px);
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 16px;
  }

  .legal-header {
    align-items: flex-start;
    min-height: auto;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .legal-header .brand {
    margin-top: 2px;
  }

  .legal-header .legal-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    width: auto;
    max-height: none;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    box-shadow: none;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .legal-header .legal-nav a {
    padding: 6px 0;
  }

  .site-nav a::after {
    display: none;
  }

  .hero {
    min-height: 86svh;
  }

  .hero-content {
    padding-top: 124px;
    padding-bottom: 64px;
  }

  .intro-grid,
  .section-heading,
  .feature-section,
  .contact-details,
  .legal-content,
  .works-panel,
  .works-grid,
  .why-grid,
  .metrics {
    grid-template-columns: 1fr;
  }

  .work-card.is-live,
  .work-card.is-soon {
    grid-column: auto;
  }

  .legal-content article:nth-child(4),
  .legal-content article:nth-child(5) {
    grid-column: auto;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-section {
    min-height: 0;
  }

  .feature-image {
    min-height: 420px;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 0 5vw;
    gap: 10px;
  }

  .brand {
    font-size: 0.98rem;
  }

  .site-header:not(.legal-header) .brand span:last-child {
    max-width: 126px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-logo {
    width: 38px;
  }

  .hero {
    min-height: 84svh;
  }

  .hero-content {
    width: 90vw;
    margin-left: 5vw;
    padding-top: 108px;
    padding-bottom: 54px;
  }

  h1 {
    font-size: clamp(2.75rem, 15vw, 4.8rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .intro-section,
  .why-section,
  .services-section,
  .results-section,
  .contact-section,
  .legal-section,
  .terms-section,
  .privacy-section {
    padding: 68px 0;
  }

  .service-card {
    min-height: 220px;
  }

  .feature-content {
    padding: 68px 5vw;
  }

  .feature-image {
    min-height: 340px;
  }

  .site-footer {
    display: grid;
    gap: 12px;
    padding-bottom: 106px;
  }

  .floating-whatsapp {
    right: 5vw;
    bottom: 16px;
    left: 5vw;
    align-items: center;
    min-width: 0;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
