/* ===========================================================
   Zerrusen Automation — Design System
   Navy + warm off-white + orange accent. Inter (UI/headings),
   JetBrains Mono (labels only).
   Sections: 1 tokens · 2 base · 3 layout · 4 buttons · 5 header
   · 6 hero · 7 home sections · 8 inner pages · 9 forms
   · 10 footer · 11 motion/a11y
   =========================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Color */
  --navy-950: #08142B;
  --navy-900: #0E1F3D;
  --navy-700: #1C3A6B;
  --orange-600: #C83803;
  --orange-700: #9C2C02;
  --orange-400: #FF8A4A;
  --cream: #FBF7F0;
  --cream-alt: #F4EFE6;
  --white: #FFFFFF;
  --ink: #181A20;
  --ink-soft: #4B5160;
  --line: #E6DFD2;
  --line-strong: #D5CAB6;
  --on-dark: #F4F1EA;
  --on-dark-soft: #A9B6CF;
  --on-dark-line: rgba(255, 255, 255, 0.12);

  /* Semantic */
  --bg: var(--cream);
  --bg-alt: var(--cream-alt);
  --surface: var(--white);
  --text: var(--ink);
  --text-soft: var(--ink-soft);
  --primary: var(--navy-900);
  --accent: var(--orange-600);
  --accent-dark: var(--orange-700);

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Spacing (4px base) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --section-y: clamp(56px, 8vw, 96px);
  --gutter: clamp(20px, 4vw, 32px);

  /* Shape */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(14, 31, 61, 0.06);
  --shadow-md: 0 8px 24px rgba(14, 31, 61, 0.08);
  --shadow-lg: 0 24px 60px rgba(8, 20, 43, 0.35);

  --container-w: 1180px;
  --header-h: 60px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, picture { display: block; max-width: 100%; }
svg { flex-shrink: 0; max-width: 100%; }
svg:not([width]) { width: 20px; height: 20px; } /* safety net: an unsized icon can never fill its container */

/* Icon scale */
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 20px; height: 20px; }
.service-icon { width: 22px; height: 22px; }
.workflow-icon { width: 18px; height: 18px; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }

html, body { overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--primary);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
}
h1 { font-size: clamp(2rem, 3.6vw + 0.6rem, 3.25rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 2.2vw + 0.8rem, 2.35rem); }
h3 { font-size: 1.1rem; letter-spacing: -0.015em; line-height: 1.3; }
h4 { font-size: 1rem; }

p { color: var(--text-soft); }
p.lede { font-size: clamp(1.02rem, 0.5vw + 0.95rem, 1.18rem); line-height: 1.6; color: var(--text-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: var(--s-4);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* ---------- 3. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
section { padding-block: var(--section-y); }
section.tight { padding-block: clamp(40px, 6vw, 64px); }
.bg-alt { background: var(--bg-alt); }
.bg-white { background: var(--surface); }
section + section, .hero + section { border-top: 1px solid var(--line); }
.hero + section { border-top: 0; }

.section-head { max-width: 640px; margin-bottom: var(--s-7); }
.section-head h1 + p, .section-head h2 + p, .about-hero h1 + p, .founder-split h2 + p { margin-top: var(--s-4); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: var(--s-6); } }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 46px;
  padding: 0.7rem 1.3rem;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 38px; padding: 0.45rem 1rem; font-size: 0.88rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-dark); box-shadow: 0 6px 18px rgba(200, 56, 3, 0.28); }

.btn-ghost { background: transparent; color: var(--primary); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface); border-color: var(--primary); }

.btn-on-dark { background: rgba(255,255,255,0.06); color: var(--on-dark); border-color: rgba(255,255,255,0.28); }
.btn-on-dark:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.6); }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.brand-mark { width: 30px; height: 30px; flex-shrink: 0; }
.brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name small { display: none; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text-soft);
  padding: 8px 12px;
  border-radius: var(--r-sm);
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-links a:hover { color: var(--primary); background: rgba(14, 31, 61, 0.06); }
.nav-links a.is-active { color: var(--primary); font-weight: 600; }
.nav-links .nav-drawer-cta { display: none; }

.nav-cta { display: flex; align-items: center; gap: var(--s-3); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  min-width: 44px;
  min-height: 44px;
  margin-right: -8px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-links {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    padding: var(--s-5) var(--gutter);
    gap: 2px;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0.25s;
    border-top: 1px solid var(--line);
    overflow-y: auto;
  }
  .nav-links.is-open { transform: translateX(0); visibility: visible; }
  .nav-links a { font-size: 1.1rem; padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-links .nav-drawer-cta { display: inline-flex; margin-top: var(--s-5); border-bottom: 0; color: #fff; border-radius: var(--r-md); padding: 0.7rem 1.3rem; font-size: 1rem; }
  .nav-links .nav-drawer-cta:hover { color: #fff; background: var(--accent-dark); }
  .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- 6. Hero (home) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--on-dark);
  background:
    radial-gradient(55% 70% at 88% 0%, rgba(200, 56, 3, 0.22), transparent 62%),
    radial-gradient(45% 60% at 0% 100%, rgba(28, 58, 107, 0.65), transparent 70%),
    var(--navy-950);
  padding-block: clamp(36px, 4.5vw, 56px) clamp(28px, 3.5vw, 40px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 85%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }

.hero .eyebrow { color: var(--orange-400); }
.hero .eyebrow::before { background: var(--orange-400); }
.hero h1 { color: #fff; font-size: clamp(2rem, 3vw + 0.9rem, 2.85rem); }
.hero h1 em { display: block; font-style: normal; color: var(--orange-400); }
.hero .lede { color: var(--on-dark-soft); max-width: 50ch; margin-top: var(--s-5); }

.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
@media (max-width: 520px) { .hero-ctas .btn { width: 100%; } }

.hero-trust {
  position: relative;
  list-style: none;
  padding: var(--s-5) 0 0;
  margin: clamp(28px, 3.5vw, 40px) 0 0;
  border-top: 1px solid var(--on-dark-line);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-6);
  font-size: 0.86rem;
  color: var(--on-dark-soft);
}
.hero-trust li { display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap; }
@media (max-width: 520px) { .hero-trust { flex-direction: column; } .hero-trust li { white-space: normal; } }
.hero-trust svg { color: var(--orange-400); }

/* Workflow panel: compact node cards */
.flow-panel {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  border: 1px solid var(--on-dark-line);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  box-shadow: var(--shadow-lg);
  max-width: 520px;
  width: 100%;
  margin-inline: auto 0;
}
@media (max-width: 940px) { .flow-panel { margin-inline: 0; max-width: 560px; } }
.fp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
  padding: 0 var(--s-1) var(--s-3);
}
.fp-title { display: inline-flex; align-items: center; gap: 0.5rem; }
.fp-live { width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18); }
.fp-steps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 14px; }
.fp-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 10px 12px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-md);
}
/* connector between cards */
.fp-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 28px;
  top: 100%;
  width: 1px;
  height: 14px;
  background: linear-gradient(rgba(255,255,255,0.3), rgba(255,255,255,0.12));
}
.fp-icon {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  color: var(--on-dark);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.2);
  animation: fp-node 7s ease-in-out infinite;
  animation-delay: calc(var(--i) * 1.2s);
}
.fp-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.fp-text strong { display: block; color: #fff; font-size: 0.92rem; font-weight: 600; }
.fp-text small { display: block; color: var(--on-dark-soft); font-size: 0.78rem; margin-top: 1px; }
.fp-step.is-core { background: rgba(200, 56, 3, 0.16); border-color: rgba(255, 138, 74, 0.5); }
.fp-step.is-core .fp-icon { background: var(--accent); border-color: var(--orange-400); color: #fff; }
/* travelling pulse along the connector column */
.fp-steps::after {
  content: "";
  position: absolute;
  left: 25px;
  top: 18px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange-400);
  box-shadow: 0 0 12px 3px rgba(255, 138, 74, 0.7);
  animation: fp-travel 7s ease-in-out infinite;
  opacity: 0;
  pointer-events: none;
}

@keyframes fp-travel {
  0%   { top: 22px; opacity: 0; }
  6%   { opacity: 1; }
  66%  { top: calc(100% - 22px); opacity: 1; }
  74%  { top: calc(100% - 22px); opacity: 0; }
  100% { top: calc(100% - 22px); opacity: 0; }
}
@keyframes fp-node {
  0%, 16%, 100% { border-color: rgba(255,255,255,0.2); box-shadow: none; }
  6% { border-color: var(--orange-400); box-shadow: 0 0 0 4px rgba(255, 138, 74, 0.16); }
}

/* ---------- 7. Home sections ---------- */

/* Problem rows */
.rows { display: grid; gap: var(--s-3); }
.row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: var(--s-4);
  padding: var(--s-5);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.row-num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent-dark); padding-top: 4px; }
.row h3 { margin-bottom: 4px; }
.row p { font-size: 0.97rem; }

/* Services bento */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } }
.bento-item {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  padding: var(--s-6) var(--s-5) var(--s-5);
  text-decoration: none;
  transition: background-color 0.18s ease;
}
.bento-item:hover { background: #FFFDF9; }
.bento-item:hover .bento-arrow { transform: translateX(3px); color: var(--accent); }
.bento-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-5); }
.mark {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: var(--navy-900);
  color: #fff;
}

.bento-idx { font-family: var(--font-mono); font-size: 0.72rem; color: var(--line-strong); letter-spacing: 0.06em; }
.bento-item h3 { margin-bottom: var(--s-2); color: var(--primary); }
.bento-item p { font-size: 0.94rem; margin-bottom: var(--s-5); }
.bento-arrow { margin-top: auto; font-size: 0.88rem; font-weight: 600; color: var(--primary); transition: transform 0.18s ease, color 0.18s ease; }

/* Rail lists: pipeline + timeline */
.rail-list {
  --cols: 6;
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  counter-reset: step;
}
.rail-list > li {
  position: relative;
  padding: 30px var(--s-4) 0 0;
}
.rail-list > li::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line-strong);
}
.rail-list > li:last-child::before { right: auto; width: 14px; }
.rail-list > li::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--navy-900);
  box-shadow: 0 0 0 4px var(--rail-bg, var(--bg));
}
.rail-list > li.is-human::after { background: var(--accent); }
.rail-list .step-n { display: block; font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent-dark); letter-spacing: 0.08em; margin-bottom: 6px; }
.rail-list h3 { font-size: 1rem; margin-bottom: 4px; }
.rail-list p, .rail-list small { font-size: 0.88rem; line-height: 1.5; color: var(--text-soft); display: block; }
.rail-list .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rail-list .chips span {
  font-size: 0.74rem; font-weight: 500; color: var(--primary);
  background: var(--bg-alt); border: 1px solid var(--line-strong);
  padding: 2px 8px; border-radius: 999px;
}

/* moving pulse across the pipeline rail */
.pipeline::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  width: 90px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: rail-pulse 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes rail-pulse {
  0% { left: -90px; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 40px);
  --rail-bg: var(--surface);
}
.panel-note {
  display: flex;
  gap: var(--s-4);
  align-items: flex-start;
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.panel-note svg { color: var(--accent); margin-top: 2px; }
.panel-note p { color: var(--text); }

/* dark variant of the panel (used for the system diagram) */
.panel-dark {
  --rail-bg: var(--navy-900);
  background:
    radial-gradient(50% 90% at 100% 0%, rgba(200, 56, 3, 0.18), transparent 60%),
    var(--navy-900);
  border-color: var(--navy-700);
  color: var(--on-dark);
}
.panel-dark .rail-list > li::before { background: rgba(255,255,255,0.18); }
.panel-dark .rail-list > li::after { background: #fff; }
.panel-dark .rail-list > li.is-human::after { background: var(--orange-400); }
.panel-dark .rail-list h3 { color: #fff; }
.panel-dark .rail-list p, .panel-dark .rail-list small { color: var(--on-dark-soft); }
.panel-dark .rail-list .step-n { color: var(--orange-400); }
.panel-dark .rail-list .chips span { color: var(--on-dark); background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.2); }
.panel-dark .panel-note { border-top-color: var(--on-dark-line); }
.panel-dark .panel-note p { color: var(--on-dark-soft); }
.panel-dark .panel-note strong { color: #fff; }
.panel-dark .panel-note svg { color: var(--orange-400); }

.timeline > li { padding-right: var(--s-5); }

@media (max-width: 1000px) {
  .timeline { --cols: 3; row-gap: var(--s-6); }
}
@media (max-width: 900px) {
  .pipeline { --cols: 1; }
  .pipeline::after { display: none; }
}
@media (max-width: 640px) {
  .timeline { --cols: 1; row-gap: 0; }
}
@media (max-width: 900px) and (min-width: 0px) {
  .rail-list.pipeline > li, .rail-list.timeline > li { padding: 0 0 var(--s-5) 34px; }
}
@media (max-width: 640px) {
  .rail-list.timeline > li { padding: 0 0 var(--s-5) 34px; }
}
@media (max-width: 900px) {
  .rail-list.pipeline > li::before { left: 6px; right: auto; top: 14px; bottom: -4px; width: 2px; height: auto; }
  .rail-list.pipeline > li:last-child::before { display: none; }
  .rail-list.pipeline > li::after { top: 3px; }
}
@media (max-width: 640px) {
  .rail-list.timeline > li::before { left: 6px; right: auto; top: 14px; bottom: -4px; width: 2px; height: auto; }
  .rail-list.timeline > li:last-child::before { display: none; }
  .rail-list.timeline > li::after { top: 3px; }
}

/* Founder */
.founder-split { display: grid; grid-template-columns: 0.62fr 1.38fr; gap: clamp(28px, 6vw, 72px); align-items: center; }
@media (max-width: 860px) { .founder-split { grid-template-columns: 1fr; } }
.founder-portrait {
  border-radius: var(--r-lg);
  background: var(--navy-900);
  aspect-ratio: 4 / 4.4;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  max-width: 360px;
}
.founder-portrait img { width: 100%; height: 100%; object-fit: cover; }
.founder-split h2 { margin-bottom: var(--s-4); }
.principles { list-style: none; padding: 0; margin: var(--s-6) 0 0; display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.principles li { display: grid; grid-template-columns: 120px 1fr; gap: var(--s-4); padding-block: var(--s-4); border-bottom: 1px solid var(--line-strong); font-size: 0.95rem; }
.principles strong { color: var(--primary); font-weight: 600; }
.principles span { color: var(--text-soft); }
@media (max-width: 480px) { .principles li { grid-template-columns: 1fr; gap: 2px; } }
.byline { margin-top: var(--s-5); font-size: 0.9rem; }
.byline strong { color: var(--primary); }

/* Final CTA */
.cta-section {
  color: var(--on-dark);
  background:
    radial-gradient(50% 120% at 100% 0%, rgba(200, 56, 3, 0.3), transparent 60%),
    var(--navy-900);
  border-top: 0 !important;
}
.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
  flex-wrap: wrap;
}
.cta-banner > div { max-width: 640px; }
.cta-banner h2 { color: #fff; margin-bottom: var(--s-3); }
.cta-banner p { color: var(--on-dark-soft); margin: 0; }
@media (max-width: 560px) { .cta-banner .btn { width: 100%; } }

/* ---------- 8. Inner pages ---------- */
/* Services detail */
.service-block {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  padding-block: clamp(36px, 5vw, 56px);
  border-bottom: 1px solid var(--line-strong);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.service-block:last-of-type { border-bottom: none; }
@media (max-width: 860px) { .service-block { grid-template-columns: 1fr; gap: var(--s-4); } }
.service-block h2 { font-size: clamp(1.4rem, 1.4vw + 1rem, 1.9rem); margin-bottom: var(--s-3); }
.service-tag { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; color: var(--accent-dark); margin-bottom: var(--s-3); }
.service-block ul { margin: var(--s-5) 0 0; padding: 0; list-style: none; display: grid; gap: var(--s-3); }
.service-block ul li { display: flex; gap: var(--s-3); align-items: flex-start; font-size: 0.97rem; color: var(--text-soft); }
.service-block ul li svg { margin-top: 4px; color: var(--accent); }
.benefit-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-sm);
  padding: var(--s-4) var(--s-5);
  margin-top: var(--s-5);
}
.benefit-box p { color: var(--text); font-size: 0.94rem; margin: 0; }
.benefit-box strong { color: var(--primary); }

/* About */
.about-hero { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: clamp(28px, 6vw, 72px); align-items: center; }
@media (max-width: 860px) { .about-hero { grid-template-columns: 1fr; } }
.about-hero .founder-portrait { aspect-ratio: 1 / 1; }
.about-hero h1 { margin-bottom: var(--s-4); }

/* Generic cards (kept for inner pages) */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-6) var(--s-5); }
.card h3 { margin-bottom: var(--s-2); }
.card p { font-size: 0.95rem; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
@media (max-width: 860px) { .values-grid { grid-template-columns: 1fr; } }

/* Legal */
.legal-content { max-width: 760px; }
.legal-content h2 { font-size: 1.35rem; margin-top: var(--s-7); margin-bottom: var(--s-3); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { margin-bottom: var(--s-4); }
.legal-content ul { margin: 0 0 var(--s-4) 1.3rem; list-style: disc; }
.legal-content li { color: var(--text-soft); margin-bottom: var(--s-2); }
.legal-content strong { color: var(--text); }
.legal-content a { color: var(--accent-dark); }
.legal-updated { font-size: 0.9rem; color: var(--text-soft); margin-bottom: var(--s-6); padding-bottom: var(--s-5); border-bottom: 1px solid var(--line); }

/* Consent mock */
.consent-brand { color: var(--text-soft); font-weight: 600; margin-bottom: var(--s-5); }
.consent-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-6); margin: var(--s-6) 0 var(--s-7); box-shadow: var(--shadow-sm); }
.consent-card-label { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-3); font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--primary); margin-bottom: var(--s-5); }
.consent-badge { text-transform: none; letter-spacing: normal; font-family: var(--font-sans); font-weight: 600; font-size: 0.76rem; color: var(--accent-dark); background: var(--bg-alt); border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.2rem 0.7rem; }
.consent-card .field { margin-bottom: var(--s-4); }
.consent-card .field input[disabled] { color: var(--text-soft); cursor: not-allowed; opacity: 0.85; }
.consent-checkbox-row { display: flex; align-items: flex-start; gap: var(--s-4); background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: var(--s-4); margin-bottom: var(--s-5); }
.consent-checkbox { flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); }
.consent-checkbox-text { font-size: 0.92rem; color: var(--text); line-height: 1.55; }
.consent-submit:disabled { background: var(--line-strong); color: var(--text-soft); cursor: not-allowed; box-shadow: none; transform: none; }
.consent-submit:disabled:hover { transform: none; }
.consent-card .form-note { margin-top: var(--s-4); text-align: left; }

/* ---------- 9. Forms / contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-6); }
.info-card .info-item { display: flex; gap: var(--s-4); margin-bottom: var(--s-5); }
.info-card .info-item:last-child { margin-bottom: 0; }
.info-card .info-item svg { color: var(--accent); margin-top: 3px; }
.info-card .info-item strong { display: block; color: var(--primary); font-size: 0.92rem; }
.info-card .info-item span, .info-card .info-item a { font-size: 0.94rem; color: var(--text-soft); text-decoration: none; }
.info-card .info-item a:hover { color: var(--accent-dark); }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-md); }
.form-row { display: grid; gap: var(--s-4); margin-bottom: var(--s-4); }
.form-row.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .form-row.two { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 0.86rem; font-weight: 600; color: var(--primary); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 0.9rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--bg);
  font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(200, 56, 3, 0.14); background: #fff; }
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.82rem; color: var(--text-soft); margin-top: var(--s-4); text-align: center; }
.form-status { display: none; padding: var(--s-4); border-radius: var(--r-sm); font-size: 0.94rem; margin-bottom: var(--s-5); }
.form-status.is-visible { display: block; }
.form-status.success { background: #E4EEE3; color: var(--primary); border: 1px solid #B9D3B6; }
.form-status.error { background: #F6E3DA; color: var(--accent-dark); border: 1px solid #E7BBA0; }

/* ---------- 10. Footer ---------- */
.site-footer { border-top: 1px solid var(--on-dark-line); background: var(--navy-950); color: var(--on-dark-soft); padding-block: var(--s-8) var(--s-5); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: var(--s-7); margin-bottom: var(--s-7); }
@media (max-width: 780px) { .footer-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-6); } .footer-brand { grid-column: 1 / -1; } }
.footer-brand .brand { color: #fff; }
.footer-brand p { color: var(--on-dark-soft); margin-top: var(--s-4); font-size: 0.9rem; max-width: 300px; }
.footer-col h4 { color: #fff; font-family: var(--font-mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: var(--s-4); }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: var(--s-3); }
.footer-col a { color: var(--on-dark-soft); text-decoration: none; font-size: 0.92rem; transition: color 0.15s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--on-dark-line); padding-top: var(--s-5); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-4); font-size: 0.84rem; color: #7E8DAB; }

/* ---------- 11. Misc, motion, a11y ---------- */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff; padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.hero a:focus-visible, .cta-banner a:focus-visible { outline-color: var(--orange-400); }

/* Section entrance (only when JS has marked the document) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .fp-steps::after, .pipeline::after { display: none; }
}

/* Process section: slightly more compact */
#how-it-works { padding-block: clamp(44px, 6vw, 68px); }
#how-it-works .section-head { margin-bottom: var(--s-6); }
#how-it-works .timeline { row-gap: var(--s-5); }
