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

:root {
  --bg: #0C0C0C;
  --bg-alt: #111111;
  --fg: #F2EDE6;
  --fg-muted: rgba(242,237,230,0.55);
  --accent: #CAFF2D;
  --accent-dim: rgba(202,255,45,0.12);
  --border: rgba(242,237,230,0.08);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* — NAV — */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 40px;
  height: 60px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(12,12,12,0.85);
  backdrop-filter: blur(12px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.nav-tag {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* — HERO — */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(202,255,45,0.05) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 40px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--fg);
  margin-bottom: 24px;
}
.hero-lede {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 420px;
  line-height: 1.65;
  margin-bottom: 48px;
}
.hero-stat-row {
  display: flex;
  gap: 40px;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-stat-val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--accent);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.72rem;
  color: var(--fg-muted);
  line-height: 1.3;
  max-width: 80px;
}

/* Quest Card */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-end;
}
.quest-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  width: 320px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.quest-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.quest-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
  text-transform: uppercase;
}
.quest-xp {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 2px 8px;
  border-radius: 99px;
}
.quest-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--fg);
  margin-bottom: 16px;
}
.quest-progress-wrap {
  margin-bottom: 16px;
}
.quest-progress-bar {
  height: 4px;
  background: rgba(242,237,230,0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 6px;
}
.quest-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.6s ease;
}
.quest-progress-label {
  font-size: 0.72rem;
  color: var(--fg-muted);
}
.quest-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.quest-reward {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--fg-muted);
}
.reward-icon { color: var(--accent); font-size: 0.9rem; }
.quest-streak {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: var(--fg-muted);
}
.streak-fire { color: #FF9B52; }

/* Level Badge */
.level-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  width: 320px;
}
.level-ring {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}
.level-ring svg {
  width: 100%;
  height: 100%;
}
.level-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.level-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--fg);
  line-height: 1;
}
.level-label {
  font-size: 0.55rem;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.level-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.level-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--fg);
}
.level-xp {
  font-size: 0.72rem;
  color: var(--fg-muted);
}

/* — HOW — */
.how {
  padding: 100px 40px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.how-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 48px;
}
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.how-step {
  padding: 40px 36px;
  background: var(--bg);
  border: 1px solid var(--border);
}
.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--accent-dim);
  margin-bottom: 20px;
  line-height: 1;
}
.step-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--fg);
  margin-bottom: 12px;
}
.step-body {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* — AGENTS — */
.agents {
  padding: 100px 40px;
}
.agents-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}
.agents-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 20px;
}
.agents-body {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.7;
}
.agents-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.agent-card {
  padding: 28px 24px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}
.agent-icon {
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 14px;
}
.agent-card h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--fg);
  margin-bottom: 10px;
}
.agent-card p {
  font-size: 0.82rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* — PLAYBOOK — */
.playbook {
  padding: 80px 40px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.playbook-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.playbook-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.play-item {
  padding: 28px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
}
.play-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  background: var(--accent-dim);
  padding: 3px 8px;
  border-radius: 4px;
}
.play-item p {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* — CLOSING — */
.closing {
  padding: 120px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.closing-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(202,255,45,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.closing-inner {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.closing-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 20px;
}
.closing-sub {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* — FOOTER — */
.footer {
  padding: 32px 40px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--accent);
}
.footer-tagline {
  font-size: 0.72rem;
  color: var(--fg-muted);
}
.footer-meta {
  font-size: 0.72rem;
  color: var(--fg-muted);
}

/* — RESPONSIVE — */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 100px;
  }
  .hero-copy { order: 1; }
  .hero-visual { order: 2; align-items: center; }
  .hero-headline { font-size: 2.8rem; }
  .hero-stat-row { gap: 24px; }
  .how-steps { grid-template-columns: 1fr; }
  .agents-inner { grid-template-columns: 1fr; }
  .agents-grid { grid-template-columns: 1fr 1fr; }
  .playbook-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .nav { padding: 0 20px; }
  .hero-inner { padding: 100px 20px 60px; }
  .how, .agents, .playbook { padding: 60px 20px; }
  .closing { padding: 80px 20px; }
  .footer { padding: 24px 20px; }
  .agents-grid, .playbook-grid { grid-template-columns: 1fr; }
  .hero-stat-row { flex-wrap: wrap; }
  .quest-card, .level-badge { width: 100%; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}