/* =========================================================
   CDX — Design System (Brand-aligned, dark + light)
   ========================================================= */
:root {
  /* DARK theme (default) */
  --ink-bg:        #07090F;
  --ink-bg-2:      #0B1019;
  --ink-elev:      #0F1626;
  --ink-surface:   #131B30;
  --ink-surface-2: #1B2542;
  --ink-line:      #1E2A47;
  --ink-line-2:    #2C3A5E;

  --fg-100: #F5F3EA;
  --fg-200: #D9DCE5;
  --fg-300: #98A2B8;
  --fg-400: #6B7790;
  --fg-500: #475066;

  --accent:        #4A6BFF;
  --accent-strong: #2E4FE6;
  --accent-soft:   #85B7EB;
  --accent-glow:   rgba(74, 107, 255, 0.55);

  --brand-navy:    #042C53;
  --brand-blue:    #185FA5;
  --brand-x:       #85B7EB;

  --warm:        #F4B860;
  --warm-soft:   #EBD3A6;
  --warm-deep:   #C99845;

  --live: #4ADE80;

  --il-line:   #2C3A5E;
  --il-ring:   #2C3A5E;
  --il-dot:    #2C3A5E;
  --il-origin: #F4B860;
  --il-dest:   #4A6BFF;
  --il-mid:    #F5F3EA;
  --il-arc-a:  #4A6BFF;
  --il-arc-b:  #F4B860;

  --cta-stop-a: #0E1626;
  --cta-stop-b: #0A1020;
  --cta-glow-a: rgba(74,107,255,0.22);
  --cta-glow-b: rgba(244,184,96,0.10);

  /* Type — Geologica display + Onest body */
  --display: "Geologica", "Inter", -apple-system, system-ui, sans-serif;
  --sans:    "Onest", "Inter", -apple-system, system-ui, sans-serif;
  --logo:    "Inter", -apple-system, system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --rail-x: clamp(20px, 4vw, 64px);
  --section-y: clamp(36px, 4.4vw, 72px);
  --container: 1320px;

  --ease-out: cubic-bezier(.16,.84,.32,1);

  color-scheme: dark;
}

[data-theme="light"] {
  --ink-bg:        #F7F9FC;
  --ink-bg-2:      #FFFFFF;
  --ink-elev:      #FFFFFF;
  --ink-surface:   #F2F6FC;
  --ink-surface-2: #E8EFF8;
  --ink-line:      #E1E8F2;
  --ink-line-2:    #C5D0E0;

  --fg-100: #042C53;
  --fg-200: #15375E;
  --fg-300: #4A5C76;
  --fg-400: #6B7B92;
  --fg-500: #95A1B5;

  --accent:        #185FA5;
  --accent-strong: #042C53;
  --accent-soft:   #378ADD;
  --accent-glow:   rgba(55, 138, 221, 0.35);

  --brand-navy:    #042C53;
  --brand-blue:    #185FA5;
  --brand-x:       #378ADD;

  --warm:        #B07C2A;
  --warm-soft:   #8C6520;
  --warm-deep:   #6B4D17;

  --il-line:   #D3DCE9;
  --il-ring:   #C5D0E0;
  --il-dot:    #B5C2D6;
  --il-origin: #B07C2A;
  --il-dest:   #185FA5;
  --il-mid:    #042C53;
  --il-arc-a:  #185FA5;
  --il-arc-b:  #B07C2A;

  --cta-stop-a: #FFFFFF;
  --cta-stop-b: #EEF3FA;
  --cta-glow-a: rgba(24, 95, 165, 0.18);
  --cta-glow-b: rgba(176, 124, 42, 0.10);

  color-scheme: light;
}

* { box-sizing: border-box; }
*::selection { background: var(--accent); color: #fff; }

html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--ink-bg);
  color: var(--fg-100);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background .35s var(--ease-out), color .35s var(--ease-out);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--rail-x);
  padding-right: var(--rail-x);
}

/* =========================================================
   Typography
   ========================================================= */
.h-section {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--fg-100);
  margin: 0;
}
.h-section .soft {
  display: block;
  color: var(--fg-300);
  font-weight: 300;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: all .35s var(--ease-out);
  white-space: nowrap;
}
.btn .arrow { transition: transform .4s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--fg-100);
  color: var(--ink-bg);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(100%);
  transition: transform .4s var(--ease-out);
}
.btn-primary span, .btn-primary svg { position: relative; z-index: 2; transition: color .4s var(--ease-out); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); }
.btn-primary:hover::before { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--fg-100);
  border-color: var(--ink-line-2);
}
.btn-ghost:hover { border-color: var(--fg-200); background: rgba(127, 127, 127, 0.05); transform: translateY(-2px); }

/* CONTRAST nav CTA */
.btn-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  border: 1px solid var(--accent);
  overflow: hidden;
  transition: all .4s var(--ease-out);
  box-shadow: 0 4px 16px var(--accent-glow);
}
.btn-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-strong);
  transform: translateY(100%);
  transition: transform .4s var(--ease-out);
}
.btn-cta span, .btn-cta svg { position: relative; z-index: 2; }
.btn-cta .arrow { transition: transform .4s var(--ease-out); }
.btn-cta:hover::before { transform: translateY(0); }
.btn-cta:hover {
  box-shadow: 0 10px 28px var(--accent-glow);
  transform: translateY(-2px);
}
.btn-cta:hover .arrow { transform: translateX(4px); }

/* =========================================================
   Navigation
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all .35s var(--ease-out);
}
.nav.scrolled {
  background: color-mix(in oklab, var(--ink-bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--ink-line);
  padding: 14px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.brand-mono { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-mono svg { width: 40px; height: 40px; display: block; }
.brand-suffix {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--fg-400);
  text-transform: uppercase;
  font-weight: 500;
  padding-left: 14px;
  border-left: 1px solid var(--ink-line-2);
  line-height: 1.4;
}

.nav-links {
  display: flex; gap: 36px;
  font-size: 14px;
  color: var(--fg-200);
  font-weight: 400;
}
.nav-links a { position: relative; padding: 4px 0; transition: color .3s; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .35s var(--ease-out);
}
.nav-links a:hover { color: var(--fg-100); }
.nav-links a:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 18px; }

.nav-phone {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-100);
  letter-spacing: 0.02em;
  display: flex; align-items: center; gap: 8px;
}
.nav-phone .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(74,222,128,0.5);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74,222,128,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

.theme-toggle {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: rgba(127, 127, 127, 0.06);
  border: 1px solid var(--ink-line);
  display: grid; place-items: center;
  color: var(--fg-100);
  transition: all .3s;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent-soft); }
.theme-toggle .ico-sun { display: none; }
.theme-toggle .ico-moon { display: block; }
[data-theme="light"] .theme-toggle .ico-sun { display: block; }
[data-theme="light"] .theme-toggle .ico-moon { display: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding: 110px 0 50px;
  overflow: hidden;
  background:
    radial-gradient(80% 60% at 80% 10%, var(--accent-glow) 0%, transparent 55%),
    radial-gradient(60% 50% at 0% 100%, rgba(244,184,96,0.08) 0%, transparent 60%),
    linear-gradient(180deg, var(--ink-bg) 0%, var(--ink-bg-2) 100%);
}
[data-theme="light"] .hero {
  background:
    radial-gradient(80% 60% at 80% 10%, rgba(55, 138, 221, 0.12) 0%, transparent 55%),
    radial-gradient(60% 50% at 0% 100%, rgba(176, 124, 42, 0.05) 0%, transparent 60%),
    linear-gradient(180deg, var(--ink-bg) 0%, #ECF1F8 100%);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--ink-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--ink-line) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 90%);
  pointer-events: none;
}

.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, var(--ink-line-2) 1px, transparent 0);
  background-size: 24px 24px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 50%, black 30%, transparent 80%);
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.6vw, 24px);
}

.hero-title {
  position: relative;
  z-index: 3;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(18px, 2.9vw, 46px);
  line-height: 0.94;
  letter-spacing: -0.04em;
  margin: 0;
  color: var(--fg-100);
  max-width: 100%;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.hero-title .accent-word {
  font-weight: 400;
  background: linear-gradient(95deg, var(--warm) 30%, var(--warm-soft) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lede {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--fg-300);
  max-width: 50ch;
  margin: 20px 0 28px;
  font-weight: 400;
}

.hero-cta {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink-line);
}
.metric { padding: 28px 0 0; position: relative; }
.metric + .metric { padding-left: 28px; border-left: 1px solid var(--ink-line); }
.metric-value {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(32px, 3.6vw, 44px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--fg-100);
  display: flex; align-items: baseline; gap: 4px;
}
.metric-value .suffix {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--accent-soft);
  font-weight: 500;
}
.metric-value .suffix.warm { color: var(--warm); }
.metric-label {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fg-400);
  line-height: 1.4;
}

.hero-illust {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 460px;
  margin-top: -150px;
  z-index: 0;
  opacity: 0.85;
}
.hero-illust > svg {
  width: 100%;
  max-height: 540px;
  display: block;
  margin-bottom: -28px;
  pointer-events: none;
}
.hero-illust .il-line   { stroke: var(--il-line); }
.hero-illust .il-ring   { stroke: var(--il-ring); fill: none; }
.hero-illust .il-dot    { fill: var(--il-dot); }
.hero-illust .il-origin { fill: var(--il-origin); }
.hero-illust .il-dest   { fill: var(--il-dest); }
.hero-illust .il-mid    { fill: var(--il-mid); }
.hero-illust .il-text-origin { fill: var(--warm-soft); }
.hero-illust .il-text-dest   { fill: var(--accent-soft); }
.hero-illust .il-text-mid    { fill: var(--fg-300); }

/* Routes strip directly under illustration */
.hero-routes {
  padding-top: 20px;
  border-top: 1px dashed var(--ink-line-2);
  text-align: center;
}
.routes-label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-400);
  margin-bottom: 14px;
  font-weight: 500;
}
.routes-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 15px;
  color: var(--fg-200);
  flex-wrap: wrap;
  letter-spacing: -0.01em;
}
.routes-list .sep {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--fg-500);
  display: inline-block;
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: var(--section-y) 0; position: relative; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
  align-items: end;
}
.section-head .right { color: var(--fg-300); max-width: 44ch; }

/* =========================================================
   SERVICES (5 + 1 CTA cell)
   ========================================================= */
.services {
  background: var(--ink-bg-2);
  border-top: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-left: 1px solid var(--ink-line);
  border-top: 1px solid var(--ink-line);
  border-radius: 16px;
  overflow: hidden;
}
.service-card {
  position: relative;
  padding: 36px 32px 36px;
  border-right: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
  min-height: 290px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--ink-bg-2);
  transition: background .4s var(--ease-out);
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 0% 0%, var(--accent-glow) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .5s var(--ease-out);
  pointer-events: none;
}
.service-card:hover { background: var(--ink-elev); }
[data-theme="light"] .service-card:hover { background: var(--ink-surface); }
.service-card:hover::before { opacity: 1; }

.service-top {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 24px;
  position: relative; z-index: 2;
}
.service-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--ink-surface);
  border: 1px solid var(--ink-line-2);
  display: grid; place-items: center;
  color: var(--accent-soft);
  transition: all .4s var(--ease-out);
  flex-shrink: 0;
}
.service-card:hover .service-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: rotate(-6deg);
}
.service-num {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  color: var(--fg-500);
  letter-spacing: 0.06em;
  margin-left: auto;
}
.service-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--fg-100);
  position: relative; z-index: 2;
}
.service-desc {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--fg-300);
  margin: 0;
  position: relative; z-index: 2;
}
.service-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  padding: 6px 12px;
  background: color-mix(in oklab, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent);
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  color: var(--accent-soft);
  letter-spacing: 0.02em;
  width: max-content;
  position: relative; z-index: 2;
}

/* CTA cell at end of services grid */
.service-cta-cell {
  position: relative;
  padding: 36px 32px 36px;
  border-right: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
  min-height: 290px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--ink-elev) 0%, var(--ink-surface) 100%);
  cursor: pointer;
  overflow: hidden;
  transition: all .4s var(--ease-out);
}
.service-cta-cell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 100% 0%, var(--accent-glow) 0%, transparent 60%);
  opacity: 0.4;
  transition: opacity .5s var(--ease-out);
  pointer-events: none;
}
.service-cta-cell:hover::after { opacity: 1; }
.service-cta-cell:hover { transform: translateY(-2px); }

.service-cta-cell .service-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.service-cta-cell:hover .service-icon { transform: rotate(-12deg); }
.service-cta-cell p {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--fg-300);
  margin: 0;
  position: relative; z-index: 2;
}
.service-cta-cell .cell-link {
  margin-top: 22px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  color: var(--accent-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative; z-index: 2;
}

/* =========================================================
   PROCESS
   ========================================================= */
.process { background: var(--ink-bg); }

.process-line { position: relative; margin-top: 36px; }
.process-line::before {
  content: "";
  position: absolute;
  top: 33px;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right,
    transparent 0%,
    var(--ink-line-2) 8%,
    var(--ink-line-2) 92%,
    transparent 100%);
}
.process-line::after {
  content: "";
  position: absolute;
  top: 33px;
  left: 8%;
  height: 1px;
  width: 0;
  background: linear-gradient(to right, var(--accent), var(--warm));
  animation: progress-fill 3.5s var(--ease-out) infinite;
}
@keyframes progress-fill {
  0% { width: 0; opacity: 1; }
  60% { width: 84%; opacity: 1; }
  80% { opacity: 0; }
  100% { width: 84%; opacity: 0; }
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  align-items: stretch;
}
.step {
  padding-right: 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.step-num {
  width: 66px; height: 66px;
  border-radius: 50%;
  background: var(--ink-bg);
  border: 1px solid var(--ink-line-2);
  display: grid; place-items: center;
  font-family: var(--display);
  font-weight: 500;
  font-size: 18px;
  color: var(--fg-100);
  margin-bottom: 32px;
  position: relative;
  z-index: 2;
}
.step:nth-child(1) .step-num { color: var(--accent); border-color: var(--accent); box-shadow: 0 0 30px var(--accent-glow); }
.step:nth-child(2) .step-num { color: var(--accent-soft); border-color: var(--accent); }
.step:nth-child(3) .step-num { color: var(--warm-soft); border-color: var(--warm-deep); }
.step:nth-child(4) .step-num { color: var(--warm); border-color: var(--warm); }

.step-stage {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  color: var(--fg-400);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
}
.step-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  color: var(--fg-100);
}
.step-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-300);
}
.step-meta {
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--fg-400);
  border-top: 1px solid var(--ink-line);
}
.step-meta strong { color: var(--fg-100); font-weight: 500; }

/* =========================================================
   WHY
   ========================================================= */
.why {
  background: var(--ink-bg-2);
  border-top: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
  position: relative;
  overflow: hidden;
}
.why::before {
  content: "";
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  opacity: 0.4;
  pointer-events: none;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-card {
  position: relative;
  padding: 36px 32px 40px;
  background: var(--ink-elev);
  border: 1px solid var(--ink-line);
  border-radius: 18px;
  overflow: hidden;
  transition: all .4s var(--ease-out);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.why-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent) 0%, transparent 50%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .4s var(--ease-out);
  pointer-events: none;
}
.why-card:hover { transform: translateY(-4px); }
.why-card:hover::after { opacity: 1; }
[data-theme="light"] .why-card { box-shadow: 0 1px 0 var(--ink-line); }
[data-theme="light"] .why-card:hover { box-shadow: 0 24px 48px -20px rgba(4, 44, 83, 0.18); }

.why-glyph {
  width: 100%;
  height: 180px;
  margin-bottom: 28px;
  position: relative;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ink-surface) 0%, var(--ink-bg-2) 100%);
  border: 1px solid var(--ink-line);
  overflow: hidden;
  display: grid; place-items: center;
}
.why-glyph svg { width: 60%; height: 60%; }

.why-card h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--fg-100);
}
.why-card p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--fg-300);
  margin: 0;
}
.why-card p { padding-bottom: 24px; }
.why-card .why-tag {
  align-self: flex-start;
  margin-top: auto;
  padding: 6px 12px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  background: rgba(127,127,127,0.06);
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  color: var(--fg-200);
  letter-spacing: 0.02em;
}

/* =========================================================
   INDUSTRIES
   ========================================================= */
.industries { background: var(--ink-bg); }

.ind-bar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-top: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
  margin-top: 36px;
}
.ind {
  padding: 36px 18px;
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  gap: 14px;
  border-right: 1px solid var(--ink-line);
  color: var(--fg-300);
  transition: all .35s var(--ease-out);
  cursor: default;
}
.ind:last-child { border-right: none; }
.ind:hover { background: var(--ink-bg-2); color: var(--fg-100); }
.ind:hover svg { color: var(--warm); }
.ind svg {
  width: 32px; height: 32px;
  color: var(--fg-400);
  transition: color .35s;
}
.ind-name {
  font-family: var(--display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: -0.005em;
  color: var(--fg-100);
}
.ind-num {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  color: var(--fg-500);
  letter-spacing: 0.08em;
}

/* =========================================================
   CTA — contact form + 4 contact tiles
   ========================================================= */
.cta {
  background: var(--ink-bg);
  position: relative;
  overflow: hidden;
}
.cta-inner {
  background:
    radial-gradient(60% 100% at 100% 0%, var(--cta-glow-a) 0%, transparent 60%),
    radial-gradient(40% 100% at 0% 100%, var(--cta-glow-b) 0%, transparent 60%),
    linear-gradient(135deg, var(--cta-stop-a) 0%, var(--cta-stop-b) 100%);
  border: 1px solid var(--ink-line-2);
  border-radius: 28px;
  padding: clamp(28px, 3.5vw, 48px);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(24px, 3vw, 40px);
  align-items: stretch;
  position: relative;
  overflow: hidden;
}
.cta-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, var(--ink-line-2) 1px, transparent 0);
  background-size: 28px 28px;
  opacity: 0.25;
  pointer-events: none;
}

.cta-text { position: relative; z-index: 2; display: flex; flex-direction: column; }
.cta-headline {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(34px, 3.6vw, 50px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  color: var(--fg-100);
}
.cta-headline .soft {
  display: block;
  font-weight: 300;
  color: var(--warm-soft);
}
.cta-sub {
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg-300);
  max-width: 46ch;
  margin: 0 0 36px;
}

.cta-contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: auto;
}
.contact-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(127,127,127,0.04);
  border: 1px solid var(--ink-line);
  border-radius: 12px;
  transition: all .3s var(--ease-out);
}
.contact-tile:hover {
  border-color: var(--accent);
  background: color-mix(in oklab, var(--accent) 8%, transparent);
  transform: translateY(-1px);
}
.contact-ico {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--ink-surface);
  border: 1px solid var(--ink-line-2);
  display: grid; place-items: center;
  color: var(--accent-soft);
  flex-shrink: 0;
  transition: all .3s;
}
.contact-tile:hover .contact-ico {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.contact-tile-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-label {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-400);
  font-weight: 500;
}
.contact-value {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--fg-100);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Lead form */
.lead-form {
  position: relative; z-index: 2;
  background: var(--ink-bg-2);
  border: 1px solid var(--ink-line-2);
  border-radius: 20px;
  padding: clamp(28px, 3.5vw, 40px);
  display: flex; flex-direction: column;
  gap: 22px;
}
[data-theme="light"] .lead-form { background: #FFFFFF; box-shadow: 0 24px 48px -20px rgba(4, 44, 83, 0.10); }

.form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.form-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--fg-100);
}
.form-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  color: var(--live);
  background: color-mix(in oklab, var(--live) 14%, transparent);
  border: 1px solid color-mix(in oklab, var(--live) 40%, transparent);
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.form-badge::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(74,222,128,0.5);
  animation: pulse 2.4s infinite;
}

.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label {
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  color: var(--fg-400);
}
.form-input,
.form-text {
  font-family: var(--sans);
  font-size: 15px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ink-line-2);
  color: var(--fg-100);
  padding: 10px 0;
  transition: border-color .3s;
  outline: none;
  resize: none;
  width: 100%;
}
.form-input:focus,
.form-text:focus { border-bottom-color: var(--accent); }
.form-input::placeholder,
.form-text::placeholder { color: var(--fg-500); }

.form-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2398A2B8' stroke-width='1.6' fill='none' stroke-linecap='square'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 11px;
  padding-right: 24px;
}
.form-select option { background: var(--ink-elev); color: var(--fg-100); }
.form-select.empty { color: var(--fg-500); }

.form-file {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 4px 0 10px;
  border-bottom: 1px solid var(--ink-line-2);
  transition: border-color .3s;
}
.form-file:focus-within { border-bottom-color: var(--accent); }
.form-file input[type="file"] {
  position: absolute;
  left: -9999px; opacity: 0; pointer-events: none;
}
.form-file-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(127,127,127,0.05);
  border: 1px solid var(--ink-line-2);
  color: var(--fg-100);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  transition: all .3s;
}
.form-file-btn:hover {
  border-color: var(--accent);
  background: color-mix(in oklab, var(--accent) 8%, transparent);
  color: var(--accent-soft);
}
.form-file-hint {
  font-size: 13px;
  color: var(--fg-400);
  font-family: var(--sans);
  flex: 1; min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.form-grid .form-row { gap: 8px; }

.form-submit {
  margin-top: 8px;
  height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--fg-100);
  color: var(--ink-bg);
  border: none;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: color .35s var(--ease-out);
  width: 100%;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.form-submit::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--accent);
  transform: translateY(100%);
  transition: transform .35s var(--ease-out);
}
.form-submit > * { position: relative; z-index: 2; }
.form-submit:hover { color: #fff; }
.form-submit:hover::before { transform: translateY(0); }

.form-disclaimer {
  margin: 0;
  font-size: 12px;
  color: var(--fg-400);
  line-height: 1.5;
}
.form-disclaimer a { color: var(--fg-200); border-bottom: 1px solid var(--ink-line-2); }
.form-disclaimer a:hover { color: var(--accent-soft); border-color: var(--accent-soft); }

/* Consent checkboxes — 152-ФЗ */
.form-consent {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}
.form-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border: 1.5px solid var(--ink-line-2);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  margin: 1px 0 0;
  position: relative;
  transition: all .2s var(--ease-out);
}
.form-check input[type="checkbox"]:hover { border-color: var(--accent); }
.form-check input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.form-check input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px; top: 1px;
  width: 5px; height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.form-check-text {
  font-size: 12px;
  line-height: 1.55;
  color: var(--fg-400);
  user-select: none;
}
.form-check-text a {
  color: var(--fg-200);
  border-bottom: 1px solid var(--ink-line-2);
}
.form-check-text a:hover {
  color: var(--accent-soft);
  border-color: var(--accent-soft);
}
.form-check input[type="checkbox"]:invalid {
  border-color: color-mix(in oklab, var(--warm) 60%, transparent);
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  padding: 50px 0 30px;
  background: var(--ink-bg);
  border-top: 1px solid var(--ink-line);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--ink-line);
}
.footer-brand-block .brand { margin-bottom: 20px; }
.footer-tag {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-300);
  max-width: 32ch;
  margin: 0 0 24px;
}
.footer-col h5 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-400);
  margin: 0 0 22px;
  font-weight: 500;
}
.footer-col ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: 12px;
}
.footer-col a {
  font-size: 14px;
  color: var(--fg-200);
  transition: color .3s;
}
.footer-col a:hover { color: var(--accent-soft); }

.footer-contacts { font-size: 14px; color: var(--fg-200); }
.footer-phone {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 500;
  color: var(--fg-100);
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}
.footer-contacts-row {
  font-size: 11px;
  color: var(--fg-300);
  margin-top: 6px;
}

.footer-bottom {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--fg-500);
  font-family: var(--sans);
}
.footer-bottom a { color: var(--fg-400); }
.footer-bottom a:hover { color: var(--fg-200); }

/* =========================================================
   Reveal
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-illust { min-height: 380px; order: -1; margin-top: 0; }
  .hero-illust > svg { margin-bottom: 0; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 48px 32px; }
  .process-line::before, .process-line::after { display: none; }
  .why-grid { grid-template-columns: 1fr; }
  .ind-bar { grid-template-columns: repeat(4, 1fr); }
  .ind:nth-child(4) { border-right: none; }
  .ind { border-bottom: 1px solid var(--ink-line); }
  .cta-inner { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .brand-suffix { display: none; }
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-phone { display: none; }
  .hero-metrics { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .metric { padding-top: 22px; }
  .metric + .metric { padding-left: 0; border-left: none; }
  .metric:nth-child(2) { padding-left: 22px; border-left: 1px solid var(--ink-line); }
  .metric:nth-child(3), .metric:nth-child(4) {
    border-top: 1px solid var(--ink-line);
    margin-top: 22px;
  }
  .metric:nth-child(4) { padding-left: 22px; border-left: 1px solid var(--ink-line); }
  .services-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; gap: 36px; }
  .ind-bar { grid-template-columns: repeat(2, 1fr); }
  .ind { border-right: 1px solid var(--ink-line); }
  .ind:nth-child(2n) { border-right: none; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .cta-contacts { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; gap: 22px; }
}