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

:root {
  --bg: #09090b;
  --bg-2: #111113;
  --bg-3: #18181b;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.16);
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --text-subtle: #71717a;
  --purple: #6366f1;
  --purple-light: #818cf8;
  --violet: #8b5cf6;
  --green: #22c55e;
  --blue: #3b82f6;
  --orange: #f97316;
  --pink: #ec4899;
  --indigo: #6366f1;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* NAV */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(9,9,11,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover { color: var(--text); background: var(--bg-3); }

.nav-cta {
  background: var(--purple) !important;
  color: white !important;
  padding: 7px 16px !important;
}

.nav-cta:hover { background: var(--purple-light) !important; }

/* HERO */
.hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 100px 24px 80px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-3);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 32px;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

h1 {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--purple);
  color: white;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 0 0 0 rgba(99,102,241,0);
}

.btn-primary:hover {
  background: var(--purple-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(99,102,241,0.35);
}

.btn-primary:active { transform: scale(0.97); }

.btn-large { font-size: 16px; padding: 14px 28px; border-radius: 14px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 12px;
  transition: color 0.15s, background 0.15s;
}

.btn-ghost:hover { color: var(--text); background: var(--bg-3); }

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.stat { text-align: center; }

.stat span {
  display: block;
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, #6366f1, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat label {
  display: block;
  font-size: 12px;
  color: var(--text-subtle);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* SECTION SHARED */
section { padding: 96px 24px; }

.section-label {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--purple-light);
  margin-bottom: 16px;
}

h2 {
  text-align: center;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 17px;
  max-width: 520px;
  margin: 0 auto 56px;
  line-height: 1.7;
}

/* EMOTIONS */
.emotions { background: var(--bg-2); }

.emotion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
}

.emotion-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.emotion-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.3s;
}

.emotion-card.confused::before { background: radial-gradient(ellipse at top left, rgba(59,130,246,0.1), transparent 70%); }
.emotion-card.frustrated::before { background: radial-gradient(ellipse at top left, rgba(239,68,68,0.1), transparent 70%); }
.emotion-card.bored::before { background: radial-gradient(ellipse at top left, rgba(234,179,8,0.1), transparent 70%); }

.emotion-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.emotion-card:hover::before { opacity: 1; }

.emotion-icon { font-size: 36px; margin-bottom: 16px; }

.emotion-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.confused .emotion-tag { background: rgba(59,130,246,0.15); color: #93c5fd; }
.frustrated .emotion-tag { background: rgba(239,68,68,0.15); color: #fca5a5; }
.bored .emotion-tag { background: rgba(234,179,8,0.15); color: #fde047; }

.emotion-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.emotion-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* FEATURES */
.features { max-width: 1100px; margin: 0 auto; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  max-width: 980px;
  margin: 56px auto 0;
}

.feature-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.2s;
}

.feature-card:hover { border-color: var(--border-hover); }

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon.purple { background: rgba(99,102,241,0.15); color: var(--purple-light); }
.feature-icon.blue { background: rgba(59,130,246,0.15); color: #93c5fd; }
.feature-icon.green { background: rgba(34,197,94,0.15); color: #86efac; }
.feature-icon.orange { background: rgba(249,115,22,0.15); color: #fdba74; }
.feature-icon.pink { background: rgba(236,72,153,0.15); color: #f9a8d4; }
.feature-icon.indigo { background: rgba(99,102,241,0.15); color: var(--purple-light); }

.feature-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* SCREENSHOTS */
.screenshots { background: var(--bg-2); overflow: hidden; }

.screenshot-scroll {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  margin: 0 -24px;
  padding: 0 24px 16px;
}

.screenshot-scroll::-webkit-scrollbar { height: 4px; }
.screenshot-scroll::-webkit-scrollbar-track { background: transparent; }
.screenshot-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.screenshot-track {
  display: flex;
  gap: 16px;
  width: max-content;
  margin-bottom: 24px;
}

.screenshot-track figure {
  flex-shrink: 0;
  text-align: center;
}

.screenshot-track img {
  width: 240px;
  border-radius: 16px;
  border: 1px solid var(--border);
  display: block;
  transition: transform 0.2s;
}

.screenshot-track img:hover { transform: scale(1.02); }

.screenshot-track figcaption {
  font-size: 12px;
  color: var(--text-subtle);
  margin-top: 10px;
  max-width: 240px;
}

.screenshot-wide {
  max-width: 900px;
  margin: 8px auto 0;
  text-align: center;
}

.screenshot-wide img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.screenshot-wide p {
  font-size: 13px;
  color: var(--text-subtle);
  margin-top: 12px;
}

/* INSTALL */
.install { max-width: 700px; margin: 0 auto; }

.install-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 56px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.install-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(99,102,241,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.install-card h2 { margin-bottom: 12px; }

.install-card > p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 40px;
}

.install-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
  margin-bottom: 40px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--purple-light);
}

.step div { display: flex; flex-direction: column; gap: 3px; }
.step strong { font-size: 15px; font-weight: 600; }
.step span { font-size: 14px; color: var(--text-muted); }

.install-note {
  font-size: 13px;
  color: var(--text-subtle);
  margin-top: 16px;
}

.install-note a { color: var(--purple-light); text-decoration: none; }
.install-note a:hover { text-decoration: underline; }

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
}

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

footer p {
  font-size: 14px;
  color: var(--text-subtle);
}

footer a { color: var(--text-muted); text-decoration: none; }
footer a:hover { color: var(--text); }

.footer-small { font-size: 12px; }

/* RESPONSIVE */
@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { padding: 64px 20px 56px; }
  .install-card { padding: 36px 24px; }
  .stat-divider { display: none; }
  .hero-stats { gap: 20px; }
}
