:root {
  --bg: #060a12;
  --bg-soft: #0d1422;
  --card: rgba(17, 27, 44, 0.72);
  --line: rgba(122, 164, 255, 0.22);
  --text: #e8eefc;
  --muted: #9cb0d0;
  --accent: #47d8ff;
  --accent-2: #8a7dff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: radial-gradient(1200px 600px at 15% -10%, #152a54 0%, transparent 60%),
    radial-gradient(900px 500px at 100% 0%, #2a1e54 0%, transparent 60%), var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

body {
  position: relative;
  overflow-x: hidden;
}

/* ─── ANIMATIONS ─────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.18; transform: scale(1); }
  50%       { opacity: 0.28; transform: scale(1.08); }
}
@keyframes gridDrift {
  0%   { transform: translateY(0); }
  100% { transform: translateY(60px); }
}
@keyframes shimmerLine {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

/* ─── BG GLOWS ───────────────────────────────────── */
.bg-glow {
  position: fixed;
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
  animation: glowPulse 8s ease-in-out infinite;
}
.bg-glow-1 {
  background: var(--accent);
  top: -12rem;
  left: -8rem;
}
.bg-glow-2 {
  background: var(--accent-2);
  bottom: -14rem;
  right: -8rem;
  animation-delay: -4s;
}

/* Subtle animated dot grid overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(122, 164, 255, 0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  animation: gridDrift 20s linear infinite;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
}

.site-header,
main,
.site-footer,
.support-banner {
  position: relative;
  z-index: 1;
}

/* ─── HEADER ──────────────────────────────────────── */
.site-header {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.4rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: fadeUp .5s ease both;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  transition: color .2s;
  position: relative;
}
.brand::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width .3s;
}
.brand:hover { color: var(--accent); }
.brand:hover::after { width: 100%; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color .2s;
}
.site-nav a:hover { color: var(--text); }

.site-nav .nav-cta {
  color: var(--text);
  border: 1px solid var(--line);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  transition: border-color .2s, background .2s, transform .2s, box-shadow .2s;
}
.site-nav .nav-cta:hover {
  border-color: rgba(71, 216, 255, .5);
  background: rgba(71, 216, 255, .07);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(71,216,255,.12);
  color: var(--text);
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1.2rem 3rem;
}

/* ─── HERO ───────────────────────────────────────── */
.hero {
  padding: 3.2rem 0 2.6rem;
  animation: fadeUp .6s ease .1s both;
}

.eyebrow {
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  box-shadow: 0 0 8px var(--accent);
  flex-shrink: 0;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 7vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

#hero-rotate {
  background: linear-gradient(90deg, var(--accent), #bdeaff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  transition: opacity .3s, transform .3s;
  position: relative;
}
#hero-rotate.swapping {
  opacity: 0;
  transform: translateY(-6px);
}

.hero-sub {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 43rem;
  line-height: 1.6;
}

.hero-actions {
  margin-top: 1.6rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0.8rem 1.25rem;
  font-weight: 600;
  font-size: .95rem;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s, opacity .2s;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  transition: left .4s;
}
.btn:hover::after {
  left: 160%;
}

.btn-primary {
  background: linear-gradient(120deg, #34d5ff, #587dff);
  color: #021023;
  box-shadow: 0 4px 18px rgba(71,216,255,.22);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(71,216,255,.38);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: rgba(71,216,255,.4);
  background: rgba(71,216,255,.06);
  transform: translateY(-2px);
}
.btn-ghost:active { transform: translateY(0); }

/* ─── STATS ──────────────────────────────────────── */
.hero-stats {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  position: relative;
  border-radius: 16px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: transform .25s cubic-bezier(.4,0,.2,1), border-color .25s, box-shadow .25s;
  overflow: hidden;
  animation: fadeUp .6s ease both;
  /* BUG FIX: default play state is running — observer will pause if below fold */
}
.stat-card:nth-child(1) { animation-delay: .2s; }
.stat-card:nth-child(2) { animation-delay: .3s; }
.stat-card:nth-child(3) { animation-delay: .4s; }

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(0,140,255,0.14), transparent 60%);
  opacity: 0;
  transition: opacity .3s;
}

/* Shimmer line on hover */
.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity .3s;
}

.stat-card:hover {
  transform: translateY(-7px);
  border-color: rgba(71,216,255,.32);
  box-shadow: 0 16px 40px rgba(0,0,0,.25), 0 0 0 1px rgba(71,216,255,.08);
}
.stat-card:hover::before { opacity: 1; }
.stat-card:hover::after  { opacity: .6; }

.stat-main {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.stat-suffix {
  font-size: 14px;
  opacity: 0.5;
}
.stat-value {
  font-size: 1.9rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  color: var(--muted);
  font-size: 0.9rem;
}
.stat-desc {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  opacity: 0.45;
  line-height: 1.4;
}

/* ─── FEATURES ───────────────────────────────────── */
.features {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.4rem;
  transition: border-color .2s, transform .25s cubic-bezier(.4,0,.2,1), box-shadow .25s;
  animation: fadeUp .6s ease both;
  position: relative;
  overflow: hidden;
}
.feature-card:nth-child(1) { animation-delay: .15s; }
.feature-card:nth-child(2) { animation-delay: .25s; }
.feature-card:nth-child(3) { animation-delay: .35s; }

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(71,216,255,.3), transparent);
  opacity: 0;
  transition: opacity .3s;
}

.feature-card:hover {
  border-color: rgba(71,216,255,.3);
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(0,0,0,.22), 0 0 0 1px rgba(71,216,255,.06);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(71, 216, 255, 0.1);
  border: 1px solid rgba(71, 216, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  transition: background .2s, border-color .2s;
}
.feature-card:hover .feature-icon {
  background: rgba(71, 216, 255, 0.16);
  border-color: rgba(71, 216, 255, 0.35);
}
.feature-icon svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.feature-card h2 {
  margin: 0 0 .5rem;
  font-size: 1.05rem;
}
.feature-card p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.6;
  margin: 0;
}

/* ─── SHOWCASE ───────────────────────────────────── */
.showcase {
  margin-top: 1.6rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(67, 125, 255, 0.14), rgba(42, 215, 255, 0.07));
  transition: border-color .2s, box-shadow .2s;
  animation: fadeUp .6s ease .4s both;
  position: relative;
  overflow: hidden;
}
.showcase::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 40%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(71,216,255,0.06), transparent 70%);
  pointer-events: none;
}
.showcase:hover {
  border-color: rgba(71,216,255,.32);
  box-shadow: 0 16px 48px rgba(0,0,0,.2);
}
.showcase-content {
  padding: 2.4rem;
  position: relative;
  z-index: 1;
}
.showcase h2 {
  margin: 0.4rem 0;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.showcase p {
  color: var(--muted);
  max-width: 42rem;
  margin-bottom: 1.4rem;
}

/* ─── FOOTER ─────────────────────────────────────── */
.site-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.2rem 2rem;
  color: var(--muted);
  font-size: 0.86rem;
}

/* ─── SUPPORT BANNER ─────────────────────────────── */
.support-banner {
  background: linear-gradient(135deg, rgba(71,216,255,.07) 0%, rgba(138,125,255,.07) 100%);
  border-top: 1px solid rgba(71,216,255,.18);
  border-bottom: 1px solid rgba(71,216,255,.18);
  padding: 12px 18px;
  text-align: center;
}
.support-banner p { margin: 0; font-size: 12px; color: var(--text); }
.support-banner a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: opacity .15s;
}
.support-banner a:hover { text-decoration: underline; opacity: .8; }

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 900px) {
  .hero-stats,
  .features {
    grid-template-columns: 1fr;
  }
  .site-nav a:not(.nav-cta) {
    display: none;
  }
}

@media (max-width: 768px) {
  .site-header {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem;
  }
  .site-nav {
    width: 100%;
    justify-content: flex-end;
  }
  main {
    padding: 1.25rem 1rem 2rem;
  }
  .hero {
    padding: 2rem 0 1.5rem;
  }
  .hero-actions .btn {
    min-height: 44px;
    padding: 0.75rem 1rem;
  }
  .showcase-content {
    padding: 1.6rem;
  }
}

@media (max-width: 480px) {
  .brand {
    font-size: 0.72rem;
  }
  .hero-sub {
    font-size: 0.95rem;
  }
  .stat-card {
    padding: 0.9rem;
  }
}
