:root {
  --bg: #06070a;
  --bg-alt: #0d0f14;
  --card: #12141b;
  --border: #23262f;
  --text: #eef0f4;
  --text-dim: #9aa0ac;
  --accent: #5b8cff;
  --accent-2: #7cf5c4;
  --accent-3: #b98cff;
  --radius: 16px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(91, 140, 255, 0.16), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(124, 245, 196, 0.10), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(6, 7, 10, 0.72);
  border-bottom: 1px solid var(--border);
}

header.site .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand .mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  color: #06070a;
}

nav.primary {
  display: flex;
  gap: 28px;
  font-size: 14.5px;
}

nav.primary a {
  text-decoration: none;
  color: var(--text-dim);
  transition: color .15s ease;
}

nav.primary a:hover,
nav.primary a.active {
  color: var(--text);
}

/* Hero */
.hero {
  padding: 96px 0 72px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-2);
  border: 1px solid rgba(124, 245, 196, 0.35);
  background: rgba(124, 245, 196, 0.06);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

h1 {
  font-size: clamp(34px, 5.5vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.gradient-text {
  background: linear-gradient(120deg, var(--accent), var(--accent-3) 55%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 620px;
  margin: 0 auto 36px;
  color: var(--text-dim);
  font-size: 18px;
}

.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .15s ease, opacity .15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-3));
  color: #06070a;
}

.btn.ghost {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255,255,255,0.02);
}

/* Sections */
section { padding: 64px 0; }

.section-head {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

.section-head p { color: var(--text-dim); margin: 0; }

.grid {
  display: grid;
  gap: 20px;
}

.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 860px) {
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  nav.primary { gap: 16px; }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.card .icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  font-size: 20px;
  background: rgba(91, 140, 255, 0.12);
  border: 1px solid rgba(91, 140, 255, 0.25);
}

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

/* App cards */
.app-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.app-card .glyph {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 800;
  color: #06070a;
}

.app-card .glyph.lodeline { background: linear-gradient(135deg, #5b8cff, #7cf5c4); }
.app-card .glyph.magpie { background: linear-gradient(135deg, #b98cff, #ff9bd2); }

.app-card h3 { margin: 0 0 6px; font-size: 20px; }
.app-card .status {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 10px;
}

.app-card p { color: var(--text-dim); margin: 0; font-size: 15px; }

/* Footer */
footer.site {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 40px;
}

footer.site .bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: var(--text-dim);
}

footer.site nav {
  display: flex;
  gap: 20px;
}

footer.site a { text-decoration: none; color: var(--text-dim); }
footer.site a:hover { color: var(--text); }

/* Content pages (privacy / support) */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 0 96px;
}

.doc h1 { font-size: 34px; margin-bottom: 6px; }
.doc .updated { color: var(--text-dim); font-size: 14px; margin-bottom: 40px; }
.doc h2 { font-size: 20px; margin: 36px 0 12px; }
.doc p, .doc li { color: var(--text-dim); font-size: 15.5px; }
.doc ul { padding-left: 20px; }
.doc a.link { color: var(--accent); text-decoration: underline; }

.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 12px;
}

.contact-card dt { color: var(--text-dim); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; margin-top: 16px; }
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd { margin: 4px 0 0; font-size: 16px; }
