/* BEGIN: style.css */
* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  color: rgba(245, 245, 245, 0.92);
  background: #050608;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  overflow-x: hidden;
}

/* --- Loader Curtain --- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at center, rgba(30,35,55,0.25) 0%, rgba(0,0,0,0.92) 70%, rgba(0,0,0,0.98) 100%);
  backdrop-filter: blur(10px);
}
.loader-card {
  width: min(520px, 92vw);
  padding: 20px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(10, 12, 16, 0.35);
  box-shadow: 0 20px 80px rgba(0,0,0,0.55);
}
.loader-title {
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 18px;
  margin-bottom: 6px;
}
.loader-sub {
  opacity: 0.75;
  font-size: 13px;
  margin-bottom: 14px;
}
.loader-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  overflow: hidden;
}
.loader-bar-fill {
  height: 100%;
  width: 40%;
  border-radius: 999px;
  background: rgba(200, 215, 255, 0.75);
  filter: blur(0.0px);
  animation: loaderPulse 1.1s ease-in-out infinite;
}
@keyframes loaderPulse {
  0%   { transform: translateX(-40%); opacity: 0.55; }
  50%  { transform: translateX(70%);  opacity: 0.95; }
  100% { transform: translateX(-40%); opacity: 0.55; }
}

/* Loader hides when we remove is-loading via JS */
body:not(.is-loading) .loader { display: none; }

/* --- WebGL stage --- */
#webgl-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
}
#webgl {
  width: 100%;
  height: 100%;
  display: block;
}
.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.55) 70%, rgba(0,0,0,0.85) 100%);
}
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.13;
  mix-blend-mode: overlay;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

/* --- Fallback Poster --- */
.fallback {
  position: fixed;
  inset: 0;
  z-index: 998;
  display: grid;
  place-items: center;
  padding: 90px 18px 40px;
  background: radial-gradient(ellipse at 30% 20%, rgba(140,170,255,0.20) 0%, rgba(0,0,0,0.92) 55%, rgba(0,0,0,0.98) 100%);
}
.fallback-inner {
  width: min(720px, 94vw);
  position: relative;
  z-index: 2;
}
.fallback-badge {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  font-size: 12px;
  opacity: 0.9;
  margin-bottom: 12px;
}
.fallback-title {
  margin: 0 0 8px;
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -0.02em;
}
.fallback-text {
  margin: 0 0 10px;
  opacity: 0.80;
  max-width: 62ch;
}
.fallback-hint {
  margin: 0;
  opacity: 0.65;
  max-width: 70ch;
  font-size: 13px;
}
.fallback-orb {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(520px, 86vw);
  height: min(520px, 86vw);
  border-radius: 50%;
  filter: blur(0px);
  background:
    radial-gradient(circle at 40% 35%, rgba(200,220,255,0.55) 0%, rgba(140,170,255,0.22) 25%, rgba(30,40,70,0.12) 55%, rgba(0,0,0,0) 70%),
    radial-gradient(circle at 60% 65%, rgba(160,200,255,0.20) 0%, rgba(0,0,0,0) 60%);
  box-shadow:
    0 0 120px rgba(150, 190, 255, 0.18),
    inset 0 0 80px rgba(190, 210, 255, 0.10);
  opacity: 0.65;
}
/* Safety: fallback should never block interaction unless explicitly shown */
.fallback[hidden] { display: none !important; }

/* --- Top bar --- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: 64px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 50;
  pointer-events: none;
}
.brand { display: flex; flex-direction: column; gap: 2px; pointer-events: auto; }
.brand-mark { font-weight: 800; letter-spacing: 0.06em; opacity: 0.9; }
.brand-sub { font-size: 12px; opacity: 0.65; letter-spacing: 0.04em; }

.topbar-actions { display: flex; gap: 10px; pointer-events: auto; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(10, 12, 16, 0.35);
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-size: 12px;
  cursor: pointer;
  backdrop-filter: blur(10px);
}
.chip:hover { border-color: rgba(255,255,255,0.22); }

/* --- Content panels --- */
.main { position: relative; z-index: 10; }
.panel {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 120px 18px 80px;
}
.panel-hero { padding-top: 140px; }
.panel-end  { padding-bottom: 120px; }

.copy {
  width: min(720px, 92vw);
  margin-left: clamp(16px, 6vw, 72px);
}

.kicker {
  margin: 0;
  font-size: 14px;
  opacity: 0.75;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.headline {
  margin: 8px 0 12px;
  font-size: clamp(44px, 6vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.lede {
  margin: 0;
  font-size: clamp(16px, 1.6vw, 19px);
  opacity: 0.82;
  max-width: 48ch;
}

.hint {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  opacity: 0.7;
  letter-spacing: 0.02em;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.8);
  box-shadow: 0 0 20px rgba(190, 210, 255, 0.55);
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 2.8vw, 40px);
  letter-spacing: -0.01em;
}
p { margin: 0 0 14px; opacity: 0.84; }

.bullets { margin: 16px 0 0; padding-left: 18px; opacity: 0.82; }
.bullets li { margin: 8px 0; }

.spec {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(10, 12, 16, 0.32);
  backdrop-filter: blur(10px);
  width: min(520px, 92vw);
}
.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.spec-row:last-child { border-bottom: none; }
.spec-k { opacity: 0.7; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.spec-v { opacity: 0.9; }

.big-quote {
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  opacity: 0.92;
}
.glow-word { text-shadow: 0 0 24px rgba(190,210,255,0.35); }

.note { opacity: 0.65; max-width: 60ch; }

.endline {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  opacity: 0.75;
  letter-spacing: 0.04em;
}
.sep { opacity: 0.5; }

.btn {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  width: fit-content;
}
.btn:hover { background: rgba(255,255,255,0.10); }

/* Responsive adjustments */
@media (max-width: 640px) {
  .topbar { height: 58px; padding: 0 12px; }
  .copy { margin-left: 12px; }
  .panel { padding-top: 110px; }
}
/* END: style.css */
