/* FeedRank Landing Page — Dark, Signal-Forward */

:root {
  --bg: #0b0b0f;
  --bg2: #111117;
  --fg: #f0f0f5;
  --fg-muted: #7a7a8a;
  --accent: #c8f347;
  --accent-dim: rgba(200, 243, 71, 0.12);
  --border: rgba(255,255,255,0.08);
  --noise-card-bg: #0f0f16;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Topbar ─────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(11,11,15,0.85);
  backdrop-filter: blur(12px);
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.tagline {
  font-size: 0.8rem;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Section base ───────────────────────────────────── */
.section-heading {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.section-heading em { font-style: normal; color: var(--accent); }
.section-heading.centered { text-align: center; }

/* ── Hero ───────────────────────────────────────────── */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 20px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--fg);
  margin-bottom: 24px;
}
.hero-headline em {
  font-style: normal;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 2px 10px;
  border-radius: 4px;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 40px;
}
.hero-stat-row {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg2);
}
.stat {
  flex: 1;
  padding: 20px 24px;
  text-align: center;
}
.stat-number {
  display: block;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.72rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* ── Feed Window (Hero Visual) ─────────────────────── */
.hero-visual { display: flex; justify-content: center; }
.feed-window {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 32px 64px rgba(0,0,0,0.5);
}
.feed-window-header {
  background: #1a1a24;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}
.window-dots {
  display: flex;
  gap: 5px;
}
.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #333;
}
.window-dots span:first-child { background: #ff5f57; }
.window-dots span:nth-child(2) { background: #febc2e; }
.window-dots span:nth-child(3) { background: #28c840; }
.window-title {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  color: var(--fg-muted);
}
.feed-items { padding: 0; }
.feed-item {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 12px;
  transition: background 0.2s;
}
.feed-item:last-of-type { border-bottom: none; }
.feed-item.signal-item { background: rgba(200,243,71,0.03); }
.feed-item.signal-item:hover { background: rgba(200,243,71,0.07); }
.feed-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}
.av-signal { background: linear-gradient(135deg, #667eea, #764ba2); }
.av-signal-2 { background: linear-gradient(135deg, #f093fb, #f5576c); }
.av-signal-3 { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.av-signal-4 { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.feed-body { flex: 1; min-width: 0; }
.feed-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--fg);
}
.feed-headline {
  font-size: 0.72rem;
  color: var(--fg-muted);
  margin-bottom: 4px;
}
.signal-badge {
  background: var(--accent);
  color: #000;
  font-size: 0.6rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.feed-text {
  font-size: 0.8rem;
  color: var(--fg);
  margin-bottom: 6px;
  line-height: 1.4;
}
.feed-meta {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  color: var(--fg-muted);
}
.feed-count {
  padding: 12px 16px;
  background: var(--accent-dim);
  border-top: 1px solid rgba(200,243,71,0.2);
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent);
  text-align: center;
}
.count-num { font-weight: 500; }

/* ── The Noise ─────────────────────────────────────── */
.thenoise {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 32px;
}
.thenoise-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.thenoise-text p {
  color: var(--fg-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-top: 20px;
}
.noise-examples {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.noise-card {
  background: var(--noise-card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}
.noise-icon {
  margin-bottom: 8px;
}
.noise-card p {
  font-size: 0.85rem;
  color: var(--fg);
  line-height: 1.4;
  margin-bottom: 6px;
}
.noise-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  color: #ff6b6b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── How It Works ───────────────────────────────────── */
.howitworks {
  padding: 96px 32px;
  max-width: 1200px;
  margin: 0 auto;
}
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 56px;
}
.step {
  flex: 1;
  max-width: 280px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg2);
}
.step-num {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 16px;
}
.step-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--fg);
  margin-bottom: 10px;
}
.step-desc {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.6;
}
.step-arrow {
  padding: 0 20px;
  flex-shrink: 0;
}

/* ── Features ───────────────────────────────────────── */
.features {
  padding: 96px 32px;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.features-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.features-inner .section-heading {
  margin-bottom: 56px;
  max-width: 600px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.feature-card {
  background: var(--bg);
  padding: 32px;
}
.feature-icon {
  margin-bottom: 16px;
}
.feature-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--fg);
  margin-bottom: 8px;
}
.feature-desc {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ── The Feed Comparison ────────────────────────────── */
.thefeed {
  padding: 96px 32px;
  max-width: 1200px;
  margin: 0 auto;
}
.thefeed-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: center;
}
.feed-comparison-label {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.comparison-badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.comparison-badge.old {
  background: rgba(255,255,255,0.06);
  color: var(--fg-muted);
  border: 1px solid var(--border);
}
.comparison-badge.new {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(200,243,71,0.2);
}
.comparison-table {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.comp-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  border-bottom: 1px solid var(--border);
}
.comp-row:last-child { border-bottom: none; }
.comp-row > span {
  padding: 14px 20px;
  font-size: 0.82rem;
  border-right: 1px solid var(--border);
}
.comp-row > span:last-child { border-right: none; }
.comp-label { color: var(--fg-muted); }
.comp-old { color: #888; text-align: center; font-family: 'DM Mono', monospace; font-size: 0.75rem; }
.comp-new { color: var(--accent); text-align: center; font-family: 'DM Mono', monospace; font-size: 0.75rem; }
.feed-quote {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  background: var(--bg2);
}
.feed-quote p {
  font-size: 1.05rem;
  color: var(--fg);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 20px;
}
.feed-quote cite { display: flex; flex-direction: column; gap: 2px; }
.cite-name { font-weight: 600; font-size: 0.875rem; color: var(--fg); }
.cite-title { font-size: 0.75rem; color: var(--fg-muted); }

/* ── Closing ────────────────────────────────────────── */
.closing {
  padding: 120px 32px;
  text-align: center;
}
.closing-inner { max-width: 700px; margin: 0 auto; }
.closing-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--fg);
  margin-bottom: 24px;
}
.closing-sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 40px;
}
.cta-note {
  font-family: 'DM Mono', monospace;
  font-size: 0.8rem;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
}

/* ── Footer ─────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 32px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-inner p {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
  .hero-visual { display: none; }
  .thenoise-inner { grid-template-columns: 1fr; }
  .steps { flex-direction: column; gap: 16px; }
  .step-arrow { transform: rotate(90deg); }
  .features-grid { grid-template-columns: 1fr; }
  .thefeed-inner { grid-template-columns: 1fr; }
  .feed-comparison-label { flex-wrap: wrap; }
}
/* ── Buttons ────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #000;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.85; }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary.btn-lg { padding: 16px 40px; font-size: 1.05rem; }
.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--fg-muted);
  font-size: 0.875rem;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--fg-muted); color: var(--fg); }

/* ── Auth Pages ─────────────────────────────────────── */
.auth-page {
  min-height: calc(100vh - 65px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
}
.auth-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px 40px;
  width: 100%;
  max-width: 440px;
}
.auth-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--fg);
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}
.auth-error {
  background: rgba(255, 80, 80, 0.1);
  border: 1px solid rgba(255, 80, 80, 0.3);
  color: #ff7070;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  margin-bottom: 20px;
}
.auth-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: var(--fg-muted); letter-spacing: 0.04em; text-transform: uppercase; }
.form-group input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg);
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus { border-color: var(--accent); }
.form-group input::placeholder { color: var(--fg-muted); }
.auth-footer-text {
  text-align: center;
  font-size: 0.875rem;
  color: var(--fg-muted);
  margin-top: 24px;
}
.auth-footer-text a { color: var(--accent); text-decoration: none; }
.auth-footer-text a:hover { text-decoration: underline; }

/* ── Dashboard ───────────────────────────────────────── */
.dashboard-page { max-width: 900px; margin: 0 auto; padding: 64px 32px; }
.dashboard-header { margin-bottom: 48px; }
.dashboard-header h1 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 2rem; letter-spacing: -0.02em; margin-bottom: 8px; }
.dashboard-subtitle { color: var(--fg-muted); font-size: 1rem; }
.dashboard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dash-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 16px; padding: 28px; }
.dash-card h3 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1rem; margin-bottom: 8px; }
.dash-card-desc { font-size: 0.875rem; color: var(--fg-muted); line-height: 1.6; margin-bottom: 20px; }
.dash-card .btn-primary, .dash-card .btn-primary[disabled] { width: 100%; }
.topbar-actions { display: flex; align-items: center; gap: 16px; }
.user-email { font-size: 0.8rem; color: var(--fg-muted); }

/* ── Pricing ─────────────────────────────────────────── */
.pricing-page { max-width: 700px; margin: 0 auto; padding: 80px 32px; text-align: center; }
.pricing-header { margin-bottom: 48px; }
.pricing-header h1 { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 2.5rem; letter-spacing: -0.03em; margin-bottom: 12px; }
.pricing-header p { color: var(--fg-muted); font-size: 1.05rem; }
.pricing-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 56px 48px;
  display: inline-block;
  width: 100%;
  max-width: 440px;
}
.plan-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.plan-price { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 3.5rem; letter-spacing: -0.04em; color: var(--fg); margin-bottom: 8px; }
.plan-price span { font-size: 1.25rem; color: var(--fg-muted); font-weight: 500; }
.plan-features { list-style: none; text-align: left; margin: 32px 0; display: flex; flex-direction: column; gap: 12px; }
.plan-features li { font-size: 0.9rem; color: var(--fg-muted); padding-left: 24px; position: relative; }
.plan-features li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.plan-note { font-size: 0.75rem; color: var(--fg-muted); margin-top: 16px; }

/* ── Success ─────────────────────────────────────────── */
.success-page { max-width: 600px; margin: 0 auto; padding: 100px 32px; text-align: center; }
.success-icon {
  width: 72px; height: 72px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: #000;
  margin: 0 auto 32px;
}
.success-page h1 { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 2.5rem; letter-spacing: -0.03em; margin-bottom: 16px; }
.success-message { color: var(--fg-muted); font-size: 1.05rem; margin-bottom: 32px; }
.success-details {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 40px;
  display: inline-block;
  width: 100%;
}
.success-details p { font-size: 0.9rem; margin-bottom: 8px; color: var(--fg-muted); }
.success-details p:last-child { margin-bottom: 0; }
.success-details strong { color: var(--fg); }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
  .hero-visual { display: none; }
  .thenoise-inner { grid-template-columns: 1fr; }
  .steps { flex-direction: column; gap: 16px; }
  .step-arrow { transform: rotate(90deg); }
  .features-grid { grid-template-columns: 1fr; }
  .thefeed-inner { grid-template-columns: 1fr; }
  .feed-comparison-label { flex-wrap: wrap; }
  .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .topbar-inner, .hero, .thenoise, .howitworks, .features, .thefeed, .closing { padding-left: 20px; padding-right: 20px; }
  .noise-examples { grid-template-columns: 1fr; }
  .comp-row { grid-template-columns: 1fr; gap: 4px; }
  .comp-row > span { border-right: none; border-bottom: 1px solid var(--border); }
  .comp-row > span:last-child { border-bottom: none; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  .auth-card { padding: 32px 24px; }
  .pricing-card { padding: 40px 28px; }
}