:root {
  --bg: #0d1016;
  --bg-2: #11151c;
  --panel: #171b22;
  --border: #262d39;
  --text: #e6e9ee;
  --muted: #9aa4b2;
  --accent: #4c7bd9;
  --green: #6aa84f;
  --grad: linear-gradient(120deg, #5b8def 0%, #4bb39d 55%, #6aa84f 100%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: radial-gradient(1200px 700px at 70% -10%, #18233a 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.55;
  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: 22px; height: 22px; border-radius: 7px;
  background: var(--grad);
  box-shadow: 0 4px 18px rgba(76, 123, 217, 0.45);
}
.brand-mark.small { width: 14px; height: 14px; border-radius: 4px; box-shadow: none; }
.brand-name { font-weight: 600; font-size: 18px; letter-spacing: 0.2px; }

.badge {
  font-size: 12.5px;
  font-weight: 500;
  color: #bcd0ff;
  padding: 5px 12px;
  border: 1px solid rgba(91, 141, 239, 0.4);
  border-radius: 999px;
  background: rgba(91, 141, 239, 0.1);
}

/* --- 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(76, 123, 217, 0.35);
}
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(76, 123, 217, 0.5); }
.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: #353d4a; }
.preview-bar span:first-child { background: #c0504d; }
.preview-bar span:nth-child(2) { background: #e0a458; }
.preview-bar span:nth-child(3) { background: #6aa84f; }
.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(76, 123, 217, 0.08);
  position: relative;
}
.ic::before, .ic::after { content: ""; position: absolute; }
/* graph icon: three connected dots */
.ic-graph::before {
  inset: 0;
  background:
    radial-gradient(circle 4px at 12px 13px, var(--accent) 98%, transparent),
    radial-gradient(circle 4px at 26px 11px, var(--green) 98%, transparent),
    radial-gradient(circle 4px at 20px 27px, #e0a458 98%, transparent);
}
.ic-graph::after {
  inset: 0;
  background:
    linear-gradient(to right, transparent 12px, rgba(154,164,178,0.5) 12px 13px, transparent 13px);
  -webkit-mask: linear-gradient(#000 0 0);
  opacity: 0.0;
}
/* ai icon: spark */
.ic-ai::before { inset: 9px; border-radius: 50%; border: 2px solid var(--green); }
.ic-ai::after { left: 18px; top: 6px; width: 2px; height: 26px; background: linear-gradient(var(--accent), transparent); transform: rotate(35deg); }
/* zoom icon */
.ic-zoom::before { left: 9px; top: 9px; width: 14px; height: 14px; border: 2px solid var(--accent); border-radius: 50%; }
.ic-zoom::after { left: 22px; top: 22px; width: 8px; height: 2px; background: var(--accent); transform: rotate(45deg); }
/* open icon: brackets */
.ic-open::before { left: 10px; top: 9px; width: 7px; height: 20px; border: 2px solid var(--green); border-right: none; border-radius: 4px 0 0 4px; }
.ic-open::after { right: 10px; top: 9px; width: 7px; height: 20px; border: 2px solid var(--accent); border-left: none; border-radius: 0 4px 4px 0; }

/* --- 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(76,123,217,0.12), 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;
  padding: 0 0 48px;
  color: var(--muted);
  font-size: 14px;
}
.foot .dot { opacity: 0.5; }

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

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