:root {
  --bg: #07101f;
  --bg-2: #0b1626;
  --panel: #0e1a2c;
  --border: #1c2c44;
  --text: #eaf0f8;
  --muted: #94a6c2;
  --accent: #2f7fd6;
  --orange: #f5921e;
  --gold: #ffc04d;
  --grad: linear-gradient(120deg, #2f7fd6 0%, #4aa3e8 38%, #f5921e 100%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(900px 520px at 50% 118%, rgba(255, 176, 64, 0.16) 0%, transparent 60%),
    radial-gradient(1200px 700px at 72% -12%, #112a4a 0%, var(--bg) 55%);
  color: var(--text);
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.6;
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Nav --- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0 0;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 28px; height: 28px;
  display: block;
  border-radius: 7px;
  filter: drop-shadow(0 4px 14px rgba(47, 127, 214, 0.5));
}
.brand-mark.small { width: 18px; height: 18px; border-radius: 5px; filter: none; }
.brand-name { font-weight: 600; font-size: 18px; letter-spacing: 0.2px; }

.badge {
  font-size: 12.5px;
  font-weight: 500;
  color: #bcd6ff;
  padding: 5px 12px;
  border: 1px solid rgba(47, 127, 214, 0.45);
  border-radius: 999px;
  background: rgba(47, 127, 214, 0.12);
}

/* --- Hero --- */
.hero {
  padding: 96px 0 48px;
  max-width: 720px;
}
.hero h1 {
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -1.5px;
  margin: 0 0 22px;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 620px;
  margin: 0 0 32px;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.micro { color: var(--muted); font-size: 14px; margin-top: 18px; opacity: 0.85; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn.primary {
  color: #fff;
  background: var(--grad);
  box-shadow: 0 8px 24px rgba(47, 127, 214, 0.35);
}
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(245, 146, 30, 0.4); }
.btn.ghost {
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.btn.ghost:hover { border-color: var(--accent); }

/* --- Preview --- */
.preview { margin: 28px 0 70px; }
.preview-frame {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.preview-bar {
  display: flex;
  gap: 7px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.preview-bar span { width: 11px; height: 11px; border-radius: 50%; background: #2a3a52; }
.preview-bar span:first-child { background: #e25c54; }
.preview-bar span:nth-child(2) { background: var(--gold); }
.preview-bar span:nth-child(3) { background: #4aa3e8; }
.preview-frame img { display: block; width: 100%; height: auto; }

/* --- Features --- */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 70px;
}
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
}
.card h3 { margin: 16px 0 8px; font-size: 19px; font-weight: 600; }
.card p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 15px; }

.ic {
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(47, 127, 214, 0.1);
  position: relative;
}
.ic::before, .ic::after { content: ""; position: absolute; }
/* cluster icon: many sources merging into one story */
.ic-cluster::before {
  inset: 0;
  background:
    radial-gradient(circle 3px at 11px 12px, var(--muted) 98%, transparent),
    radial-gradient(circle 3px at 11px 26px, var(--muted) 98%, transparent),
    radial-gradient(circle 3px at 17px 19px, var(--muted) 98%, transparent);
}
.ic-cluster::after {
  inset: 0;
  background: radial-gradient(circle 6px at 27px 19px, var(--accent) 98%, transparent);
}
/* ai icon: spark */
.ic-ai::before { inset: 9px; border-radius: 50%; border: 2px solid var(--accent); }
.ic-ai::after { left: 18px; top: 6px; width: 2px; height: 26px; background: linear-gradient(var(--gold), transparent); transform: rotate(35deg); }
/* rank icon: three ascending bars */
.ic-rank::before {
  inset: 0;
  background:
    linear-gradient(var(--accent), var(--accent)) 9px 23px / 5px 6px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 17px 17px / 5px 12px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 25px 9px / 5px 20px no-repeat;
}
/* blindspot icon: a circle covered on one side only */
.ic-blindspot::before { inset: 9px; border-radius: 50%; border: 2px solid var(--accent); }
.ic-blindspot::after { left: 11px; top: 11px; width: 8px; height: 16px; background: var(--orange); border-radius: 8px 0 0 8px; opacity: 0.85; }

/* --- Signup --- */
.signup {
  text-align: center;
  padding: 56px 24px 64px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: radial-gradient(600px 300px at 50% 0%, rgba(47,127,214,0.14), transparent);
  margin-bottom: 60px;
}
.signup h2 { font-size: clamp(26px, 4vw, 34px); margin: 0 0 12px; letter-spacing: -0.5px; }
.signup p { color: var(--muted); max-width: 460px; margin: 0 auto 26px; line-height: 1.6; }

/* --- Footer --- */
.foot {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 0 48px;
  color: var(--muted);
  font-size: 14px;
}
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot .dot { opacity: 0.5; }
.social { display: flex; gap: 12px; }
.social a { color: var(--muted); }
.social a:hover { color: var(--accent); }

@media (max-width: 680px) {
  .features { grid-template-columns: 1fr; }
  .hero { padding-top: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  #bg { display: none; }
  .btn { transition: none; }
}
