/* Landing page — gen-z friendly dark theme with purple/blue/red accents.
   Uses the same color tokens as the app but tuned softer + more vibrant. */

:root {
  --bg:          #0a0a0f;
  --bg-elev:    #13131a;
  --bg-elev-2:  #1a1a24;
  --border:     #23232e;
  --text:       #f0f0f5;
  --text-dim:   #8b8b99;
  --lib:        #4a9eff;
  --con:        #ff5a5a;
  --neu:        #9aa0ac;
  --accent:     #a855f7; /* purple — "gap" between lib and con */
  --accent-2:   #ec4899; /* pink for hover accents */
  --radius:     14px;
  --radius-lg:  20px;
  --radius-xl:  28px;
}

body.landing {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  line-height: 1.5;
  overflow-x: hidden;
}

body.landing h1, body.landing h2, body.landing h3,
body.landing .brand-name {
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

body.landing a { color: inherit; text-decoration: none; }

/* ---------------- nav ---------------- */

.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 28px;
  backdrop-filter: blur(12px);
  background: rgba(10, 10, 15, 0.7);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.nav:hover { border-bottom-color: var(--border); }

.brand {
  display: flex; align-items: center; gap: 10px;
}
.brand-logo { width: 28px; height: 28px; }
.brand-logo-sm { width: 18px; height: 18px; }
.brand-name {
  font-size: 18px;
  background: linear-gradient(120deg, var(--lib), var(--accent), var(--con));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-actions { display: flex; gap: 10px; align-items: center; }

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elev);
  color: var(--text);
  font-family: inherit; font-weight: 600; font-size: 14px;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-1px); border-color: var(--accent); }
.btn:active { transform: translateY(0); }
.btn-ghost { background: transparent; }
.btn-primary {
  background: linear-gradient(120deg, var(--lib), var(--accent), var(--con));
  border: 0;
  color: white;
  box-shadow: 0 0 0 0 rgba(168, 85, 247, 0);
}
.btn-primary:hover {
  box-shadow: 0 8px 32px -8px rgba(168, 85, 247, 0.6);
  transform: translateY(-2px);
}
.btn-lg { padding: 14px 24px; font-size: 15px; }
.btn-icon { flex-shrink: 0; }

/* ---------------- hero ---------------- */

.hero {
  position: relative;
  padding: 90px 28px 120px;
  text-align: center;
  overflow: hidden;
}
.hero-inner { max-width: 860px; margin: 0 auto; position: relative; z-index: 2; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elev);
  font-size: 12px; color: var(--text-dim);
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot-lib { background: var(--lib); }
.dot-con { background: var(--con); }

.hero-title {
  font-size: clamp(42px, 7vw, 84px);
  line-height: 1.02;
  margin: 0 0 24px 0;
}
.gradient-text {
  background: linear-gradient(120deg, var(--lib) 0%, var(--accent) 50%, var(--con) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 40px;
}

.cta-row {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.cta-note { font-size: 12px; color: var(--text-dim); }

/* ambient glow behind hero */
.hero-glow {
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 500px;
  background: radial-gradient(closest-side, rgba(168, 85, 247, 0.35), transparent 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

/* ---------------- features ---------------- */

.features {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 28px 120px;
}
.features-head { text-align: center; margin-bottom: 56px; }
.features-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 12px 0;
}
.features-head .hint {
  font-size: 16px; color: var(--text-dim);
  max-width: 560px; margin: 0 auto;
}

.feature-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.feature {
  background: linear-gradient(135deg, var(--bg-elev), var(--bg-elev-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.2s, border-color 0.2s;
}
.feature:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: white;
}
.feature-icon-topics   { background: linear-gradient(135deg, var(--lib), #7a5cff); }
.feature-icon-cloud    { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.feature-icon-filter   { background: linear-gradient(135deg, var(--con), #ff8a4a); }
.feature-icon-drill    { background: linear-gradient(135deg, #10b981, var(--lib)); }
.feature-icon-daily    { background: linear-gradient(135deg, #f59e0b, var(--con)); }
.feature-icon-sources  { background: linear-gradient(135deg, #06b6d4, var(--lib)); }

.feature h3 { font-size: 18px; margin: 0 0 8px 0; }
.feature p { color: var(--text-dim); font-size: 14px; margin: 0; }

/* ---------------- bottom cta ---------------- */

.bottom-cta {
  text-align: center;
  padding: 80px 28px 100px;
  border-top: 1px solid var(--border);
  background: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.08), transparent 70%);
}
.bottom-cta h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 28px 0;
}

/* ---------------- footer ---------------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 24px 28px;
  color: var(--text-dim);
  font-size: 13px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-brand { display: flex; align-items: center; gap: 8px; }

/* ---------------- mobile ---------------- */
@media (max-width: 640px) {
  .nav { padding: 14px 18px; }
  .hero { padding: 50px 18px 80px; }
  .features { padding: 20px 18px 80px; }
  .bottom-cta { padding: 60px 18px 80px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .feature-grid { grid-template-columns: 1fr; }
}
