/* ============================================================
   AnomalyDivision — landing
   palette: jet bg, electric cyan + magenta + violet
   type: Space Grotesk (display) / JetBrains Mono (mono)
   ============================================================ */

:root {
  --bg:          #050509;
  --bg-2:        #08080f;
  --panel:       #0c0c14;
  --panel-2:     #11111c;
  --line:        #1a1a28;
  --line-strong: #2a2a40;
  --text:        #ecedf5;
  --dim:         #6a6a82;
  --dim-2:       #3a3a4f;
  --cyan:        #00f0ff;
  --cyan-2:      #00b8d4;
  --magenta:     #ff2d95;
  --violet:      #9b5cff;
  --green:       #4cff9b;
  --warn:        #ffd400;

  --display: "Space Grotesk", "Helvetica Neue", system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(20px, 4vw, 64px);
  --maxw: 1400px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  /* layered radial gradients — cosmic dust */
  background:
    radial-gradient(ellipse 80% 60% at 15% 0%, rgba(155, 92, 255, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(0, 240, 255, 0.10), transparent 60%),
    radial-gradient(ellipse 70% 40% at 50% 100%, rgba(255, 45, 149, 0.08), transparent 60%),
    var(--bg);
  min-height: 100vh;
  cursor: crosshair;
}

::selection { background: var(--magenta); color: #000; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

b, strong { font-weight: 700; }

/* ============================================================
   AMBIENT LAYERS
   ============================================================ */

.grid-bg {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(120, 130, 200, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 130, 200, 0.06) 1px, transparent 1px);
  background-size: 56px 56px, 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 100%);
  pointer-events: none;
  z-index: 0;
  animation: grid-drift 60s linear infinite;
}

@keyframes grid-drift {
  to { background-position: 56px 56px, 56px 56px; }
}

.vignette {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse 100% 70% at 50% 50%, transparent 50%, rgba(0,0,0,0.7) 100%);
}

.scanlines {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 60;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.012) 0,
    rgba(255,255,255,0.012) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
  opacity: 0.6;
}

.noise {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 61;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ============================================================
   CUSTOM RETICLE — additive, not replacing OS cursor
   ============================================================ */

.reticle {
  position: fixed;
  top: 0; left: 0;
  width: 28px; height: 28px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 62;
  mix-blend-mode: difference;
  opacity: 0.7;
  transition: opacity 0.3s, width 0.18s, height 0.18s;
}
.reticle span { position: absolute; background: #fff; }
.reticle .r-tl, .reticle .r-tr, .reticle .r-bl, .reticle .r-br {
  width: 6px; height: 6px;
  border: 1px solid #fff; background: transparent;
}
.reticle .r-tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.reticle .r-tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.reticle .r-bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.reticle .r-br { bottom: 0; right: 0; border-left: none; border-top: none; }
.reticle .r-x { left: 50%; top: 50%; width: 1px; height: 12px; transform: translate(-50%, -50%); }
.reticle .r-y { left: 50%; top: 50%; width: 12px; height: 1px; transform: translate(-50%, -50%); }
.reticle.lock { width: 44px; height: 44px; opacity: 1; }

/* ============================================================
   HUD CORNERS
   ============================================================ */

.hud {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 50;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--dim);
  text-transform: uppercase;
}
.hud > span {
  position: absolute;
  padding: 12px 20px;
}
.hud-tl { top: 0; left: 0; }
.hud-tr { top: 0; right: 0; }
.hud-bl { bottom: 0; left: 0; }
.hud-br { bottom: 0; right: 0; }

@media (max-width: 800px) {
  .hud { font-size: 10px; }
  .hud-tr { display: none; }
  .hud-br { display: none; }
}

.dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  vertical-align: middle;
  margin-right: 6px;
  position: relative;
  top: -1px;
}
.dot.live { animation: pulse-dot 1.6s infinite; }
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(76, 255, 155, 0.6); }
  50%      { opacity: 0.6; box-shadow: 0 0 0 6px rgba(76, 255, 155, 0); }
}

.dim { color: var(--dim); }
.mono { font-family: var(--mono); }

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: relative;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 28px var(--gutter) 0;
  max-width: var(--maxw);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-mark {
  width: 36px; height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(155, 92, 255, 0.5));
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), filter 0.3s;
}
.brand:hover .brand-mark {
  transform: rotate(-8deg) scale(1.05);
  filter: drop-shadow(0 0 18px rgba(0, 240, 255, 0.7));
}
.brand-word {
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.12em;
}
.brand-word .slash {
  color: var(--magenta);
  margin: 0 1px;
}

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--dim);
}
.nav-links a {
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  font-size: 11px;
  letter-spacing: 0.16em;
  border: 1px solid var(--line-strong);
  padding: 10px 16px;
  background: rgba(0, 240, 255, 0.04);
  transition: background 0.2s, border-color 0.2s;
}
.nav-cta:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--cyan);
}

@media (max-width: 800px) {
  .nav-links { display: none; }
  .nav { padding-top: 20px; gap: 16px; }
  .nav-cta { font-size: 10px; padding: 8px 12px; }
  .brand-word { font-size: 14px; }
}

/* ============================================================
   SECTIONS / common
   ============================================================ */

section {
  position: relative;
  z-index: 10;
  padding: clamp(60px, 10vw, 140px) var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}

.pre {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--magenta);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.section-head { margin-bottom: 64px; }
.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(48px, 8vw, 120px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  text-transform: uppercase;
}
.section-tag {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--dim);
  text-transform: uppercase;
  max-width: 540px;
  margin: 0;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  padding-top: 60px;
  padding-bottom: 80px;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--dim);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  text-transform: uppercase;
  margin-bottom: 36px;
}
.hero-meta .blink { color: var(--green); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: 0.2; } }

.hero-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(56px, 13vw, 200px);
  line-height: 0.84;
  letter-spacing: -0.04em;
  margin: 0 0 36px;
  text-transform: uppercase;
}
.hero-title .line {
  display: block;
  position: relative;
}
.hero-title .line.shift {
  margin-left: clamp(0px, 4vw, 60px);
}
.hero-title .period {
  color: var(--magenta);
  display: inline-block;
  animation: period-pulse 1.6s ease-in-out infinite;
}
@keyframes period-pulse {
  0%, 100% { transform: translateY(0); text-shadow: 0 0 0 var(--magenta); }
  50% { transform: translateY(-4px); text-shadow: 0 0 24px var(--magenta); }
}

/* glitch effect */
.glitch {
  position: relative;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  pointer-events: none;
}
.glitch::before {
  color: var(--cyan);
  transform: translate(2px, 0);
  mix-blend-mode: screen;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
  animation: glitch-1 5s infinite steps(1);
  opacity: 0.85;
}
.glitch::after {
  color: var(--magenta);
  transform: translate(-2px, 0);
  mix-blend-mode: screen;
  clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
  animation: glitch-2 7s infinite steps(1);
  opacity: 0.85;
}
@keyframes glitch-1 {
  0%, 92%, 100% { transform: translate(2px, 0); clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%); }
  93% { transform: translate(-6px, -2px); clip-path: polygon(0 10%, 100% 10%, 100% 32%, 0 32%); }
  95% { transform: translate(8px, 1px); clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%); }
  97% { transform: translate(-3px, 0); clip-path: polygon(0 30%, 100% 30%, 100% 50%, 0 50%); }
}
@keyframes glitch-2 {
  0%, 88%, 100% { transform: translate(-2px, 0); clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%); }
  89% { transform: translate(7px, 2px); clip-path: polygon(0 70%, 100% 70%, 100% 90%, 0 90%); }
  91% { transform: translate(-9px, -1px); clip-path: polygon(0 20%, 100% 20%, 100% 40%, 0 40%); }
  93% { transform: translate(4px, 0); clip-path: polygon(0 85%, 100% 85%, 100% 100%, 0 100%); }
}

.hero-sub {
  font-family: var(--mono);
  font-size: clamp(13px, 1.2vw, 16px);
  line-height: 1.55;
  color: var(--text);
  max-width: 540px;
  margin: 0 0 40px;
  letter-spacing: 0.01em;
}

/* CTA buttons */
.cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--text);
  position: relative;
  overflow: hidden;
  transition: transform 0.18s cubic-bezier(.2,.8,.2,1), border-color 0.2s;
}
.btn:hover { transform: translate(-2px, -2px); }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
}
.btn:hover::before { transform: translateX(110%); }
.btn .arr { transition: transform 0.2s; }
.btn:hover .arr { transform: translateX(4px); }

.btn.primary {
  background: linear-gradient(135deg, var(--magenta), var(--violet) 60%, var(--cyan));
  color: #000;
  border-color: transparent;
  box-shadow:
    0 0 0 1px rgba(255, 45, 149, 0.5),
    0 8px 32px -8px rgba(155, 92, 255, 0.6),
    inset 0 0 0 1px rgba(255,255,255,0.2);
  font-weight: 700;
}
.btn.primary:hover {
  box-shadow:
    0 0 0 1px var(--cyan),
    0 14px 40px -8px rgba(0, 240, 255, 0.7),
    inset 0 0 0 1px rgba(255,255,255,0.3);
}
.btn.ghost {
  background: transparent;
}
.btn.ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}
.btn.lg { padding: 18px 28px; font-size: 13px; }

/* Embedded terminal */
.terminal {
  border: 1px solid var(--line);
  background: var(--panel);
  font-family: var(--mono);
  font-size: 12px;
  max-width: 720px;
  box-shadow:
    0 0 0 1px rgba(0, 240, 255, 0.05),
    0 30px 60px -20px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
  position: relative;
}
.terminal::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, transparent, rgba(0,240,255,0.3), transparent 50%, rgba(255,45,149,0.3), transparent);
  z-index: -1;
  opacity: 0.5;
  filter: blur(4px);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--dim);
}
.term-dots { display: flex; gap: 6px; }
.term-dots i {
  width: 10px; height: 10px; border-radius: 50%;
  background: #2a2a40;
  border: 1px solid #3a3a50;
}
.term-dots i:nth-child(1) { background: #ff5f57; }
.term-dots i:nth-child(2) { background: #ffbd2e; }
.term-dots i:nth-child(3) { background: #28c840; }
.term-title { flex: 1; }
.term-stat {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--green);
}
.term-body {
  padding: 16px 18px;
  min-height: 200px;
  line-height: 1.7;
  color: var(--text);
}
.term-body .prompt { color: var(--cyan); }
.term-body .ok { color: var(--green); }
.term-body .warn { color: var(--warn); }
.term-body .err { color: var(--magenta); }
.term-body .dim { color: var(--dim); }
.term-cursor {
  display: inline-block;
  width: 8px; height: 14px;
  background: var(--cyan);
  vertical-align: text-bottom;
  animation: term-blink 1s steps(1) infinite;
  box-shadow: 0 0 8px var(--cyan);
}
@keyframes term-blink { 50% { opacity: 0; } }

/* offset decorative tags */
.hero-tag {
  position: absolute;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--dim);
  text-transform: uppercase;
}
.tag-1 { top: 100px; right: var(--gutter); writing-mode: vertical-rl; transform: rotate(180deg); }
.tag-2 { top: 240px; right: var(--gutter); color: var(--cyan); }
.tag-3 { bottom: 30px; right: var(--gutter); animation: blink 2s infinite; }

@media (max-width: 800px) {
  .hero-tag { display: none; }
}

/* ============================================================
   MARQUEE
   ============================================================ */

.marquee {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-2);
  padding: 18px 0;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}
.marquee .track {
  display: inline-flex;
  gap: 28px;
  white-space: nowrap;
  animation: marquee 60s linear infinite;
}
.marquee .sep { color: var(--magenta); }
.marquee em { color: var(--cyan); font-style: normal; font-weight: 700; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   PRODUCT — telemetry-01
   ============================================================ */

.product .section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 28px;
  align-items: end;
}
.product .pre { grid-column: 1 / -1; }
.product .section-title {
  grid-column: 1; line-height: 0.86;
}
.product .section-tag {
  grid-column: 2;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--line-strong);
}

@media (max-width: 800px) {
  .product .section-head { grid-template-columns: 1fr; }
  .product .section-tag { padding-bottom: 0; border: none; }
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.pcard {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.pcard::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(0,240,255,0.04) 50%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.pcard:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.pcard:hover::before { opacity: 1; }

.pcard-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--dim);
  text-transform: uppercase;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.pcard-live { grid-column: span 7; min-height: 280px; }
.pcard-tall { grid-column: span 5; grid-row: span 2; }
.pcard-specs { grid-column: span 7; }
.pcard-render { grid-column: span 5; min-height: 380px; }

@media (max-width: 1100px) {
  .pcard-live, .pcard-specs, .pcard-render { grid-column: span 12; }
  .pcard-tall { grid-column: span 12; grid-row: auto; }
}

/* live ticker card */
.pcard-price {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
  margin: 6px 0 14px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 32px rgba(0, 240, 255, 0.15);
}
.pcard-spark { margin: 0 -22px 14px; }
.pcard-spark canvas { width: 100%; height: 80px; display: block; }
.pcard-foot {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.pcard-foot .up { color: var(--green); }
.pcard-foot .down { color: var(--magenta); }

/* features */
.features {
  list-style: none;
  margin: 0; padding: 0;
}
.features li {
  display: flex;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.features li:last-child { border-bottom: none; }
.features .num {
  color: var(--magenta);
  font-size: 11px;
  letter-spacing: 0.16em;
  flex-shrink: 0;
  padding-top: 2px;
}
.features b {
  display: block;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.features i {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* specs */
.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0;
}
.specs > div {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.specs dt {
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
}
.specs dd {
  margin: 0;
  text-align: right;
}

@media (max-width: 600px) {
  .specs { grid-template-columns: 1fr; }
}

/* render card with mock device */
.pcard-render { display: flex; flex-direction: column; }
.render-frame {
  flex: 1;
  position: relative;
  margin: -22px -22px 14px;
  padding: 36px;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(155, 92, 255, 0.18), transparent 60%),
    repeating-linear-gradient(
      45deg,
      rgba(120, 130, 200, 0.03) 0,
      rgba(120, 130, 200, 0.03) 1px,
      transparent 1px,
      transparent 12px
    );
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  overflow: hidden;
}
.render-label {
  position: absolute;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--dim);
  text-transform: uppercase;
}
.render-label.tl { top: 12px; left: 14px; }
.render-label.tr { top: 12px; right: 14px; color: var(--cyan); font-size: 14px; }
.render-label.bl { bottom: 12px; left: 14px; }
.render-label.br { bottom: 12px; right: 14px; color: var(--magenta); }
.render-cross {
  position: absolute;
  left: 50%; top: 50%;
  width: 40px; height: 40px;
  border: 1px dashed rgba(0, 240, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.render-cross::before, .render-cross::after {
  content: "";
  position: absolute;
  background: rgba(0, 240, 255, 0.3);
}
.render-cross::before { left: 50%; top: -10px; bottom: -10px; width: 1px; }
.render-cross::after { top: 50%; left: -10px; right: -10px; height: 1px; }

.render-stack {
  position: relative;
  width: 220px;
  height: 220px;
  transform-style: preserve-3d;
  transform: rotateX(54deg) rotateZ(-32deg);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: rotateX(54deg) rotateZ(-32deg) translateZ(0); }
  50% { transform: rotateX(54deg) rotateZ(-32deg) translateZ(8px); }
}
.layer {
  position: absolute;
  inset: 0;
  border-radius: 6px;
}
.layer.l1 { /* base */
  background: linear-gradient(135deg, #1a1a28, #0a0a14);
  border: 1px solid #2a2a40;
  transform: translateZ(-30px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}
.layer.l2 { /* pcb */
  background:
    linear-gradient(135deg, #0a3a2a, #0a2a1a);
  background-image:
    radial-gradient(circle at 20% 30%, rgba(76,255,155,0.4) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 60%, rgba(0,240,255,0.4) 0 1px, transparent 2px),
    radial-gradient(circle at 40% 80%, rgba(255,45,149,0.4) 0 1px, transparent 2px),
    repeating-linear-gradient(0deg, rgba(76,255,155,0.08) 0 1px, transparent 1px 14px),
    repeating-linear-gradient(90deg, rgba(76,255,155,0.08) 0 1px, transparent 1px 14px),
    linear-gradient(135deg, #0c3a26, #08221a);
  border: 1px solid #1a4a3a;
  transform: translateZ(-15px);
}
.layer.l3 { /* mid frame */
  background: linear-gradient(135deg, #16161e, #0a0a12);
  border: 1px solid #2a2a3a;
  transform: translateZ(-2px);
}
.layer.screen {
  background: linear-gradient(180deg, #050505, #0a0a14);
  border: 1px solid #2a2a40;
  padding: 18px;
  transform: translateZ(2px);
  box-shadow: inset 0 0 30px rgba(0, 240, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: var(--mono);
}
.layer.reflect {
  background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent 40%);
  pointer-events: none;
  transform: translateZ(3px);
  mix-blend-mode: screen;
}
.mini-ticker {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mini-pair {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--dim);
  text-transform: uppercase;
}
.mini-price {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}
.mini-delta {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--green);
}
.mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 38px;
}
.mini-bars i {
  flex: 1;
  background: linear-gradient(180deg, var(--cyan), var(--violet));
  display: block;
  height: 30%;
  animation: bar-pulse 2s infinite ease-in-out;
}
.mini-bars i:nth-child(odd) { background: linear-gradient(180deg, var(--magenta), var(--violet)); }
@keyframes bar-pulse {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.6); transform-origin: bottom; }
}
.mini-bars i:nth-child(2)  { animation-delay: 0.1s; }
.mini-bars i:nth-child(3)  { animation-delay: 0.2s; }
.mini-bars i:nth-child(4)  { animation-delay: 0.3s; }
.mini-bars i:nth-child(5)  { animation-delay: 0.4s; }
.mini-bars i:nth-child(6)  { animation-delay: 0.5s; }
.mini-bars i:nth-child(7)  { animation-delay: 0.6s; }
.mini-bars i:nth-child(8)  { animation-delay: 0.7s; }
.mini-bars i:nth-child(9)  { animation-delay: 0.8s; }
.mini-bars i:nth-child(10) { animation-delay: 0.9s; }
.mini-bars i:nth-child(11) { animation-delay: 1.0s; }
.mini-bars i:nth-child(12) { animation-delay: 1.1s; }
.mini-bars i:nth-child(13) { animation-delay: 1.2s; }
.mini-bars i:nth-child(14) { animation-delay: 1.3s; }
.mini-bars i:nth-child(15) { animation-delay: 1.4s; }
.mini-bars i:nth-child(16) { animation-delay: 1.5s; }
.mini-bars i:nth-child(17) { animation-delay: 1.6s; }
.mini-bars i:nth-child(18) { animation-delay: 1.7s; }
.mini-bars i:nth-child(19) { animation-delay: 1.8s; }
.mini-bars i:nth-child(20) { animation-delay: 1.9s; }

.render-foot {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

/* reserve row */
.reserve-row {
  margin-top: 56px;
  padding: 28px 32px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.reserve-row::before {
  content: "/// 001 / RESERVE";
  position: absolute;
  margin-top: -44px;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--magenta);
}
.reserve-meta {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}
.reserve-meta b { color: var(--text); font-weight: 700; }

/* ============================================================
   MANIFESTO
   ============================================================ */

.manifesto { max-width: 1100px; }

.creed {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(32px, 5.6vw, 84px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 48px;
  text-transform: uppercase;
}
.creed p {
  margin: 0;
  display: flex;
  gap: 24px;
  align-items: baseline;
  position: relative;
}
.creed p:nth-child(2) { padding-left: clamp(0px, 5vw, 80px); }
.creed p:nth-child(3) { padding-left: clamp(0px, 10vw, 160px); }
.creed p:nth-child(4) { padding-left: clamp(0px, 5vw, 80px); }

.creed .kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--magenta);
  flex-shrink: 0;
  align-self: flex-start;
  padding-top: 14px;
}
.creed em {
  font-style: italic;
  color: var(--cyan);
  font-weight: 700;
}
.creed s {
  text-decoration-color: var(--magenta);
  text-decoration-thickness: 4px;
  color: var(--dim);
}
.creed u {
  text-decoration-color: var(--cyan);
  text-decoration-thickness: 4px;
  text-underline-offset: 8px;
}

.creed-foot {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.7;
  color: var(--dim);
  max-width: 720px;
  margin: 0;
}

@media (max-width: 800px) {
  .creed p { gap: 12px; flex-direction: column; padding-left: 0 !important; }
  .creed .kicker { padding-top: 0; }
}

/* ============================================================
   UPCOMING
   ============================================================ */

.upcoming-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 1100px) { .upcoming-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .upcoming-grid { grid-template-columns: 1fr; } }

.ucard {
  position: relative;
  padding: 24px 22px 28px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.ucard:hover { border-color: var(--line-strong); transform: translateY(-3px); }

.ucard-id {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--magenta);
  text-transform: uppercase;
}
.ucard h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  margin: 0;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.ucard p {
  font-size: 12px;
  line-height: 1.55;
  color: var(--text);
  margin: 0;
  flex: 1;
}
.ucard p.redacted-text {
  color: var(--dim-2);
  letter-spacing: 0.04em;
  font-family: var(--mono);
  font-size: 11px;
}
.ucard-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--dim);
  text-transform: uppercase;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  margin-top: auto;
}
.ucard.active {
  border-color: var(--cyan);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0, 240, 255, 0.08), transparent 60%),
    linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
}
.ucard.active .ucard-id { color: var(--cyan); }
.ucard.locked::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent 0,
    transparent 8px,
    rgba(255, 45, 149, 0.04) 8px,
    rgba(255, 45, 149, 0.04) 9px
  );
  pointer-events: none;
}
.ucard-stamp {
  position: absolute;
  top: 24px;
  right: -34px;
  transform: rotate(20deg);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--magenta);
  border: 2px solid var(--magenta);
  padding: 4px 38px;
  opacity: 0.7;
  text-transform: uppercase;
}

/* ============================================================
   OUTRO + FOOTER
   ============================================================ */

.outro {
  text-align: center;
  padding-top: 100px;
  padding-bottom: 100px;
}
.outro-line {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(48px, 12vw, 180px);
  letter-spacing: -0.04em;
  line-height: 0.92;
  text-transform: uppercase;
  margin-bottom: 48px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.2em;
}
.outro-line span {
  position: relative;
  display: inline-block;
}
.outro-line span:nth-child(1) { color: var(--text); }
.outro-line span:nth-child(2) {
  color: transparent;
  -webkit-text-stroke: 2px var(--text);
}
.outro-line span:nth-child(3) {
  background: linear-gradient(135deg, var(--magenta), var(--violet) 50%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.outro-cta { display: inline-flex; }

.foot {
  position: relative;
  z-index: 10;
  padding: 60px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  max-width: var(--maxw);
  margin: 0 auto;
  background: var(--bg-2);
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
@media (max-width: 800px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
.foot-grid > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
}
.foot-grid a:hover { color: var(--cyan); }
.foot-brand {
  flex-direction: row !important;
  align-items: center;
  gap: 16px !important;
}
.foot-brand .brand-mark { width: 48px; height: 48px; }
.foot-brand .brand-word { font-size: 14px; }
.foot-base {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px dashed var(--line);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ============================================================
   utility
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
