/* ==========================================================================
   Autoprod - site styles
   ========================================================================== */

:root {
  --ink: #0b0f19;
  --ink-2: #121828;
  --ink-3: #1b2338;
  --ink-line: rgba(255, 255, 255, 0.09);
  --paper: #ffffff;
  --mist: #f4f6fa;
  --line: #e3e7ef;
  --text: #0b0f19;
  --muted: #5a6478;
  --on-dark: #f3f5fa;
  --on-dark-muted: #a3acbf;
  --accent: #c5f04a;
  --accent-hover: #b3e130;
  --accent-soft: rgba(197, 240, 74, 0.14);
  --violet: #7c6cff;
  --violet-soft: rgba(124, 108, 255, 0.12);

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(11, 15, 25, 0.04), 0 8px 24px rgba(11, 15, 25, 0.06);
  --shadow-lg: 0 2px 4px rgba(11, 15, 25, 0.04), 0 24px 48px rgba(11, 15, 25, 0.12);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 120px);
  --header-h: 72px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 0.5em;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); letter-spacing: -0.028em; }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); letter-spacing: -0.015em; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: calc(780px + var(--gutter) * 2); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--accent); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }

.icon { flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover .icon { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 8px 24px rgba(197, 240, 74, 0.28); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.28); color: var(--on-dark); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn-outline { border-color: var(--line); color: var(--text); background: #fff; }
.btn-outline:hover { border-color: var(--ink); }
.btn-sm { padding: 10px 18px; font-size: .94rem; }
.btn-block { width: 100%; }

.text-link {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none;
  color: var(--text); border-bottom: 1.5px solid transparent; transition: border-color .2s, gap .2s;
}
.text-link .icon { width: 18px; height: 18px; }
.text-link:hover { gap: 10px; }

/* ---------- Eyebrow / section headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 .8rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.on-dark .eyebrow, .eyebrow.on-dark { color: var(--on-dark-muted); }

.section { padding: var(--section) 0; }
.section-mist { background: var(--mist); }
.section-dark { background: var(--ink); color: var(--on-dark); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.15rem; color: var(--muted); margin: 0; }
.section-dark .section-head p { color: var(--on-dark-muted); }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head-row .section-head { margin-bottom: 0; }
.section-head-row + * { margin-top: clamp(36px, 5vw, 64px); }

.highlight { color: var(--accent); }
.text-white { color: #fff; }
.section-head p a { color: inherit; text-decoration-color: var(--violet); text-decoration-thickness: 2px; text-underline-offset: 3px; font-weight: 600; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.6; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(11, 15, 25, 0.86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--ink-line); color: var(--on-dark);
}
.site-header .container { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font: 700 1.4rem/1 var(--font-head); letter-spacing: -0.03em; }
.brand-mark { width: 32px; height: 32px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 8px;
  color: var(--on-dark-muted); text-decoration: none; font-weight: 500; font-size: .96rem;
  background: none; border: 0; cursor: pointer; font-family: inherit; transition: color .15s, background-color .15s;
}
.nav-link:hover, .nav-link.active, .nav-item:hover > .nav-link { color: #fff; }
.nav-link.active { background: rgba(255, 255, 255, 0.06); }
.nav-link .icon { width: 16px; height: 16px; transition: transform .2s; }
.nav-item:hover > .nav-link .icon, .nav-item:focus-within > .nav-link .icon { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: -12px; min-width: 340px; padding: 10px;
  background: var(--paper); color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-item:hover > .dropdown, .nav-item:focus-within > .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border-radius: var(--radius-sm); text-decoration: none; }
.dropdown a:hover { background: var(--mist); }
.dropdown .dd-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--ink); color: var(--accent); flex-shrink: 0; }
.dropdown .dd-icon .icon { width: 20px; height: 20px; }
.dropdown strong { display: block; font-weight: 600; font-size: .96rem; line-height: 1.3; }
.dropdown span { display: block; color: var(--muted); font-size: .86rem; line-height: 1.45; margin-top: 2px; }
.dropdown .dd-all { display: block; padding: 10px 12px; font-weight: 600; font-size: .9rem; border-top: 1px solid var(--line); margin-top: 6px; border-radius: 0 0 8px 8px; }
.header-cta { margin-left: 12px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; border-radius: 8px; }
.nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }

@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--ink); flex-direction: column; align-items: stretch;
    padding: 20px var(--gutter) 40px; gap: 16px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open .nav-toggle .icon-menu { display: none; }
  .nav-open .nav-toggle .icon-close { display: block; }
  .nav-open { overflow: hidden; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-link { width: 100%; padding: 14px 4px; font-size: 1.15rem; color: var(--on-dark); border-bottom: 1px solid var(--ink-line); border-radius: 0; justify-content: space-between; }
  .nav-link.active { background: none; color: var(--accent); }
  .nav-link .icon { display: none; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; min-width: 0; background: transparent; border: 0; box-shadow: none; padding: 4px 0 8px; color: var(--on-dark); }
  .dropdown a:hover { background: var(--ink-2); }
  .dropdown span { color: var(--on-dark-muted); }
  .dropdown .dd-all { display: none; }
  .header-cta { margin: 12px 0 0; }
  .header-cta .btn { width: 100%; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--ink); color: var(--on-dark);
  padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 120px);
}
.bg-grid::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--ink-line) 1px, transparent 1px), linear-gradient(90deg, var(--ink-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
}
.bg-glow::after {
  content: ""; position: absolute; pointer-events: none; width: 720px; height: 720px; right: -200px; top: -260px;
  background: radial-gradient(circle, rgba(124, 108, 255, 0.28), transparent 62%);
  filter: blur(10px);
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(40px, 5vw, 72px); align-items: center; }
.hero h1 { color: #fff; margin-bottom: 24px; }
.hero-intro { font-size: clamp(1.1rem, 1.5vw, 1.28rem); color: var(--on-dark-muted); max-width: 580px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .icon { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); margin-top: 2px; stroke-width: 2.5; }
.hero .check-list { grid-template-columns: 1fr 1fr; gap: 12px 24px; color: var(--on-dark); font-size: .98rem; }
.section .check-list .icon, .card .check-list .icon { background: var(--ink); color: var(--accent); }
.section-dark .check-list .icon { background: var(--accent-soft); color: var(--accent); }

/* Agent console mock-up */
.console {
  position: relative; background: linear-gradient(180deg, rgba(27, 35, 56, 0.92), rgba(18, 24, 40, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-size: .9rem; overflow: hidden;
}
.console-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--ink-line); }
.console-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2c3550; }
.console-bar span { margin-left: 10px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-mono); font-size: .78rem; color: var(--on-dark-muted); }
.console-bar em { margin-left: auto; white-space: nowrap; flex-shrink: 0; font-style: normal; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-muted); border: 1px solid var(--ink-line); padding: 3px 8px; border-radius: 99px; }
.console-body { padding: 18px; display: grid; gap: 10px; }
.console-step {
  display: grid; grid-template-columns: 36px 1fr auto; gap: 14px; align-items: center;
  padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--ink-line);
  opacity: 0; transform: translateY(8px); animation: step-in .5s ease forwards;
}
.console-step:nth-child(1) { animation-delay: .2s; }
.console-step:nth-child(2) { animation-delay: .9s; }
.console-step:nth-child(3) { animation-delay: 1.6s; }
.console-step:nth-child(4) { animation-delay: 2.3s; }
.console-step:nth-child(5) { animation-delay: 3s; }
.console-step .cs-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--ink-3); color: var(--on-dark); }
.console-step .cs-icon .icon { width: 18px; height: 18px; }
.console-step.is-ai .cs-icon { background: var(--violet-soft); color: #b3a9ff; }
.console-step strong { display: block; color: #fff; font-weight: 600; font-size: .9rem; line-height: 1.3; }
.console-step small { display: block; color: var(--on-dark-muted); font-size: .8rem; font-family: var(--font-mono); margin-top: 2px; }
.cs-status { font-size: .72rem; font-weight: 600; padding: 4px 10px; border-radius: 99px; letter-spacing: .02em; }
.cs-status.done { color: var(--accent); background: var(--accent-soft); }
.cs-status.running { color: #b3a9ff; background: var(--violet-soft); display: inline-flex; align-items: center; gap: 6px; }
.cs-status.running::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.2s infinite; }
.cs-status.queued { color: var(--on-dark-muted); background: rgba(255, 255, 255, 0.05); }
.console-foot { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--ink-line); font-family: var(--font-mono); font-size: .76rem; color: var(--on-dark-muted); }
.console-foot b { color: var(--accent); font-weight: 500; }
@keyframes step-in { to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* ---------- Tech strip ---------- */
.tech-strip { background: var(--ink); color: var(--on-dark-muted); border-top: 1px solid var(--ink-line); padding: 28px 0; }
.tech-strip .container { display: flex; align-items: center; gap: 16px 32px; flex-wrap: wrap; }
.tech-strip p { margin: 0; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pill { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 99px; font-size: .88rem; font-weight: 500; border: 1px solid var(--line); background: #fff; color: var(--text); }
.tech-strip .pill { background: transparent; border-color: var(--ink-line); color: var(--on-dark); }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid > *, .hero .container > *, .content-layout > *, .ai-layout > *, .faq-layout > *, .contact-layout > *, .product-feature > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative; display: flex; flex-direction: column; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 2.6vw, 32px);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
a.card { text-decoration: none; color: inherit; }
a.card:hover, .card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); }
.card .card-foot { margin-top: auto; padding-top: 20px; }
.card-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--ink); color: var(--accent); margin-bottom: 24px; }
.card-icon .icon { width: 26px; height: 26px; }
.section-mist .card { border-color: transparent; box-shadow: var(--shadow); }

.service-card { padding: clamp(28px, 3vw, 40px); }
.service-card .check-list { margin: 8px 0 0; font-size: .96rem; gap: 10px; }
.service-card .check-list .icon { width: 20px; height: 20px; }
.service-card .text-link .icon { transition: transform .2s; }
.service-card:hover .text-link .icon { transform: translateX(4px); }

/* Dark feature cards (AI section) */
.section-dark .card { background: var(--ink-2); border-color: var(--ink-line); color: var(--on-dark); }
.section-dark .card p { color: var(--on-dark-muted); }
.section-dark .card-icon { background: var(--violet-soft); color: #b3a9ff; }
.section-dark .card:hover { border-color: rgba(197, 240, 74, 0.4); transform: translateY(-4px); }
.ai-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.ai-layout .section-head { position: sticky; top: calc(var(--header-h) + 40px); }
.ai-layout .grid { grid-template-columns: repeat(2, 1fr); }
.ai-models { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.ai-models .pill { background: transparent; color: var(--on-dark); border-color: var(--ink-line); gap: 8px; }
.ai-models .pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* Engagement cards */
.engage-card .best-for { margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line); font-size: .88rem; font-weight: 600; color: var(--text); }
.engage-card p { margin-bottom: 20px; }
.engage-card .num { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); margin-bottom: 20px; }

/* Product feature */
.product-feature {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 64px); align-items: center;
  background: var(--ink); color: var(--on-dark); border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 64px);
}
.product-feature > * { position: relative; z-index: 1; }
.product-feature h2 { color: #fff; }
.product-feature p { color: var(--on-dark-muted); font-size: 1.1rem; }
.product-feature .check-list { margin: 24px 0 32px; }

/* InsideTrader mock-up */
.shop-mock { background: var(--paper); color: var(--text); border-radius: var(--radius); padding: 16px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35); font-size: .85rem; }
.shop-mock-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.shop-mock-head strong { font-family: var(--font-head); font-size: 1rem; }
.shop-mock-head span { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; background: var(--mist); padding: 6px 10px; border-radius: 99px; }
.shop-mock-head span .icon { width: 16px; height: 16px; }
.shop-mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.shop-item { border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.shop-item i { display: block; aspect-ratio: 4/3; border-radius: 8px; margin-bottom: 8px; background: linear-gradient(135deg, var(--mist), #e7eaf3); }
.shop-item:nth-child(2) i { background: linear-gradient(135deg, #eef9d4, #dff3a6); }
.shop-item:nth-child(4) i { background: linear-gradient(135deg, #ecebff, #d9d5ff); }
.shop-item b { display: block; font-weight: 600; font-size: .8rem; line-height: 1.3; }
.shop-item small { color: var(--muted); font-size: .72rem; }
.shop-mock-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; padding: 12px; background: var(--mist); border-radius: 12px; }
.shop-mock-foot small { color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: .74rem; font-weight: 600; background: var(--accent-soft); color: #4d6a00; }
.badge .icon { width: 14px; height: 14px; }

/* Case study cards */
.case-card { padding: 0; overflow: hidden; }
.case-card .case-visual { aspect-ratio: 16/9; background: var(--ink); position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 24px; }
.case-card .case-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case-card .case-visual.no-image { background: radial-gradient(circle at 80% 10%, rgba(124, 108, 255, 0.45), transparent 55%), radial-gradient(circle at 10% 100%, rgba(197, 240, 74, 0.22), transparent 50%), var(--ink); }
.case-card .case-visual .metric { position: relative; color: #fff; }
.case-card .case-visual .metric b { display: block; font: 700 2.4rem/1 var(--font-head); letter-spacing: -0.03em; color: var(--accent); }
.case-card .case-visual .metric span { font-size: .9rem; color: var(--on-dark-muted); }
.case-card .case-body { padding: 24px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.case-card .meta { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }

/* Testimonials */
.quote-card { background: var(--paper); }
.quote-card blockquote { margin: 0 0 28px; font-size: 1.08rem; line-height: 1.6; color: var(--text); }
.quote-card blockquote::before { content: "\201C"; display: block; font: 700 3.5rem/0.6 var(--font-head); color: var(--violet); margin-bottom: 14px; }
.quote-card figcaption { margin-top: auto; display: flex; align-items: center; gap: 14px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--accent); font-weight: 700; font-size: .9rem; flex-shrink: 0; }
.quote-card figcaption strong { display: block; line-height: 1.3; }
.quote-card figcaption span { font-size: .9rem; color: var(--muted); }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 24px); list-style: none; margin: 0; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-top: 28px; border-top: 2px solid var(--line); }
.steps li::before { content: "0" counter(step); position: absolute; top: -2px; left: 0; width: 48px; border-top: 2px solid var(--ink); padding-top: 14px; font: 600 .85rem/1 var(--font-mono); color: var(--muted); }
.steps h3 { margin-top: 24px; }
.steps p { color: var(--muted); margin: 0; }
.section-dark .steps li { border-color: var(--ink-line); }
.section-dark .steps li::before { border-color: var(--accent); color: var(--accent); }
.section-dark .steps p { color: var(--on-dark-muted); }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; cursor: pointer;
  padding: 24px 0; font: 600 1.12rem/1.4 var(--font-head); letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-toggle { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; flex-shrink: 0; position: relative; transition: background-color .2s, transform .25s; }
.faq-item summary .faq-toggle::before, .faq-item summary .faq-toggle::after { content: ""; position: absolute; width: 12px; height: 1.75px; background: currentColor; border-radius: 2px; }
.faq-item summary .faq-toggle::after { transform: rotate(90deg); transition: transform .25s; }
.faq-item[open] summary .faq-toggle { background: var(--accent); border-color: var(--accent); }
.faq-item[open] summary .faq-toggle::after { transform: rotate(0); }
.faq-answer { padding: 0 56px 24px 0; color: var(--muted); }
.faq-answer p:last-child { margin-bottom: 0; }

/* CTA band */
.cta-band { padding: 0 0 var(--section); }
.section-mist + .cta-band, .cta-band.on-mist { background: var(--mist); }
.cta-inner {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--accent); color: var(--ink);
  padding: clamp(40px, 6vw, 80px); display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center;
}
.cta-inner::after {
  content: ""; position: absolute; right: -120px; bottom: -220px; width: 520px; height: 520px; border-radius: 50%;
  border: 64px solid rgba(11, 15, 25, 0.06); pointer-events: none;
}
.cta-inner h2 { margin-bottom: 12px; }
.cta-inner p { margin: 0; font-size: 1.15rem; max-width: 620px; color: rgba(11, 15, 25, 0.75); }
.cta-actions { display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }
.cta-actions .btn-outline { background: transparent; border-color: rgba(11, 15, 25, 0.25); }
.cta-actions .btn-outline:hover { border-color: var(--ink); }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--ink); color: var(--on-dark); padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 7vw, 88px); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 900px; font-size: clamp(2.3rem, 5vw, 4rem); }
.page-hero .lead { color: var(--on-dark-muted); max-width: 720px; margin: 0; }
.page-hero .hero-actions { margin: 32px 0 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 28px; font-size: .88rem; color: var(--on-dark-muted); }
.breadcrumb a { color: var(--on-dark-muted); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.page-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 28px; color: var(--on-dark-muted); font-size: .95rem; }
.page-meta span { display: inline-flex; align-items: center; gap: 8px; }
.page-meta .icon { width: 18px; height: 18px; }

/* ---------- Rich text / body content ---------- */
.prose { font-size: 1.08rem; line-height: 1.75; }
.prose > * + * { margin-top: 0; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 1.8em 0 .6em; }
.prose h3 { margin: 1.6em 0 .5em; }
.prose h4 { margin: 1.4em 0 .4em; }
.prose a { color: var(--text); text-decoration-color: var(--violet); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--accent-hover); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--violet); }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--accent); font-size: 1.15rem; color: var(--text); }
.prose code { font-family: var(--font-mono); font-size: .88em; background: var(--mist); padding: 2px 6px; border-radius: 6px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.prose img { border-radius: var(--radius); }
.prose > :first-child { margin-top: 0; }

.stream > .block { margin-bottom: clamp(32px, 4vw, 48px); }
.stream > .block:last-child { margin-bottom: 0; }
.block-heading h2, .block-heading h3 { margin: 0; }
.b-heading + .block { margin-top: -16px; }
.block-image figure { margin: 0; }
.block-image img { border-radius: var(--radius); width: 100%; }
.block-image figcaption { font-size: .9rem; color: var(--muted); margin-top: 10px; }
.block-quote { margin: 0; padding: clamp(28px, 4vw, 44px); background: var(--mist); border-radius: var(--radius); }
.block-quote p { font: 600 clamp(1.25rem, 2vw, 1.55rem)/1.45 var(--font-head); letter-spacing: -0.01em; margin: 0 0 16px; }
.block-quote cite { font-style: normal; color: var(--muted); }
.block-features h3 { font-size: 1.15rem; margin-bottom: 8px; }
.block-features .card { padding: 24px; }
.block-features .card-icon { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 18px; }
.block-features .card-icon .icon { width: 22px; height: 22px; }
.block-features .card p { font-size: .96rem; margin: 0; }
.block-checklist { background: var(--mist); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); }
.block-checklist .check-list { grid-template-columns: 1fr 1fr; }
.block-steps .steps { grid-template-columns: 1fr; gap: 0; }
.block-steps .steps li { padding: 22px 0 22px 72px; border-top: 1px solid var(--line); }
.block-steps .steps li::before { top: 24px; width: auto; border: 0; padding: 0; }
.block-steps .steps h3 { margin: 0 0 6px; font-size: 1.15rem; }
.block-callout { background: var(--ink); color: var(--on-dark); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.block-callout h3 { color: #fff; margin-bottom: 6px; }
.block-callout p { color: var(--on-dark-muted); margin: 0; }
.block-embed iframe { width: 100%; aspect-ratio: 16/9; height: auto; border-radius: var(--radius); }

/* Content layout with sidebar */
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(40px, 6vw, 80px); align-items: start; }
.sidebar { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 16px; }
.sidebar-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: #fff; }
.sidebar-card.dark { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.sidebar-card.dark h3 { color: #fff; }
.sidebar-card.dark p { color: var(--on-dark-muted); }
.sidebar-card h3 { font-size: 1.2rem; }
.sidebar-card p { font-size: .96rem; color: var(--muted); }
.sidebar-links { list-style: none; padding: 0; margin: 0; }
.sidebar-links a { display: flex; align-items: center; gap: 12px; padding: 12px 0; text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); }
.sidebar-links li:last-child a { border-bottom: 0; }
.sidebar-links .icon { width: 20px; height: 20px; color: var(--violet); }
.sidebar-links a:hover { color: var(--violet); }

/* Case study detail */
.metrics-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-top: 40px; }
.metric-tile { border: 1px solid var(--ink-line); border-radius: var(--radius); padding: 22px 24px; background: rgba(255, 255, 255, 0.03); }
.metric-tile b { display: block; font: 700 2.2rem/1.1 var(--font-head); letter-spacing: -0.03em; color: var(--accent); margin-bottom: 6px; }
.metric-tile span { font-size: .95rem; color: var(--on-dark-muted); }
.case-section { padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.case-section:last-child { border-bottom: 0; }
.case-section .eyebrow { margin-bottom: 12px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.facts dt, .facts .label { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.facts .pill-list { margin-top: 8px; }

/* Blog */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-bar a { padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line); text-decoration: none; font-size: .92rem; font-weight: 500; background: #fff; }
.filter-bar a:hover { border-color: var(--ink); }
.filter-bar a.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.post-card { padding: 0; overflow: hidden; }
.post-card .post-visual { aspect-ratio: 16/9; background: var(--mist); position: relative; overflow: hidden; }
.post-card .post-visual img { width: 100%; height: 100%; object-fit: cover; }
.post-card .post-visual.no-image { display: grid; place-items: center; color: var(--ink); background: radial-gradient(circle at 85% 15%, var(--violet-soft), transparent 55%), linear-gradient(135deg, var(--mist), #e9edf5); }
.post-card .post-visual.no-image .icon { width: 44px; height: 44px; opacity: .7; }
.post-card .post-visual.cat-ai.no-image { background: radial-gradient(circle at 80% 20%, rgba(124, 108, 255, .5), transparent 55%), var(--ink); color: var(--accent); }
.post-card .post-visual.cat-data.no-image { background: radial-gradient(circle at 20% 80%, rgba(197, 240, 74, .35), transparent 55%), var(--ink-2); color: var(--accent); }
.post-card .post-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.25rem; }
.post-meta { display: flex; gap: 12px; align-items: center; font-size: .84rem; color: var(--muted); margin-bottom: 12px; }
.post-meta .tag { font-weight: 600; color: var(--violet); }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 56px; }
.pagination a, .pagination span { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.article-hero .post-meta { color: var(--on-dark-muted); margin: 24px 0 0; font-size: .95rem; }
.article-hero .post-meta .tag { color: var(--accent); }
.article-image { margin-top: -40px; position: relative; z-index: 2; }
.article-image img { border-radius: var(--radius-lg); width: 100%; box-shadow: var(--shadow-lg); }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact-details { display: grid; gap: 14px; margin: 32px 0 40px; }
.contact-details a, .contact-details div { display: flex; align-items: center; gap: 14px; text-decoration: none; font-weight: 500; font-size: 1.05rem; }
.contact-details .ci { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: var(--accent); flex-shrink: 0; }
.contact-details .ci .icon { width: 20px; height: 20px; }
.contact-details a:hover { color: var(--violet); }
.next-steps { list-style: none; counter-reset: ns; padding: 0; margin: 0; display: grid; gap: 16px; }
.next-steps li { counter-increment: ns; display: flex; gap: 16px; align-items: flex-start; color: var(--muted); }
.next-steps li::before { content: counter(ns); width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--accent); color: var(--ink); font-weight: 700; font-size: .85rem; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-lg); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: .92rem; }
.form-field .req { color: var(--violet); }
.form-field input[type="text"], .form-field input[type="email"], .form-field input[type="tel"], .form-field input[type="url"],
.form-field input[type="number"], .form-field input[type="date"], .form-field select, .form-field textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  font: inherit; font-size: 1rem; color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.form-field textarea { height: 160px; min-height: 120px; resize: vertical; }
.form-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235a6478' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px var(--violet-soft); }
.form-field .help { font-size: .84rem; color: var(--muted); }
.form-field .errorlist { list-style: none; margin: 0; padding: 0; color: #c62828; font-size: .88rem; }
.form-field ul:not(.errorlist) { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.form-field ul:not(.errorlist) label { font-weight: 400; display: flex; gap: 10px; align-items: center; }
.form-field input[type="checkbox"], .form-field input[type="radio"] { width: 18px; height: 18px; accent-color: var(--ink); }
.form-note { font-size: .84rem; color: var(--muted); margin: 16px 0 0; }
.form-note a { color: var(--text); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.thanks { text-align: center; max-width: 640px; margin: 0 auto; }
.thanks .card-icon { margin: 0 auto 28px; width: 72px; height: 72px; border-radius: 50%; }
.thanks .card-icon .icon { width: 34px; height: 34px; stroke-width: 2.5; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding: clamp(56px, 7vw, 88px) 0 32px; font-size: .96rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--ink-line); }
.footer-brand p { max-width: 340px; margin: 20px 0 24px; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; font-family: var(--font-body); font-weight: 600; margin-bottom: 18px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { text-decoration: none; transition: color .15s; }
.footer-links a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: center; }
.footer-contact .icon { width: 18px; height: 18px; color: var(--accent); }
.socials { display: flex; gap: 8px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--ink-line); transition: border-color .15s, color .15s; }
.socials a:hover { border-color: var(--accent); color: var(--accent); }
.socials .icon { width: 20px; height: 20px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; font-size: .88rem; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }

/* ---------- Search ---------- */
.search-form { display: flex; gap: 10px; max-width: 640px; margin-top: 32px; }
.search-form input { flex: 1; padding: 14px 20px; border-radius: 99px; border: 1.5px solid var(--ink-line); background: var(--ink-2); color: #fff; font: inherit; }
.search-form input:focus { outline: none; border-color: var(--accent); }
.search-results { list-style: none; padding: 0; margin: 0; }
.search-results li { padding: 24px 0; border-bottom: 1px solid var(--line); }
.search-results a { text-decoration: none; }
.search-results h3 { margin-bottom: 6px; }
.search-results a:hover h3 { color: var(--violet); }
.search-results p { color: var(--muted); margin: 0; }

/* ---------- Error pages ---------- */
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.error-code { font: 700 clamp(5rem, 14vw, 9rem)/1 var(--font-head); letter-spacing: -0.05em; color: var(--accent); margin-bottom: 8px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .ai-layout { grid-template-columns: 1fr; }
  .ai-layout .section-head { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .hero .container, .product-feature, .contact-layout, .faq-layout, .content-layout { grid-template-columns: minmax(0, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .sidebar { position: static; }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: row; flex-wrap: wrap; }
  .hero-visual { max-width: 560px; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4, .ai-layout .grid, .steps { grid-template-columns: minmax(0, 1fr); }
  .eyebrow { letter-spacing: .08em; line-height: 1.4; }
  .hero .check-list, .block-checklist .check-list, .form-grid { grid-template-columns: 1fr; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .console-step { grid-template-columns: 32px 1fr; }
  .console-step .cs-status { grid-column: 2; justify-self: start; }
  .console-foot { flex-direction: column; }
  .shop-mock-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-item:nth-child(n+5) { display: none; }
  .footer-top { grid-template-columns: 1fr; }
  .faq-answer { padding-right: 0; }
  .block-steps .steps li { padding-left: 52px; }
  .search-form { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .console-step { opacity: 1; transform: none; }
  .js .reveal { opacity: 1; transform: none; }
}
