/* ===================== Design tokens ===================== */
:root {
  --purple-950: #150733;
  --purple-900: #200c52;
  --purple-800: #34127f;
  --purple-700: #4a17ac;
  --purple-600: #6222d6;
  --purple-500: #7c3aed;
  --purple-400: #9660f5;
  --purple-300: #b48af8;
  --purple-200: #d7bffb;
  --purple-100: #ede2fd;
  --purple-50: #f7f2ff;

  --ink-900: #13111c;
  --ink-700: #332f45;
  --ink-500: #5d5a70;
  --ink-300: #8f8ba1;
  --line: #e7e2f2;
  --line-soft: #f0ecf9;

  --bg: #ffffff;
  --bg-soft: #faf8fd;
  --success: #16a34a;
  --danger: #dc2626;
  --warn: #ea8a12;

  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --shadow-sm: 0 1px 2px rgba(19, 17, 28, 0.06);
  --shadow-md: 0 8px 24px -8px rgba(76, 29, 149, 0.18);
  --shadow-lg: 0 24px 60px -20px rgba(76, 29, 149, 0.28);
  --shadow-card: 0 2px 8px rgba(19, 17, 28, 0.04), 0 1px 2px rgba(19, 17, 28, 0.04);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --container: 1180px;
  --nav-h: 76px;
}

/* ===================== Reset & base ===================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); color: var(--ink-900); line-height: 1.15; font-weight: 700; }
p { margin: 0; }
input, textarea, select { font: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple-600);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple-500);
  box-shadow: 0 0 0 4px var(--purple-100);
}

.section-head { max-width: 680px; margin: 0 0 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -0.01em; }
.section-head p { margin-top: 16px; font-size: 17px; color: var(--ink-500); }

.on-dark .eyebrow { color: var(--purple-200); }
.on-dark .eyebrow::before { background: var(--purple-300); box-shadow: 0 0 0 4px rgba(255,255,255,0.12); }
.on-dark h2, .on-dark h3 { color: #fff; }
.on-dark .section-head p { color: rgba(255,255,255,0.72); }

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15.5px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--purple-500), var(--purple-700));
  color: #fff;
  box-shadow: 0 12px 28px -10px rgba(98, 34, 214, 0.55);
}
.btn-primary:hover { box-shadow: 0 16px 34px -8px rgba(98, 34, 214, 0.65); transform: translateY(-1px); }

.btn-secondary {
  background: #fff;
  color: var(--ink-900);
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--purple-400); color: var(--purple-600); }

.btn-ghost-dark {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-color: rgba(255,255,255,0.28);
  backdrop-filter: blur(6px);
}
.btn-ghost-dark:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.5); }

.btn-lg { padding: 16px 32px; font-size: 16.5px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.65; cursor: not-allowed; }

/* ===================== Nav ===================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  z-index: 100;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 24px rgba(19,17,28,0.05); }

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

.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--ink-900); letter-spacing: -0.02em; }
.logo .mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--purple-500), var(--purple-800));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px; font-weight: 800;
  box-shadow: 0 6px 16px -4px rgba(98,34,214,0.55);
}
.logo .brand-x { color: var(--purple-600); }

.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-size: 15px; font-weight: 600; color: var(--ink-700);
  position: relative; padding: 6px 0;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--purple-600); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-actions .btn { padding: 11px 20px; font-size: 14.5px; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--ink-900); position: relative; transition: 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav.is-open .nav-toggle span { background: transparent; }
.nav.is-open .nav-toggle span::before { top: 0; transform: rotate(45deg); background: var(--ink-900); }
.nav.is-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); background: var(--ink-900); }

/* ===================== Hero ===================== */
.hero {
  padding: calc(var(--nav-h) + 84px) 0 100px;
  background: radial-gradient(1100px 620px at 82% -10%, rgba(124,58,237,0.16), transparent 60%),
              radial-gradient(700px 500px at -10% 20%, rgba(98,34,214,0.10), transparent 55%),
              #ffffff;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }

.hero-copy h1 { font-size: clamp(38px, 5vw, 60px); letter-spacing: -0.02em; }
.hero-copy h1 .accent { color: var(--purple-600); }
.hero-copy .lede { margin-top: 22px; font-size: 18px; color: var(--ink-500); max-width: 560px; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-proof { margin-top: 34px; font-size: 14px; color: var(--ink-500); line-height: 1.5; }
.hero-proof b { color: var(--ink-900); font-weight: 700; }
.hero-proof .dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--success);
  box-shadow: 0 0 0 4px rgba(22,163,74,0.14); margin-right: 10px; vertical-align: middle;
}

.hero-visual { position: relative; }
.hero-visual .glow {
  position: absolute; inset: -60px;
  background: radial-gradient(closest-side, rgba(124,58,237,0.28), transparent 70%);
  filter: blur(10px);
  z-index: 0;
}
.hero-visual .frame {
  position: relative; z-index: 1;
  animation: float 6s ease-in-out infinite;
}
.hero-visual img { border-radius: 18px; }
.pcb-traces { position: absolute; inset: 0; z-index: 0; opacity: 0.5; pointer-events: none; }

@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-12px); } }

/* ===================== Workflow toggle section ===================== */
.workflow-tabs {
  display: inline-flex;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: var(--purple-50);
  border: 1px solid var(--purple-100);
  gap: 4px;
  margin-bottom: 36px;
}
.workflow-tabs button {
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink-500);
  transition: all 0.2s ease;
}
.workflow-tabs button.is-active {
  background: #fff;
  color: var(--purple-700);
  box-shadow: var(--shadow-sm);
}

.workflow-panel {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.workflow-panel img { width: 100%; border-radius: var(--radius-md); }
.workflow-caption { display: none; }
.workflow-caption.is-active { display: flex; }
.workflow-caption { align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 24px; font-size: 14.5px; color: var(--ink-500); }
.workflow-caption .step {
  padding: 6px 14px; border-radius: var(--radius-pill); background: #fff; border: 1px solid var(--line); font-weight: 600; color: var(--ink-700);
}
.workflow-caption .arrow { color: var(--purple-400); }

.workflow-highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.wf-highlight { display: flex; gap: 14px; }
.wf-highlight .ic { flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; background: var(--purple-100); color: var(--purple-600); display: flex; align-items: center; justify-content: center; }
.wf-highlight h4 { font-size: 15.5px; margin-bottom: 4px; }
.wf-highlight p { font-size: 14px; color: var(--ink-500); }

/* ===================== Feature showcase ===================== */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 96px;
}
.showcase.reverse .showcase-visual { order: 2; }
.showcase.reverse .showcase-copy { order: 1; }
.showcase-copy .tag {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--purple-600); background: var(--purple-50); border: 1px solid var(--purple-100);
  padding: 5px 12px; border-radius: var(--radius-pill); margin-bottom: 16px;
}
.showcase-copy h3 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.01em; }
.showcase-copy p.desc { margin-top: 16px; font-size: 16px; color: var(--ink-500); }
.showcase-list { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.showcase-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--ink-700); }
.showcase-list svg { flex-shrink: 0; margin-top: 3px; color: var(--purple-500); }

.showcase-visual { position: relative; }
.showcase-visual .card-shell {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 14px; box-shadow: var(--shadow-md);
}
.showcase-visual .card-shell img { border-radius: 12px; }
.showcase-visual .blob {
  position: absolute; z-index: -1; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(124,58,237,0.18), transparent 70%);
  filter: blur(4px);
}
.showcase.reverse .blob { left: -60px; top: -60px; }
.showcase:not(.reverse) .blob { right: -60px; bottom: -60px; }

/* ===================== Feature grid ===================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--purple-200); }
.feature-card .ic {
  width: 46px; height: 46px; border-radius: 13px;
  background: linear-gradient(135deg, var(--purple-50), var(--purple-100));
  color: var(--purple-600);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature-card h4 { font-size: 16.5px; margin-bottom: 8px; }
.feature-card p { font-size: 14.5px; color: var(--ink-500); }
.feature-card .jump { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13.5px; font-weight: 700; color: var(--purple-600); }
.feature-card .jump svg { transition: transform 0.2s ease; }
.feature-card:hover .jump svg { transform: translateX(3px); }

/* ===================== Corex AI section ===================== */
.ai-section {
  background:
    radial-gradient(900px 500px at 12% 0%, rgba(255,255,255,0.08), transparent 60%),
    linear-gradient(160deg, var(--purple-900), var(--purple-950) 70%);
  padding: 110px 0;
  color: #fff;
  overflow: hidden;
  position: relative;
}
.ai-section .pcb-traces { opacity: 0.35; }
.ai-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 64px; align-items: center; position: relative; z-index: 1; }
.ai-copy .mascot-badge { width: 64px; height: 64px; margin-bottom: 24px; }
.ai-copy p.desc { margin-top: 18px; font-size: 16.5px; color: rgba(255,255,255,0.78); }
.ai-prompts { margin-top: 30px; display: flex; flex-direction: column; gap: 12px; }
.ai-prompt-chip {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 14.5px;
  color: #fff;
  backdrop-filter: blur(8px);
}
.ai-prompt-chip svg { color: var(--purple-300); flex-shrink: 0; }
.ai-data-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.ai-data-tags span {
  font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); color: rgba(255,255,255,0.85);
}
.ai-visual { display: flex; justify-content: center; }
.ai-visual .phone-frame {
  border-radius: 22px; overflow: hidden; box-shadow: 0 40px 90px -30px rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.14);
  max-width: 380px;
}

/* ===================== Calculator section ===================== */
.calc-section { padding: 110px 0; background: var(--bg-soft); }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.calc-copy p.desc { margin-top: 18px; font-size: 16px; color: var(--ink-500); }
.calc-points { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.calc-point { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; color: var(--ink-700); }
.calc-point .dot-ic { width: 32px; height: 32px; border-radius: 9px; background: var(--purple-100); color: var(--purple-600); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.calc-visual .card-shell { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px; box-shadow: var(--shadow-lg); }
.calc-visual img { border-radius: 12px; }

/* ===================== Production workflow section ===================== */
.production-section { padding: 110px 0; }
.prod-steps {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 56px; flex-wrap: wrap;
}
.prod-step { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; flex: 1; min-width: 110px; }
.prod-step .ic {
  width: 58px; height: 58px; border-radius: 16px;
  background: linear-gradient(135deg, var(--purple-500), var(--purple-700));
  color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 22px -8px rgba(98,34,214,0.5);
}
.prod-step span { font-size: 14px; font-weight: 700; color: var(--ink-800, var(--ink-900)); }
.prod-arrow { color: var(--purple-300); flex-shrink: 0; margin-top: -30px; }
.prod-visual .card-shell { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px; box-shadow: var(--shadow-md); max-width: 900px; margin: 0 auto; }
.prod-visual img { border-radius: 12px; }

/* ===================== Built for section ===================== */
.built-for { padding: 110px 0; background: var(--bg-soft); }
.built-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.built-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 40px 32px; text-align: center; transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.built-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.built-card img { width: 96px; height: auto; margin: 0 auto 26px; }
.built-card h3 { font-size: 20px; margin-bottom: 12px; }
.built-card p { font-size: 15px; color: var(--ink-500); }

/* ===================== Custom workflow section ===================== */
.custom-wf { padding: 110px 0; }
.custom-wf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.custom-wf-copy p.desc { margin-top: 18px; font-size: 16px; color: var(--ink-500); }
.stage-chain { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.stage-pill {
  padding: 10px 18px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 700;
  background: var(--purple-50); border: 1px solid var(--purple-100); color: var(--purple-700);
}
.stage-pill.add {
  background: transparent; border: 1.5px dashed var(--purple-300); color: var(--purple-500);
  display: inline-flex; align-items: center; gap: 6px;
}
.custom-wf-visual { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; }
.custom-wf-visual .row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.custom-wf-visual .row:last-child { border-bottom: none; }
.custom-wf-visual .row .n { width: 28px; height: 28px; border-radius: 8px; background: var(--purple-500); color: #fff; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.custom-wf-visual .row .label { font-weight: 700; font-size: 14.5px; color: var(--ink-900); }
.custom-wf-visual .row .sub { font-size: 13px; color: var(--ink-300); }

/* ===================== Final CTA ===================== */
.final-cta {
  padding: 110px 0;
  background: linear-gradient(135deg, var(--purple-600), var(--purple-900));
  position: relative; overflow: hidden; text-align: center; color: #fff;
}
.final-cta h2 { color: #fff; font-size: clamp(30px, 4vw, 46px); }
.final-cta p { margin-top: 18px; font-size: 17.5px; color: rgba(255,255,255,0.82); max-width: 560px; margin-left: auto; margin-right: auto; }
.final-cta .hero-actions { justify-content: center; margin-top: 36px; }

/* ===================== Contact ===================== */
.contact-section { padding: 110px 0; }
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; }
.contact-info { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; height: fit-content; }
.contact-info h3 { font-size: 19px; margin-bottom: 8px; }
.contact-info > p { font-size: 14.5px; color: var(--ink-500); margin-bottom: 26px; }
.contact-item { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-item .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--purple-100); color: var(--purple-600); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item .label { font-size: 12.5px; color: var(--ink-300); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.contact-item .value { font-size: 15px; font-weight: 600; color: var(--ink-900); margin-top: 2px; }
.contact-item a.value:hover { color: var(--purple-600); }

.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-card); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink-700); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px;
  background: var(--bg-soft); color: var(--ink-900); transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--purple-400); box-shadow: 0 0 0 4px var(--purple-100); background: #fff;
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 13px; color: var(--ink-300); margin-top: 14px; text-align: center; }
.form-success {
  display: none; align-items: center; gap: 12px; background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d;
  padding: 14px 18px; border-radius: 12px; font-size: 14.5px; font-weight: 600; margin-bottom: 18px;
}
.form-success.is-visible { display: flex; }

/* ===================== Footer ===================== */
.footer { background: var(--ink-900); color: rgba(255,255,255,0.65); padding: 72px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer .logo { color: #fff; }
.footer-brand p { margin-top: 16px; font-size: 14.5px; max-width: 320px; color: rgba(255,255,255,0.55); }
.footer h5 { color: #fff; font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 14.5px; color: rgba(255,255,255,0.65); transition: color 0.2s ease; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; font-size: 13.5px; flex-wrap: wrap; gap: 12px; color: rgba(255,255,255,0.45); }

/* ===================== Reveal animation ===================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===================== Responsive ===================== */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .ai-grid, .calc-grid, .custom-wf-grid, .contact-grid { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: 1fr; gap: 36px; }
  .showcase.reverse .showcase-visual, .showcase.reverse .showcase-copy { order: initial; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .built-grid { grid-template-columns: 1fr; }
  .workflow-highlights { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --nav-h: 68px; }
  .nav .container { padding: 0 16px; gap: 10px; }
  .nav-links, .nav-actions .btn-secondary { display: none; }
  .nav-toggle { display: flex; flex-shrink: 0; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn-primary { padding: 10px 16px; font-size: 13.5px; }
  .logo { font-size: 19px; gap: 8px; }
  .logo .mark { width: 30px; height: 30px; font-size: 14px; }
  .nav.is-open .nav-links {
    display: flex; position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 20px 24px; gap: 4px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
  }
  .nav.is-open .nav-links a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line-soft); }
  .hero { padding: calc(var(--nav-h) + 48px) 0 64px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .feature-grid { grid-template-columns: 1fr; }
  .prod-steps { flex-direction: column; }
  .prod-arrow { display: none; }
  .calc-points { grid-template-columns: 1fr; }
  section, .hero, .ai-section, .calc-section, .production-section, .built-for, .custom-wf, .final-cta, .contact-section { padding-top: 72px; padding-bottom: 72px; }
  .section-head { margin-bottom: 40px; }
  .workflow-panel { padding: 20px; }
}
