/* ========================================
   NUVELICS — Broadcast control aesthetic
   Theme tokens, base styles, components
   ======================================== */

:root {
  --bg: #0A0B0C;
  --bg-1: #0F1012;
  --bg-2: #141518;
  --bg-3: #1B1D21;
  --panel: #0E0F11;
  --panel-2: #16181C;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --fg: #ECEDEE;
  --fg-2: #C7C9CD;
  --fg-3: #8A8E94;
  --fg-4: #5A5E64;
  --fg-5: #3A3D42;

  --on-air: oklch(0.62 0.21 25);
  --on-air-2: oklch(0.55 0.22 25);
  --on-air-glow: oklch(0.62 0.21 25 / 0.18);
  --amber: oklch(0.78 0.16 75);
  --amber-2: oklch(0.7 0.16 75);
  --green: oklch(0.74 0.15 150);
  --blue: oklch(0.7 0.13 230);

  --font-display: "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-serif: "Instrument Serif", "Times New Roman", serif;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
}

[data-theme="light"] {
  --bg: #F6F5F2;
  --bg-1: #EFEEEA;
  --bg-2: #E7E5E0;
  --bg-3: #DDD9D2;
  --panel: #FFFFFF;
  --panel-2: #F1EFEB;
  --line: rgba(10, 11, 12, 0.10);
  --line-2: rgba(10, 11, 12, 0.16);
  --line-strong: rgba(10, 11, 12, 0.32);
  --fg: #0E0F11;
  --fg-2: #2A2C30;
  --fg-3: #5A5E64;
  --fg-4: #8A8E94;
  --fg-5: #B0B3B7;
  --on-air-glow: oklch(0.62 0.21 25 / 0.10);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--on-air); color: white; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.05;
}
p { margin: 0; }
ul { list-style: none; padding: 0; margin: 0; }
a { color: inherit; text-decoration: none; }
section[id] { scroll-margin-top: 80px; }

/* ── Typography ── */
.t-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  font-weight: 500;
}
.t-mono { font-family: var(--font-mono); font-feature-settings: "zero", "cv01"; }
.t-serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; }

/* ── Layout ── */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .wrap { padding: 0 20px; } }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 120ms ease;
  white-space: nowrap;
}
.btn-primary { background: var(--on-air); color: #fff; }
.btn-primary:hover { background: var(--on-air-2); }
.btn-ghost { color: var(--fg); border-color: var(--line-2); background: transparent; }
.btn-ghost:hover { background: var(--bg-2); border-color: var(--line-strong); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }

/* ── Inputs ── */
.input {
  height: 44px;
  padding: 0 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-2);
  background: var(--panel);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  width: 100%;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.input:focus { border-color: var(--fg-3); box-shadow: 0 0 0 3px var(--bg-3); }
.input::placeholder { color: var(--fg-4); }
textarea.input {
  padding: 12px 14px;
  height: auto;
  min-height: 96px;
  resize: vertical;
  line-height: 1.5;
  font-family: var(--font-sans);
}

/* ── Card ── */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  position: relative;
}

/* ── Tech grid background ── */
.tech-grid {
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* ── Live dot ── */
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--on-air);
  box-shadow: 0 0 0 3px var(--on-air-glow);
  animation: pulse 1.6s ease-in-out infinite;
  vertical-align: middle;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--on-air-glow); }
  50% { box-shadow: 0 0 0 6px var(--on-air-glow); }
}

/* ── Panel corners ── */
.panel-corners {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.panel-corners::before,
.panel-corners::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--line-strong);
  border-style: solid;
  border-width: 0;
}
.panel-corners::before { top: 8px; left: 8px; border-top-width: 1px; border-left-width: 1px; }
.panel-corners::after { bottom: 8px; right: 8px; border-bottom-width: 1px; border-right-width: 1px; }

/* ── Panel header (broadcast monitor) ── */
.panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-1);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.panel-header .ph-id { color: var(--fg-4); }
.panel-header .ph-label { color: var(--fg); }
.panel-header .ph-spacer { flex: 1; }
.panel-header .ph-status { color: var(--on-air); font-weight: 600; }
.panel-header .live-dot { width: 6px; height: 6px; }

/* ── Top nav ── */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: all 200ms ease;
}
.top-nav.scrolled {
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom-color: var(--line);
}
.top-nav-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 24px;
}
.nav-spacer { flex: 1; }
.nav-links {
  display: flex;
  gap: 4px;
}
.nav-link {
  color: var(--fg-2);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 8px;
}
.nav-link:hover { background: var(--bg-2); }
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 32px;
  letter-spacing: -0.02em;
}

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 75%);
}
.hero-glow {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  pointer-events: none;
  background: radial-gradient(circle, var(--on-air-glow) 0%, transparent 60%);
  opacity: 0.6;
  filter: blur(40px);
}
.hero-inner {
  position: relative;
  padding: 80px 32px 96px;
}
.hero-telemetry {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.hero-telemetry-spacer { flex: 1; }
.hero-telemetry-text {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-4);
  letter-spacing: 0.08em;
}
.hero h1 {
  font-size: clamp(48px, 8vw, 112px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
  max-width: 16ch;
}
.hero h1 .accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--fg-2);
}
.hero-sub {
  margin-top: 28px;
  max-width: 58ch;
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--fg-3);
  line-height: 1.5;
  text-wrap: pretty;
}
.hero-form { margin-top: 40px; max-width: 520px; }
.hero-form .t-eyebrow { margin-bottom: 10px; }
.hero-form-row { display: flex; gap: 8px; }
.hero-form .input { height: 48px; font-size: 15px; }
.hero-form .btn { height: 48px; padding: 0 20px; }
.hero-form-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--fg-4);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.hero-form-note a { color: var(--fg-2); }

/* ── Success block ── */
.success-block {
  border: 1px solid var(--line-2);
  background: var(--panel);
  padding: 16px 20px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  gap: 14px;
}
.success-block[hidden], .error-block[hidden] { display: none; }
.success-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--on-air-glow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--on-air);
  flex-shrink: 0;
}
.success-icon--lg { width: 36px; height: 36px; font-size: 18px; }
.success-title { font-weight: 500; }
.success-sub { color: var(--fg-3); font-size: 13px; margin-top: 2px; }

/* ── Error block ── */
.error-block {
  border: 1px solid oklch(0.62 0.21 25 / 0.3);
  background: oklch(0.62 0.21 25 / 0.06);
  padding: 12px 16px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--fg-2);
  margin-top: 12px;
}
.error-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--on-air-glow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--on-air);
  font-weight: 600;
  flex-shrink: 0;
  font-size: 13px;
}
button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Ticker ── */
.ticker-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-1);
  padding: 10px 0;
}
.ticker-bar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 100%;
  padding: 0 0 0 32px;
}
.ticker-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-air);
  font-weight: 600;
  flex: none;
}
.ticker {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fg-2);
  flex: 1;
}
.ticker-track {
  display: inline-flex;
  gap: 48px;
  padding-right: 48px;
  animation: ticker 90s linear infinite;
  will-change: transform;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.ticker-item::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--fg-4);
  border-radius: 50%;
  flex: none;
}

/* ── Product ── */
.product-section {
  padding: 96px 0 64px;
  border-bottom: 1px solid var(--line);
}
.product-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  margin-top: 16px;
  align-items: end;
}
.product-grid h2 {
  font-size: clamp(40px, 5.2vw, 72px);
  letter-spacing: -0.03em;
  line-height: 1.0;
}
.product-grid h2 .accent {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--fg-3);
}
.product-grid p {
  color: var(--fg-3);
  font-size: 17px;
  line-height: 1.55;
  text-wrap: pretty;
  max-width: 44ch;
}

/* ── How it works / flow diagram ── */
.how-it-works {
  padding: 64px 0 96px;
  border-bottom: 1px solid var(--line);
}
.how-it-works .product-grid { margin-bottom: 48px; }

.nv-flow {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(1200px 400px at 50% -10%, rgba(255, 255, 255, 0.035), transparent 70%),
    var(--panel);
  overflow: hidden;
}
.nv-flow-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.nv-flow-scroll::-webkit-scrollbar { height: 6px; }
.nv-flow-scroll::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
.nv-flow svg { display: block; width: 100%; min-width: 1080px; height: auto; }

.nv-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  fill: var(--fg-4);
  font-weight: 500;
}
.nv-card-t { font-family: var(--font-display); font-size: 15px; font-weight: 600; fill: var(--fg); letter-spacing: -0.01em; }
.nv-card-s { font-family: var(--font-sans); font-size: 11px; fill: var(--fg-4); letter-spacing: 0; }
.nv-stage-t { font-family: var(--font-display); font-size: 21px; font-weight: 600; fill: var(--fg); letter-spacing: -0.02em; }
.nv-stage-n { font-family: var(--font-mono); font-size: 12px; font-weight: 600; fill: var(--amber); }
.nv-bullet { font-family: var(--font-sans); font-size: 12.5px; fill: var(--fg-3); }
.nv-obj-t { font-family: var(--font-display); font-size: 19px; font-weight: 600; fill: var(--fg); letter-spacing: -0.02em; }
.nv-obj-i { font-family: var(--font-sans); font-size: 12.5px; fill: var(--fg-2); }
.nv-note { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; fill: var(--fg-5); }

.nv-card { fill: var(--bg-2); stroke: var(--line); stroke-width: 1; }
.nv-panel { fill: rgba(255, 255, 255, 0.018); stroke: var(--line-2); stroke-width: 1; }
.nv-stage { fill: var(--bg-2); stroke: var(--line); stroke-width: 1; }
.nv-obj { fill: var(--bg-3); stroke: var(--line-2); stroke-width: 1; }
.nv-ico { stroke: var(--fg-3); stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.nv-ico-f { fill: var(--fg-3); stroke: none; }

.nv-wire { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.nv-wire-lit {
  fill: none;
  stroke: var(--amber);
  stroke-width: 1.25;
  opacity: 0.5;
  stroke-dasharray: 3 9;
  stroke-linecap: round;
}
.nv-pkt { fill: var(--amber); }
.nv-pkt-sm { fill: var(--amber); opacity: 0.75; }

.nv-flow.is-live .nv-wire-lit { animation: nvDash 1.4s linear infinite; }
@keyframes nvDash { to { stroke-dashoffset: -24; } }

.nv-flow.is-live .nv-stage-glow { animation: nvGlow 9s ease-in-out infinite; }
.nv-flow.is-live .nv-ring { animation: nvRing 9s ease-in-out infinite; }
.nv-flow.is-live .nv-ring.s2 { animation-delay: 1.2s; }
.nv-flow.is-live .nv-ring.s3 { animation-delay: 2.4s; }
.nv-flow.is-live .nv-ring.s4 { animation-delay: 3.6s; }
.nv-flow.is-live .nv-ring.s5 { animation-delay: 4.8s; }
.nv-flow.is-live .nv-stage-glow.s2 { animation-delay: 1.2s; }
.nv-flow.is-live .nv-stage-glow.s3 { animation-delay: 2.4s; }
@keyframes nvGlow { 0%, 70%, 100% { opacity: 0; } 10%, 30% { opacity: 0.42; } }
@keyframes nvRing { 0%, 70%, 100% { opacity: 0; } 10%, 30% { opacity: 0.85; } }

.nv-flow.is-live .nv-obj-glow { animation: nvGlow 9s ease-in-out infinite; animation-delay: 3.6s; }
.nv-flow.is-live .nv-out-glow { animation: nvGlow 9s ease-in-out infinite; animation-delay: 4.8s; }
.nv-ring { fill: none; stroke: var(--amber); stroke-width: 1.25; opacity: 0; }

.nv-flow.is-live .nv-live-dot { animation: nvPulse 2s ease-in-out infinite; }
@keyframes nvPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

@media (prefers-reduced-motion: reduce) {
  .nv-flow.is-live .nv-wire-lit,
  .nv-flow.is-live .nv-stage-glow,
  .nv-flow.is-live .nv-obj-glow,
  .nv-flow.is-live .nv-out-glow,
  .nv-flow.is-live .nv-ring,
  .nv-flow.is-live .nv-live-dot { animation: none !important; }
  .nv-wire-lit { opacity: 0.35; }
}

/* ── Waitlist section ── */
.waitlist-section { padding: 120px 0 64px; }
.waitlist-wrap { max-width: 720px; margin: 0 auto; }
.waitlist-form { display: grid; gap: 14px; }
.waitlist-form h3 {
  font-size: 24px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.waitlist-form > p {
  color: var(--fg-3);
  font-size: 14px;
  margin-bottom: 24px;
}
.field-group { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.radio-group { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.radio-option {
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: border-color 120ms ease, background 120ms ease;
}
.radio-option:has(input:checked) {
  border-color: var(--on-air);
  background: color-mix(in oklab, var(--on-air) 8%, var(--panel));
}
.radio-option input[type="radio"] { accent-color: var(--on-air); }
.waitlist-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-4);
  letter-spacing: 0.04em;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 80px;
  padding: 56px 0 32px;
  background: var(--bg-1);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}
.footer-desc {
  color: var(--fg-3);
  margin-top: 16px;
  max-width: 36ch;
  font-size: 14px;
  line-height: 1.6;
}
.footer-col-title {
  margin-bottom: 16px;
}
.footer-col-links { display: grid; gap: 10px; }
.footer-col-links a {
  color: var(--fg-2);
  font-size: 14px;
}
.footer-col-links a:hover { color: var(--fg); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── AI agents ready ── */
.ag-head {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 64px;
  align-items: start;
  margin-top: 16px;
}
.ag-head h2 {
  font-size: clamp(36px, 4.6vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1.02;
}
.ag-head h2 .accent {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--fg-3);
}
.ag-head p {
  color: var(--fg-3);
  font-size: 16px;
  line-height: 1.55;
  max-width: 46ch;
}

.ag-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.ag-card { padding: 26px 24px 28px; }
.ag-card .ag-ico { display: block; margin-bottom: 18px; color: var(--fg-3); }
.ag-card h3 { font-size: 19px; letter-spacing: -0.02em; margin-bottom: 10px; }
.ag-card p { color: var(--fg-3); font-size: 13.5px; line-height: 1.6; }
.ag-card code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--fg-2);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
}

.ag-split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
  margin-top: 20px;
  align-items: stretch;
}
.ag-term, .ag-guard { display: flex; flex-direction: column; }
.ag-term-body { flex: 1; }

.ag-term { overflow: hidden; }
.ag-term-body {
  padding: 22px 24px 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.75;
  overflow-x: auto;
  font-feature-settings: "zero";
}
.ag-term-body pre { margin: 0; white-space: pre; }
.ag-l { color: var(--fg-4); }
.ag-cmd { color: var(--fg); }
.ag-prompt { color: var(--green); }
.ag-key { color: var(--fg-3); }
.ag-out { color: var(--fg-2); }
.ag-num { color: var(--green); }
.ag-str { color: var(--amber); }
.ag-cur {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--fg-3);
  vertical-align: -2px;
  animation: agBlink 1.1s steps(1) infinite;
}
@keyframes agBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.ag-guard { padding: 26px 24px 28px; }
.ag-guard .ag-guard-t { font-size: 19px; letter-spacing: -0.02em; margin-bottom: 6px; }
.ag-guard .ag-guard-s { color: var(--fg-4); font-size: 13px; margin-bottom: 22px; }
.ag-rule { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.ag-rule-n { font-family: var(--font-mono); font-size: 11px; color: var(--amber); padding-top: 2px; flex: none; }
.ag-rule b { display: block; font-weight: 600; font-size: 13.5px; color: var(--fg-2); margin-bottom: 3px; }
.ag-rule span { display: block; color: var(--fg-4); font-size: 12.5px; line-height: 1.55; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .product-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .field-row { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 32px !important; }
  .hero-inner { padding: 60px 20px 72px; }
  .ag-head { grid-template-columns: 1fr; gap: 20px; }
  .ag-grid { grid-template-columns: 1fr; }
  .ag-split { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr !important; }
  .radio-group { grid-template-columns: 1fr; }
  .hero-form-row { flex-direction: column; }
}
