/* Direction: Automeda — control-room dark, graphite canvas, signal-lime accent, technical grotesk display */
/* Completed by the platform from the short form: both modes, every
   palette token, each text-on-ground pair at its floor. To restyle, write the
   short form again (the decisions in one :root) and it is completed again. */

:root {
  color-scheme: dark;
  --canvas: #0b0f12;
  --surface: #131a1e;
  --surface-2: #1a2328;
  --border: #26323a;
  --border-strong: #545759;
  --ink: #eef3ee;
  --muted: #94a3a0;
  --accent: #c6f432;
  --accent-hover: #cff651;
  --accent-ink: #0b0f12;
  --accent-text: #c6f432;
  --accent-strong: #c6f432;
  --accent-soft: #344119;
  --accent-border: #5f7620;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #0d281b;
  --success-strong: #499c68;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #301e10;
  --warning-strong: #c57a40;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #311214;
  --danger-strong: #d16969;
  --chart-1: #c6f432;
  --chart-2: #24dac6;
  --chart-3: #7ec6fd;
  --chart-4: #ec99fd;
  --chart-5: #fba2a0;
  --chart-6: #f3b113;

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --display-weight: 600;
  --display-tracking: -0.03em;
  --radius-card: 16px;
  --radius-btn: 999px;
  --x-band: #06090b;
  --x-on-photo: #f2f7f2;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="light"] {
  color-scheme: light;
  --canvas: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f3f3;
  --border: #ddddde;
  --border-strong: #b6b7b8;
  --ink: #0b0f12;
  --muted: #6d6f71;
  --accent: #a7ce2a;
  --accent-hover: #8eaf24;
  --accent-ink: #0b0f12;
  --accent-text: #5e7318;
  --accent-strong: #5e7318;
  --accent-soft: #f3f8e1;
  --accent-border: #d7e99f;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #e3f0e8;
  --success-strong: #137638;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #f6eae1;
  --warning-strong: #a64c08;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #f7e4e4;
  --danger-strong: #b91c1c;
  --chart-1: #809f15;
  --chart-2: #15a292;
  --chart-3: #1880bf;
  --chart-4: #ac7ee6;
  --chart-5: #bc476e;
  --chart-6: #cf7c1c;
}

.grid-bg {
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  opacity: 0.35;
}

.flow-link {
  position: relative;
  height: 2px;
  background: var(--border);
  overflow: hidden;
}
.flow-link::after {
  content: "";
  position: absolute;
  top: 0;
  left: -30%;
  width: 30%;
  height: 100%;
  background: var(--accent);
  animation: flow-run 2.4s linear infinite;
}
@keyframes flow-run {
  to { left: 100%; }
}
.flow-vert { width: 2px; height: 28px; }
.flow-vert::after { width: 100%; height: 40%; left: 0; top: -40%; animation-name: flow-run-v; }
@keyframes flow-run-v {
  to { top: 100%; }
}

.status-dot {
  width: 8px; height: 8px; border-radius: 999px; background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: ping-dot 2s ease-out infinite;
}
@keyframes ping-dot {
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.marquee { display: flex; width: max-content; animation: marquee 38s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

details.faq summary { list-style: none; cursor: pointer; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq[open] .faq-plus { transform: rotate(45deg); }
.faq-plus { transition: transform 0.2s ease; }

html.reduced-motion .flow-link::after,
html.reduced-motion .status-dot,
html.reduced-motion .marquee { animation: none; }
