:root {
  --bg: #0a0b10;
  --bg-alt: #0f1118;
  --surface: #151823;
  --border: #232838;
  --text: #e8eaf1;
  --muted: #98a0b5;
  --accent: #7c6cff;
  --accent-2: #46e0c0;
  --accent-soft: rgba(124, 108, 255, 0.14);
  --radius: 14px;
  --wrap: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }
.center { text-align: center; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 10px 18px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #6a58ff; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 11, 16, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .2px; }
.brand-mark { color: var(--accent); font-size: 1.2rem; }
.brand-suffix { color: var(--muted); font-weight: 500; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--muted); font-size: .95rem; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* Hero */
.hero { padding: 96px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% 30% 40% -10%;
  background: radial-gradient(600px 400px at 20% 10%, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.eyebrow { color: var(--accent-2); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 18px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.1; margin: 0 0 20px; letter-spacing: -.02em; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 620px; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.center-actions { justify-content: center; }
.stats { display: flex; gap: 48px; margin: 56px 0 0; flex-wrap: wrap; }
.stats dt { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }
.stats dd { margin: 0; font-size: 1.4rem; font-weight: 700; }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 16px; letter-spacing: -.01em; }
.sub { color: var(--muted); margin-top: 0; margin-bottom: 40px; }
.grid-2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.grid-2 p { color: var(--muted); }

.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pillars li {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px; font-weight: 600;
}
.pillars span { color: var(--accent); font-variant-numeric: tabular-nums; font-size: .85rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
  transition: border-color .2s ease, transform .15s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card h3 { margin: 0 0 10px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 32px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer p { margin: 0; color: var(--muted); font-size: .9rem; }
.footer nav { display: flex; gap: 20px; }
.footer nav a { color: var(--muted); font-size: .9rem; }
.footer nav a:hover { color: var(--text); }

/* Forms (login) */
.auth-shell { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 48px 24px; }
.auth-card {
  width: 100%; max-width: 400px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 36px;
}
.auth-card h1 { margin: 0 0 6px; font-size: 1.5rem; }
.auth-card .sub { margin-bottom: 28px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.field input {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--border); color: var(--text);
  font-size: 1rem; font-family: inherit;
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-alert {
  border-radius: 10px; padding: 10px 14px; font-size: .9rem; margin-bottom: 18px; display: none;
}
.form-alert.error { display: block; background: rgba(255, 86, 86, .12); color: #ff8f8f; border: 1px solid rgba(255, 86, 86, .3); }
.form-alert.ok { display: block; background: rgba(70, 224, 192, .12); color: var(--accent-2); border: 1px solid rgba(70, 224, 192, .3); }
.auth-foot { margin-top: 22px; text-align: center; color: var(--muted); font-size: .9rem; }

@media (max-width: 860px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg-alt);
    border-bottom: 1px solid var(--border); padding: 8px 24px;
  }
  .nav.open .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav.open .nav-actions {
    display: flex; position: absolute; top: calc(68px + 145px); left: 0; right: 0;
    padding: 16px 24px; background: var(--bg-alt); gap: 10px;
  }
  .grid-2 { grid-template-columns: 1fr; gap: 32px; }
  .stats { gap: 32px; }
  .hero { padding: 64px 0 48px; }
}
