/* ============================================
   NEONARC v2 — synthwave / glassmorphism
   Built on the supplied DESIGN.md tokens
   ============================================ */

:root {
  /* surfaces */
  --bg: #111125;
  --surface: #1a1a2e;
  --surface-c: #1e1e32;
  --surface-h: #28283d;
  --surface-hi: #333348;
  --surface-lowest: #0c0c1f;

  /* text */
  --on-surface: #e2e0fc;
  --on-surface-var: #b9cacb;
  --outline: #849495;

  /* brand */
  --cyan: #00f2ff;
  --cyan-dim: #00dbe7;
  --cyan-soft: #74f5ff;
  --magenta: #ff24e4;
  --magenta-soft: #fface8;
  --lime: #a3f100;
  --lime-soft: #ebffc7;

  /* type */
  --f-display: 'Sora', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { background: var(--bg); color: var(--on-surface); font-family: var(--f-body); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body { cursor: none; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; color: inherit; font: inherit; cursor: none; }
::selection { background: var(--cyan); color: var(--bg); }

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--cyan);
  transition: transform 0.08s ease;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  opacity: 0.7;
  transition: width 0.25s cubic-bezier(.2,.8,.2,1), height 0.25s cubic-bezier(.2,.8,.2,1), opacity 0.25s, border-color 0.25s;
}
.cursor-ring.hover {
  width: 64px; height: 64px;
  border-color: var(--magenta);
  opacity: 1;
}
@media (max-width: 900px), (hover: none) {
  body { cursor: auto; }
  button, a { cursor: pointer; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* ============================================
   BOOT SEQUENCE
   ============================================ */
.boot {
  position: fixed;
  inset: 0;
  background: var(--surface-lowest);
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  font-family: var(--f-mono);
  transition: opacity 0.6s, visibility 0.6s;
}
.boot.gone { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-logo {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 32px;
  letter-spacing: 0.08em;
  color: var(--cyan);
  text-shadow: 0 0 30px rgba(0, 242, 255, 0.6);
}
.boot-logo span { color: var(--magenta); text-shadow: 0 0 30px rgba(255, 36, 228, 0.6); }
.boot-status {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--on-surface-var);
  min-height: 16px;
}
.boot-bar {
  width: 280px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}
.boot-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  box-shadow: 0 0 12px var(--cyan);
  animation: bootFill 1.6s cubic-bezier(.45,.05,.55,.95) forwards;
}
@keyframes bootFill { to { width: 100%; } }
.boot-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 242, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 242, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  mask-image: radial-gradient(circle at center, black, transparent 70%);
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(17, 17, 37, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 242, 255, 0.12);
}
.nav-brand {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--cyan);
  text-shadow: 0 0 16px rgba(0, 242, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-brand-mark {
  width: 22px; height: 22px;
  position: relative;
}
.nav-brand-mark svg { width: 100%; height: 100%; }
.nav-links {
  display: flex;
  gap: 8px;
  position: relative;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 4px;
}
.nav-links a {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 999px;
  color: var(--on-surface-var);
  position: relative;
  z-index: 2;
  transition: color 0.3s;
}
.nav-links a.active { color: var(--bg); }
.nav-links .pill-indicator {
  position: absolute;
  top: 4px;
  height: calc(100% - 8px);
  background: var(--cyan);
  border-radius: 999px;
  box-shadow: 0 0 20px rgba(0, 242, 255, 0.6);
  transition: transform 0.4s cubic-bezier(.2,.9,.2,1), width 0.4s cubic-bezier(.2,.9,.2,1);
  z-index: 1;
}
@media (max-width: 800px) {
  .nav-links { display: none; }
  .nav { padding: 16px 16px; }
}

/* ============================================
   HERO — SYNTHWAVE FLOOR
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 120px 32px 80px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255, 36, 228, 0.18), transparent 50%),
    radial-gradient(ellipse at 50% 90%, rgba(0, 242, 255, 0.15), transparent 50%);
  pointer-events: none;
}
.hero-stars {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.hero-sun {
  position: absolute;
  left: 50%;
  top: 38%;
  transform: translate(-50%, -50%);
  width: 460px; height: 460px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ff6ad5 0%, #ff24e4 30%, #c026d3 70%, #4a1e6e 100%);
  box-shadow:
    0 0 100px rgba(255, 36, 228, 0.5),
    0 0 200px rgba(255, 36, 228, 0.3),
    inset 0 -30px 80px rgba(0, 0, 0, 0.3);
  z-index: 0;
  opacity: 0.85;
}
.hero-sun::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent 0px,
    transparent 30px,
    rgba(17, 17, 37, 0.9) 30px,
    rgba(17, 17, 37, 0.9) 36px
  );
  border-radius: 50%;
  mask-image: linear-gradient(180deg, transparent 50%, black 60%, black 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 50%, black 60%, black 100%);
}
.hero-grid {
  position: absolute;
  bottom: -10%;
  left: -50%;
  right: -50%;
  height: 70%;
  background-image:
    linear-gradient(to right, rgba(0, 242, 255, 0.5) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 242, 255, 0.5) 1px, transparent 1px);
  background-size: 80px 60px;
  transform: perspective(600px) rotateX(60deg);
  transform-origin: bottom;
  mask-image: linear-gradient(to top, black 20%, transparent 90%);
  -webkit-mask-image: linear-gradient(to top, black 20%, transparent 90%);
  animation: gridScroll 4s linear infinite;
}
@keyframes gridScroll {
  to { background-position: 0 60px; }
}
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1100px;
}
.hero-eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: "";
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan));
}
.hero-eyebrow::after { background: linear-gradient(90deg, var(--cyan), transparent); }
.hero-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(48px, 9vw, 124px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  background: linear-gradient(180deg, #ffffff 30%, var(--cyan) 60%, var(--magenta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 40px rgba(0, 242, 255, 0.3));
}
.hero-title .scramble-word {
  display: inline-block;
}
.hero-sub {
  font-size: 18px;
  line-height: 1.7;
  color: var(--on-surface-var);
  max-width: 600px;
  margin: 0 auto 40px;
}
.hero-cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 18px 32px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.25s cubic-bezier(.2,.9,.2,1), box-shadow 0.25s, background 0.25s, color 0.25s;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--cyan);
  color: var(--bg);
  box-shadow: 0 0 30px rgba(0, 242, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-primary:hover { box-shadow: 0 0 60px rgba(0, 242, 255, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn-ghost {
  background: rgba(255, 36, 228, 0.08);
  color: var(--magenta-soft);
  border: 1px solid rgba(255, 36, 228, 0.4);
}
.btn-ghost:hover { background: rgba(255, 36, 228, 0.15); box-shadow: 0 0 30px rgba(255, 36, 228, 0.3); border-color: var(--magenta); }
.btn .arrow {
  display: inline-block;
  transition: transform 0.3s;
}
.btn:hover .arrow { transform: translateX(4px); }

.hero-readout {
  position: absolute;
  bottom: 32px;
  left: 32px;
  right: 32px;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-surface-var);
}
.hero-readout div { display: flex; gap: 10px; align-items: center; }
.hero-readout .blink {
  width: 6px; height: 6px;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--lime);
  animation: blink 1.4s infinite;
}
@keyframes blink {
  0%, 60%, 100% { opacity: 1; }
  61%, 99% { opacity: 0.2; }
}
@media (max-width: 600px) {
  .hero-readout { font-size: 9px; flex-direction: column; gap: 8px; align-items: flex-start; }
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(0, 242, 255, 0.15);
  border-bottom: 1px solid rgba(0, 242, 255, 0.15);
  padding: 22px 0;
  background: linear-gradient(90deg, rgba(0, 242, 255, 0.03), rgba(255, 36, 228, 0.03), rgba(0, 242, 255, 0.03));
}
.marquee-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: marquee 35s linear infinite;
  width: max-content;
}
.marquee-item {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 60px;
  color: var(--on-surface);
}
.marquee-item .star {
  width: 18px; height: 18px;
  color: var(--cyan);
  flex-shrink: 0;
}
.marquee-item.alt { color: transparent; -webkit-text-stroke: 1px var(--magenta); }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============================================
   SECTION SHELL
   ============================================ */
.section {
  padding: 140px 32px;
  position: relative;
}
.container { max-width: 1280px; margin: 0 auto; }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 242, 255, 0.08);
  border: 1px solid rgba(0, 242, 255, 0.3);
  margin-bottom: 24px;
}
.section-tag.magenta { color: var(--magenta); background: rgba(255, 36, 228, 0.08); border-color: rgba(255, 36, 228, 0.3); }
.section-tag.lime { color: var(--lime); background: rgba(163, 241, 0, 0.08); border-color: rgba(163, 241, 0, 0.3); }
.section-tag .dot {
  width: 6px; height: 6px;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}
.section-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.section-title .accent-c { color: var(--cyan); }
.section-title .accent-m { color: var(--magenta); }
.section-title .accent-l { color: var(--lime); }
.section-sub {
  font-size: 18px;
  line-height: 1.7;
  color: var(--on-surface-var);
  max-width: 60ch;
}

/* glass panel */
.glass {
  background: rgba(26, 26, 46, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  position: relative;
}
.glass.laser-cyan { border-top-color: rgba(0, 242, 255, 0.5); }
.glass.laser-cyan::before {
  content: "";
  position: absolute;
  top: -1px; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  filter: blur(1px);
}
.glass.laser-magenta::before {
  content: "";
  position: absolute;
  top: -1px; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--magenta), transparent);
  filter: blur(1px);
}
.glass.laser-lime::before {
  content: "";
  position: absolute;
  top: -1px; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  filter: blur(1px);
}

/* reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(.2,.8,.2,1), transform 0.9s cubic-bezier(.2,.8,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
