/* ===================== RESET & BASE ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #09090f;
  --bg-card: #0e0e1c;
  --bg-card-alt: #12122a;
  --fg: #f0f0f8;
  --fg-muted: #7878a0;
  --accent: #8b5cf6;
  --accent-bright: #a78bfa;
  --teal: #06b6d4;
  --teal-dim: #0891b2;
  --border: #1a1a30;
  --violet-glow: rgba(139, 92, 246, 0.15);
  --teal-glow: rgba(6, 182, 212, 0.1);
  --radius: 14px;
  --radius-sm: 8px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Sora', system-ui, sans-serif;
  line-height: 1.15;
  font-weight: 700;
}

/* ===================== NAV ===================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 2rem;
  backdrop-filter: blur(16px);
  background: rgba(9, 9, 15, 0.7);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--fg); }

/* ===================== HERO ===================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 6rem 2rem 4rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, transparent 70%);
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
}
.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
  bottom: 80px;
  right: -100px;
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-bright);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 2rem;
}
.label-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-bright);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}
.hero-headline {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--fg-muted);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero-types {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.type-chip {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--fg-muted);
  transition: all 0.2s;
}
.type-chip:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
}

/* ===================== HOW IT WORKS ===================== */
.how-it-works {
  padding: 7rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 1rem;
}
.section-headline {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 4rem;
  max-width: 600px;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  transition: border-color 0.3s, transform 0.3s;
}
.step-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateY(-2px);
}
.step-num {
  font-family: 'Sora', sans-serif;
  font-size: 4rem;
  font-weight: 800;
  color: rgba(139, 92, 246, 0.08);
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  line-height: 1;
}
.step-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-bright);
  margin-bottom: 1.5rem;
}
.step-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.step-card p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ===================== GENERATION TYPES ===================== */
.gen-types {
  padding: 7rem 2rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.gen-types-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.gen-header {
  margin-bottom: 4rem;
}
.gen-desc {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 520px;
  margin-top: 1rem;
  line-height: 1.7;
}
.gen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.gen-item {
  background: var(--bg-card);
  padding: 1.75rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: background 0.2s;
}
.gen-item:hover { background: var(--bg-card-alt); }
.gen-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
}
.gen-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.gen-item p {
  font-size: 0.82rem;
  color: var(--fg-muted);
  line-height: 1.55;
}

/* ===================== SCORING ===================== */
.scoring-section {
  padding: 7rem 2rem;
}
.scoring-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 5rem;
  align-items: center;
}
.scoring-desc {
  font-size: 1rem;
  color: var(--fg-muted);
  margin-top: 1rem;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.scoring-dimensions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dim-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: center;
  gap: 1rem;
}
.dim-label {
  font-size: 0.82rem;
  color: var(--fg-muted);
  font-weight: 500;
}
.dim-bar {
  height: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  overflow: hidden;
}
.dim-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  opacity: 0.85;
}
.scoring-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.score-ring {
  position: relative;
  width: 160px;
  height: 160px;
}
.score-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(0deg);
}
.score-number {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.04em;
}
.score-unit {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  text-align: center;
  line-height: 1.3;
}
.score-forces {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.force-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.force-up { color: #10b981; }
.force-up svg { color: #10b981; }
.force-down { color: #f59e0b; }
.force-down svg { color: #f59e0b; }

/* ===================== OFFLINE ===================== */
.offline-section {
  padding: 5rem 2rem;
  background: linear-gradient(135deg, rgba(139,92,246,0.06) 0%, rgba(6,182,212,0.04) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.offline-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.offline-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #10b981;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 2rem;
}
.offline-headline {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}
.offline-desc {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}
.offline-modes {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.mode-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--fg-muted);
  background: var(--bg-card);
}
.mode-active {
  border-color: rgba(16, 185, 129, 0.4);
  color: #10b981;
  background: rgba(16, 185, 129, 0.06);
}
.mode-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
}
.mode-dot-gold { background: #f59e0b; }

/* ===================== CLOSING ===================== */
.closing-section {
  padding: 8rem 2rem 6rem;
  text-align: center;
}
.closing-inner { max-width: 1100px; margin: 0 auto; }
.closing-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.closing-stat {
  padding: 2.5rem 3rem;
  flex: 1;
}
.stat-number {
  font-family: 'Sora', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-unit {
  font-size: 1.5rem;
  font-weight: 600;
}
.stat-desc {
  font-size: 0.85rem;
  color: var(--fg-muted);
}
.closing-divider {
  width: 1px;
  height: 80px;
  background: var(--border);
}
.closing-statement {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 600;
  font-family: 'Sora', sans-serif;
  color: var(--fg-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

/* ===================== FOOTER ===================== */
.footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--fg);
}
.footer-tagline {
  font-size: 0.82rem;
  color: var(--fg-muted);
  margin-top: 0.35rem;
  margin-left: 38px;
}
.footer-links {
  display: flex;
  gap: 2rem;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--fg); }
.footer-bottom {
  width: 100%;
  font-size: 0.78rem;
  color: rgba(120, 120, 160, 0.5);
  margin-top: 0.5rem;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .steps-grid { grid-template-columns: 1fr; gap: 1rem; }
  .gen-grid { grid-template-columns: 1fr; }
  .scoring-inner { grid-template-columns: 1fr; gap: 3rem; }
  .scoring-visual { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .closing-grid { flex-direction: column; }
  .closing-divider { width: 80px; height: 1px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .hero { padding: 5rem 1.5rem 3rem; }
  .how-it-works, .gen-types, .scoring-section, .closing-section { padding-left: 1.5rem; padding-right: 1.5rem; }
  .offline-section { padding-left: 1.5rem; padding-right: 1.5rem; }
  .closing-stat { padding: 1.75rem 2rem; }
  .stat-number { font-size: 2.5rem; }
  .dim-item { grid-template-columns: 120px 1fr; }
}