/* ── Tokens ── */
:root {
  --bg:           #0b0b10;
  --surface:      rgba(255,255,255,0.04);
  --border:       rgba(255,255,255,0.09);
  --border-hover: rgba(255,255,255,0.22);
  --text:         #ececf1;
  --muted:        rgba(236,236,241,0.5);
  --accent:       #8b5cf6;
  --accent-dark:  #7c3aed;
  --tag-bg:       rgba(139,92,246,0.15);
  --tag-text:     #c4b5fd;
  --nav-bg:       rgba(11,11,16,0.75);
  --glow:         rgba(124,58,237,0.18);
  --radius:       18px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg:           #f5f5f7;
    --surface:      #ffffff;
    --border:       #e2e2e6;
    --border-hover: #b5b5c0;
    --text:         #111114;
    --muted:        #6b6b78;
    --accent:       #7c3aed;
    --accent-dark:  #6d28d9;
    --tag-bg:       #ede9fe;
    --tag-text:     #6d28d9;
    --nav-bg:       rgba(245,245,247,0.8);
    --glow:         rgba(124,58,237,0.08);
  }
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Background glow ── */
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 45% at 50% 0%, var(--glow), transparent 70%);
  z-index: 0;
}

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.75rem;
  height: 56px;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-brand {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}
.nav-brand .dim { color: var(--muted); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-link:hover, .nav-link--active { color: var(--text); }

/* ── Main ── */
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem;
  position: relative;
  z-index: 1;
}

/* ── Card ── */
.card {
  width: 100%;
  max-width: 620px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem 2.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 0 0 1px var(--border),
    0 20px 60px rgba(0,0,0,0.35),
    0 0 80px -10px var(--glow);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: var(--border-hover);
}

.card-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.card-icon { font-size: 2.5rem; line-height: 1; }

.card-title {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.card-subtitle {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* ── Tags ── */
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.tag {
  background: var(--tag-bg);
  color: var(--tag-text);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  letter-spacing: 0.01em;
}

/* ── CTA ── */
.cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1.25rem;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 2px 12px rgba(124,58,237,0.35);
}
.cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(124,58,237,0.5);
}

.cta--secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}
.cta--secondary:hover {
  border-color: var(--border-hover);
  background: var(--surface);
  box-shadow: none;
}

/* ── About page ── */
.about {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.about h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}
.about p { font-size: 0.95rem; color: var(--muted); line-height: 1.75; }
.about p strong { color: var(--text); font-weight: 600; }
.about a { color: var(--accent); text-decoration: none; }
.about a:hover { text-decoration: underline; }
.about .cta { align-self: flex-start; margin-top: 0.75rem; }

/* ── Footer ── */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.25rem;
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
footer a { color: var(--muted); text-decoration: none; transition: color 0.15s; }
footer a:hover { color: var(--text); }

/* ── Mobile ── */
@media (max-width: 500px) {
  .card { padding: 1.75rem 1.5rem; }
  .card-title { font-size: 1.6rem; }
  .card-footer { flex-direction: column; align-items: flex-start; }
  nav { padding: 0 1rem; }
}
