/* ============ GCode Sentinel — machined metal / brass / teal ============ */
:root {
  --bg:        #0a0c10;
  --bg-alt:    #0e1117;
  --panel:     #12161e;
  --panel-2:   #161b25;
  --line:      #232a36;
  --text:      #e8eaf0;
  --text-dim:  #9aa3b2;
  --brass:     #d4a843;
  --brass-hi:  #f0cd7a;
  --brass-lo:  #8a6a1f;
  --teal:      #2dd4bf;
  --teal-dim:  #1a8d80;
  --red:       #ff4d4d;
  --steel-hi:  #f4f6f9;
  --steel-md:  #b9c0cc;
  --steel-lo:  #6b7585;
  --font-head: "Chakra Petch", sans-serif;
  --font-body: "Inter", -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: rgba(212,168,67,.35); }
code { font-family: var(--font-mono); font-size: .88em; color: var(--teal); background: rgba(45,212,191,.08); padding: .1em .35em; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.12; letter-spacing: .01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); margin-bottom: .6em; }
h3 { font-size: 1.18rem; margin-bottom: .45em; }

/* Brushed-metal text effect — gold-dominant, like the tool head */
.metal-text {
  background: linear-gradient(160deg,
    #faeec4 0%, var(--brass-hi) 18%, #fff6d8 32%,
    var(--brass) 50%, var(--brass-lo) 70%, var(--brass) 84%, var(--brass-hi) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: sheen 7s ease-in-out infinite;
}
@keyframes sheen {
  0%, 100% { background-position: 0% 0%; }
  50%      { background-position: 100% 100%; }
}

/* ============ Nav ============ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(10,12,16,.72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
#nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand-icon { width: 34px; height: 34px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,.5); }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; letter-spacing: .14em; white-space: nowrap; }
.brand-name em { font-style: normal; color: var(--brass); }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a {
  color: var(--text-dim); text-decoration: none; font-size: .8rem; font-weight: 500;
  letter-spacing: .05em; text-transform: uppercase; transition: color .2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--brass-hi); }
/* Side tabs — pinned to the left edge, ride along with scroll */
.side-tabs {
  position: fixed; left: 0; top: 50%; transform: translateY(-50%);
  z-index: 90; display: flex; flex-direction: column; gap: 12px;
}
.side-tab {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--font-head); font-weight: 600; font-size: .74rem; letter-spacing: .2em;
  color: var(--steel-md); text-decoration: none;
  padding: 16px 9px;
  background: rgba(18,22,30,.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-right: none;
  border-radius: 10px 0 0 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,.45);
  transition: color .2s, background .2s, padding .2s, border-color .2s;
}
.side-tab:hover { color: var(--text); padding-bottom: 22px; border-color: #2e3744; }
.side-tab-gold {
  color: #14100a;
  background: linear-gradient(350deg, var(--brass-hi), var(--brass) 55%, var(--brass-lo));
  border-color: rgba(212,168,67,.6);
  box-shadow: 0 6px 24px rgba(0,0,0,.45), 0 0 24px rgba(212,168,67,.25);
}
.side-tab-gold:hover { color: #14100a; filter: brightness(1.12); }
.side-tab.active { color: var(--brass-hi); border-color: rgba(212,168,67,.5); }
.side-tab-gold.active { filter: brightness(1.12); }
/* On phones the side tabs become pills riding the top bar (nav links are hidden there) */
@media (max-width: 760px) {
  .side-tabs {
    top: 12px; right: 12px; left: auto; bottom: auto;
    transform: none; flex-direction: row; gap: 8px; z-index: 101;
  }
  .side-tab {
    writing-mode: horizontal-tb; transform: none;
    font-size: .6rem; letter-spacing: .12em; padding: 8px 13px;
    border: 1px solid var(--line); border-radius: 100px;
    box-shadow: 0 4px 14px rgba(0,0,0,.4);
  }
  .side-tab:hover { padding-bottom: 8px; }
  .side-tab-gold { border-color: rgba(212,168,67,.6); }
  .brand-name { font-size: .88rem; letter-spacing: .1em; }
}
@media (max-width: 420px) {
  .brand-name { display: none; }
}
@media (max-width: 760px) { .nav-links { display: none; } }

/* ============ Hero ============ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
#toolpath-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 42%, transparent 30%, rgba(10,12,16,.55) 75%, var(--bg) 100%),
    linear-gradient(to bottom, rgba(10,12,16,.55), transparent 25%, transparent 70%, var(--bg) 100%);
}
.hero-content { position: relative; z-index: 2; text-align: center; padding: 100px 24px 80px; max-width: 920px; }
.hero-brand-row {
  display: flex; align-items: center; justify-content: center;
  gap: 22px; flex-wrap: wrap; margin-bottom: 30px;
}
.hero-icon-wrap { position: relative; display: inline-block; }
.hero-icon-wrap::before {
  content: ""; position: absolute; inset: -45%;
  background: radial-gradient(circle, rgba(212,168,67,.32), rgba(212,168,67,.08) 55%, transparent 72%);
  pointer-events: none;
}
.hero-icon {
  position: relative; width: 84px; height: 84px; border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,.65), 0 0 60px rgba(212,168,67,.35), inset 0 1px 0 rgba(255,255,255,.3);
  animation: icon-float 5s ease-in-out infinite;
}
@keyframes icon-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}
.hero-icon-wrap::after {
  content: ""; position: absolute; inset: 0; border-radius: 20px;
  background: linear-gradient(115deg, transparent 32%, rgba(255,243,196,.5) 50%, transparent 68%);
  background-size: 280% 100%; background-position: 120% 0;
  animation: icon-shine 4.6s ease-in-out infinite, icon-float 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes icon-shine {
  0%, 55%  { background-position: 120% 0; }
  75%, 100% { background-position: -60% 0; }
}
.hero-motto {
  display: block;
  width: min(580px, 78vw); height: auto;
  filter: drop-shadow(0 8px 22px rgba(0,0,0,.6)) drop-shadow(0 0 26px rgba(212,168,67,.2));
}
.hero-badge-gold {
  font-weight: 700; letter-spacing: .28em; font-size: .78rem;
  color: var(--brass-hi);
  border-color: rgba(212,168,67,.5);
  background: linear-gradient(180deg, rgba(212,168,67,.14), rgba(212,168,67,.04));
  box-shadow: 0 0 30px rgba(212,168,67,.18), inset 0 1px 0 rgba(255,255,255,.12);
  text-shadow: 0 0 18px rgba(212,168,67,.55);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: .76rem; letter-spacing: .1em;
  color: var(--steel-md);
  border: 1px solid var(--line); border-radius: 100px;
  padding: 7px 18px; margin-bottom: 28px;
  background: rgba(18,22,30,.6); backdrop-filter: blur(6px);
}
.hero h1 { text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.hero-sub {
  margin: 26px auto 0; max-width: 640px;
  color: var(--text-dim); font-size: 1.08rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.8);
}
.hero-sub strong { color: var(--text); }
.hero-cta { margin-top: 38px; display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap; }
.beta-pill {
  display: inline-flex; flex-direction: column; align-items: center; gap: 3px;
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .14em;
  color: var(--brass-hi); font-weight: 700;
  border: 1px dashed rgba(212,168,67,.55); border-radius: 16px;
  padding: 10px 22px;
  background: rgba(212,168,67,.07);
}
.beta-pill small {
  font-size: .62rem; font-weight: 400; letter-spacing: .12em;
  color: var(--steel-md);
}
.dev-note {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 22px;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .22em;
  color: var(--steel-md);
}

.btn {
  display: inline-block; text-decoration: none;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; letter-spacing: .05em;
  padding: 14px 30px; border-radius: 10px;
  transition: transform .18s, box-shadow .18s, background .18s, border-color .18s;
}
.btn:active { transform: translateY(1px); }
.btn-brass {
  color: #14100a;
  background: linear-gradient(170deg, var(--brass-hi), var(--brass) 45%, var(--brass-lo));
  box-shadow: 0 4px 24px rgba(212,168,67,.28), inset 0 1px 0 rgba(255,255,255,.45);
}
.btn-brass:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(212,168,67,.42), inset 0 1px 0 rgba(255,255,255,.45); }
.btn-ghost {
  color: var(--text); border: 1px solid var(--line);
  background: rgba(18,22,30,.6); backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--teal-dim); color: var(--teal); transform: translateY(-2px); }
.btn .arrow { display: inline-block; transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }

.hero-hud {
  margin-top: 52px;
  display: inline-flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center;
  font-family: var(--font-mono); font-size: .8rem; color: var(--steel-lo);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 22px;
  background: rgba(14,17,23,.78); backdrop-filter: blur(8px);
}
.hud-coord b { color: var(--teal); font-weight: 500; }
.hud-pill {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); border-radius: 100px; padding: 3px 12px;
  color: var(--steel-md); font-size: .72rem; letter-spacing: .08em;
}
.hud-sim { color: var(--brass); border-color: rgba(212,168,67,.4); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-green { background: #3ddc84; box-shadow: 0 0 8px rgba(61,220,132,.8); }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 38px; border: 1.5px solid var(--steel-lo); border-radius: 14px; z-index: 2;
}
.scroll-hint span {
  position: absolute; top: 7px; left: 50%; width: 3px; height: 8px; margin-left: -1.5px;
  background: var(--brass); border-radius: 2px;
  animation: scrollhint 1.8s ease-in-out infinite;
}
@keyframes scrollhint { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ============ Excerpt strip ============ */
.excerpt { padding: 0 24px; }
.excerpt-inner {
  max-width: 820px; margin: 40px auto 64px; text-align: center;
  background: linear-gradient(165deg, var(--panel-2), var(--panel) 60%);
  border: 1px solid rgba(212,168,67,.3); border-radius: 16px;
  padding: 30px 38px 28px;
  box-shadow: 0 18px 50px rgba(0,0,0,.45), 0 0 40px rgba(212,168,67,.07);
}
.excerpt-pill {
  display: inline-block; margin-bottom: 14px;
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .3em;
  color: #14100a; padding: 5px 16px; border-radius: 100px;
  background: linear-gradient(170deg, var(--brass-hi), var(--brass) 55%, var(--brass-lo));
  box-shadow: 0 3px 12px rgba(212,168,67,.3), inset 0 1px 0 rgba(255,255,255,.45);
}
.excerpt-inner p { color: var(--text-dim); font-size: .98rem; }
.excerpt-inner b { color: var(--brass-hi); font-weight: 600; }

/* ============ Stats ============ */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.stats-inner {
  max-width: 1180px; margin: 0 auto; padding: 44px 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
@media (max-width: 860px) { .stats-inner { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; }
.stat-num {
  font-family: var(--font-head); font-weight: 700; font-size: 2.6rem; line-height: 1;
  color: var(--brass-hi);
}
.stat-num .pct { font-size: 1.6rem; }
.stat-label { margin-top: 8px; color: var(--text-dim); font-size: .86rem; }
.stat-label code { font-size: .82em; }

/* ============ Sections ============ */
.section { padding: 110px 0; position: relative; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.kicker {
  font-family: var(--font-mono); font-size: .76rem; letter-spacing: .3em;
  color: var(--brass); margin-bottom: 18px;
}
.section-sub { color: var(--text-dim); max-width: 640px; margin-bottom: 18px; }
.section-sub strong, .section-sub em { color: var(--text); }

/* Feature grid */
.feature-grid {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .feature-grid { grid-template-columns: 1fr; } }
.card {
  background: linear-gradient(165deg, var(--panel-2), var(--panel) 60%);
  border: 1px solid var(--line); border-radius: 16px; padding: 28px 26px;
  position: relative; overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,168,67,.5), transparent);
  opacity: 0; transition: opacity .3s;
}
.card:hover { transform: translateY(-5px); border-color: #2e3744; box-shadow: 0 16px 40px rgba(0,0,0,.45); }
.card:hover::before { opacity: 1; }
.card p { color: var(--text-dim); font-size: .92rem; }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
}
.card-icon svg { width: 26px; height: 26px; }
.icon-teal { color: var(--teal); background: rgba(45,212,191,.1); border: 1px solid rgba(45,212,191,.25); }
.icon-brass { color: var(--brass-hi); background: rgba(212,168,67,.1); border: 1px solid rgba(212,168,67,.28); }

/* ============ Nesting section: app screenshots + gold mini-features ============ */
.shot-frame {
  margin-top: 56px;
  background: #0b0e13;
  border: 1px solid rgba(212,168,67,.28); border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0,0,0,.6), 0 0 80px rgba(212,168,67,.12);
}
.shot-frame img { display: block; width: 100%; height: auto; }
.shot-bar {
  display: flex; align-items: center; gap: 7px;
  background: linear-gradient(180deg, #1a2030, #141925);
  padding: 11px 16px; border-bottom: 1px solid var(--line);
}
.shot-title {
  margin-left: 10px; font-family: var(--font-mono); font-size: .72rem;
  color: var(--steel-md); letter-spacing: .04em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.shot-badge {
  margin-left: auto; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .1em;
  color: var(--brass); border: 1px solid rgba(212,168,67,.45); border-radius: 5px; padding: 2px 8px;
}
.nest-grid {
  margin-top: 28px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
@media (max-width: 1020px) { .nest-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .nest-grid { grid-template-columns: 1fr; } }
.nest-item {
  background: linear-gradient(165deg, var(--panel-2), var(--panel) 60%);
  border: 1px solid var(--line); border-top: 2px solid rgba(212,168,67,.55);
  border-radius: 14px; padding: 24px 22px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.nest-item:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(0,0,0,.45), 0 0 30px rgba(212,168,67,.1); }
.nest-item h3 { font-size: 1.04rem; }
.nest-item p { color: var(--text-dim); font-size: .88rem; }
.nest-item p b { color: var(--brass-hi); }
.nest-icon {
  width: 42px; height: 42px; border-radius: 11px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  color: #14100a;
  background: linear-gradient(170deg, var(--brass-hi), var(--brass) 50%, var(--brass-lo));
  box-shadow: 0 4px 16px rgba(212,168,67,.3), inset 0 1px 0 rgba(255,255,255,.5);
}
.nest-icon svg { width: 24px; height: 24px; }
.shot-row {
  margin-top: 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
@media (max-width: 860px) { .shot-row { grid-template-columns: 1fr; } }
.shot-row .shot-frame { margin-top: 0; }
.vision-row { margin-top: 64px; align-items: start; }
.watch-card {
  background: linear-gradient(165deg, var(--panel-2), var(--panel) 60%);
  border: 1px solid var(--line); border-top: 2px solid rgba(212,168,67,.55);
  border-radius: 14px; padding: 26px 26px 20px;
}
.watch-head {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .3em;
  color: var(--brass);
}
.watch-intro { margin: 10px 0 18px; color: var(--text-dim); font-size: .92rem; }
.watch-item {
  border-left: 3px solid var(--teal-dim);
  padding: 6px 0 6px 14px; margin-bottom: 14px;
  font-size: .88rem; color: var(--text-dim); line-height: 1.55;
}
.watch-item b { color: var(--text); font-family: var(--font-head); font-weight: 600; }
.watch-fail { border-left-color: var(--red); }
.watch-note {
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: .7rem; color: var(--steel-lo); letter-spacing: .03em;
}
.shot-small { box-shadow: 0 22px 60px rgba(0,0,0,.5), 0 0 50px rgba(212,168,67,.07); }
.shot-frame figcaption {
  padding: 14px 18px; font-size: .84rem; color: var(--text-dim);
  border-top: 1px solid var(--line);
}

/* Split layouts */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; } .split-rev .split-text { order: -1; } }
.check-list { list-style: none; margin-top: 12px; }
.check-list li { padding-left: 30px; position: relative; margin-bottom: 12px; color: var(--text-dim); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--teal); font-weight: 700;
}
.check-list em { color: var(--brass-hi); font-style: italic; }

/* Terminal */
.terminal {
  background: #0b0e13; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
  overflow: hidden;
  font-family: var(--font-mono); font-size: .8rem;
}
.terminal-bar {
  display: flex; align-items: center; gap: 7px;
  background: #141925; padding: 11px 14px; border-bottom: 1px solid var(--line);
}
.tdot { width: 11px; height: 11px; border-radius: 50%; }
.tdot.r { background: #ff5f57; } .tdot.y { background: #febc2e; } .tdot.g { background: #28c840; }
.terminal-title { margin-left: 10px; color: var(--steel-lo); font-size: .72rem; letter-spacing: .05em; }
.terminal-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 9px; }
.t-line { opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s; line-height: 1.5; }
.t-line.shown { opacity: 1; transform: none; }
.t-user { color: var(--text); }
.t-prompt { color: var(--brass); margin-right: 6px; font-weight: 700; }
.t-tool { color: var(--steel-lo); }
.t-ok { color: #3ddc84; }
.t-claude { color: var(--steel-md); padding-left: 14px; border-left: 2px solid var(--brass-lo); }
.t-run { color: var(--text-dim); }
.t-teal { color: var(--teal); }

/* Code card (vision script) */
.code-card {
  background: #0b0e13; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,.5); overflow: hidden;
}
.code-card-title {
  font-family: var(--font-mono); font-size: .74rem; color: var(--steel-lo);
  padding: 12px 18px; border-bottom: 1px solid var(--line); background: #141925;
  letter-spacing: .04em;
}
.code-card pre { padding: 20px 22px; overflow-x: auto; }
.code-card code {
  background: none; padding: 0; color: var(--steel-md);
  font-size: .84rem; line-height: 1.7;
}
.c-cmt { color: #525c6e; }
.c-io  { color: var(--brass-hi); font-weight: 700; }
.c-vis { color: var(--teal); font-weight: 700; }
.c-gc  { color: #c0c8d4; }
.code-card-foot {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: .74rem; color: #3ddc84;
  padding: 12px 18px; border-top: 1px solid var(--line); background: rgba(61,220,132,.05);
}

/* ============ Architecture — flow diagram ============ */
.arch { margin-top: 56px; display: flex; flex-direction: column; align-items: center; }
.arch-node {
  background: linear-gradient(165deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: 14px;
  padding: 20px 24px; text-align: center; position: relative;
}
.arch-app {
  border-color: rgba(212,168,67,.45);
  box-shadow: 0 0 40px rgba(212,168,67,.1), 0 16px 40px rgba(0,0,0,.4);
}
.arch-icon { width: 44px; height: 44px; border-radius: 10px; margin-bottom: 10px; }
.arch-node-title { font-family: var(--font-head); font-weight: 600; font-size: 1rem; }
.arch-node-sub { font-family: var(--font-mono); font-size: .7rem; color: var(--steel-lo); margin-top: 6px; line-height: 1.6; }

.arch-top {
  display: grid; grid-template-columns: 1fr 96px 1.3fr 96px 1fr;
  align-items: center; width: 100%; max-width: 1080px;
}
.arch-mid { border-color: rgba(45,212,191,.35); }

/* wires: lines + arrowhead + label + traveling dot */
.wire { position: relative; }
.wire-h { height: 2px; background: linear-gradient(90deg, rgba(45,212,191,.6), var(--brass)); }
.flow-left.wire-h { background: linear-gradient(90deg, var(--brass), rgba(45,212,191,.6)); }
.wire-h::before {
  content: ""; position: absolute; top: -4px;
  border: 5px solid transparent;
}
.flow-right.wire-h::before { right: -3px; border-left-color: var(--brass); }
.flow-left.wire-h::before  { left: -3px;  border-right-color: var(--brass); }
.wire-h::after {
  content: attr(data-label); position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .06em;
  color: var(--steel-lo); white-space: nowrap;
}
.wire i {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 8px var(--teal);
}
.wire-h i { top: -2px; }
.flow-right.wire-h i { animation: dot-right 2.4s linear infinite; }
.flow-left.wire-h i  { animation: dot-left 2.4s linear infinite; }
@keyframes dot-right { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 6px); opacity: 0; } }
@keyframes dot-left  { 0% { left: calc(100% - 6px); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: 0; opacity: 0; } }

.wire-v { width: 2px; height: 64px; background: linear-gradient(180deg, var(--brass), var(--brass-lo)); }
.wire-v::before { content: ""; position: absolute; left: -4px; border: 5px solid transparent; }
.flow-down.wire-v::before { bottom: -3px; border-top-color: var(--brass); }
.flow-up.wire-v::before   { top: -3px;    border-bottom-color: var(--brass); }
.wire-v::after {
  content: attr(data-label); position: absolute; top: 50%; left: 12px; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .06em;
  color: var(--steel-lo); white-space: nowrap;
}
.wire-v i { left: -2px; }
.flow-down.wire-v i { animation: dot-down 2.4s linear infinite; }
.flow-up.wire-v i   { animation: dot-up 2.4s linear infinite; }
@keyframes dot-down { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 6px); opacity: 0; } }
@keyframes dot-up   { 0% { top: calc(100% - 6px); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 0; opacity: 0; } }

/* fork: sender agent fed by the two devices below */
.arch-fork { width: min(720px, 100%); display: flex; flex-direction: column; align-items: center; }
.fork-stem { width: 2px; height: 26px; background: var(--brass-lo); }
.fork-bar  { width: 50%; height: 2px; background: var(--brass-lo); }
.fork-drops { width: 50%; display: flex; justify-content: space-between; }
.fork-drops .wire-v { height: 44px; background: linear-gradient(180deg, var(--brass-lo), var(--brass)); }
.fork-drops .wire-v::after { left: 10px; }
.arch-bottom { width: min(720px, 100%); display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

@media (max-width: 860px) {
  .arch-top { grid-template-columns: 1fr; justify-items: center; }
  .arch-top .arch-node { width: 100%; max-width: 420px; }
  .arch-top .wire-h {
    width: 2px; height: 56px;
    background: linear-gradient(180deg, rgba(45,212,191,.6), var(--brass));
  }
  .arch-top .wire-h::before { border: 5px solid transparent; }
  .flow-right.wire-h::before { right: auto; left: -4px; top: auto; bottom: -3px; border-left-color: transparent; border-top-color: var(--brass); }
  .flow-left.wire-h::before  { left: -4px; top: -3px; border-right-color: transparent; border-bottom-color: var(--brass); }
  .wire-h::after { top: 50%; left: 12px; transform: translateY(-50%); }
  .wire-h i { left: -2px; top: auto; }
  .flow-right.wire-h i { animation: dot-down 2.4s linear infinite; }
  .flow-left.wire-h i  { animation: dot-up 2.4s linear infinite; }
  .arch-bottom { gap: 14px; }
  .arch-bottom .arch-node { padding: 14px 10px; }
  .wire-v::after, .fork-drops .wire-v::after { font-size: .58rem; }
}

/* ============ Safety ============ */
.safety-inner { display: grid; grid-template-columns: 300px 1fr; gap: 70px; align-items: center; }
@media (max-width: 920px) { .safety-inner { grid-template-columns: 1fr; } .estop { margin: 0 auto; } }
.estop { display: flex; align-items: center; justify-content: center; }
.estop-ring {
  width: 250px; height: 250px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2a3040, #161b25 60%, #0d1016);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 30px 80px rgba(0,0,0,.6), inset 0 2px 6px rgba(255,255,255,.06);
}
.estop-btn {
  width: 170px; height: 170px; border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #ff7a7a, #e03131 55%, #8f1212);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.7rem; letter-spacing: .12em; color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,.5);
  box-shadow: 0 14px 36px rgba(224,49,49,.45), inset 0 3px 8px rgba(255,255,255,.35), inset 0 -10px 20px rgba(0,0,0,.4);
  animation: estop-pulse 2.6s ease-in-out infinite;
  cursor: default;
}
@keyframes estop-pulse {
  0%, 100% { box-shadow: 0 14px 36px rgba(224,49,49,.4), inset 0 3px 8px rgba(255,255,255,.35), inset 0 -10px 20px rgba(0,0,0,.4); }
  50%      { box-shadow: 0 14px 56px rgba(224,49,49,.7), inset 0 3px 8px rgba(255,255,255,.35), inset 0 -10px 20px rgba(0,0,0,.4); }
}
.safety-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
@media (max-width: 640px) { .safety-grid { grid-template-columns: 1fr; } }
.safety-item {
  background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--red);
  border-radius: 10px; padding: 16px 18px; font-size: .9rem; color: var(--text-dim);
}
.safety-item b { color: var(--text); display: block; margin-bottom: 4px; font-family: var(--font-head); font-weight: 600; }
.safety-note { margin-top: 26px; color: var(--text-dim); font-style: italic; }
.safety-note strong { color: var(--red); font-style: normal; }

/* ============ CTA band & footer ============ */
.cta-band {
  position: relative; overflow: hidden;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 80% at 50% 110%, rgba(212,168,67,.16), transparent 70%),
    var(--bg-alt);
  padding: 110px 24px;
  text-align: center;
}
.cta-glow {
  position: absolute; left: 50%; top: 50%; width: 640px; height: 640px;
  transform: translate(-50%, -50%);
  filter: blur(70px) saturate(1.5) brightness(1.15);
  opacity: .3; pointer-events: none; user-select: none;
}
.cta-inner { position: relative; }
.cta-inner h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.cta-icon { width: 84px; height: 84px; border-radius: 20px; margin-bottom: 26px; box-shadow: 0 18px 50px rgba(0,0,0,.6); }
.cta-inner p { color: var(--text-dim); margin: 12px 0 6px; }
.beta-note { margin-top: 34px; font-family: var(--font-mono); font-size: .74rem; color: var(--steel-lo); letter-spacing: .03em; }
footer { border-top: 1px solid var(--line); padding: 28px 24px; }
.footer-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: .82rem; color: var(--steel-lo);
}
.footer-dim { font-family: var(--font-mono); font-size: .74rem; }

/* ============ Subpages: downloads & products ============ */
.page-head {
  padding: 150px 24px 30px; text-align: center;
  background: radial-gradient(ellipse 70% 90% at 50% -20%, rgba(212,168,67,.1), transparent 70%);
}
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.page-head .section-sub { margin: 18px auto 0; }
.nav-links a.active { color: var(--brass-hi); }

.dl-grid {
  max-width: 1080px; margin: 40px auto 0; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
}
@media (max-width: 820px) { .dl-grid { grid-template-columns: 1fr; } }
.dl-card {
  background: linear-gradient(165deg, var(--panel-2), var(--panel) 60%);
  border: 1px solid var(--line); border-radius: 16px; padding: 26px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .25s, border-color .25s;
}
.dl-card:hover { transform: translateY(-4px); border-color: rgba(212,168,67,.4); }
.dl-card.dl-primary { border-color: rgba(212,168,67,.45); box-shadow: 0 0 50px rgba(212,168,67,.08); }
.dl-head { display: flex; align-items: center; gap: 14px; }
.dl-head img { width: 52px; height: 52px; border-radius: 12px; }
.dl-icon {
  width: 52px; height: 52px; border-radius: 12px; flex: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--brass-hi); background: rgba(212,168,67,.1); border: 1px solid rgba(212,168,67,.28);
}
.dl-icon svg { width: 28px; height: 28px; }
.dl-card h3 { margin: 0; }
.dl-meta { font-family: var(--font-mono); font-size: .7rem; color: var(--steel-lo); letter-spacing: .04em; }
.dl-card p { color: var(--text-dim); font-size: .9rem; flex: 1; }
.dl-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn-disabled {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .9rem;
  letter-spacing: .05em; padding: 12px 24px; border-radius: 10px;
  color: var(--steel-lo); border: 1px dashed var(--line); cursor: not-allowed;
  background: rgba(18,22,30,.5);
}
.badge-soon {
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .14em;
  color: var(--brass-hi); border: 1px dashed rgba(212,168,67,.5); border-radius: 100px;
  padding: 4px 12px; background: rgba(212,168,67,.07); white-space: nowrap;
}
.badge-dev {
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .14em;
  color: var(--teal); border: 1px solid rgba(45,212,191,.4); border-radius: 100px;
  padding: 4px 12px; background: rgba(45,212,191,.06); white-space: nowrap;
}

.prod-grid {
  max-width: 1180px; margin: 40px auto 0; padding: 0 24px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 1020px) { .prod-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .prod-grid { grid-template-columns: 1fr; } }
.prod-card {
  background: linear-gradient(165deg, var(--panel-2), var(--panel) 60%);
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.prod-card:hover { transform: translateY(-5px); border-color: rgba(212,168,67,.4); box-shadow: 0 16px 40px rgba(0,0,0,.45); }
.prod-thumb {
  aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse 70% 90% at 50% 110%, rgba(212,168,67,.14), transparent 70%),
    linear-gradient(165deg, #161b25, #0d1016);
  border-bottom: 1px solid var(--line);
  color: var(--brass-hi);
}
.prod-thumb svg { width: 64px; height: 64px; }
.prod-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.prod-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.prod-card h3 { margin: 0; font-size: 1.08rem; }
.prod-card p { color: var(--text-dim); font-size: .88rem; flex: 1; }
.prod-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.prod-price { font-family: var(--font-head); font-weight: 700; color: var(--brass-hi); }
.prod-link {
  font-family: var(--font-head); font-weight: 600; font-size: .85rem; letter-spacing: .04em;
  color: var(--teal); text-decoration: none;
}
.prod-link:hover { color: var(--brass-hi); }
/* Email signup form */
.sub-form {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  max-width: 520px; margin: 28px auto 0; padding: 0 24px;
}
.sub-input {
  flex: 1; min-width: 220px;
  background: rgba(11,14,19,.85); border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 16px; color: var(--text);
  font-family: var(--font-body); font-size: .95rem; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.sub-input:focus { border-color: rgba(212,168,67,.6); box-shadow: 0 0 0 3px rgba(212,168,67,.12); }
.sub-input::placeholder { color: var(--steel-lo); }
.sub-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sub-msg {
  width: 100%; text-align: center; min-height: 1.3em;
  font-family: var(--font-mono); font-size: .74rem; color: var(--steel-md);
}
.sub-msg.ok { color: #3ddc84; }
.sub-msg.err { color: var(--red); }

.page-note {
  max-width: 760px; margin: 56px auto 0; padding: 0 24px; text-align: center;
  font-family: var(--font-mono); font-size: .74rem; color: var(--steel-lo); line-height: 1.8;
}
.page-bottom-pad { padding-bottom: 110px; }

/* ============ Reveal animations ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .12s; }
.reveal.d2 { transition-delay: .24s; }
.reveal.d3 { transition-delay: .36s; }
.reveal.d4 { transition-delay: .48s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .metal-text { animation: none; }
  .estop-btn { animation: none; }
  .wire i { animation: none; display: none; }
  .hero-icon, .hero-icon-wrap::after { animation: none; }
}
