/* ============================================================
   CircuitAI Studio — site styles
   "Instrument-grade EDA workstation"
   ============================================================ */

/* Font faces for --font-display (Space Grotesk) and --font-mono (JetBrains Mono).
   This @import brings the @font-face rules into the stylesheet closure. */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ---- Tokens ---- */
:root {
  /* surfaces */
  --bg:        #06090E;
  --bg-2:      #090D14;
  --surface:   #0C121B;
  --surface-2: #111927;
  --surface-3: #16202F;

  /* lines */
  --line:        rgba(120, 205, 220, 0.10);
  --line-strong: rgba(120, 205, 220, 0.22);
  --line-warm:   rgba(232, 162, 74, 0.22);

  /* text */
  --text:       #E7EFF3;
  --text-dim:   #93A6B2;
  --text-faint: #586774;

  /* signal palette */
  --cyan:        #34DEE8;
  --cyan-bright: #79F2F7;
  --cyan-deep:   #0E3A40;
  --copper:      #E8A24A;
  --copper-deep: #3A2A12;
  --green:       #74F0A0;
  --green-deep:  #0E3A24;
  --red:         #FF7A8A;
  --violet:      #9B8CFF;

  /* glows */
  --glow-cyan: 0 0 0 1px rgba(52,222,232,.35), 0 0 28px -6px rgba(52,222,232,.55);
  --glow-soft: 0 0 40px -12px rgba(52,222,232,.30);

  /* radii */
  --r-sm: 6px;
  --r:    10px;
  --r-lg: 16px;

  /* type */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --maxw: 1380px;
}

/* ---- Reset / base ---- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-display);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* PCB-trace + dot grid texture */
  background-image:
    radial-gradient(circle at 50% -10%, rgba(52,222,232,.10), transparent 60%),
    radial-gradient(rgba(120,205,220,.05) 1px, transparent 1px);
  background-size: auto, 28px 28px;
  background-position: center top, center;
  background-attachment: fixed, scroll;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(52,222,232,.30); color: #fff; }

/* scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 8px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #20303f; }

/* ---- Layout helpers ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 36px; }
.section { padding: clamp(72px, 9vw, 130px) 0; position: relative; }
.section-line { border-top: 1px solid var(--line); }

/* mono kicker */
.kicker {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker::before {
  content: "";
  width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}
.kicker.copper { color: var(--copper); }
.kicker.copper::before { background: linear-gradient(90deg, var(--copper), transparent); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-faint);
}

h1, h2, h3 { font-weight: 600; line-height: 1.04; letter-spacing: -0.02em; }
.h-sec {
  font-size: clamp(30px, 4.4vw, 52px);
  margin: 18px 0 16px;
  text-wrap: balance;
}
.lead {
  color: var(--text-dim);
  font-size: clamp(16px, 1.6vw, 19px);
  max-width: 62ch;
  text-wrap: pretty;
}

.accent { color: var(--cyan); }
.accent-c { color: var(--copper); }
.mono { font-family: var(--font-mono); }

/* ---- Buttons ---- */
.btn {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--cyan-bright), var(--cyan));
  color: #03171a;
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(52,222,232,.4), 0 8px 30px -10px rgba(52,222,232,.65);
}
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(121,242,247,.6), 0 10px 38px -8px rgba(52,222,232,.85); transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255,255,255,.02);
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan-bright); background: rgba(52,222,232,.06); }

/* arrow glyph */
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* ---- chips ---- */
.chip {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .03em;
  color: var(--text-dim);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.015);
  padding: 7px 13px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.chip .dot.g { background: var(--green); box-shadow: 0 0 8px var(--green); }
.chip .dot.c { background: var(--copper); box-shadow: 0 0 8px var(--copper); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(6,9,14,.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand .logo { width: 30px; height: 30px; flex: none; }
.brand b { font-weight: 600; font-size: 16.5px; letter-spacing: -0.01em; }
.brand b span { color: var(--cyan); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .02em;
  color: var(--text-dim);
  padding: 8px 14px;
  border-radius: var(--r-sm);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: clamp(64px,8vw,112px) 0 clamp(56px,7vw,96px); overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; } }

.badge-beta {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em;
  padding: 7px 14px; border-radius: 100px;
  border: 1px solid var(--line-warm);
  background: rgba(232,162,74,.06);
  color: var(--copper);
}
.badge-beta .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--copper);
  box-shadow: 0 0 0 0 rgba(232,162,74,.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(232,162,74,.55); }
  70% { box-shadow: 0 0 0 9px rgba(232,162,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(232,162,74,0); }
}

.hero h1 {
  font-size: clamp(40px, 6.2vw, 78px);
  letter-spacing: -0.035em;
  margin: 22px 0 22px;
  text-wrap: balance;
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--cyan-bright), var(--cyan) 50%, var(--green));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { font-size: clamp(16px, 1.8vw, 20px); margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.hero-specs {
  margin-top: 38px; padding-top: 26px;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 28px;
  max-width: 520px;
}
.hero-spec .v { font-family: var(--font-mono); font-size: 14px; color: var(--text); display: flex; align-items: center; gap: 8px; }
.hero-spec .v .ic { color: var(--cyan); }
.hero-spec .k { font-size: 12.5px; color: var(--text-faint); margin-top: 3px; }

/* ---- generation console (hero visual) ---- */
.console {
  position: relative;
  background:
    linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--glow-soft), 0 30px 80px -30px #000;
  overflow: hidden;
}
.console::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 80% -10%, rgba(52,222,232,.12), transparent 55%);
}
.console-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 12px; color: var(--text-faint);
  background: rgba(0,0,0,.2);
}
.console-bar .dots { display: flex; gap: 6px; }
.console-bar .dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.console-bar .dots i:nth-child(1){ background:#2a3744; }
.console-bar .dots i:nth-child(2){ background:#2a3744; }
.console-bar .dots i:nth-child(3){ background:#2a3744; }
.console-bar .tab { margin-left: 6px; color: var(--text-dim); }
.console-bar .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }

.console-prompt {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 13.5px;
}
.console-prompt .pfx { color: var(--cyan); }
.console-prompt .txt { color: var(--text); }
.console-prompt .caret {
  width: 8px; height: 17px; background: var(--cyan); display: inline-block;
  animation: blink 1.1s steps(1) infinite; margin-left: 1px;
}
@keyframes blink { 50% { opacity: 0; } }
.console-prompt .gen {
  margin-left: auto; font-size: 11px; color: #03171a; background: var(--cyan);
  padding: 5px 11px; border-radius: 5px; font-weight: 600; letter-spacing: .04em;
}

.console-body { display: grid; grid-template-columns: 1.2fr 1fr; }
@media (max-width: 520px) { .console-body { grid-template-columns: 1fr; } }
.schematic-pane { padding: 18px; border-right: 1px solid var(--line); position: relative; }
.schematic-pane svg { width: 100%; height: auto; display: block; }
.scope-pane { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.pane-label {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-faint); margin-bottom: 10px;
}

.console-foot {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 12px 16px; border-top: 1px solid var(--line);
  background: rgba(0,0,0,.2);
}
.stat-ok {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--green);
  display: inline-flex; align-items: center; gap: 6px;
}
.stat-ok.idle { color: var(--text-faint); }
.console-foot .runtime { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); }

/* scope screen */
.scope {
  background: #04080b; border: 1px solid var(--line); border-radius: var(--r-sm);
  position: relative; overflow: hidden; aspect-ratio: 16/10;
}
.scope .grid-lines { position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(120,205,220,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,205,220,.10) 1px, transparent 1px);
  background-size: 16.66% 25%;
}
.scope svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scope .scan {
  position: absolute; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, transparent, rgba(52,222,232,.55), transparent);
  animation: scan 3.2s linear infinite;
}
@keyframes scan { from { left: -2%; } to { left: 102%; } }

/* trace draw animation */
.trace { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.6s ease forwards; }
.trace.t2 { animation-delay: .25s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---- marquee spec strip ---- */
.strip {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.012);
  overflow: hidden; padding: 16px 0;
}
.strip-track { display: flex; gap: 56px; white-space: nowrap; animation: marquee 32s linear infinite; width: max-content; }
.strip-track span {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .05em;
  color: var(--text-dim); display: inline-flex; align-items: center; gap: 14px;
}
.strip-track span::before { content: "◇"; color: var(--cyan); font-size: 10px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   FEATURE SECTIONS
   ============================================================ */
.sec-head { max-width: 760px; margin-bottom: 52px; }

/* feature grid cards */
.fgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.fgrid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .fgrid, .fgrid.three { grid-template-columns: 1fr; } }

.fcard {
  position: relative;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px 24px 28px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  overflow: hidden;
}
.fcard::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0; transition: opacity .3s;
}
.fcard:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: 0 24px 60px -34px rgba(52,222,232,.5); }
.fcard:hover::after { opacity: .7; }
.fcard .idx { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); letter-spacing: .1em; }
.fcard .ic {
  width: 42px; height: 42px; border-radius: 9px; margin: 16px 0 18px;
  display: grid; place-items: center;
  background: rgba(52,222,232,.07); border: 1px solid var(--line-strong);
  color: var(--cyan);
}
.fcard.warm .ic { background: rgba(232,162,74,.07); border-color: var(--line-warm); color: var(--copper); }
.fcard h3 { font-size: 19px; margin-bottom: 9px; letter-spacing: -0.01em; }
.fcard p { color: var(--text-dim); font-size: 14.5px; text-wrap: pretty; }
.fcard .tag { margin-top: 16px; display: inline-flex; }

/* showcase split (text + visual panel) */
.showcase {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px,4vw,60px);
  align-items: center;
}
.showcase.rev { grid-template-columns: 1.1fr 1fr; }
@media (max-width: 940px) { .showcase, .showcase.rev { grid-template-columns: 1fr; } }
.showcase .copy h3 { font-size: clamp(24px,3vw,34px); margin: 16px 0 16px; }
.showcase ul.feats { list-style: none; margin-top: 22px; display: grid; gap: 13px; }
.showcase ul.feats li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-dim); font-size: 15px; }
.showcase ul.feats li .b { color: var(--cyan); flex: none; margin-top: 2px; }
.showcase ul.feats li b { color: var(--text); font-weight: 600; }

/* instrument panel (mock UI window) */
.panel {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  box-shadow: 0 30px 80px -34px #000, var(--glow-soft);
  overflow: hidden;
}
.panel-bar {
  display: flex; align-items: center; gap: 10px; padding: 11px 15px;
  border-bottom: 1px solid var(--line); background: rgba(0,0,0,.22);
  font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint);
}
.panel-bar .dots { display: flex; gap: 6px; }
.panel-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: #2a3744; }
.panel-body { padding: 18px; }

/* code/debug readout */
.code {
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7;
  background: #04080b; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 14px 16px; overflow-x: auto; color: var(--text-dim);
}
.code .ln { display: block; white-space: pre; }
.code .c1 { color: var(--text-faint); }
.code .k { color: var(--violet); }
.code .n { color: var(--copper); }
.code .s { color: var(--green); }
.code .addr { color: var(--cyan); }
.code .hl { background: rgba(232,162,74,.10); border-left: 2px solid var(--copper); margin-left: -16px; padding-left: 14px; }

/* register grid */
.reg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.reg {
  font-family: var(--font-mono); font-size: 11px;
  background: #04080b; border: 1px solid var(--line); border-radius: 5px;
  padding: 8px 10px;
}
.reg .rn { color: var(--text-faint); }
.reg .rv { color: var(--cyan); font-size: 13px; margin-top: 2px; }
.reg.changed .rv { color: var(--copper); }

/* analysis chip row */
.analysis { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* model pills */
.models { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

/* ---- workflow pipeline ---- */
.pipeline {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 8px;
}
@media (max-width: 1000px) { .pipeline { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .pipeline { grid-template-columns: repeat(2, 1fr); } }
.pnode {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px 18px 22px;
  transition: border-color .25s, transform .25s;
}
.pnode:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.pnode::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  transform: translateX(-100%); animation: flow 3.6s linear infinite;
}
@keyframes flow { to { transform: translateX(100%); } }
.pnode .pn { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); letter-spacing: .12em; }
.pnode .pic {
  width: 38px; height: 38px; border-radius: 9px; margin: 13px 0 13px;
  display: grid; place-items: center;
  background: rgba(52,222,232,.07); border: 1px solid var(--line-strong); color: var(--cyan);
}
.pnode.c .pic { background: rgba(232,162,74,.07); border-color: var(--line-warm); color: var(--copper); }
.pnode h4 { font-size: 15.5px; font-weight: 600; margin-bottom: 6px; letter-spacing: -0.01em; }
.pnode p { font-size: 12.5px; color: var(--text-dim); line-height: 1.5; }
@media (prefers-reduced-motion: reduce) { .pnode::before { display: none; } }

/* ---- board interactive tilt ---- */
.board3d.tilt { animation: none; transition: transform .14s ease-out; will-change: transform; }
.board3d-stage.live { cursor: grab; }
.model {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-dim);
  padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: rgba(255,255,255,.012);
}

/* ---- PCB board art ---- */
.board-wrap { position: relative; }
.pcb {
  position: relative; aspect-ratio: 4/3; border-radius: var(--r-lg);
  background:
    radial-gradient(120% 100% at 30% 10%, #0c3a2f, #06231d 60%, #04140f);
  border: 1px solid rgba(116,240,160,.22);
  overflow: hidden; box-shadow: 0 30px 80px -36px #000;
}
.pcb svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---- output grid (manufacturing) ---- */
.outputs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 820px) { .outputs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .outputs { grid-template-columns: 1fr; } }
.out {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 16px 18px;
  transition: border-color .2s, background .2s;
}
.out:hover { border-color: var(--line-strong); background: var(--surface-2); }
.out .ext {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .04em;
  color: var(--cyan); background: var(--cyan-deep); border: 1px solid var(--line-strong);
  padding: 6px 9px; border-radius: 5px; flex: none; min-width: 58px; text-align: center;
}
.out .ext.c { color: var(--copper); background: var(--copper-deep); border-color: var(--line-warm); }
.out .ot { font-size: 14px; color: var(--text); }
.out .od { font-size: 12px; color: var(--text-faint); font-family: var(--font-mono); margin-top: 1px; }

/* ============================================================
   BETA CTA
   ============================================================ */
.beta {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background:
    radial-gradient(110% 130% at 85% -20%, rgba(52,222,232,.14), transparent 55%),
    radial-gradient(90% 120% at 10% 120%, rgba(232,162,74,.10), transparent 55%),
    linear-gradient(180deg, var(--surface-2), var(--bg-2));
  padding: clamp(34px, 5vw, 64px);
  overflow: hidden;
}
.beta-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px,4vw,56px); align-items: center; }
@media (max-width: 900px) { .beta-grid { grid-template-columns: 1fr; } }
.beta h2 { font-size: clamp(28px,4vw,46px); margin: 16px 0 16px; }
.beta .lead { margin-bottom: 28px; }
.beta-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.steps { display: grid; gap: 14px; }
.step {
  display: flex; gap: 16px; align-items: flex-start;
  background: rgba(0,0,0,.25); border: 1px solid var(--line);
  border-radius: var(--r); padding: 18px 20px;
}
.step .num {
  font-family: var(--font-mono); font-size: 13px; color: var(--cyan);
  border: 1px solid var(--line-strong); border-radius: 7px;
  width: 34px; height: 34px; display: grid; place-items: center; flex: none;
  background: rgba(52,222,232,.06);
}
.step .st { font-size: 15px; color: var(--text); font-weight: 600; }
.step .sd { font-size: 13.5px; color: var(--text-dim); margin-top: 3px; }
.step .sd code { font-family: var(--font-mono); color: var(--copper); font-size: 12.5px; }

.beta-note {
  margin-top: 26px; font-family: var(--font-mono); font-size: 12.5px;
  color: var(--text-faint); display: flex; align-items: center; gap: 10px;
}
.beta-note .g { color: var(--green); }

/* ---- beta signup form ---- */
.beta-form {
  background: rgba(4,8,11,.55);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 30px);
  display: flex; flex-direction: column; gap: 15px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 24px 60px -36px #000;
}
.bf-head { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 4px; }
.bf-head > span { color: var(--cyan); flex: none; margin-top: 2px; }
.bf-title { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.bf-sub { font-size: 13px; color: var(--text-dim); margin-top: 2px; }

.bf-field { display: flex; flex-direction: column; gap: 7px; }
.bf-field label {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .03em;
  color: var(--text-dim);
}
.bf-field label span { color: var(--cyan); }
.bf-field label .opt { color: var(--text-faint); }
.bf-field input,
.bf-field select,
.bf-field textarea {
  font-family: var(--font-display); font-size: 14px; color: var(--text);
  background: #04080b; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 11px 13px; width: 100%;
  transition: border-color .18s, box-shadow .18s, background .18s;
  outline: none;
}
.bf-field textarea { resize: vertical; min-height: 64px; line-height: 1.5; }
.bf-field select { appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-faint) 50%), linear-gradient(135deg, var(--text-faint) 50%, transparent 50%);
  background-position: calc(100% - 17px) 18px, calc(100% - 12px) 18px;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.bf-field input::placeholder,
.bf-field textarea::placeholder { color: var(--text-faint); }
.bf-field input:focus,
.bf-field select:focus,
.bf-field textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(52,222,232,.12);
  background: #050b10;
}
.bf-field input:invalid:not(:placeholder-shown) { border-color: rgba(255,122,138,.5); }

.bf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
@media (max-width: 520px) { .bf-row { grid-template-columns: 1fr; } }

.bf-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 2px; }
.bf-consent input { width: 17px; height: 17px; flex: none; margin-top: 2px; accent-color: var(--cyan); cursor: pointer; }
.bf-consent label { font-size: 12.5px; color: var(--text-dim); line-height: 1.45; }

/* honeypot — visually removed but accessible to bots */
.bf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

.bf-submit { justify-content: center; width: 100%; margin-top: 4px; }
.bf-submit[disabled] { opacity: .6; cursor: progress; }

.bf-status { font-family: var(--font-mono); font-size: 12.5px; line-height: 1.5; display: none; padding: 11px 13px; border-radius: var(--r-sm); }
.bf-status.show { display: block; }
.bf-status.ok { color: var(--green); background: rgba(116,240,160,.07); border: 1px solid rgba(116,240,160,.3); }
.bf-status.err { color: var(--red); background: rgba(255,122,138,.06); border: 1px solid rgba(255,122,138,.3); }

.bf-secure {
  display: flex; align-items: flex-start; gap: 8px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .02em;
  color: var(--text-faint); line-height: 1.5;
}
.bf-secure span { color: var(--green); flex: none; width: 13px; height: 13px; margin-top: 1px; }

/* warning / dev notice */
.notice {
  display: flex; gap: 14px; align-items: flex-start;
  border: 1px solid var(--line-warm); background: rgba(232,162,74,.05);
  border-radius: var(--r); padding: 16px 20px; margin-top: 34px;
}
.notice .ic { color: var(--copper); flex: none; margin-top: 1px; }
.notice p { color: var(--text-dim); font-size: 14px; }
.notice b { color: var(--copper); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer .brand b { font-size: 17px; }
.footer .tagline { color: var(--text-dim); font-size: 14px; margin-top: 14px; max-width: 38ch; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.fbadge {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--text-dim);
  border: 1px solid var(--line); border-radius: 100px; padding: 7px 13px;
  display: inline-flex; align-items: center; gap: 8px;
}
.fbadge .ic { color: var(--cyan); }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-faint);
}

/* image-slot styling */
image-slot {
  --is-bg: var(--surface);
  border: 1px solid var(--line);
}

/* ============================================================
   FUTURISTIC: animated circuit fields + 3D PCB board
   ============================================================ */

/* ---- global dense PCB backdrop (auto-route texture) ---- */
.pcb-backdrop {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: .5;
  -webkit-mask-image: radial-gradient(135% 105% at 50% 22%, #000 26%, rgba(0,0,0,.4) 60%, transparent 90%);
  mask-image: radial-gradient(135% 105% at 50% 22%, #000 26%, rgba(0,0,0,.4) 60%, transparent 90%);
}
.pcb-backdrop svg { width: 100%; height: 100%; display: block; }
.pcb-pulse { fill: #79F2F7; filter: drop-shadow(0 0 5px #34DEE8); }
.pcb-pulse.c { fill: #E8A24A; filter: drop-shadow(0 0 5px #E8A24A); }
.pcb-route { fill: none; stroke-linecap: round; stroke-linejoin: round; }
body { position: relative; }
main, .footer { position: relative; z-index: 1; }
.section > .wrap { position: relative; z-index: 1; }

/* ---- background auto-routing trace field ---- */
.circuit-field { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.circuit-field svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cf-trace {
  fill: none; stroke: rgba(52,222,232,.15); stroke-width: 1.1;
  stroke-dasharray: 1600; stroke-dashoffset: 1600;
  animation: cfdraw 3.2s ease forwards;
}
.cf-trace.c { stroke: rgba(232,162,74,.13); }
.cf-trace.d2 { animation-delay: .5s; }
.cf-trace.d3 { animation-delay: 1s; }
@keyframes cfdraw { to { stroke-dashoffset: 0; } }
.cf-node { fill: rgba(52,222,232,.45); }
.cf-pulse { fill: var(--cyan-bright); filter: drop-shadow(0 0 5px var(--cyan)); }
.cf-pulse.c { fill: var(--copper); filter: drop-shadow(0 0 5px var(--copper)); }

.hero-grid { position: relative; z-index: 2; }

/* ---- 3D PCB board ---- */
.board3d-stage {
  perspective: 1150px; perspective-origin: 50% 38%;
  display: flex; align-items: center; justify-content: center;
  padding: 36px 8px 54px; position: relative; min-height: 380px;
}
.board3d-glow {
  position: absolute; left: 50%; top: 56%; width: 70%; height: 50%;
  transform: translate(-50%,-50%);
  background: radial-gradient(closest-side, rgba(116,240,160,.18), transparent 75%);
  filter: blur(8px); pointer-events: none;
}
.board3d {
  position: relative; width: 540px; max-width: 92%;
  aspect-ratio: 4/3; transform-style: preserve-3d;
  transform: rotateX(56deg) rotateZ(-26deg);
  animation: boardfloat 10s ease-in-out infinite alternate;
}
@keyframes boardfloat {
  0%   { transform: rotateX(58deg) rotateZ(-31deg) translateZ(0); }
  100% { transform: rotateX(49deg) rotateZ(-13deg) translateZ(26px); }
}
.b-face {
  position: absolute; inset: 0; border-radius: 12px;
  transform-style: preserve-3d;
  background: radial-gradient(135% 120% at 24% 14%, #0f4a3d, #073026 52%, #04140f);
  border: 1px solid rgba(116,240,160,.32);
}
.b-face::after { /* board thickness / underside */
  content: ""; position: absolute; inset: 0; border-radius: 12px;
  background: #03100c; transform: translateZ(-18px);
  box-shadow: 0 70px 90px -34px rgba(0,0,0,.92);
}
.b-traces { position: absolute; inset: 0; width: 100%; height: 100%; }
.b-trace {
  fill: none; stroke: #E8A24A; stroke-width: 2.1; opacity: .92; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 640; stroke-dashoffset: 640; animation: bdraw 2.6s ease .2s forwards;
}
.b-trace.g { stroke: #74F0A0; opacity: .8; }
.b-trace.thin { stroke-width: 1.4; opacity: .55; }
@keyframes bdraw { to { stroke-dashoffset: 0; } }
.b-via { fill: #06231d; stroke: #E8A24A; stroke-width: 1.6; }

/* raised components */
.comp { position: absolute; transform-style: preserve-3d; }
.chip3 {
  width: 30%; height: 28%; left: 35%; top: 34%; transform: translateZ(22px);
  background: linear-gradient(135deg, #16261f, #0a1511);
  border: 1px solid rgba(116,240,160,.45); border-radius: 3px;
  box-shadow: 0 18px 26px -8px rgba(0,0,0,.85);
  display: grid; place-items: center;
}
.chip3 b { font-family: var(--font-mono); font-size: 9px; color: rgba(116,240,160,.92); letter-spacing: .05em; }
.chip3::before, .chip3::after {
  content: ""; position: absolute; top: 16%; bottom: 16%; width: 7%;
  background: repeating-linear-gradient(#d4b46e 0 2px, transparent 2px 5px);
}
.chip3::before { left: -6%; } .chip3::after { right: -6%; }
.chip3 i { position: absolute; left: 8%; top: 12%; width: 3px; height: 3px; border-radius: 50%; background: rgba(116,240,160,.9); }

.res3 {
  width: 11%; height: 5.2%; transform: translateZ(9px); border-radius: 2px;
  background: linear-gradient(#ddcc9d, #b9a679);
  box-shadow: 0 9px 11px -5px rgba(0,0,0,.7); overflow: hidden;
}
.res3::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 16%, #7a3b1f 16% 24%, transparent 24% 38%, #2a2a2a 38% 46%, transparent 46% 62%, #c08a2a 62% 70%);
}
.led3 {
  width: 6%; aspect-ratio: 1; border-radius: 50%; transform: translateZ(12px);
  background: radial-gradient(circle at 35% 30%, #d6ffe8, #74F0A0 52%, #1c5a3a);
  box-shadow: 0 0 16px 2px rgba(116,240,160,.7), 0 9px 11px -4px rgba(0,0,0,.6);
}
.led3.r { background: radial-gradient(circle at 35% 30%, #ffd6db, #FF7A8A 52%, #7a2730); box-shadow: 0 0 16px 2px rgba(255,122,138,.65), 0 9px 11px -4px rgba(0,0,0,.6); }
.cap3 {
  width: 8%; aspect-ratio: 1; border-radius: 50%; transform: translateZ(14px);
  background: radial-gradient(circle at 40% 32%, #3c4856, #1b2530);
  border: 1px solid #4a5a6a; box-shadow: 0 10px 12px -4px rgba(0,0,0,.7);
}
.cap3::after { content: ""; position: absolute; inset: 28%; border-radius: 50%; border-top: 2px solid #708090; }
.fingers {
  position: absolute; left: 8%; width: 38%; bottom: 1.5%; height: 7%; transform: translateZ(1px);
  background: repeating-linear-gradient(90deg, #d9b667 0 9px, transparent 9px 16px);
  border-radius: 2px;
}
.b-label {
  position: absolute; left: 5%; bottom: 4%; transform: translateZ(1px);
  font-family: var(--font-mono); font-size: 8px; color: rgba(116,240,160,.75); letter-spacing: .12em;
}
.board3d-cap {
  position: absolute; left: 0; right: 0; bottom: 14px; text-align: center;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); letter-spacing: .14em;
}

/* ---- reveal-on-scroll ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .trace, .cf-trace, .b-trace { stroke-dashoffset: 0; animation: none; }
  .scan, .strip-track, .badge-beta .pulse, .board3d { animation: none; }
  .pcb-backdrop { opacity: .32; }
  html { scroll-behavior: auto; }
}
