:root {
  --bg: #0b1020;
  --panel: #121a31;
  --panel-soft: #18223f;
  --text: #eef2ff;
  --muted: #b9c2de;
  --line: rgba(255,255,255,0.08);
  --accent: #72e0a8;
  --accent-2: #8db8ff;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(141, 184, 255, 0.14), transparent 30%),
    radial-gradient(circle at top right, rgba(114, 224, 168, 0.12), transparent 25%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

.narrow {
  width: min(760px, calc(100% - 2rem));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(11, 16, 32, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.brand span {
  color: var(--accent);
}

nav {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  z-index: 20;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle--open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle--open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle--open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

nav a:hover {
  color: var(--text);
}

.hero {
  padding: 3rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

h1, h2, h3 {
  line-height: 1.1;
  margin: 0 0 1rem;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  max-width: 10ch;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

h3 {
  font-size: 1.25rem;
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.3rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #07111f;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.microcopy {
  min-height: 1.2rem;
  color: var(--accent);
  margin-top: 0.8rem;
  font-size: 0.92rem;
}

.hero-card,
.card,
.callout {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 1rem;
}

.terminal {
  background: #08101f;
  border-radius: 18px;
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  gap: 0.45rem;
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.terminal-bar span {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
}

pre {
  margin: 0;
  padding: 1.2rem;
  width: 100%;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 768px) {
  pre {
    width: 100%;
  }
}

code {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #d8e7ff;
  font-size: 1.rem;
}

.section {
  padding: 4rem 0;
}

.alt {
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  padding: 1.5rem;
}

.card p,
.section p,
.benefit-list {
  color: var(--muted);
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 1.5rem;
  align-items: start;
}

.benefit-list {
  padding-left: 1.2rem;
}

.benefit-list li + li {
  margin-top: 0.7rem;
}

.callout {
  padding: 1.5rem;
}

.callout-label {
  margin: 0 0 0.6rem;
  color: var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

/* ─── Pricing ─────────────────────────────────────────────────────────────── */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.pricing-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pricing-card.featured {
  border-color: var(--accent);
  background: linear-gradient(160deg, rgba(114,224,168,0.07), rgba(141,184,255,0.04));
  box-shadow: 0 0 40px rgba(114,224,168,0.08);
}

.plan-badge {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.plan-name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.plan-price {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
}

.plan-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}

.plan-desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.feature-list {
  margin: 0.5rem 0 1rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.feature-list li {
  font-size: 0.9rem;
  color: var(--muted);
  padding-left: 1.4rem;
  position: relative;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 860px) {
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 540px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer {
  padding: 1.3rem 0 2rem;
  color: var(--muted);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
  flex-wrap: wrap;
}

.early-access-form {
  max-width: 500px;
  margin: 2rem auto 0;
}

.auth-page,
.dashboard-page {
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(141, 184, 255, 0.14), transparent 20%),
    radial-gradient(circle at top right, rgba(114, 224, 168, 0.12), transparent 20%),
    var(--bg);
}

.auth-shell,
.dashboard-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 92px);
  padding: 2rem 0;
}

.auth-card,
.dashboard-card {
  width: min(560px, calc(100% - 2rem));
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 2rem;
}

.auth-copy,
.dashboard-copy {
  margin-bottom: 1.5rem;
}

.auth-form {
  display: grid;
  gap: 1rem;
}

.hidden {
  display: none !important;
}

.status {
  margin-top: 1rem;
  color: var(--accent);
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - 72px);
}

.sidebar {
  background: var(--panel);
  border-right: 1px solid var(--line);
  padding: 1.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.sidebar-item {
  display: block;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.15s, color 0.15s;
}

.sidebar-item:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text);
}

.sidebar-item.active {
  background: rgba(114, 224, 168, 0.1);
  color: var(--accent);
}

.sidebar-logout {
  margin-top: auto;
  color: #ffb3b3;
}

.sidebar-logout:hover {
  background: rgba(255, 100, 100, 0.08);
  color: #ff8080;
}

.dashboard-main {
  padding: 2.5rem;
  max-width: 680px;
}

.panel h2 {
  margin-top: 0.25rem;
  margin-bottom: 1.75rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(114, 224, 168, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

@media (max-width: 860px) {
  .hero-grid,
  .cards,
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .nav-toggle {
    display: flex;
  }

  nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(11, 16, 32, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 0;
    z-index: 15;
  }

  nav.nav-open {
    display: flex;
  }

  nav a {
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid var(--line);
  }

  nav a:last-child {
    border-bottom: none;
  }

  .site-header {
    position: sticky;
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0.5rem;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    flex: none;
  }

  .sidebar .btn {
    margin-left: auto;
  }

  .dashboard-main {
    padding: 1.5rem;
  }
}

/* ─── FAQ ─────────────────────────────────────────────────────────────────── */

.faq-hero {
  padding: 4rem 0 2.5rem;
}

.faq-h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 1rem;
}

.faq-group-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 2.5rem 0 0.75rem;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  color: var(--text);
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0 0 1.2rem;
  color: var(--muted);
  line-height: 1.7;
}

.faq-item p strong {
  color: var(--text);
}
