:root {
  --bg: #07060b;
  --surface: #0d0b14;
  --surface-2: #13101d;
  --border: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(155, 77, 255, 0.55);
  --accent: #9b4dff;
  --accent-bright: #b980ff;
  --text: #f5f3fa;
  --muted: #8a839e;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 42% at 50% 0%, rgba(132, 56, 255, 0.16) 0%, rgba(7, 6, 11, 0) 70%);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 6, 11, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.15s;
}

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

.nav-auth {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buttons */
button, a {
  font-family: inherit;
}

.btn-text {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 12px;
  cursor: pointer;
}

.btn-text:hover {
  color: var(--text);
}

.btn-accent {
  background: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: white;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(155, 77, 255, 0.35);
}

.btn-accent:hover {
  background: #a963ff;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 9px;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(155, 77, 255, 0.35);
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
}

.btn-primary:hover {
  background: #a760ff;
  box-shadow: 0 0 32px rgba(155, 77, 255, 0.55);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 9px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.btn-secondary:hover {
  border-color: rgba(155, 77, 255, 0.5);
  background: #181326;
}

.full {
  width: 100%;
}

/* Hero */
.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 76px 24px 64px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}

.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-bright);
  margin-bottom: 14px;
}

.hero-title {
  font-size: clamp(36px, 4.6vw, 54px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.hero-title span {
  color: var(--accent-bright);
}

.hero-desc {
  color: var(--muted);
  font-size: 16px;
  max-width: 480px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 36px;
}

.hero-meta {
  display: flex;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.hero-meta div {
  display: flex;
  flex-direction: column;
}

.hero-meta strong {
  font-size: 16px;
  font-weight: 700;
}

.hero-meta span {
  font-size: 12px;
  color: var(--muted);
}

/* Client Preview Frame */
.client-frame {
  background: var(--surface);
  border: 1px solid rgba(155, 77, 255, 0.35);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 36px rgba(155, 77, 255, 0.14);
}

.client-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #09080f;
  border-bottom: 1px solid var(--border);
}

.client-id {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.mono-ver {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--muted);
}

.plan-switch {
  display: flex;
  background: #141120;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px;
  cursor: pointer;
}

.plan-opt {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  padding: 3px 10px;
  border-radius: 4px;
}

.plan-opt.active {
  background: var(--accent);
  color: white;
}

.client-body {
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.power-ring {
  position: relative;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: #08070d;
  border: none;
  cursor: pointer;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s;
}

.power-ring:hover {
  transform: scale(1.03);
}

.ring-outer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent-bright);
  box-shadow: 0 0 24px rgba(155, 77, 255, 0.55), inset 0 0 16px rgba(155, 77, 255, 0.2);
}

.power-ring.off .ring-outer {
  border-color: #2f2842;
  box-shadow: none;
}

.ring-label {
  font-size: 26px;
  font-weight: 800;
  color: white;
}

.client-state {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 18px;
}

.state-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ce895;
  margin-right: 4px;
}

.model-tabs {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 18px;
}

.chip {
  background: #120f1c;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 4px;
  border-radius: 7px;
  cursor: pointer;
}

.chip.active {
  background: rgba(155, 77, 255, 0.16);
  border-color: var(--accent);
  color: white;
}

.metrics-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.metric-row {
  display: grid;
  grid-template-columns: 108px 1fr 52px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #c8c1d8;
}

.m-track {
  height: 5px;
  background: #171324;
  border-radius: 999px;
  overflow: hidden;
}

.m-fill {
  height: 100%;
  background: linear-gradient(90deg, #7428f5, #c38fff);
  transition: width 0.35s ease;
}

.m-val {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  text-align: right;
  color: var(--accent-bright);
}

/* Sections */
.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 24px;
}

.section-header {
  margin-bottom: 32px;
}

.section-header h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  transition: border-color 0.18s;
}

.card:hover {
  border-color: rgba(155, 77, 255, 0.4);
}

.card-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--accent-bright);
  margin-bottom: 10px;
}

.card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.card p {
  font-size: 13.5px;
  color: var(--muted);
}

/* Tiers */
.tier-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.tier-highlight {
  border-color: var(--border-accent);
  background: linear-gradient(180deg, rgba(155, 77, 255, 0.08) 0%, var(--surface) 45%);
}

.tier-kicker {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
}

.tier-kicker.accent {
  color: var(--accent-bright);
}

.tier-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.tier-sub {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 18px;
}

.tier-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: #d6cfe6;
}

.tier-list li::before {
  content: "— ";
  color: var(--accent-bright);
}

/* CTA Strip */
.cta-strip {
  background: var(--surface);
  border: 1px solid var(--border-accent);
  border-radius: 14px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cta-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cta-left h2 {
  font-size: 20px;
  font-weight: 700;
}

.cta-left p {
  font-size: 13.5px;
  color: var(--muted);
}

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

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--muted);
}

/* User Pill */
.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
}

.grant-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  color: var(--accent-bright);
  background: rgba(155, 77, 255, 0.16);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 3, 7, 0.8);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.hidden {
  display: none !important;
}

.auth-modal {
  position: relative;
  width: 100%;
  max-width: 390px;
  background: var(--surface);
  border: 1px solid var(--border-accent);
  border-radius: 14px;
  padding: 30px 28px 26px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.75);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.modal-close:hover {
  background: var(--surface-2);
  color: white;
}

.modal-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 800;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #09080f;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
  margin-bottom: 18px;
}

.auth-tab {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 7px;
  border-radius: 6px;
  cursor: pointer;
}

.auth-tab.active {
  background: var(--accent);
  color: white;
}

.field-group {
  margin-bottom: 13px;
}

.field-group label {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  color: var(--muted);
  margin-bottom: 6px;
}

.field-group input {
  width: 100%;
  background: #09080f;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  color: white;
  font-size: 13.5px;
  outline: none;
}

.field-group input:focus {
  border-color: var(--accent);
}

.auth-error {
  background: rgba(255, 80, 120, 0.12);
  border: 1px solid rgba(255, 95, 130, 0.45);
  color: #ff8ca7;
  font-size: 12.5px;
  padding: 8px 11px;
  border-radius: 8px;
  margin-bottom: 12px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 40px;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .cta-strip {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links {
    display: none;
  }
}
