:root {
  --bg: #04060c;
  --bg-alt: #0a0f1c;
  --panel: #0d1322;
  --border: #1c2438;
  --accent: #4f8cff;
  --accent-cyan: #7dd8ff;
  --text: #eef2fb;
  --muted: #8b95ac;
  --font-display: "Rajdhani", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  position: relative;
}

#starfield {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 20% 0%, #0d1730 0%, var(--bg) 55%);
}

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

.eyebrow, .section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  margin-bottom: 14px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 6vw;
  background: rgba(4, 6, 12, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
}
.nav-brand img { width: 34px; height: 34px; border-radius: 50%; }
.nav-brand em { color: var(--accent-cyan); font-style: normal; }

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 0.95rem;
  color: var(--muted);
}
.nav-links a:hover { color: var(--text); }
.nav-dashboard {
  color: var(--accent-cyan) !important;
}

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-cyan));
  color: #04060c;
  box-shadow: 0 0 24px rgba(79, 140, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 32px rgba(125, 216, 255, 0.5); }
.btn-invite {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent-cyan);
}
.btn-invite:hover { background: rgba(79, 140, 255, 0.12); }
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--muted);
}
.btn-ghost:hover { color: var(--text); border-color: var(--accent-cyan); }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  padding: 90px 6vw 70px;
  max-width: 1400px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  line-height: 1.08;
  margin-bottom: 22px;
}

.hero-sub {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: 34px;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-ring {
  position: absolute;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(125, 216, 255, 0.25);
  border-radius: 50%;
  animation: spin 40s linear infinite;
}
.orbit-ring::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-cyan);
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-banner {
  width: 100%;
  max-width: 560px;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

/* ---------- Marquee ---------- */

.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 16px 0;
  background: var(--bg-alt);
}
.marquee-track {
  display: flex;
  gap: 24px;
  white-space: nowrap;
  width: max-content;
  animation: scroll 26s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.marquee-track span:nth-child(odd) { color: var(--accent-cyan); }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Features ---------- */

.features {
  max-width: 1200px;
  margin: 110px auto 40px;
  padding: 0 6vw;
}
.features h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 48px;
  max-width: 640px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.feature-icon { font-size: 1.6rem; display: block; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 0.92rem; line-height: 1.55; }

/* ---------- Premium ---------- */

.premium {
  max-width: 1000px;
  margin: 110px auto;
  padding: 0 6vw;
}
.premium-box {
  border: 1px solid var(--border);
  background: linear-gradient(150deg, rgba(79,140,255,0.08), transparent 60%), var(--panel);
  border-radius: 16px;
  padding: 56px 48px;
  text-align: center;
}
.premium-box h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 16px; }
.premium-sub {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.6;
}
.premium-box code {
  font-family: var(--font-mono);
  background: rgba(125, 216, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent-cyan);
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 36px 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
}
.footer-brand img { width: 26px; height: 26px; border-radius: 50%; }
.footer-links { display: flex; gap: 24px; color: var(--muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--text); }
.footer-note { width: 100%; text-align: center; color: var(--muted); font-size: 0.8rem; margin-top: 12px; }

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 60px; }
  .hero-visual { order: -1; }
  .orbit-ring { width: 300px; height: 300px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .footer { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-ring, .marquee-track { animation: none; }
}
