:root {
  --bg: #07090f;
  --bg-soft: #0d111b;
  --text: #e8f0ff;
  --muted: #9db0d2;
  --accent: #48ffb1;
  --accent-2: #3aa3ff;
  --card: rgba(14, 21, 35, 0.75);
  --border: rgba(255, 255, 255, 0.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 700px at 10% 10%, #102542 0%, var(--bg) 40%) fixed;
  overflow-x: hidden;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 20;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 16px rgba(72, 255, 177, 0.55);
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: radial-gradient(#fff 0.5px, transparent 0.5px);
  background-size: 3px 3px;
  z-index: 1;
}

#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.topbar {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, calc(100% - 24px));
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(8, 10, 16, 0.72);
  backdrop-filter: blur(10px);
  transition: transform 0.28s ease, background 0.28s ease, border-color 0.28s ease;
}
.topbar.scrolled {
  background: rgba(6, 10, 18, 0.9);
  border-color: rgba(72, 255, 177, 0.25);
  transform: translateX(-50%) translateY(-2px);
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px var(--accent);
}

nav { display: flex; gap: 14px; }
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: 0.25s;
  position: relative;
  padding-bottom: 3px;
}
nav a:hover { color: var(--text); }
nav a.active { color: var(--accent); }
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -1px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: right 0.25s ease;
}
nav a:hover::after,
nav a.active::after {
  right: 0;
}

.lang-switch {
  display: flex;
  gap: 6px;
}
.lang-btn {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  border-radius: 8px;
  padding: 7px 8px;
  font-weight: 700;
  cursor: pointer;
  min-width: 40px;
}
.lang-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #041013;
  border-color: transparent;
}

.glow-btn, .ghost-btn {
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 11px 16px;
  border: 1px solid transparent;
  transition: transform 0.22s ease, box-shadow 0.24s ease, opacity 0.2s ease;
}
.glow-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #041013;
}
.ghost-btn {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.glow-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(58, 163, 255, 0.25); }
.ghost-btn:hover { transform: translateY(-2px); border-color: rgba(72, 255, 177, 0.45); }

main { position: relative; z-index: 2; }
.scene {
  min-height: 86vh;
  padding: 96px min(5vw, 52px) 40px;
  display: grid;
  align-items: center;
  position: relative;
}

.hero {
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  position: relative;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(8px);
  opacity: 0.2;
}
.orb-a {
  width: 520px; height: 520px; left: -180px; top: 90px;
  background: radial-gradient(circle at 30% 30%, var(--accent), transparent 70%);
  animation: driftA 9s ease-in-out infinite;
}
.orb-b {
  width: 440px; height: 440px; right: -160px; bottom: -80px;
  background: radial-gradient(circle at 60% 40%, var(--accent-2), transparent 70%);
  animation: driftB 11s ease-in-out infinite;
}

@keyframes driftA { 50% { transform: translate(30px, -15px); } }
@keyframes driftB { 50% { transform: translate(-24px, 26px); } }

.content h1 {
  margin: 12px 0 16px;
  line-height: 1.05;
  font-size: clamp(34px, 6vw, 68px);
}
.eyebrow { color: var(--accent); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; }
.lead { color: var(--muted); max-width: 680px; font-size: clamp(15px, 2vw, 20px); line-height: 1.6; }

.headline-rotator {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
}
.rotator-word { opacity: 0.45; transition: opacity 0.35s ease; font-weight: 700; }
.rotator-word.active { opacity: 1; color: var(--accent); }
.rotator-dot { color: var(--muted); }

.cta-row { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }

.hero-ui .panel {
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(9, 14, 24, 0.92);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.45);
}
.panel-head {
  display: flex; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border);
}
.panel-head span {
  width: 10px; height: 10px; border-radius: 50%; background: #2e3a52;
}
.terminal {
  min-height: 320px;
  padding: 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #cbe0ff;
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.7;
}

.mini-kpis {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.kpi {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(10, 15, 27, 0.72);
  padding: 12px;
}
.kpi p { margin: 0 0 8px; color: var(--muted); font-size: 12px; }
.kpi h4 { margin: 0; font-size: 22px; }

.section-title p { color: var(--accent); font-weight: 700; margin: 0 0 6px; text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; }
.section-title h2 { font-size: clamp(28px, 4.3vw, 52px); margin: 0 0 24px; }

.engine-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  transform-style: preserve-3d;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.card h3 { margin-top: 0; margin-bottom: 10px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); line-height: 1.6; }
.card:hover { border-color: rgba(72, 255, 177, 0.6); }

.scenes .tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.tab {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}
.tab.active { color: #041013; background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; }
.tab:hover { transform: translateY(-1px); border-color: rgba(72, 255, 177, 0.45); }

.stage {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(8, 12, 20, 0.82);
  padding: 26px;
  min-height: 220px;
  position: relative;
  overflow: hidden;
}
.story {
  position: absolute;
  inset: 26px;
  opacity: 0;
  transform: translateY(18px);
  transition: 0.46s ease;
}
.story.active { opacity: 1; transform: translateY(0); }
.story h3 { margin: 0 0 10px; font-size: clamp(24px, 3vw, 38px); }
.story p { color: var(--muted); font-size: 18px; line-height: 1.6; max-width: 760px; }

.founder-wrap {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 18px;
  align-items: stretch;
}
.founder-photo {
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(10, 15, 24, 0.8);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.founder-photo:hover { transform: translateY(-3px); border-color: rgba(72, 255, 177, 0.55); }
.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.founder-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(10, 15, 24, 0.82);
  padding: 24px;
}
.founder-card h3 { margin: 0 0 12px; font-size: 30px; }
.founder-card p { margin: 0 0 10px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.founder-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.founder-tags span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(72, 255, 177, 0.07);
  color: #b8ffdf;
  font-weight: 700;
  font-size: 13px;
}

.founder-social {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.founder-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: rgba(72, 255, 177, 0.08);
  color: #c8fff0;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.founder-social a:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(72, 255, 177, 0.65);
  background: rgba(72, 255, 177, 0.16);
}
.founder-social svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.cta {
  text-align: center;
  position: relative;
  justify-items: center;
  min-height: 78vh;
  padding-top: 150px;
  padding-bottom: 30px;
}
.cta .content {
  width: min(860px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 34px 28px 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(14, 24, 41, 0.86), rgba(9, 15, 27, 0.74));
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}
.cta-scan {
  position: absolute;
  inset: -40% -20%;
  background: linear-gradient(110deg, transparent 36%, rgba(72, 255, 177, 0.18) 48%, rgba(58, 163, 255, 0.2) 52%, transparent 64%);
  transform: translateX(-70%) rotate(2deg);
  pointer-events: none;
  animation: ctaSweep 4.8s ease-in-out infinite;
  opacity: 0.65;
}
.cta.live .cta-scan { animation-duration: 3.8s; opacity: 0.85; }
@keyframes ctaSweep {
  0%, 18% { transform: translateX(-74%) rotate(2deg); }
  52% { transform: translateX(74%) rotate(2deg); }
  100% { transform: translateX(74%) rotate(2deg); }
}
.cta .content::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(120deg, rgba(72, 255, 177, 0.35), rgba(58, 163, 255, 0.25), rgba(72, 255, 177, 0.16));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.cta .lead {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(16px, 2.1vw, 30px);
  line-height: 1.55;
}
.cta .cta-row {
  justify-content: center;
  margin-top: 18px;
}
.support-line {
  margin: 16px 0 0;
  color: #d8e6ff;
  font-weight: 600;
  font-size: 14px;
  opacity: 0.9;
}
.cta-stats {
  margin-top: 16px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.cta-stat {
  border: 1px solid rgba(157, 227, 255, 0.24);
  background: rgba(9, 16, 29, 0.74);
  border-radius: 14px;
  padding: 12px 10px;
  text-align: center;
  transform: translateY(8px);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease, border-color 0.25s ease;
  transition-delay: var(--delay, 0ms);
}
.cta.live .cta-stat {
  transform: translateY(0);
  opacity: 1;
}
.cta-stat:hover { border-color: rgba(72, 255, 177, 0.65); }
.cta-stat p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.03em;
}
.cta-stat h4 {
  margin: 6px 0 0;
  font-size: clamp(24px, 3vw, 34px);
  color: #d8f5ff;
}
.ring {
  position: absolute;
  width: min(50vw, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  inset: 48% auto auto 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(72, 255, 177, 0.16);
  box-shadow: 0 0 70px rgba(58, 163, 255, 0.2), inset 0 0 50px rgba(72, 255, 177, 0.12);
  animation: spin 20s linear infinite;
  transition: transform 0.25s ease;
  opacity: 0.88;
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.pulse { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse {
  50% { box-shadow: 0 0 0 12px rgba(72, 255, 177, 0.14); }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.66s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.animated-headline {
  position: relative;
  overflow: hidden;
}
.animated-headline::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(72, 255, 177, 0.22), transparent);
  transform: translateX(-120%);
}
.animated-headline.play::after {
  animation: sweep 0.85s ease;
}
@keyframes sweep {
  to { transform: translateX(120%); }
}

.site-footer {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  padding: 8px 16px 34px;
}
.footer-inner {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 10px 12px;
  border: 1px solid rgba(157, 227, 255, 0.18);
  border-radius: 16px;
  background: rgba(11, 17, 30, 0.68);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.28);
}
.site-footer a {
  text-decoration: none;
  color: #c8f0ff;
  border: 1px solid rgba(157, 227, 255, 0.38);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(157, 227, 255, 0.08);
  font-weight: 700;
  font-size: 13px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.site-footer a:hover {
  transform: translateY(-1px);
  border-color: rgba(200, 240, 255, 0.8);
  background: rgba(157, 227, 255, 0.16);
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  nav { display: none; }
  .founder-wrap { grid-template-columns: 1fr; }
  .engine-grid { grid-template-columns: 1fr; }
  .topbar { border-radius: 18px; }
  .scene { min-height: auto; padding-top: 88px; padding-bottom: 28px; }
  .cta .content { width: 100%; }
  .cta { min-height: 72vh; padding-top: 130px; }
  .ring { width: min(86vw, 520px); }
  .cta-stats { grid-template-columns: 1fr; }
  .footer-inner { width: min(620px, 100%); }
}

@media (prefers-reduced-motion: reduce) {
  .ring,
  .pulse,
  .cta-scan,
  .orb-a,
  .orb-b {
    animation: none !important;
  }
  .cta-stat,
  .reveal {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
