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

:root {
  --bg: #0a0b14;
  --bg-2: #0f1020;
  --bg-card: #13162a;
  --fg: #f0f0f5;
  --fg-2: #8b8fa8;
  --lime: #a8ff00;
  --lime-dim: rgba(168, 255, 0, 0.12);
  --lime-border: rgba(168, 255, 0, 0.3);
  --mono: 'Space Mono', monospace;
  --sans: 'DM Sans', sans-serif;
  --head: 'Syne', sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 40px;
  border-bottom: 1px solid rgba(168, 255, 0, 0.08);
  backdrop-filter: blur(16px);
  background: rgba(10, 11, 20, 0.7);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
}

.nav-logo-text {
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  color: var(--fg-2);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav-link:hover { color: var(--fg); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 40px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: -200px;
  right: -100px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(168, 255, 0, 0.07) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(168, 255, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 255, 0, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 60% 40%, black, transparent);
}

.hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--lime-border);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--lime);
  margin-bottom: 28px;
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 6px var(--lime);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

.hero-headline {
  font-family: var(--head);
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--fg);
}

.hero-headline em {
  font-style: normal;
  color: var(--lime);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--fg-2);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-actions { margin-bottom: 56px; }

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--lime);
  color: #0a0b14;
  font-family: var(--head);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
  box-shadow: 0 0 30px rgba(168, 255, 0, 0.25);
}

.btn-primary:hover {
  background: #c0ff33;
  transform: translateY(-1px);
  box-shadow: 0 0 40px rgba(168, 255, 0, 0.4);
}

.btn-primary.btn-large {
  padding: 18px 36px;
  font-size: 1.05rem;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: transparent;
  color: var(--fg-2);
  font-family: var(--sans);
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  transition: all 0.2s;
}

.btn-ghost:hover {
  color: var(--fg);
  border-color: rgba(255,255,255,0.25);
}

.hero-proof {
  display: flex;
  gap: 24px;
  align-items: center;
}

.proof-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.proof-num {
  font-family: var(--head);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--lime);
  line-height: 1;
}

.proof-label {
  font-size: 0.75rem;
  color: var(--fg-2);
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

.proof-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.08);
}

/* ===== DASHBOARD CARD ===== */
.dash-card {
  background: var(--bg-card);
  border: 1px solid rgba(168, 255, 0, 0.15);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 0 60px rgba(168, 255, 0, 0.05), 0 40px 80px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
}

.dash-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  opacity: 0.5;
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.dash-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--lime);
  font-family: var(--mono);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
  animation: pulse 2s infinite;
}

.status-dot.active { background: var(--lime); }

.dash-time {
  font-size: 0.7rem;
  color: var(--fg-2);
  font-family: var(--mono);
  background: rgba(168,255,0,0.08);
  padding: 3px 8px;
  border-radius: 4px;
}

.dash-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.metric {
  background: rgba(168, 255, 0, 0.04);
  border: 1px solid rgba(168, 255, 0, 0.1);
  border-radius: 8px;
  padding: 12px;
}

.metric-label {
  display: block;
  font-size: 0.7rem;
  color: var(--fg-2);
  font-family: var(--mono);
  margin-bottom: 4px;
}

.metric-val {
  font-family: var(--head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--fg);
}

.metric-val.green { color: #4ade80; }
.metric-val.lime { color: var(--lime); }

.dash-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feed-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--fg-2);
  padding: 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.02);
}

.feed-icon { font-size: 0.9rem; }

.feed-item span:nth-child(2) { flex: 1; }

.feed-time {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: rgba(139, 143, 168, 0.6);
}

/* ===== PROOF SECTION ===== */
.proof-section {
  padding: 60px 40px;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  background: var(--bg-2);
}

.proof-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.proof-label {
  font-size: 0.8rem;
  color: var(--fg-2);
  font-family: var(--mono);
  margin-bottom: 24px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.proof-channels {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.channel {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--head);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--fg-2);
  transition: color 0.2s;
}

.channel:hover { color: var(--fg); }

.proof-note {
  font-size: 0.82rem;
  color: rgba(139, 143, 168, 0.6);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== FEATURES ===== */
.features {
  padding: 120px 40px;
}

.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--lime);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--fg);
}

.feature-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 36px;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: rgba(168, 255, 0, 0.2);
  box-shadow: 0 0 40px rgba(168, 255, 0, 0.04);
  transform: translateY(-2px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--lime-dim);
  border: 1px solid var(--lime-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.feature-title {
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--fg);
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--fg-2);
  line-height: 1.7;
}

/* ===== DASHBOARD / STEPS ===== */
.dashboard-section {
  padding: 100px 40px;
  background: var(--bg-2);
}

.steps {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.step {
  flex: 1;
}

.step-num {
  font-family: var(--head);
  font-weight: 800;
  font-size: 3rem;
  color: var(--lime);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 16px;
}

.step-title {
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--fg);
}

.step-desc {
  font-size: 0.9rem;
  color: var(--fg-2);
  line-height: 1.6;
}

.step-arrow {
  flex-shrink: 0;
}

/* ===== SLEEP SECTION ===== */
.sleep-section {
  padding: 120px 40px;
}

.sleep-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.sleep-headline {
  font-family: var(--head);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--fg);
}

.sleep-sub {
  font-size: 1rem;
  color: var(--fg-2);
  line-height: 1.75;
  margin-bottom: 40px;
}

.sleep-stats {
  display: flex;
  gap: 48px;
}

.sstat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sstat-num {
  font-family: var(--head);
  font-weight: 800;
  font-size: 2rem;
  color: var(--lime);
  line-height: 1;
}

.sstat-label {
  font-size: 0.8rem;
  color: var(--fg-2);
  line-height: 1.4;
  max-width: 120px;
}

.sleep-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.moon-wrap {
  position: relative;
  width: 280px;
  height: 280px;
}

.moon {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f0e8c0, #d4c878);
  box-shadow: 0 0 60px rgba(240, 232, 192, 0.25), 0 0 120px rgba(168, 255, 0, 0.1), inset -30px -30px 60px rgba(0,0,0,0.1);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.star {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
}

.s1 { top: 20px; left: 60px; width: 4px; height: 4px; }
.s2 { top: 80px; right: 40px; }
.s3 { bottom: 60px; left: 40px; width: 4px; height: 4px; }

/* ===== CLOSING ===== */
.closing {
  padding: 120px 40px;
  background: var(--bg-2);
}

.closing-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.closing-headline {
  font-family: var(--head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--fg);
}

.closing-sub {
  font-size: 1.05rem;
  color: var(--fg-2);
  line-height: 1.7;
  margin-bottom: 48px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.closing-actions { margin-bottom: 24px; }

.closing-note {
  font-size: 0.8rem;
  color: rgba(139, 143, 168, 0.5);
}

/* ===== FOOTER ===== */
.footer {
  padding: 48px 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--fg);
  margin-bottom: 4px;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--fg-2);
}

.footer-built {
  font-size: 0.78rem;
  color: rgba(139, 143, 168, 0.5);
}

.footer-built a {
  color: var(--lime);
  text-decoration: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner,
  .sleep-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-headline { font-size: 2.4rem; }
  .hero-visual { display: none; }

  .feature-grid { grid-template-columns: 1fr; }

  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }

  .sleep-visual { display: none; }

  .proof-channels { gap: 20px; }

  .nav { padding: 0 20px; }
  .hero { padding: 100px 20px 60px; }
  .features, .dashboard-section, .sleep-section, .closing { padding: 80px 20px; }
  .proof-section { padding: 48px 20px; }
  .footer { padding: 40px 20px; }
}

@media (max-width: 480px) {
  .hero-cta-group { flex-direction: column; }
  .sleep-stats { flex-direction: column; gap: 24px; }
  .proof-channels { flex-direction: column; align-items: center; }
}
