:root {
  --bg: #e8e8e4;
  --surface: #fbfbf8;
  --surface-soft: #f2f2ee;
  --text: #071b18;
  --muted: #5d6765;
  --line: rgba(7, 27, 24, 0.1);
  --accent: #14d44a;
  --accent-2: #d8ff35;
  --deep: #063f3b;
  --deep-2: #092724;
  --shadow: 0 24px 70px rgba(7, 27, 24, 0.14);
  --radius: 30px;
  --radius-sm: 18px;
  --max: 1240px;
}

body[data-theme="dark"] {
  --bg: #07100f;
  --surface: #101817;
  --surface-soft: #15211f;
  --text: #f8faf7;
  --muted: #a9b5b1;
  --line: rgba(248, 250, 247, 0.12);
  --accent: #4ff26f;
  --accent-2: #d8ff35;
  --deep: #072f2b;
  --deep-2: #041d1a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background:
    linear-gradient(110deg, transparent 0 45%, rgba(255, 255, 255, 0.16) 45% 45.2%, transparent 45.2%),
    radial-gradient(circle at 92% 8%, rgba(20, 212, 74, 0.16), transparent 24rem),
    var(--bg);
  letter-spacing: 0;
  overflow-x: hidden;
  transition: background 220ms ease, color 220ms ease;
}

body.nav-open {
  overflow: hidden;
}

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

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

p {
  color: var(--muted);
  line-height: 1.6;
}

/* ─── Scroll Progress ─── */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: calc(var(--scroll-progress, 0) * 100%);
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 60ms linear;
  pointer-events: none;
}

/* ─── Layout Containers ─── */

.site-header,
.section-pad,
.marquee-strip,
.site-footer {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

/* ─── Header ─── */

.site-header {
  position: sticky;
  top: 20px;
  z-index: 50;
  min-height: 88px;
  padding: 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  height: 64px;
}

.mock-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand-img {
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand-img.small {
  height: 32px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.main-nav a,
.nav-cta {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 800;
}

.main-nav a {
  padding: 0 14px;
  color: var(--muted);
  transition: color 180ms ease, background 180ms ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--surface-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-toggle {
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface-soft);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.nav-toggle:hover {
  border-color: var(--accent);
}

.nav-cta,
.button-primary,
.mock-button {
  color: #03110e;
  background: var(--accent-2);
}

.nav-cta {
  padding: 0 18px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(216, 255, 53, 0.3);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 16px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 180ms ease;
}

/* ─── Theme Switch ─── */

.theme-switch {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.theme-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-track {
  position: relative;
  width: 52px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  transition: background 220ms ease, border-color 220ms ease;
}

.switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--text);
  color: var(--surface);
  display: grid;
  place-items: center;
  transition: transform 220ms ease, background 220ms ease, color 220ms ease;
}

.theme-switch input:checked + .switch-track .switch-thumb {
  transform: translateX(24px);
  background: var(--accent-2);
  color: #061311;
}

.icon-sun {
  display: none;
}

.icon-moon {
  display: block;
}

.theme-switch input:checked + .switch-track .icon-sun {
  display: block;
}

.theme-switch input:checked + .switch-track .icon-moon {
  display: none;
}

/* ─── Icon Links (Header) ─── */

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface-soft);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.icon-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.whatsapp-link:hover {
  color: #25d366;
  border-color: #25d366;
}

/* ─── Section Padding ─── */

.section-pad {
  padding: 88px 0;
}

/* ─── Hero ─── */

.hero {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 46px;
  min-height: calc(100vh - 110px);
  padding-top: 58px;
  padding-bottom: 48px;
}

.hero > * {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.big-panel h2,
.contact-copy h2 {
  margin: 0;
  color: var(--text);
  letter-spacing: -0.02em;
}

.hero h1 {
  max-width: 700px;
  font-size: clamp(3.2rem, 6.1vw, 6rem);
  line-height: 0.94;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text {
  max-width: 600px;
  margin: 24px 0 0;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

/* ─── Buttons ─── */

.button,
.mock-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

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

.button:active {
  transform: scale(0.97);
  transition-duration: 80ms;
}

.button-primary:hover {
  box-shadow: 0 8px 28px rgba(216, 255, 53, 0.35);
}

.button-secondary {
  color: var(--text);
  background: var(--surface);
  border-color: var(--line);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.button-secondary:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(20, 212, 74, 0.12);
}

/* ─── Phone Mockups ─── */

.mockup-stage {
  position: relative;
  min-height: 640px;
}

.phone {
  position: absolute;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.phone-large {
  left: 0;
  top: 18px;
  width: min(390px, 58%);
  min-height: 600px;
  padding: 24px;
}

.phone-small {
  right: -10px;
  top: 168px;
  width: min(360px, 52%);
  min-height: 560px;
  padding: 24px;
}

.phone-top {
  display: flex;
  justify-content: space-between;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 900;
}

.mini-bars {
  width: 34px;
  height: 14px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, currentColor 0 5px, transparent 5px 8px, currentColor 8px 17px, transparent 17px 20px, currentColor 20px 34px);
}

.phone .mock-brand {
  margin-top: 34px;
}

.phone h2 {
  margin: 54px 0 22px;
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 0.98;
}

.phone h3 {
  margin: 42px 0 18px;
  text-align: center;
  font-size: 1.65rem;
}

.photo-card {
  position: relative;
  margin-top: 58px;
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 1 / 1.05;
  background: var(--surface-soft);
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.green-line {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  border: 16px solid var(--accent);
  border-radius: 999px;
  transform: rotate(-10deg);
}

.line-one {
  left: -78px;
  bottom: 118px;
  width: 480px;
  height: 140px;
  border-top-color: transparent;
}

.data-card {
  min-height: 138px;
  margin-top: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 24px;
  overflow: hidden;
}

.data-card span,
.data-card small {
  font-weight: 800;
}

.data-card strong {
  display: block;
  margin: 8px 0;
  font-size: 2.35rem;
  line-height: 0.9;
}

.dark-card {
  color: #f8faf7;
  background:
    linear-gradient(180deg, rgba(6, 63, 59, 0.22), rgba(6, 63, 59, 0.86)),
    var(--deep);
}

.lime-card {
  color: #061311;
  background: linear-gradient(180deg, #f5ffc5, #d8ff35);
}

/* ─── Marquee Strip ─── */

.marquee-strip {
  padding: 18px 0;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 24px;
  width: max-content;
  animation: marquee 24s linear infinite;
}

.marquee-track span {
  white-space: nowrap;
  font-weight: 900;
  color: var(--muted);
}

.marquee-dot {
  width: 6px !important;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── Section Headings ─── */

.section-heading {
  max-width: 780px;
  margin-bottom: 36px;
}

.section-heading.center {
  margin-inline: auto;
  text-align: center;
}

.section-heading h2,
.big-panel h2,
.contact-copy h2 {
  font-size: clamp(2.2rem, 4.4vw, 4.8rem);
  line-height: 0.96;
}

/* ─── Service Cards ─── */

.service-showcase {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: 18px;
}

.service-card,
.price-card,
.timeline-item,
.big-panel,
.mini-panel,
.contact-form,
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 320ms ease, box-shadow 320ms ease, border-color 320ms ease;
}

.service-card:hover,
.price-card:hover,
.timeline-item:hover,
.mini-panel:hover {
  transform: translateY(-4px);
  box-shadow:
    0 28px 80px rgba(7, 27, 24, 0.18),
    0 0 0 1px var(--accent);
  border-color: transparent;
}

body[data-theme="dark"] .service-card:hover,
body[data-theme="dark"] .price-card:hover,
body[data-theme="dark"] .timeline-item:hover,
body[data-theme="dark"] .mini-panel:hover {
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.4),
    0 0 0 1px var(--accent);
}

.service-card {
  padding: 26px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
}

.service-card h3,
.price-card h3,
.timeline-item h3,
.mini-panel h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.35rem;
}

.service-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--surface-soft);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: var(--deep);
  flex-shrink: 0;
}

body[data-theme="dark"] .service-icon {
  color: var(--accent);
  background: rgba(79, 242, 111, 0.1);
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding: 0;
  list-style: none;
}

.service-tags li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

body[data-theme="dark"] .service-tags li {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(248, 250, 247, 0.8);
}

/* Featured card - tall left */

.service-featured {
  grid-column: 1 / 6;
  grid-row: 1 / 3;
  background: linear-gradient(135deg, var(--deep) 0%, var(--deep-2) 100%);
  border-color: transparent;
  color: #f8faf7;
  position: relative;
  overflow: hidden;
}

.service-featured::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -30%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0.2;
  pointer-events: none;
}

.service-featured h3 {
  color: #f8faf7;
  font-size: 1.6rem;
}

.service-featured p {
  color: rgba(248, 250, 247, 0.8);
  margin-top: 8px;
}

.service-featured .service-icon {
  background: rgba(216, 255, 53, 0.15);
  color: var(--accent-2);
}

.service-featured .service-tags li {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(248, 250, 247, 0.9);
}

.service-featured:hover {
  transform: translateY(-4px);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.35),
    0 0 0 1px var(--accent);
  border-color: transparent;
}

/* Visual card - tall center */

.visual-card {
  grid-column: 6 / 10;
  grid-row: 1 / 3;
  padding: 12px;
  overflow: hidden;
  position: relative;
}

.visual-card img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border-radius: 22px;
  object-fit: cover;
  transition: transform 600ms ease;
}

.visual-card:hover img {
  transform: scale(1.03);
}

.visual-card-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 2;
}

/* Top right cards */

.service-card:nth-child(3) {
  grid-column: 10 / 13;
  grid-row: 1 / 2;
}

.service-card:nth-child(4) {
  grid-column: 10 / 13;
  grid-row: 2 / 3;
}

/* Dark performance card - bottom left */

.service-dark {
  grid-column: 1 / 6;
  grid-row: 3 / 4;
  background: var(--deep);
  border-color: transparent;
  color: #f8faf7;
  position: relative;
  overflow: hidden;
}

.service-dark::before {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0.12;
  pointer-events: none;
}

.service-dark .service-icon {
  background: rgba(79, 242, 111, 0.15);
  color: var(--accent);
}

.service-dark .dark-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.service-dark strong {
  display: block;
  font-size: 4.5rem;
  line-height: 0.9;
  margin: 8px 0;
  background: linear-gradient(135deg, #fff 30%, var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.service-dark .dark-sub {
  display: block;
  font-size: 0.9rem;
  color: rgba(248, 250, 247, 0.7);
  font-weight: 600;
}

.service-dark:hover {
  transform: translateY(-4px);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.4),
    0 0 0 1px var(--accent);
  border-color: transparent;
}

/* Accent support card - bottom right */

.service-accent {
  grid-column: 6 / 13;
  grid-row: 3 / 4;
  background: linear-gradient(135deg, #f5ffc5, #d8ff35);
  color: #061311;
  border-color: transparent;
}

.service-accent .service-icon {
  background: rgba(6, 19, 17, 0.1);
  color: #061311;
}

.service-accent h3 {
  color: #061311;
}

.service-accent p {
  color: rgba(6, 19, 17, 0.8);
  margin-top: 4px;
}

.service-accent:hover {
  transform: translateY(-4px);
  box-shadow:
    0 28px 80px rgba(7, 27, 24, 0.12),
    0 0 0 1px var(--accent);
  border-color: transparent;
}

/* ─── Editorial Grid ─── */

.editorial-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
}

.big-panel {
  min-height: 460px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.big-panel p:last-child {
  max-width: 640px;
}

.stacked-panels {
  display: grid;
  gap: 18px;
}

.mini-panel {
  min-height: 140px;
  padding: 24px;
}

.mini-panel.accent {
  background: var(--accent-2);
}

.mini-panel.accent:hover {
  background: var(--accent-2);
}

.mini-panel.accent h3,
.mini-panel.accent p {
  color: #061311;
}

/* ─── Timeline ─── */

.timeline,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 52px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent));
  opacity: 0.35;
  border-radius: 2px;
  pointer-events: none;
}

.timeline-item {
  min-height: 240px;
  padding: 24px;
  position: relative;
  z-index: 1;
}

.timeline-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 24px;
  color: #03110e;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 50%;
  font-weight: 900;
  font-size: 0.82rem;
}

/* ─── Pricing ─── */

.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-grid::before {
  display: none;
}

.price-card {
  min-height: 430px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  background: var(--deep);
  box-shadow:
    var(--shadow),
    0 0 40px rgba(20, 212, 74, 0.15),
    0 0 0 1px rgba(79, 242, 111, 0.2);
}

.price-card.featured:hover {
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.3),
    0 0 60px rgba(20, 212, 74, 0.25),
    0 0 0 1px rgba(79, 242, 111, 0.4);
  background: var(--deep);
}

.price-card.featured h3,
.price-card.featured p,
.price-card.featured li {
  color: #f8faf7;
}

.price-card ul {
  margin: 24px 0 30px;
  padding: 0;
  list-style: none;
}

.price-card li {
  margin: 12px 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.price-card li::before {
  content: "";
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.price-card .button {
  margin-top: auto;
}

/* ─── FAQ ─── */

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  width: 100%;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform 320ms ease, box-shadow 320ms ease, border-color 320ms ease;
}

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

.faq-item span {
  font-size: 1rem;
  font-weight: 900;
}

.faq-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 0;
}

.faq-chevron::after {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2.5px solid var(--muted);
  border-bottom: 2.5px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 280ms ease, border-color 280ms ease;
}

.faq-item.is-open .faq-chevron::after {
  transform: rotate(-135deg);
  border-color: var(--accent);
}

.faq-item.is-open {
  border-left: 3px solid var(--accent);
}

.faq-item p {
  grid-column: 1 / -1;
  max-height: 0;
  margin: 0;
  overflow: hidden;
  transition: max-height 280ms ease, margin 280ms ease;
}

.faq-item.is-open p {
  max-height: 200px;
  margin-top: 8px;
}

/* ─── Contact Section ─── */

.contact-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.contact-copy p {
  max-width: 560px;
}

.contact-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.contact-method {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
  font-size: 0.95rem;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.contact-method:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.whatsapp-method {
  background: #25d366;
  color: #04120f;
  border-color: #25d366;
}

.whatsapp-method:hover {
  background: #1fb855;
  border-color: #1fb855;
}

.contact-form {
  padding: 28px;
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  color: var(--text);
  background: var(--surface-soft);
  font: inherit;
  outline: none;
  box-shadow: inset 0 2px 4px rgba(7, 27, 24, 0.04);
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

body[data-theme="dark"] input,
body[data-theme="dark"] select,
body[data-theme="dark"] textarea {
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 0.6;
  font-style: italic;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent),
    inset 0 2px 4px rgba(7, 27, 24, 0.04);
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--accent);
  font-weight: 900;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 400ms ease, transform 400ms ease;
}

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

.button[disabled] {
  opacity: 0.6;
  pointer-events: none;
}

/* ─── Footer ─── */

.site-footer {
  padding: 48px 0 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  border-top: 1px solid transparent;
  background-image: linear-gradient(180deg, color-mix(in srgb, var(--accent) 6%, transparent), transparent 60px);
  background-clip: padding-box;
}

.site-footer p {
  margin-bottom: 0;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.9rem;
  transition: color 180ms ease;
}

.footer-contact-link:hover {
  color: var(--accent);
}

.footer-main {
  grid-column: 1;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-weight: 900;
}

.footer-links a {
  transition: color 180ms ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  font-size: 0.82rem;
}

/* ─── Referral Page ─── */

.referral-hero {
  min-height: calc(82vh - 80px);
}

.partner-stage {
  min-height: 620px;
}

.partner-phone {
  left: 50%;
  transform: translateX(-50%);
  width: min(430px, 86%);
}

.partner-line {
  left: -88px;
  top: 150px;
  width: 590px;
  height: 160px;
  border-bottom-color: transparent;
}

.person-card {
  position: relative;
  z-index: 3;
  min-height: 430px;
  padding-top: 88px;
  display: grid;
  justify-items: center;
  text-align: center;
}

.avatar-shape {
  width: 140px;
  height: 140px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #061311;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  font-size: 2.2rem;
  font-weight: 900;
}

.person-card h2 {
  margin: 34px 0 0;
  font-size: 2.2rem;
}

.person-card p {
  max-width: 300px;
}

.partner-benefits {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ─── Reveal Animations ─── */

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

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

/* Stagger children within groups */
.service-showcase .reveal:nth-child(2) { transition-delay: 80ms; }
.service-showcase .reveal:nth-child(3) { transition-delay: 160ms; }
.service-showcase .reveal:nth-child(4) { transition-delay: 240ms; }
.service-showcase .reveal:nth-child(5) { transition-delay: 320ms; }
.service-showcase .reveal:nth-child(6) { transition-delay: 400ms; }

.timeline .reveal:nth-child(2) { transition-delay: 100ms; }
.timeline .reveal:nth-child(3) { transition-delay: 200ms; }
.timeline .reveal:nth-child(4) { transition-delay: 300ms; }

.pricing-grid .reveal:nth-child(2) { transition-delay: 120ms; }
.pricing-grid .reveal:nth-child(3) { transition-delay: 240ms; }

.stacked-panels .mini-panel:nth-child(2) { transition-delay: 100ms; }
.stacked-panels .mini-panel:nth-child(3) { transition-delay: 200ms; }

/* ─── Responsive: Tablet ─── */

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .main-nav {
    position: fixed;
    top: 104px;
    right: 24px;
    left: 24px;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: grid;
  }

  .main-nav a {
    justify-content: flex-start;
  }

  .header-actions {
    justify-self: end;
  }

  .nav-toggle {
    display: block;
  }

  .nav-toggle.is-open span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .nav-toggle.is-open span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .hero,
  .editorial-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .mockup-stage {
    min-height: 680px;
  }

  .service-showcase,
  .partner-benefits {
    grid-template-columns: repeat(6, 1fr);
  }

  .service-featured {
    grid-column: 1 / 4;
    grid-row: 1 / 3;
  }

  .visual-card {
    grid-column: 4 / 7;
    grid-row: 1 / 3;
  }

  .service-card:nth-child(3) {
    grid-column: 1 / 4;
    grid-row: 3 / 4;
  }

  .service-card:nth-child(4) {
    grid-column: 4 / 7;
    grid-row: 3 / 4;
  }

  .service-dark {
    grid-column: 1 / 4;
    grid-row: 4 / 5;
  }

  .service-accent {
    grid-column: 4 / 7;
    grid-row: 4 / 5;
  }

  .timeline,
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline::before {
    display: none;
  }
}

/* ─── Responsive: Mobile ─── */

@media (max-width: 680px) {
  .site-header,
  .section-pad,
  .marquee-strip,
  .site-footer {
    width: min(100% - 24px, var(--max));
  }

  .site-header {
    top: 12px;
    border-radius: 20px;
  }

  .nav-cta {
    display: none;
  }

  .section-pad {
    padding: 68px 0;
  }

  .hero {
    padding-top: 42px;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 13vw, 4rem);
  }

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

  .marquee-strip {
    border-radius: 24px;
  }

  .mockup-stage {
    min-height: auto;
    display: grid;
    gap: 16px;
  }

  .phone,
  .phone-large,
  .phone-small,
  .partner-phone {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: auto;
    transform: none;
  }

  .phone-small {
    display: none;
  }

  .line-one,
  .partner-line {
    width: 420px;
    left: -100px;
  }

  .service-showcase,
  .partner-benefits,
  .timeline,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .service-featured,
  .visual-card,
  .service-card:nth-child(3),
  .service-card:nth-child(4),
  .service-dark,
  .service-accent {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .visual-card img {
    min-height: 280px;
  }

  .big-panel {
    min-height: 380px;
    padding: 28px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}
