:root {
  --bg: #0d0d14;
  --bg2: #11111c;
  --bg3: #16162a;
  --panel: rgba(20, 20, 40, 0.7);
  --panel-2: rgba(20, 20, 40, 0.45);
  --text: #f0f0ff;
  --muted: rgba(200, 200, 240, 0.65);
  --accent: #6366f1;
  --accent-2: #8b5cf6;
  --accent-glow: rgba(99, 102, 241, 0.25);
  --border: rgba(99, 102, 241, 0.18);
  --border-2: rgba(99, 102, 241, 0.28);
  --font-sans: Inter, system-ui, sans-serif;
  --font-display: "Space Grotesk", Inter, system-ui, sans-serif;
  --container: 1120px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 12px 44px rgba(0, 0, 0, 0.5);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.3);
  --focus: 0 0 0 3px rgba(99, 102, 241, 0.4);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(99, 102, 241, 0.14), transparent 34rem),
    radial-gradient(circle at 82% 18%, rgba(139, 92, 246, 0.12), transparent 30rem),
    linear-gradient(180deg, var(--bg), var(--bg2) 52%, var(--bg));
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.5;
}

body.no-scroll {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.9rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

h3 {
  font-size: 1.25rem;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.section--tight {
  padding: 3.5rem 0;
}

.section__head {
  max-width: 720px;
  margin-bottom: 1.5rem;
}

.section__head p,
.lead {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.muted {
  color: var(--muted);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
  background: rgba(13, 13, 20, 0.78);
  backdrop-filter: blur(18px);
}

.site-nav.is-scrolled {
  box-shadow: var(--shadow-soft);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
}

.brand__logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand--footer .brand__logo {
  width: 32px;
  height: 32px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.nav__links a,
.nav__mobile a {
  color: var(--muted);
  font-weight: 600;
}

.nav__links a:hover,
.nav__mobile a:hover,
.footer a:hover {
  color: var(--text);
}

.nav__actions {
  display: flex;
  gap: 0.75rem;
}

.nav__burger {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.08);
}

.nav__burger span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--text);
}

.nav__mobile {
  display: none;
  max-height: 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  transition: max-height 180ms ease;
}

.nav__mobile.is-open {
  max-height: 480px;
}

.nav__mobile-inner {
  display: grid;
  gap: 0.8rem;
  padding: 1rem 0 1.25rem;
}

.nav__mobile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 14px;
  padding: 0.68rem 1rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 140ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border: none;
  box-shadow: 0 0 24px var(--accent-glow);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 36px var(--accent-glow);
}

.btn--ghost {
  background: rgba(99, 102, 241, 0.08);
  color: rgba(200, 200, 240, 0.9);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  background: rgba(99, 102, 241, 0.14);
  border-color: var(--border-2);
}

.btn--wide {
  width: 100%;
}

.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
}

.btn:focus-visible,
a:focus-visible,
input:focus-visible,
button:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  padding: 1.25rem;
}

.card p {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 1rem;
}

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

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

.placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(200, 200, 240, 0.3);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.pill,
.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.08);
  color: rgba(200, 200, 240, 0.9);
  padding: 0.35rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.badge--suite,
.badge--trial {
  color: #fff;
  border-color: var(--border-2);
  background: rgba(99, 102, 241, 0.18);
}

.badge--free {
  background: rgba(99, 102, 241, 0.08);
}

.callout-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel-2);
  padding: 1.25rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(13, 13, 20, 0.72);
  padding: 3rem 0 1.5rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.1fr repeat(4, 1fr);
  gap: 1.5rem;
}

.footer__col {
  display: grid;
  gap: 0.55rem;
}

.footer__col h3 {
  font-size: 0.9rem;
}

.footer__col a,
.footer__brand p {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer__bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(99, 102, 241, 0.12);
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-shell {
  min-height: calc(100vh - 74px);
  display: grid;
  place-items: center;
  padding: 3rem 1rem;
}

.auth-card {
  width: min(440px, 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.auth-logo {
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  margin-bottom: 1.4rem;
  text-align: center;
}

.auth-logo img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.form {
  display: grid;
  gap: 0.9rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  color: rgba(240, 240, 255, 0.9);
  font-weight: 700;
  font-size: 0.92rem;
}

.field input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(13, 13, 20, 0.6);
  color: var(--text);
  padding: 0.78rem 0.85rem;
}

.field input::placeholder {
  color: rgba(200, 200, 240, 0.35);
}

.code-input {
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 2rem;
  letter-spacing: 0.18em;
}

.form-error,
.form-note {
  display: none;
  border-radius: 12px;
  padding: 0.75rem;
  font-size: 0.92rem;
}

.form-error {
  color: #ffd6df;
  background: rgba(255, 80, 120, 0.11);
  border: 1px solid rgba(255, 80, 120, 0.24);
}

.form-note {
  color: rgba(225, 225, 255, 0.94);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid var(--border);
}

.auth-links {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
  text-align: center;
  color: var(--muted);
}

.text-link {
  color: rgba(225, 225, 255, 0.95);
  font-weight: 700;
}

.roadmap-track {
  max-width: 880px;
  margin-top: 2rem;
}

.roadmap-track__rail {
  position: relative;
  height: 4px;
  margin: 2rem 8px 1.75rem;
  border-radius: 999px;
  background: rgba(200, 200, 240, 0.18);
}

.roadmap-track__progress {
  position: absolute;
  inset: 0 auto 0 0;
  width: 22%;
  border-radius: inherit;
  background: #22c55e;
}

.roadmap-track__dot {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(200, 200, 240, 0.42);
  border-radius: 999px;
  background: var(--bg2);
  transform: translate(-50%, -50%);
}

.roadmap-track__dot--done {
  border-color: #22c55e;
  background: #22c55e;
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.35);
}

.roadmap-stages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.roadmap-stage {
  color: var(--muted);
}

.roadmap-stage h2 {
  color: rgba(200, 200, 240, 0.62);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.roadmap-stage p {
  margin-top: 0.35rem;
  font-size: 14px;
}

.roadmap-stage--done h2 {
  color: #22c55e;
}

.roadmap-stage--done p {
  color: rgba(240, 240, 255, 0.9);
}

.timeline-follow {
  max-width: 880px;
  margin-top: 2rem;
  color: var(--muted);
}

@media (max-width: 860px) {
  h1 {
    font-size: clamp(2.6rem, 13vw, 4.5rem);
  }

  .section {
    padding: 3.5rem 0;
  }

  .nav__links,
  .nav__actions {
    display: none;
  }

  .nav__burger,
  .nav__mobile {
    display: block;
  }

  .grid--2,
  .grid--3,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .callout-band {
    align-items: stretch;
    flex-direction: column;
  }

  .roadmap-track__rail {
    display: none;
  }

  .roadmap-stages {
    grid-template-columns: 1fr;
  }

  .roadmap-stage {
    border-left: 2px solid var(--border);
    padding-left: 1rem;
  }

  .roadmap-stage--done {
    border-left-color: #22c55e;
  }
}
