@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;900&family=Exo+2:ital,wght@0,200;0,300;0,400;0,500;1,300&display=swap');

/* ─── TOKENS ──────────────────────────────────────── */
:root {
  --bg:       #020510;
  --bg2:      #050818;
  --cyan:     #00e5ff;
  --cyan2:    #0097a7;
  --green:    #00ff9d;
  --red:      #ff3d71;
  --text:     #c8d8f0;
  --muted:    #4a5a78;
  --border:   rgba(0,229,255,0.12);
  --border2:  rgba(0,229,255,0.25);
  --glow:     rgba(0,229,255,0.18);
  --glow2:    rgba(0,255,157,0.14);
  --radius:   4px;
  --font-hd:  'Orbitron', sans-serif;
  --font-bd:  'Exo 2', sans-serif;
}

/* ─── RESET ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-bd);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
}

/* ─── CUSTOM CURSOR ───────────────────────────────── */
#cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1.5px solid var(--cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .25s, height .25s, border-color .25s, opacity .25s;
  mix-blend-mode: screen;
}
#cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 5px; height: 5px;
  background: var(--cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px var(--cyan);
}
body:has(a:hover) #cursor-ring,
body:has(button:hover) #cursor-ring {
  width: 54px; height: 54px;
  border-color: var(--green);
}

/* ─── CANVAS ──────────────────────────────────────── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ─── SCANLINES ───────────────────────────────────── */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,0.08) 3px,
    rgba(0,0,0,0.08) 4px
  );
  animation: scanMove 12s linear infinite;
}
@keyframes scanMove {
  0%   { background-position: 0 0; }
  100% { background-position: 0 200px; }
}

/* ─── NAVBAR ──────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 60px;
  background: rgba(2,5,16,0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: padding .3s;
}
nav.scrolled { padding: 12px 60px; }

.nav-logo {
  font-family: var(--font-hd);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo .logo-icon {
  width: 32px; height: 32px;
  border: 1.5px solid var(--cyan);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  color: var(--cyan);
  box-shadow: 0 0 12px rgba(0,229,255,0.25), inset 0 0 8px rgba(0,229,255,0.08);
  position: relative;
  overflow: hidden;
}
.nav-logo .logo-icon::after {
  content: '';
  position: absolute;
  top: -100%; left: -100%;
  width: 300%; height: 300%;
  background: linear-gradient(45deg, transparent 40%, rgba(0,229,255,0.15) 50%, transparent 60%);
  animation: shimmer 3s infinite;
}
@keyframes shimmer {
  0%   { transform: translate(-30%, -30%); }
  100% { transform: translate(30%, 30%); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-hd);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--cyan);
  transition: width .3s;
}
.nav-links a:hover { color: var(--cyan); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  font-family: var(--font-hd);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bg) !important;
  background: var(--cyan);
  padding: 9px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: 0 0 20px rgba(0,229,255,0.35);
  transition: box-shadow .25s, transform .2s;
}
.nav-cta:hover {
  box-shadow: 0 0 36px rgba(0,229,255,0.6);
  transform: translateY(-1px);
}
.nav-cta::after { display: none !important; }

/* ─── HERO ────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border2);
  color: var(--cyan);
  font-family: var(--font-hd);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 2px;
  margin-bottom: 36px;
  background: rgba(0,229,255,0.04);
  animation: fadeUp 1s ease both;
}
.hero-eyebrow .blink {
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  animation: blink 1.2s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.hero h1 {
  font-family: var(--font-hd);
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  animation: fadeUp 1s 0.1s ease both;
}
.hero h1 .line2 {
  display: block;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(0,229,255,0.4));
}

.hero-sub {
  font-size: 1rem;
  font-weight: 300;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.8;
  margin: 0 auto 48px;
  animation: fadeUp 1s 0.2s ease both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 1s 0.3s ease both;
}

/* ─── BUTTONS ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-hd);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: none;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  transition: left .5s;
}
.btn:hover::before { left: 100%; }

.btn-cyan {
  background: transparent;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 18px rgba(0,229,255,0.2), inset 0 0 12px rgba(0,229,255,0.05);
}
.btn-cyan:hover {
  background: rgba(0,229,255,0.08);
  box-shadow: 0 0 30px rgba(0,229,255,0.35), inset 0 0 20px rgba(0,229,255,0.08);
}
.btn-fill {
  background: var(--cyan);
  color: var(--bg);
  box-shadow: 0 0 24px rgba(0,229,255,0.4);
}
.btn-fill:hover {
  box-shadow: 0 0 40px rgba(0,229,255,0.6);
  transform: translateY(-2px);
}

/* ─── STATS ROW ───────────────────────────────────── */
.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 72px;
  animation: fadeUp 1s 0.45s ease both;
}
.stat-item { text-align: center; }
.stat-value {
  font-family: var(--font-hd);
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--cyan);
  letter-spacing: -0.02em;
  text-shadow: 0 0 16px rgba(0,229,255,0.5);
}
.stat-label {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 4px;
}
.stat-sep {
  width: 1px;
  background: var(--border);
  align-self: stretch;
  min-height: 40px;
}

/* ─── SCROLL INDICATOR ────────────────────────────── */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeUp 1s 0.6s ease both;
}
.scroll-hint span {
  font-family: var(--font-hd);
  font-size: 0.5rem;
  letter-spacing: 0.25em;
  color: var(--muted);
  text-transform: uppercase;
}
.scroll-mouse {
  width: 20px; height: 32px;
  border: 1.5px solid var(--muted);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  padding-top: 5px;
}
.scroll-mouse::before {
  content: '';
  width: 3px; height: 6px;
  background: var(--cyan);
  border-radius: 2px;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { transform: translateY(0); opacity: 1; }
  80%  { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ─── SECTION BASE ────────────────────────────────── */
section {
  position: relative;
  z-index: 2;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-hd);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 20px;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border2), transparent);
}

.section-title {
  font-family: var(--font-hd);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.8;
  max-width: 480px;
}

/* ─── FEATURES SECTION ────────────────────────────── */
.features-section {
  padding: 100px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 64px;
  border: 1px solid var(--border);
}
.feature-card {
  padding: 36px 30px;
  background: rgba(5,8,24,0.7);
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: background .3s;
}
.feature-card:last-child { border-right: none; }
.feature-card:hover { background: rgba(0,229,255,0.03); }
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity .3s;
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  font-size: 1.6rem;
  margin-bottom: 18px;
  display: block;
}
.feature-title {
  font-family: var(--font-hd);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 10px;
}
.feature-desc {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
}

/* ─── PLANS SECTION ───────────────────────────────── */
.plans-section {
  padding: 100px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.plans-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

/* Toggle */
.billing-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(5,8,24,0.9);
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: var(--radius);
}
.toggle-lbl {
  font-family: var(--font-hd);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
}
.toggle-lbl.active { color: var(--cyan); }

.toggle-switch {
  position: relative;
  width: 44px; height: 22px;
  cursor: none;
}
.toggle-switch input { display: none; }
.toggle-track {
  position: absolute;
  inset: 0;
  background: rgba(0,229,255,0.1);
  border: 1px solid var(--border2);
  border-radius: 11px;
}
.toggle-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 14px; height: 14px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--cyan);
  transition: transform .35s cubic-bezier(0.34,1.6,0.64,1);
}
.toggle-switch input:checked ~ .toggle-track ~ .toggle-thumb {
  transform: translateX(22px);
}

.save-badge {
  font-family: var(--font-hd);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(0,255,157,0.08);
  border: 1px solid rgba(0,255,157,0.2);
  padding: 3px 10px;
  border-radius: 2px;
}

/* ─── PLAN CARDS ──────────────────────────────────── */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
}

.plan-card {
  padding: 40px 32px 36px;
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: background .35s;
  background: rgba(5,8,24,0.6);
}
.plan-card:last-child { border-right: none; }

/* Corner decorations */
.plan-card::before, .plan-card::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
}
.plan-card::before {
  top: -1px; left: -1px;
  border-top: 2px solid var(--cyan);
  border-left: 2px solid var(--cyan);
  opacity: 0;
  transition: opacity .3s;
}
.plan-card::after {
  bottom: -1px; right: -1px;
  border-bottom: 2px solid var(--cyan);
  border-right: 2px solid var(--cyan);
  opacity: 0;
  transition: opacity .3s;
}
.plan-card:hover { background: rgba(0,229,255,0.02); }
.plan-card:hover::before, .plan-card:hover::after { opacity: 1; }

/* Featured */
.plan-card.featured {
  background: rgba(0,229,255,0.04);
  border-right: 1px solid var(--border2);
  border-left: 1px solid var(--border2);
}
.plan-card.featured::before,
.plan-card.featured::after { opacity: 1; }
.plan-card.featured::before {
  border-color: var(--green);
  width: 24px; height: 24px;
}
.plan-card.featured::after {
  border-color: var(--green);
  width: 24px; height: 24px;
}

/* Top bar */
.plan-topbar {
  height: 2px;
  background: var(--border);
  margin: -40px -32px 32px;
  position: relative;
}
.plan-card.featured .plan-topbar {
  background: linear-gradient(90deg, transparent, var(--cyan), var(--green), transparent);
}

/* Badge */
.plan-badge {
  position: absolute;
  top: 18px; right: 18px;
  font-family: var(--font-hd);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bg);
  background: linear-gradient(90deg, var(--cyan), var(--green));
  padding: 4px 10px;
  border-radius: 2px;
}

/* Plan header */
.plan-tier {
  font-family: var(--font-hd);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.plan-name {
  font-family: var(--font-hd);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 10px;
}
.plan-card.featured .plan-name { color: var(--cyan); text-shadow: 0 0 20px rgba(0,229,255,0.4); }
.plan-desc {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 32px;
}

/* Price */
.plan-price {
  margin-bottom: 28px;
}
.price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.price-curr {
  font-family: var(--font-hd);
  font-size: 1rem;
  color: var(--muted);
}
.price-val {
  font-family: var(--font-hd);
  font-size: 2.8rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1;
}
.plan-card.featured .price-val { color: var(--cyan); text-shadow: 0 0 24px rgba(0,229,255,0.35); }
.price-cents {
  font-family: var(--font-hd);
  font-size: 1.1rem;
  color: var(--muted);
}
.price-period {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 4px;
}
.price-saving {
  font-size: 0.7rem;
  color: var(--green);
  margin-top: 3px;
  display: none;
}
.show-annual .price-saving { display: block; }
.show-annual .price-mo { display: none; }
.show-annual .price-yr { display: block !important; }
.price-yr { display: none; }

/* Divider */
.plan-div {
  height: 1px;
  background: var(--border);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.plan-card.featured .plan-div::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0,229,255,0.3), transparent);
  animation: slideLine 3s ease-in-out infinite;
}
@keyframes slideLine {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Features list */
.plan-features {
  list-style: none;
  margin-bottom: 36px;
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 300;
  color: #8a9bc0;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  line-height: 1.4;
}
.plan-features li:last-child { border-bottom: none; }
.plan-features li strong { color: var(--text); font-weight: 500; }

.feat-check {
  width: 16px; height: 16px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border2);
  border-radius: 2px;
  color: var(--cyan);
  font-size: 0.55rem;
  margin-top: 1px;
}
.plan-card.featured .feat-check {
  border-color: rgba(0,255,157,0.3);
  color: var(--green);
}

/* CTA */
.plan-cta {
  display: block;
  width: 100%;
  padding: 13px;
  border-radius: var(--radius);
  font-family: var(--font-hd);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: none;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.plan-cta::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  transition: left .5s;
}
.plan-cta:hover::before { left: 100%; }

.cta-outline {
  border: 1px solid var(--border2);
  color: var(--cyan);
  background: transparent;
}
.cta-outline:hover {
  background: rgba(0,229,255,0.06);
  border-color: var(--cyan);
}
.cta-solid {
  border: 1px solid var(--cyan);
  color: var(--bg);
  background: var(--cyan);
  box-shadow: 0 0 24px rgba(0,229,255,0.35);
}
.cta-solid:hover {
  box-shadow: 0 0 40px rgba(0,229,255,0.55);
  transform: translateY(-1px);
}

/* ─── TRUST BAR ───────────────────────────────────── */
.trust-bar {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  background: rgba(5,8,24,0.5);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-hd);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.trust-item span { color: var(--cyan); font-size: 1rem; }
.trust-sep { width: 1px; height: 20px; background: var(--border); }

/* ─── FOOTER ──────────────────────────────────────── */
footer {
  position: relative;
  z-index: 2;
  padding: 48px 60px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 300;
}
.footer-copy strong { color: var(--cyan); }
.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.footer-links a {
  font-family: var(--font-hd);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: var(--cyan); }

/* ─── ANIMATIONS ──────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ─── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 960px) {
  nav { padding: 16px 24px; }
  nav.scrolled { padding: 12px 24px; }
  .nav-links { display: none; }
  .features-section, .plans-section { padding: 80px 24px; }
  .features-grid { grid-template-columns: 1fr; border: 1px solid var(--border); }
  .feature-card { border-right: none; border-bottom: 1px solid var(--border); }
  .feature-card:last-child { border-bottom: none; }
  .plans-grid { grid-template-columns: 1fr; }
  .plan-card { border-right: none; border-bottom: 1px solid var(--border); }
  .plan-card.featured { border: none; border-bottom: 1px solid var(--border2); border-top: 1px solid var(--border2); }
  .plans-header { flex-direction: column; align-items: flex-start; }
  .trust-bar { padding: 24px; gap: 24px; }
  footer { padding: 32px 24px; flex-direction: column; align-items: flex-start; }
}
