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

:root {
  --bg: #0a0c14;
  --bg-card: #12151f;
  --bg-card-hover: #181c28;
  --fg: #f0f2f8;
  --fg-muted: #8890a8;
  --accent: #00e5b4;
  --accent-dim: rgba(0, 229, 180, 0.12);
  --accent-2: #f59e0b;
  --accent-2-dim: rgba(245, 158, 11, 0.12);
  --border: rgba(255, 255, 255, 0.07);
  --border-accent: rgba(0, 229, 180, 0.25);
  --radius: 12px;
  --radius-lg: 20px;
  --font-head: 'Sora', 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-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* === NAV === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 12, 20, 0.85);
  backdrop-filter: blur(16px);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.3px;
  color: var(--fg);
}
.logo-mark {
  width: 28px; height: 28px;
  background: var(--accent);
  border-radius: 8px;
  position: relative;
}
.logo-mark::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 14px; height: 14px;
  background: var(--bg);
  border-radius: 4px;
}
.nav-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--border-accent);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}
.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 24px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 28px;
  width: fit-content;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  color: var(--fg);
}
.headline-accent {
  color: var(--accent);
  display: block;
}
.hero-sub {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 480px;
}
.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 24px;
}
.hero-stat {
  text-align: center;
}
.stat-value {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 800;
  color: var(--fg);
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* === DASHBOARD WIDGET === */
.hero-right {
  display: flex;
  justify-content: center;
}
.dashboard-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset;
}
.widget-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.widget-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.widget-dot.green { background: #22c55e; }
.widget-dot.amber { background: #f59e0b; }
.widget-dot.red { background: #ef4444; }
.widget-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  margin-left: 6px;
}
.widget-body { padding: 20px; }
.streak-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.streak-flame {
  width: 36px; height: 36px;
  background: var(--accent-2-dim);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 10px;
  position: relative;
}
.streak-flame::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 18px; height: 18px;
  background: var(--accent-2);
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(245,158,11,0.5);
}
.streak-info { display: flex; flex-direction: column; }
.streak-num {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  color: var(--fg);
  line-height: 1;
}
.streak-label { font-size: 12px; color: var(--fg-muted); margin-top: 2px; }
.widget-day-label {
  font-size: 12px;
  color: var(--fg-muted);
  font-weight: 500;
  margin-bottom: 8px;
}
.widget-progress { margin-bottom: 20px; }
.progress-bar {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #00d4a8);
  border-radius: 4px;
  transition: width 1s ease;
}
.tasks-list { display: flex; flex-direction: column; gap: 10px; }
.task-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  font-size: 13px;
  color: var(--fg);
}
.task-item.done { color: var(--fg-muted); text-decoration: line-through; }
.task-check {
  width: 16px; height: 16px;
  border-radius: 4px;
  background: var(--accent);
  flex-shrink: 0;
  position: relative;
}
.task-check::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 10px; height: 6px;
  border-left: 2px solid var(--bg);
  border-bottom: 2px solid var(--bg);
  transform: rotate(-45deg);
}
.task-check.empty { background: transparent; border: 1.5px solid var(--border); }

/* === HERO BACKGROUND === */
.hero-bg-shapes { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.bg-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.bg-circle-1 {
  width: 600px; height: 600px;
  top: -200px; right: -100px;
  background: radial-gradient(circle, rgba(0,229,180,0.08) 0%, transparent 70%);
}
.bg-circle-2 {
  width: 400px; height: 400px;
  bottom: 0; left: -100px;
  background: radial-gradient(circle, rgba(99,102,241,0.06) 0%, transparent 70%);
}
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* === STATS ROW === */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-card {
  background: var(--bg);
  padding: 32px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.stat-card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
.icon-books { background: rgba(99,102,241,0.1); color: #818cf8; }
.icon-tasks { background: rgba(0,229,180,0.1); color: #00e5b4; }
.icon-streak { background: rgba(245,158,11,0.1); color: #f59e0b; }
.scd-value {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 800;
  color: var(--fg);
  line-height: 1;
}
.scd-label {
  font-size: 13px;
  color: var(--fg-muted);
  margin-top: 4px;
}

/* === FEATURES === */
.features {
  padding: 100px 24px;
  max-width: 1160px;
  margin: 0 auto;
}
.section-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-heading {
  font-family: var(--font-head);
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin-bottom: 64px;
  color: var(--fg);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.feature-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.fi-1 { background: rgba(0,229,180,0.1); color: var(--accent); }
.fi-2 { background: rgba(99,102,241,0.12); color: #818cf8; }
.fi-3 { background: rgba(245,158,11,0.1); color: #f59e0b; }
.fi-4 { background: rgba(236,72,153,0.1); color: #f472b6; }
.feature-title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--fg);
}
.feature-desc {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* === HOW IT WORKS === */
.how-it-works {
  padding: 80px 24px 100px;
  max-width: 1160px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
.steps-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 80px;
}
.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.step-number {
  font-family: var(--font-head);
  font-size: 52px;
  font-weight: 800;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  letter-spacing: -2px;
}
.step-icon-wrap {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.si-1 { background: rgba(0,229,180,0.1); color: var(--accent); }
.si-2 { background: rgba(99,102,241,0.12); color: #818cf8; }
.si-3 { background: rgba(245,158,11,0.1); color: #f59e0b; }
.step-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px;
}
.step-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
}
.step-connector {
  width: 60px;
  height: 1px;
  background: var(--border);
  margin-top: 36px;
  flex-shrink: 0;
}
.manifesto {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
}
.manifesto-text {
  font-family: var(--font-head);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 400;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto 20px;
}
.manifesto-text em { font-style: normal; color: var(--fg); font-weight: 600; }
.manifesto-cta {
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.5px;
}

/* === CLOSING === */
.closing {
  position: relative;
  padding: 100px 24px 120px;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--border);
}
.closing-inner { position: relative; z-index: 2; }
.closing-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 24px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 32px;
}
.closing-headline {
  font-family: var(--font-head);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--fg);
}
.closing-sub {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 520px;
  margin: 0 auto 48px;
  line-height: 1.7;
}
.closing-vision {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  margin: 0 auto;
}
.vision-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--fg-muted);
}
.vision-icon {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.closing-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.closing-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(0,229,180,0.06) 0%, transparent 70%);
  filter: blur(40px);
}

/* === FOOTER === */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--fg);
}
.footer-logo-mark {
  width: 24px; height: 24px;
  background: var(--accent);
  border-radius: 7px;
}
.footer-note {
  font-size: 14px;
  color: var(--fg-muted);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero { padding: 100px 20px 60px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-right { order: -1; }
  .dashboard-widget { max-width: 100%; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .steps-row { flex-direction: column; gap: 40px; }
  .step-connector { display: none; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr; }
  .hero-headline { font-size: 36px; }
  .closing-headline { font-size: 32px; }
}