/* =========================================================================
   ALPHATEC TecReg — main stylesheet
   Design language: premium minimalist "TecReg OS" (Linear / Palantir inspired)
   Signal color: ALPHATEC crimson. Neutrals: cool near-black. Dark + light.
   ========================================================================= */

/* Dark-only "Momentum" palette. Indigo/violet signal on cool near-black.
   Variable names are kept (e.g. --red) for template compatibility, but the
   values are now the indigo accent — there is intentionally no light theme. */
:root {
  --bg: #08090a;
  --bg-2: #0c0d10;
  --panel: #0f1011;
  --panel-2: #16181c;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.11);
  --ink: #f7f8f8;
  --ink-2: #b4bcd0;
  --ink-3: #6f7787;
  --red: #7170ff;                          /* accent — indigo (kept name for reuse) */
  --red-soft: #b4b3ff;                      /* accent, lighter */
  --red-glow: rgba(113, 112, 255, 0.45);
  --cyan: #4dd6e6;                          /* secondary accent (AI pillar, flow lines) */
  --good: #4ade80;
  --warn: #fcd34d;
  --radius: 14px;
  --maxw: 1180px;
  --mono: var(--sans);  /* typewriter look dropped site-wide — mono now maps to the professional sans stack */
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
}
:root { color-scheme: dark; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
::selection { background: var(--red); color: #fff; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.wrap.narrow { max-width: 780px; }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; left: 16px; top: 12px; z-index: 200; width: auto; height: auto;
  clip: auto; background: var(--red); color: #fff; padding: 10px 16px; border-radius: 8px;
}

.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3); display: none; align-items: center; gap: 9px; margin: 0 0 20px;   /* eyebrow labels hidden site-wide */
}
.eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--red); border-radius: 50%; box-shadow: 0 0 10px var(--red-glow); }
.eyebrow.center { justify-content: center; }

h1, h2, h3, h4 { text-wrap: balance; margin: 0; font-weight: 600; letter-spacing: -0.02em; }
h1, h2 { font-family: var(--display); }
h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.1; letter-spacing: -0.035em; padding-bottom: 0.1em;
  background: linear-gradient(180deg, #fff, #b4bcd0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.08; }
h3 { font-size: 1.24rem; letter-spacing: -0.015em; }
p { margin: 0; color: var(--ink-2); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--ink-2); max-width: 62ch; }

/* ---------- NAV ---------- */

nav#nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: 62px; display: flex; align-items: center;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
nav#nav.scrolled { border-bottom-color: var(--line); }
nav#nav .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; font-size: 1.05rem; color: var(--ink); }
/* Logo wordmark (uses official artwork; light/dark variants swap with theme) */
.brand__logo { height: 34px; width: auto; max-width: none; display: block; }
.brand__logo--light { display: none; }   /* dark-only site → always show the light-on-dark wordmark */
.brand__logo--dark  { display: block; filter: brightness(0) invert(1); }  /* force wordmark fully white (drop the red ALPHA) */
@media (max-width: 480px) { .brand__logo { height: 26px; } }
.navlinks { display: flex; align-items: center; gap: 30px; }
.navlinks-inner { display: flex; align-items: center; gap: 30px; }
.navmenu { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.navlinks a, .navmenu a { font-size: 0.92rem; color: var(--ink-2); transition: color .2s; }
.navlinks a:hover, .navmenu a:hover { color: var(--ink); }
@media (max-width: 860px) {
  .navlinks-inner, .navmenu { display: none; }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 0.92rem;
  font-weight: 550; padding: 10px 18px; border-radius: 9px; border: 1px solid var(--line-2);
  color: var(--ink); background: rgba(255, 255, 255, 0.05); cursor: pointer; transition: all .2s; white-space: nowrap;
}
.btn:hover { border-color: rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.08); transform: translateY(-1px); }
/* Primary = light button, the Momentum signature, with a soft indigo glow. */
.btn.primary { background: #f7f8f8; border-color: transparent; color: #08090a; box-shadow: 0 8px 30px -10px var(--red-glow); }
.btn.primary:hover { background: #fff; box-shadow: 0 12px 36px -10px var(--red-glow); }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.05); }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }
.btn.block { width: 100%; justify-content: center; }

/* ---------- SECTIONS ---------- */
section { position: relative; padding: 108px 0; }
.sec-head { max-width: 66ch; margin-bottom: 54px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head p { margin-top: 18px; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); border: 0; margin: 0; }
.band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- HERO ---------- */
.hero { position: relative; padding-top: 168px; padding-bottom: 96px; overflow: hidden; }
/* Purple ambient glow behind the hero (Momentum signature). */
.hero::before {
  content: ""; position: absolute; top: -180px; left: 50%; transform: translateX(-50%);
  width: min(960px, 120vw); height: 620px; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(113, 112, 255, 0.30), transparent 62%);
  filter: blur(24px);
}
#graph { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .45; pointer-events: none; }
/* Faint grid + vignette fade to background. */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px) 0 0 / 64px 64px,
    radial-gradient(130% 88% at 50% -8%, transparent 40%, var(--bg) 82%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { max-width: 15ch; }
.hero h1 .accent {
  color: var(--red); -webkit-text-fill-color: var(--red);
  background: none; -webkit-background-clip: initial; background-clip: initial;
}
.hero .lead { margin-top: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 28px; margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--ink-3); text-transform: uppercase;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ""; width: 5px; height: 5px; background: var(--cyan); border-radius: 50%; }

/* Page hero (subpages) */
.page-hero { padding-top: 148px; padding-bottom: 40px; }
.page-hero .lead { margin-top: 22px; }

/* ---------- DUAL PILLARS ---------- */
.dual { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 820px) { .dual { grid-template-columns: 1fr; } }
.pillar {
  position: relative; padding: 34px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line);
  overflow: hidden; transition: border-color .25s, transform .25s;
}
.pillar:hover { border-color: var(--line-2); transform: translateY(-2px); }
.pillar::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, var(--red), transparent); opacity: .7; }
.pillar.ai::before { background: linear-gradient(90deg, var(--cyan), transparent); }
.pillar .tag { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.pillar.ai .tag { color: var(--cyan); }
.pillar h3 { margin: 14px 0 12px; font-size: 1.5rem; }
.pillar p { min-height: 3em; }
.pillar .links { display: flex; flex-direction: column; gap: 2px; margin-top: 22px; }
.pillar .links a { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink); font-size: 0.98rem; transition: padding .2s, color .2s; }
.pillar .links a:hover { padding-left: 6px; color: var(--red); }
.pillar.ai .links a:hover { color: var(--cyan); }
.pillar .links a span { color: var(--ink-3); transition: transform .2s; }
.pillar .links a:hover span { transform: translateX(4px); }

/* ---------- CARDS / GRIDS ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 880px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }
.card { padding: 28px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent); border: 1px solid var(--line); transition: border-color .25s, transform .25s, background .25s; }
.card:hover { border-color: color-mix(in srgb, var(--red) 32%, transparent); transform: translateY(-2px); }
.card .ic { width: 40px; height: 40px; margin-bottom: 20px; color: var(--red); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.98rem; }
.card.accent-cyan { background: linear-gradient(135deg, color-mix(in srgb, var(--cyan) 10%, var(--panel)), var(--panel)); }

/* ---------- AGENTS ---------- */
.agents-layout { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .agents-layout { grid-template-columns: 1fr; } }
.name { transition: color .2s; }

/* ---------- LIFECYCLE FLOW ---------- */
.flow { display: flex; flex-direction: column; gap: 0; margin-top: 20px; position: relative; }
.flow-step { display: grid; grid-template-columns: 56px 1fr; gap: 22px; align-items: center; padding: 14px 0; position: relative; }
.flow-node { width: 14px; height: 14px; border-radius: 50%; justify-self: center; background: var(--bg); border: 2px solid var(--line-2); position: relative; z-index: 2; }
.flow-step.hot .flow-node { border-color: var(--red); background: var(--red); box-shadow: 0 0 0 5px var(--red-glow); }
.flow-rail { position: absolute; left: 27px; top: 0; bottom: 0; width: 2px; background: var(--line); z-index: 1; }
.flow-rail .pulse { position: absolute; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 12px 2px var(--red-glow); animation: travel 4.5s linear infinite; }
@keyframes travel { 0% { top: 0; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .flow-rail .pulse { display: none; } }
.flow-step .lbl { font-size: 1.05rem; font-weight: 500; letter-spacing: -0.01em; }
.flow-step .sub { font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- BENEFITS ---------- */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 880px) { .benefits { grid-template-columns: 1fr; } }
.benefit { background: var(--panel); padding: 28px; transition: background .25s; }
.benefit:hover { background: var(--panel-2); }
.benefit .n { font-family: var(--mono); font-size: 11px; color: var(--red); letter-spacing: .1em; }
.benefit h3 { font-size: 1.1rem; margin: 14px 0 8px; }
.benefit p { font-size: 0.94rem; }

/* ---------- STAT DASHBOARD ---------- */
.dash { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: linear-gradient(180deg, var(--panel), var(--bg-2)); }
.dash-bar { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.dash-bar .live { display: inline-flex; align-items: center; gap: 7px; color: var(--good); margin-left: auto; }
.dash-bar .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--good); animation: blink 2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 34px 26px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
@media (max-width: 760px) { .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
.stat .v { font-size: 2.7rem; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.stat .v.accent { color: var(--red); }
.stat .l { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-top: 12px; }

/* ---------- DIAGRAM PANELS ---------- */
.diagram {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 28px;
  background:
    linear-gradient(180deg, var(--panel), var(--bg-2)),
    repeating-linear-gradient(0deg, transparent, transparent 23px, color-mix(in srgb, var(--line) 40%, transparent) 24px);
}
.diagram svg { width: 100%; height: auto; display: block; }
.flow-line { stroke: var(--line-2); stroke-width: 1.5; fill: none; }
.flow-line.animated { stroke: var(--cyan); stroke-dasharray: 5 8; animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -26; } }
@media (prefers-reduced-motion: reduce) { .flow-line.animated { animation: none; } }
.node-box { fill: var(--panel-2); stroke: var(--line-2); stroke-width: 1.5; }
.node-label { fill: var(--ink); font-family: var(--mono); font-size: 12px; letter-spacing: .04em; }
.node-label.dim { fill: var(--ink-3); }
.node-pulse { animation: nodepulse 2.6s ease-in-out infinite; transform-origin: center; }
@keyframes nodepulse { 0%,100% { opacity: .4; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .node-pulse { animation: none; } }

/* ---------- SPLIT / BUILD LIST ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.buildlist { display: flex; flex-direction: column; gap: 0; }
.buildlist .item { padding: 16px 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 14px; }
.buildlist .item:last-child { border-bottom: 1px solid var(--line); }
.buildlist .item .tick { color: var(--cyan); flex: none; }
.buildlist .item span { font-size: 1rem; }

/* ---------- FEATURE DETAIL (subpages) ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 64px 0; border-top: 1px solid var(--line); }
.feature:nth-child(even) .feature-media { order: -1; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; gap: 32px; padding: 44px 0; } .feature:nth-child(even) .feature-media { order: 0; } }
.feature .tag { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.feature h3 { font-size: 1.7rem; margin: 12px 0 14px; }
.feature ul { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.feature ul li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-size: 0.98rem; }
.feature ul li::before { content: ""; margin-top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--red); flex: none; }

/* ---------- INVESTOR ---------- */
.inv { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, var(--panel), var(--bg-2)); display: grid; grid-template-columns: 1.3fr 1fr; }
@media (max-width: 860px) { .inv { grid-template-columns: 1fr; } }
.inv .left { padding: 44px; }
.inv .right { padding: 44px; border-left: 1px solid var(--line); background: color-mix(in srgb, var(--red) 6%, var(--panel)); }
@media (max-width: 860px) { .inv .right { border-left: 0; border-top: 1px solid var(--line); } }
.inv .kws { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.inv .kws span { font-family: var(--sans); font-size: 11px; letter-spacing: .06em; padding: 6px 11px; border: 1px solid var(--line-2); border-radius: 6px; color: var(--ink-2); }
.lock { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--warn); margin-bottom: 16px; }
.ir-form { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.ir-form input[type="password"],
.ir-form input[type="email"] { padding: 12px 14px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 0.9rem; width: 100%; }
.ir-form input[type="password"]:focus,
.ir-form input[type="email"]:focus { outline: none; border-color: var(--red); }
.ir-consent { display: flex; align-items: flex-start; gap: 9px; font-size: 0.82rem; line-height: 1.45; color: var(--ink-2); }
.ir-consent input[type="checkbox"] { margin-top: 2px; accent-color: var(--red); flex: none; }
.ir-consent a { color: var(--red); }
.ir-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ir-error { color: var(--red); font-size: 0.85rem; margin-top: 4px; }
.ir-success { color: var(--ok, #2fb56a); font-size: 0.9rem; margin-top: 4px; display: flex; align-items: center; gap: 8px; }

/* Metric cards for IR trajectory */
.metric-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.metric-table th, .metric-table td { text-align: right; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.metric-table th { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.metric-table td:first-child, .metric-table th:first-child { text-align: left; }
.metric-table tbody tr:hover { background: var(--panel-2); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }

/* ---------- PRICING ---------- */
.pricing-cta { text-align: center; }
.pricing-cta .box { border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 60px 28px; background: var(--panel); max-width: 760px; margin: 0 auto; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 880px) { .tiers { grid-template-columns: 1fr; } }
.tier { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; background: var(--panel); display: flex; flex-direction: column; gap: 16px; }
.tier.featured { border-color: var(--red); box-shadow: 0 0 0 1px var(--red), 0 20px 50px -30px var(--red-glow); }
.tier .tname { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.tier .price { font-size: 1.4rem; font-weight: 600; color: var(--ink); }
.tier .price small { display: block; font-size: 0.8rem; color: var(--ink-3); font-weight: 400; margin-top: 6px; font-family: var(--mono); letter-spacing: .04em; }
.tier ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tier ul li { font-size: 0.94rem; color: var(--ink-2); padding-left: 22px; position: relative; }
.tier ul li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 2px; background: var(--line-2); }
.tier.featured ul li::before { background: var(--red); }

/* ---------- LEGAL / PROSE ---------- */
.prose { max-width: 74ch; }
.prose h2 { font-size: 1.5rem; margin: 44px 0 12px; }
.prose h3 { font-size: 1.15rem; margin: 30px 0 8px; }
.prose p { margin: 0 0 14px; color: var(--ink-2); font-size: 1rem; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; color: var(--ink-2); }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--red); word-break: break-word; }
.prose .addr { font-style: normal; padding: 18px 22px; border-left: 2px solid var(--red); background: var(--panel); border-radius: 0 8px 8px 0; margin: 10px 0 24px; }
.prose .review-note { border: 1px solid var(--warn); background: color-mix(in srgb, var(--warn) 8%, var(--panel)); border-radius: 10px; padding: 14px 18px; margin: 18px 0; font-size: 0.9rem; color: var(--ink-2); }
.prose .review-note b { color: var(--warn); }
.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; background: var(--panel); margin: 0 0 40px; }
.toc h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px; }
.toc a { display: block; padding: 5px 0; color: var(--ink-2); font-size: 0.94rem; }
.toc a:hover { color: var(--red); }

/* ---------- FOOTER ---------- */
/* ---------- MODAL (Request a Demo) ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.is-open { display: flex; }
html:not(.has-js) .modal:target { display: flex; }   /* no-JS fallback: hash opens it */
.modal__backdrop { position: absolute; inset: 0; background: rgba(6,7,9,.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: modalFade .25s ease both; cursor: pointer; }
.modal__dialog { position: relative; z-index: 1; width: 100%; max-width: 900px; max-height: calc(100vh - 48px); overflow-y: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 40px 40px 36px; box-shadow: 0 40px 100px -30px rgba(0,0,0,.65); animation: modalPop .32s cubic-bezier(.2,.7,.2,1) both; }
.modal__close { position: absolute; top: 14px; right: 16px; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; font-size: 26px; line-height: 1; color: var(--ink-3); text-decoration: none; border-radius: 9px; transition: color .2s, background .2s; }
.modal__close:hover { color: var(--ink); background: var(--panel-2); }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPop { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .modal__backdrop, .modal__dialog { animation: none; } }
body.modal-open { overflow: hidden; }

.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
@media (max-width: 760px) { .demo-grid { grid-template-columns: 1fr; gap: 26px; } }
.demo-intro h2 { margin: 12px 0 14px; font-size: clamp(1.5rem, 3.4vw, 2rem); line-height: 1.15; }
.demo-intro > p { color: var(--ink-2); }
.demo-points { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.demo-points li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: 0.95rem; }
.demo-points li::before { content: "\2713"; position: absolute; left: 0; top: -1px; color: var(--red); font-weight: 700; }
@media (max-width: 760px) { .demo-points { display: none; } }

.demo-form { display: flex; flex-direction: column; gap: 16px; }
.demo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .demo-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.field > span em { color: var(--red); font-style: normal; }
.field input, .field textarea { padding: 12px 14px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font-size: 0.95rem; font-family: var(--sans); transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 92px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-glow); }
.demo-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.demo-consent { display: flex; align-items: flex-start; gap: 9px; font-size: 0.85rem; line-height: 1.45; color: var(--ink-2); }
.demo-consent input[type="checkbox"] { margin-top: 2px; accent-color: var(--red); flex: none; }
.demo-consent a { color: var(--red); }
.demo-error { color: var(--red); font-size: 0.86rem; margin: -2px 0 0; }
.demo-form .btn.block { margin-top: 4px; }
.demo-success,
.ir-success { text-align: center; padding: 26px 8px; }
.demo-success__mark,
.ir-success__mark { width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 50%; background: color-mix(in srgb, var(--good) 16%, transparent); color: var(--good); display: flex; align-items: center; justify-content: center; font-size: 27px; }
.demo-success h3,
.ir-success h3 { margin: 0 0 8px; }
.demo-success p,
.ir-success p { color: var(--ink-2); }

.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 76px 0 44px; }
.foot-grid { display: grid; grid-template-columns: 1.9fr 1fr 1fr 1fr; gap: 48px; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 16px; font-weight: 600; }
.foot-col a { display: block; color: var(--ink-2); font-size: 0.94rem; padding: 6px 0; transition: color .2s, transform .2s; }
.foot-col a:hover { color: var(--red); transform: translateX(3px); }

/* Brand + about column */
.foot-about { max-width: 40ch; }
.brand--footer { margin-bottom: 24px; }
.brand--footer .brand__logo { height: 30px; }
.foot-lead {
  font-size: 1rem; line-height: 1.72; color: var(--ink-2);
  margin: 0 0 26px; max-width: 38ch;
  text-wrap: pretty;
}
.foot-contact {
  font-style: normal; display: flex; flex-direction: column; gap: 6px;
  font-size: 0.9rem; line-height: 1.5; color: var(--ink-3); letter-spacing: .005em;
}
.foot-contact__name { color: var(--ink); font-weight: 600; letter-spacing: .01em; }
.foot-contact a { display: inline; padding: 0; color: var(--ink-2); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--ink-3) 40%, transparent); transition: color .2s, border-color .2s; }
.foot-contact a:hover { color: var(--red); border-bottom-color: var(--red); transform: none; }
.funding { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.funding .note { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 20px; }
.logos { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.funding-logo { width: auto; background: #fff; border-radius: 10px; padding: 16px 22px; box-sizing: content-box; box-shadow: 0 12px 34px -22px rgba(0,0,0,.5); border: 1px solid rgba(0,0,0,.05); }
.funding-logo.wide { height: 84px; max-width: 100%; }   /* 84 + 16*2 = 116px panel */
.funding-logo.seal { height: 92px; width: 92px; padding: 12px; border-radius: 14px; object-fit: contain; }   /* 92 + 12*2 = 116px panel */
@media (max-width: 560px) {
  .funding-logo { padding: 14px 16px; }
  .funding-logo.wide { height: auto; width: 100%; }
  .funding-logo.seal { height: 76px; width: 76px; }
}
.foot-base { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; font-size: 0.84rem; color: var(--ink-3); }

/* ---------- UTIL ---------- */
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.mt-0 { margin-top: 0; }
.center { text-align: center; }


/* Coverflow card carousel (AI Services - What We Build) */
.card-carousel { position: relative; margin-top: 8px; }
.card-track { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 12px 0 20px; scrollbar-width: none; -ms-overflow-style: none; }
.card-track::-webkit-scrollbar { display: none; }
.card-track::before, .card-track::after { content: ""; flex: 0 0 max(0px, calc(50% - 220px)); }
.card-track > .card { flex: 0 0 min(440px, 82vw); scroll-snap-align: center; opacity: .32; filter: blur(1px); transform: scale(.9); transition: opacity .45s ease, filter .45s ease, transform .45s ease; }
.card-track > .card.is-active { opacity: 1; filter: none; transform: scale(1); }
.car-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--bg) 60%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--ink); font-size: 17px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s, border-color .2s; }
.car-arrow:hover { background: var(--panel-2); border-color: var(--ink-3); }
.car-arrow.prev { left: 2px; }
.car-arrow.next { right: 2px; }
@media (prefers-reduced-motion: reduce) { .card-track { scroll-behavior: auto; } .card-track > .card { transition: none; } }
