:root {
  --bg: #ffffff;
  --bg-dark: #000000;
  --text: #1d1d1f;
  --text-dark: #f5f5f7;
  --dim: #86868b;
  --accent: #0a84ff;
  --accent-soft: #64d2ff;
  --line: rgba(0,0,0,0.08);
  --line-dark: rgba(255,255,255,0.12);
  font-size: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* Progress bar */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  z-index: 1000;
  transition: width 0.1s linear;
}

/* Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(255,255,255,0.72);
  border-bottom: 1px solid var(--line);
  transition: background 0.4s ease, border-color 0.4s ease;
}
.nav.dark-mode {
  background: rgba(0,0,0,0.6);
  border-bottom-color: var(--line-dark);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}
.nav-logo {
  font-size: 1.1rem;
  color: var(--accent);
}
.nav.dark-mode .nav-logo,
.nav.dark-mode .nav-links a,
.nav.dark-mode .nav-cta { color: var(--text-dark); }
.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}
.nav-links a {
  color: var(--text);
  font-weight: 400;
  opacity: 0.8;
  transition: opacity 0.2s ease, color 0.4s ease;
}
.nav-links a:hover { opacity: 1; }
.nav-cta {
  border: 1px solid currentColor;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--text);
  transition: color 0.4s ease, background 0.2s ease, transform 0.2s ease;
}
.nav-cta:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-1px); }

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(ellipse at 50% 30%, #0d1117 0%, #000000 70%);
  color: var(--text-dark);
  overflow: hidden;
  padding: 0 20px;
}
.hero-orb {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(10,132,255,0.35) 0%, rgba(100,210,255,0.12) 35%, transparent 70%);
  filter: blur(40px);
  animation: pulse-orb 8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pulse-orb {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}
.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-soft);
  font-weight: 500;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.hero-title {
  font-size: clamp(3.5rem, 12vw, 8.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  position: relative;
  z-index: 1;
}
.hero-title span {
  background: linear-gradient(120deg, #64d2ff, #0a84ff 45%, #bf5af2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin-top: 24px;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  font-weight: 300;
  color: var(--dim);
  line-height: 1.4;
  position: relative;
  z-index: 1;
}
.hero-scroll {
  position: absolute;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  z-index: 1;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  overflow: hidden;
}
.scroll-line i {
  display: block;
  width: 100%;
  height: 40%;
  background: var(--accent-soft);
  animation: scroll-drop 1.8s ease-in-out infinite;
}
@keyframes scroll-drop {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(250%); }
}

/* Reveal on scroll — visible by default; JS opts into the hidden/animated state
   so the page never renders blank if script.js is slow, blocked, or fails. */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
html.js-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
}
html.js-ready .reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.hero .reveal.in { transition-delay: var(--d, 0s); }
.hero .eyebrow.reveal { --d: 0.1s; }
.hero-title.reveal { --d: 0.25s; }
.hero-sub.reveal { --d: 0.4s; }
.hero-scroll.reveal { --d: 0.6s; }

/* Statement */
.statement {
  padding: 200px 24px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.statement-text {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.statement-text .dim { color: var(--dim); font-weight: 400; display: inline-block; margin-top: 6px; }

/* Feature sections */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  padding: 140px 8vw;
  max-width: 1400px;
  margin: 0 auto;
}
.feature.dark {
  max-width: none;
  background: #000;
  color: var(--text-dark);
}
.feature-copy h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 24px;
}
.feature-body {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--dim);
  font-weight: 300;
  max-width: 46ch;
}
.feature-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}

@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 48px; padding: 100px 24px; text-align: center; }
  .feature-copy { order: 1; }
  .feature-visual { order: 0; }
  .feature-body { margin: 0 auto; }
}

/* Hologram visual */
.hologram {
  position: relative;
  width: 320px;
  height: 320px;
}
.hologram-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(100,210,255,0.4);
  animation: spin-ring linear infinite;
}
.r1 { animation-duration: 14s; inset: 40px; border-color: rgba(100,210,255,0.55); }
.r2 { animation-duration: 22s; inset: 10px; border-color: rgba(10,132,255,0.35); animation-direction: reverse; }
.r3 { animation-duration: 30s; inset: 0; border-color: rgba(191,90,242,0.3); }
@keyframes spin-ring {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.hologram-core {
  position: absolute;
  left: 50%; top: 50%;
  width: 90px; height: 90px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, #64d2ff 0%, #0a84ff 55%, transparent 75%);
  filter: blur(2px);
  animation: pulse-core 3s ease-in-out infinite;
}
@keyframes pulse-core {
  0%, 100% { transform: translate(-50%,-50%) scale(1); opacity: 0.9; }
  50% { transform: translate(-50%,-50%) scale(1.15); opacity: 1; }
}

/* Wave visual */
.wave { width: 100%; max-width: 480px; }
.wave-svg { width: 100%; height: auto; }
.wave-path {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}
.w1 { stroke: var(--accent); opacity: 0.9; animation: wave-move 5s ease-in-out infinite; }
.w2 { stroke: var(--accent-soft); opacity: 0.6; animation: wave-move 6.5s ease-in-out infinite reverse; }
.w3 { stroke: #bf5af2; opacity: 0.5; animation: wave-move 4s ease-in-out infinite; }
@keyframes wave-move {
  0%, 100% { transform: translateY(0) scaleY(1); }
  50% { transform: translateY(-6px) scaleY(1.3); }
}

/* Skin visual */
.skin {
  position: relative;
  width: 260px;
  height: 260px;
}
.skin-layer {
  position: absolute;
  inset: 0;
  border-radius: 42% 58% 60% 40% / 45% 40% 60% 55%;
  animation: morph 9s ease-in-out infinite;
}
.l1 { background: linear-gradient(135deg, #3a3a3c, #1c1c1e); }
.l2 { background: linear-gradient(135deg, rgba(10,132,255,0.5), transparent); inset: 20px; animation-delay: -3s; }
.l3 { background: linear-gradient(135deg, rgba(191,90,242,0.35), transparent); inset: 40px; animation-delay: -6s; }
@keyframes morph {
  0%, 100% { border-radius: 42% 58% 60% 40% / 45% 40% 60% 55%; }
  50% { border-radius: 58% 42% 40% 60% / 55% 60% 40% 45%; }
}

/* Energy visual */
.energy {
  position: relative;
  width: 260px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.energy-bolt {
  width: 60px;
  height: 140px;
  background: linear-gradient(180deg, #64d2ff, #0a84ff);
  clip-path: polygon(60% 0%, 0% 55%, 45% 55%, 40% 100%, 100% 40%, 55% 40%);
  animation: bolt-glow 2.4s ease-in-out infinite;
}
@keyframes bolt-glow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(10,132,255,0.5)); }
  50% { filter: drop-shadow(0 0 28px rgba(100,210,255,0.9)); }
}
.energy-particles span {
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent-soft);
  left: 50%; top: 50%;
  animation: particle-out 3s ease-out infinite;
}
.energy-particles span:nth-child(1) { animation-delay: 0s; transform: rotate(0deg); }
.energy-particles span:nth-child(2) { animation-delay: 0.5s; transform: rotate(60deg); }
.energy-particles span:nth-child(3) { animation-delay: 1s; transform: rotate(120deg); }
.energy-particles span:nth-child(4) { animation-delay: 1.5s; transform: rotate(180deg); }
.energy-particles span:nth-child(5) { animation-delay: 2s; transform: rotate(240deg); }
.energy-particles span:nth-child(6) { animation-delay: 2.5s; transform: rotate(300deg); }
@keyframes particle-out {
  0% { opacity: 1; transform: translate(-50%,-50%) rotate(inherit) translateX(0); }
  100% { opacity: 0; transform: translate(-50%,-50%) rotate(inherit) translateX(120px); }
}

/* Quote */
.quote {
  background: #000;
  color: var(--text-dark);
  padding: 180px 24px;
  text-align: center;
}
.quote p {
  max-width: 820px;
  margin: 0 auto;
  font-size: clamp(1.4rem, 3.4vw, 2.2rem);
  font-weight: 300;
  line-height: 1.5;
  font-style: italic;
}
.quote span {
  color: var(--accent-soft);
  font-style: normal;
  font-weight: 500;
}

/* Specs */
.specs {
  padding: 160px 24px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.specs h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 80px;
}
.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 24px;
}
.spec h3 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  background: linear-gradient(120deg, #0a84ff, #bf5af2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}
.spec p { color: var(--dim); font-size: 0.95rem; }

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

/* Final CTA */
.cta-final {
  background: radial-gradient(ellipse at 50% 100%, #111 0%, #000 60%);
  color: var(--text-dark);
  text-align: center;
  padding: 180px 24px 140px;
}
.cta-final h2 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.cta-final h2 span {
  background: linear-gradient(120deg, #64d2ff, #bf5af2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cta-final p { color: var(--dim); font-size: 1.15rem; margin-bottom: 40px; }
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 16px 40px;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 500;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: 0 8px 30px rgba(10,132,255,0.35);
}
.btn:hover {
  transform: translateY(-3px);
  background: #2f9bff;
  box-shadow: 0 14px 40px rgba(10,132,255,0.5);
}
.fineprint {
  margin-top: 28px;
  font-size: 0.8rem;
  color: #555;
}

/* Footer */
.footer {
  background: #000;
  color: #6e6e73;
  text-align: center;
  padding: 32px 24px 60px;
  font-size: 0.8rem;
  border-top: 1px solid var(--line-dark);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #1d1d1f;
  color: #fff;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 1100;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.2s !important; }
}
