*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:            #05070F;
  --gold:          #C8AA6E;
  --gold-dim:      rgba(200, 170, 110, 0.18);
  --teal:          #0AC8B9;
  --teal-dim:      rgba(10, 200, 185, 0.12);
  --text:          #EDE9E0;
  --muted:         #6E6860;
  --font-display:  'Rajdhani', sans-serif;
  --font-body:     'Inter', sans-serif;
}

html { overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: clip;
}

/* ═══════════════════════════════
   LOADER
═══════════════════════════════ */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  z-index: 9000;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.45em;
  color: var(--gold);
}

#loader-bar {
  width: 220px;
  height: 1px;
  background: rgba(200, 170, 110, 0.2);
  position: relative;
  overflow: hidden;
}
#loader-bar-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: var(--gold);
  transition: width 0.12s linear;
}

#loader-percent {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ═══════════════════════════════
   HEADER
═══════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1.4rem 4vw;
  z-index: 200;
  mix-blend-mode: normal;
}

.site-header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  color: var(--muted);
}
.nav-logo span { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--text); }

.nav-links .nav-cta {
  color: var(--gold);
  border: 1px solid rgba(200, 170, 110, 0.35);
  padding: 0.45rem 1.1rem;
  transition: border-color 0.25s, background 0.25s;
}
.nav-links .nav-cta:hover {
  background: rgba(200, 170, 110, 0.08);
  border-color: var(--gold);
  color: var(--gold);
}

/* ═══════════════════════════════
   HERO
═══════════════════════════════ */
.hero-standalone {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0 8vw;
  background: var(--bg);
  overflow: hidden;
  z-index: 4;
}

/* Sweep scan line */
.hero-standalone::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(10, 200, 185, 0.6) 40%, rgba(200, 170, 110, 0.8) 50%, rgba(10, 200, 185, 0.6) 60%, transparent 100%);
  animation: hero-sweep 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 10;
}
@keyframes hero-sweep {
  0%   { top: -2px; opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 0.6; }
  100% { top: 100%; opacity: 0; }
}

/* Animated grain/noise */
.hero-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  animation: hero-grain 0.4s steps(2) infinite;
}
@keyframes hero-grain {
  0%   { background-position: 0 0; }
  25%  { background-position: -50px 30px; }
  50%  { background-position: 80px -40px; }
  75%  { background-position: -20px -60px; }
  100% { background-position: 40px 20px; }
}

/* Scanlines */
.hero-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.06) 3px,
    rgba(0, 0, 0, 0.06) 4px
  );
}

/* Breathing bg glow */
.hero-bg-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse 65% 65% at 50% 55%, rgba(10, 200, 185, 0.07) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 20% 30%, rgba(200, 170, 110, 0.045) 0%, transparent 60%),
    radial-gradient(ellipse 80% 50% at 80% 80%, rgba(10, 200, 185, 0.03) 0%, transparent 70%);
  animation: hero-breathe 6s ease-in-out infinite alternate;
}
@keyframes hero-breathe {
  0%   { opacity: 0.7; transform: scale(1); }
  100% { opacity: 1;   transform: scale(1.04); }
}

/* HUD corner brackets */
.hero-corner {
  position: absolute;
  width: 60px;
  height: 60px;
  pointer-events: none;
  z-index: 2;
}
.hero-corner-tl { top: 1.8rem;  left: 1.8rem; }
.hero-corner-br { bottom: 1.8rem; right: 1.8rem; }
.hero-corner-tr { top: 1.8rem;  right: 1.8rem; }
.hero-corner-bl { bottom: 1.8rem; left: 1.8rem; }

/* Hero content */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 70vw;
}

/* Open Beta badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid rgba(10, 200, 185, 0.28);
  padding: 0.38rem 0.9rem;
  margin-bottom: 1.8rem;
  background: rgba(10, 200, 185, 0.04);
  will-change: opacity, transform;
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
  animation: badge-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes badge-pulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

/* Main title */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(5rem, 13.5vw, 17rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0;
  will-change: opacity, transform;
}

/* Glitch effect — electric */
.hero-glitch {
  position: relative;
  display: inline-block;
  animation: glitch-base 3.2s 1.5s infinite;
}
@keyframes glitch-base {
  0%, 82%, 100% { text-shadow: none; transform: translateX(0) skewX(0deg); }
  83%  { text-shadow: 6px 0 #00F0FF, -6px 0 #FF2D78; transform: translateX(-3px) skewX(-1deg); }
  84%  { text-shadow: -5px 0 #00F0FF,  5px 0 #FF2D78; transform: translateX(4px)  skewX(1.5deg); }
  85%  { text-shadow: 3px 0 #00F0FF,  -3px 0 #FF2D78; transform: translateX(-2px) skewX(-0.5deg); }
  86%  { text-shadow: none; transform: translateX(0) skewX(0deg); }
  88%  { text-shadow: 8px 0 #00F0FF, -8px 0 #FF2D78; transform: translateX(5px) skewX(2deg); }
  89%  { text-shadow: 0 0 30px rgba(0, 240, 255, 0.9); transform: translateX(0); }
  90%  { text-shadow: none; transform: translateX(0) skewX(0deg); }
}

.hero-glitch::before,
.hero-glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
}
.hero-glitch::before {
  color: #00F0FF;
  animation: glitch-slice-a 3.2s 1.5s infinite;
}
.hero-glitch::after {
  color: #FF2D78;
  animation: glitch-slice-b 3.2s 1.65s infinite;
}
@keyframes glitch-slice-a {
  0%, 81%, 100% { opacity: 0; transform: translateX(0); clip-path: none; }
  82%  { opacity: 1; transform: translateX(7px);  clip-path: polygon(0 10%, 100% 10%, 100% 28%, 0 28%); }
  83%  { opacity: 1; transform: translateX(-6px); clip-path: polygon(0 50%, 100% 50%, 100% 65%, 0 65%); }
  84%  { opacity: 1; transform: translateX(9px);  clip-path: polygon(0 2%,  100% 2%,  100% 18%, 0 18%); }
  85%  { opacity: 0.8; transform: translateX(-4px); clip-path: polygon(0 75%, 100% 75%, 100% 88%, 0 88%); }
  86%  { opacity: 0; }
  88%  { opacity: 1; transform: translateX(10px); clip-path: polygon(0 35%, 100% 35%, 100% 50%, 0 50%); }
  89%  { opacity: 1; transform: translateX(-7px); clip-path: polygon(0 0%,  100% 0%,  100% 12%, 0 12%); }
  90%  { opacity: 0; }
}
@keyframes glitch-slice-b {
  0%, 82%, 100% { opacity: 0; transform: translateX(0); clip-path: none; }
  83%  { opacity: 0.9; transform: translateX(-8px); clip-path: polygon(0 40%, 100% 40%, 100% 58%, 0 58%); }
  84%  { opacity: 0.9; transform: translateX(6px);  clip-path: polygon(0 62%, 100% 62%, 100% 78%, 0 78%); }
  85%  { opacity: 0.7; transform: translateX(-5px); clip-path: polygon(0 20%, 100% 20%, 100% 35%, 0 35%); }
  86%  { opacity: 0; }
  89%  { opacity: 0.9; transform: translateX(8px);  clip-path: polygon(0 80%, 100% 80%, 100% 95%, 0 95%); }
  90%  { opacity: 0; }
}

/* Gold accent line */
.hero-accent-line {
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(200, 170, 110, 0.3) 70%, transparent 100%);
  margin: 1.6rem 0 2rem;
  transform-origin: left center;
  will-change: transform;
}

/* Subtitle */
.hero-sub {
  font-size: clamp(0.88rem, 1.15vw, 1.15rem);
  color: rgba(237, 233, 224, 0.55);
  font-weight: 300;
  line-height: 1.75;
  max-width: 40ch;
  will-change: opacity, transform;
}

.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.4rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 8vw;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-arrow {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(200, 170, 110, 0.8), transparent);
  animation: pulse 1.9s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.25; transform: scaleY(0.6); }
  55%       { opacity: 1;    transform: scaleY(1); }
}

/* ═══════════════════════════════
   CANVAS
═══════════════════════════════ */
.canvas-wrap {
  position: fixed;
  inset: 0;
  z-index: 1;
  clip-path: circle(0% at 50% 50%);
  will-change: clip-path;
  pointer-events: none;
}

canvas#canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* ═══════════════════════════════
   PERMANENT CANVAS DIM
═══════════════════════════════ */
#canvas-dim {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 15, 0.52);
  pointer-events: none;
  z-index: 2;
}

/* ═══════════════════════════════
   DARK OVERLAY
═══════════════════════════════ */
#dark-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  will-change: opacity;
}

/* ═══════════════════════════════
   MARQUEE
═══════════════════════════════ */
.marquee-wrap {
  position: fixed;
  bottom: 4vh;
  left: 0;
  width: 100%;
  overflow: hidden;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

.marquee-text {
  font-family: var(--font-display);
  font-size: 12vw;
  font-weight: 700;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(200, 170, 110, 0.12);
  letter-spacing: 0.06em;
  will-change: transform;
  display: inline-block;
}

/* ═══════════════════════════════
   SCROLL CONTAINER
═══════════════════════════════ */
#scroll-container {
  position: relative;
  height: 500vh;
  z-index: 5;
  pointer-events: none;
}

/* ═══════════════════════════════
   SCROLL SECTIONS
═══════════════════════════════ */
.scroll-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  padding: 3rem 0 10vh;
  will-change: opacity, transform;
  transform: translateY(100vh);
}
.scroll-section.is-visible {
  pointer-events: auto;
}

/* Side alignment zones — product occupies center canvas */
.align-left  { padding-left: 5vw;  padding-right: 58vw; }
.align-right { padding-left: 58vw; padding-right: 5vw; }

.section-inner { max-width: 36vw; }

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.2vw, 5rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 1.4rem;
}

.section-body {
  font-size: clamp(0.82rem, 0.95vw, 0.98rem);
  color: #887E72;
  line-height: 1.8;
  font-weight: 300;
}

/* Gold accent bar on headings */
.section-heading::before {
  content: '';
  display: block;
  width: 2rem;
  height: 2px;
  background: var(--gold);
  margin-bottom: 1rem;
  opacity: 0.7;
}

/* ═══════════════════════════════
   TEASER SECTION
═══════════════════════════════ */
.section-teaser {
  padding-left: 0;
  padding-right: 0;
  justify-content: center;
  align-items: center;
  padding-bottom: 0;
}

.section-cta {
  align-items: center;
  padding-bottom: 0;
}

.teaser-inner {
  text-align: center;
  max-width: 52vw;
  width: 100%;
}

.teaser-heading {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 11rem);
  font-weight: 700;
  line-height: 0.9;
  color: var(--text);
  margin-bottom: 2.5rem;
  text-shadow: 0 0 80px rgba(200, 170, 110, 0.18), 0 0 160px rgba(200, 170, 110, 0.08);
}

.teaser-divider {
  width: 48px;
  height: 1px;
  background: rgba(200, 170, 110, 0.35);
  margin: 0 auto 2.5rem;
}

.teaser-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.teaser-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  gap: 2rem;
  will-change: transform, opacity;
}
.teaser-item:first-child { border-top: 1px solid rgba(255, 255, 255, 0.05); }

.teaser-tagline {
  font-size: clamp(0.82rem, 0.95vw, 0.98rem);
  color: var(--muted);
  font-weight: 300;
  letter-spacing: 0.1em;
}

.future-badge {
  display: inline-block;
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid rgba(10, 200, 185, 0.28);
  padding: 0.28rem 0.65rem;
  margin-bottom: 1.2rem;
  opacity: 0.85;
}

.feature-bullets {
  list-style: none;
  margin-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.feature-bullets li {
  font-size: clamp(0.78rem, 0.88vw, 0.92rem);
  color: var(--muted);
  font-weight: 300;
  letter-spacing: 0.06em;
  padding-left: 1.1rem;
  position: relative;
}

.feature-bullets li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  opacity: 0.6;
}

.feat-key {
  color: var(--teal);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-right: 0.4em;
}


/* ═══════════════════════════════
   CTA SECTION
═══════════════════════════════ */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 2.5rem;
  padding: 0.95rem 2.2rem;
  background: var(--gold);
  color: #04060C;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  box-shadow: 0 0 0 rgba(200, 170, 110, 0);
  position: relative;
}
.cta-button:hover {
  background: #e8cc8e;
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(200, 170, 110, 0.35);
}
.cta-button:active {
  transform: translateY(0px);
  box-shadow: 0 2px 10px rgba(200, 170, 110, 0.2);
  background: #b8962e;
}
.cta-button:hover .cta-arrow {
  transform: translateX(6px);
}
.cta-arrow {
  display: inline-block;
  transition: transform 0.2s;
}

.section-note {
  display: block;
  margin-top: 1.4rem;
  font-size: 0.63rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ═══════════════════════════════
   MOBILE
═══════════════════════════════ */
@media (max-width: 768px) {
  .hero-heading { font-size: clamp(3rem, 13vw, 4.5rem); }
  .hero-content { max-width: 90vw; }

  .align-left, .align-right {
    padding-left: 6vw;
    padding-right: 6vw;
    justify-content: flex-start;
  }
  .section-inner { max-width: 100%; }

  .section-stats { padding: 0 6vw; }
  .stats-grid { flex-direction: column; gap: 2.5rem; align-items: flex-start; }

  .marquee-text { font-size: 18vw; }
  .nav-links a:not(.nav-cta) { display: none; }

  .scroll-section { min-height: auto; padding: 2rem 0; }

  /* Extra scroll room so spaced-out sections all remain reachable */
  #scroll-container { height: 700vh; }
}
