/* =========================================
   Quorum — styles.css
   Dark theme, purple accent, Inter font
   ========================================= */

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

:root {
  --bg:          #0a0a0a;
  --bg-elevated: #111111;
  --bg-card:     #141414;
  --border:      #1e1e1e;
  --border-soft: #2a2a2a;
  --text:        #f5f5f5;
  --text-muted:  #888888;
  --text-dim:    #555555;
  --accent:      #7c3aed;
  --accent-soft: #6d28d9;
  --accent-glow: rgba(124, 58, 237, 0.18);
  --accent-glow-strong: rgba(124, 58, 237, 0.35);
  --radius:      10px;
  --radius-lg:   16px;
  --radius-pill: 999px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --max-w: 1080px;
  --transition: 0.2s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  min-height: 100vh;
}

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

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

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.logo-img {
  display: block;
  height: 28px;
  width: auto;
}

.nav-logo .logo-mark {
  width: 30px;
  height: 30px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

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

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 0 var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-soft);
  box-shadow: 0 4px 24px var(--accent-glow-strong);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-soft);
}

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

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: 12px;
}

/* ── Hero ── */
.hero {
  padding: 120px 0 96px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-glow);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #a78bfa;
  margin-bottom: 36px;
  letter-spacing: 0.01em;
}

.hero-badge .dot {
  width: 6px; height: 6px;
  background: #a78bfa;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  max-width: 820px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #ffffff 0%, #c4b5fd 60%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 44px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Model logos strip */
.model-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 64px;
  flex-wrap: wrap;
}

.model-strip-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.model-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.model-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: border-color var(--transition), color var(--transition);
}

.model-pill:hover {
  border-color: var(--border-soft);
  color: var(--text);
}

.model-pill .pip {
  width: 7px; height: 7px;
  border-radius: 50%;
}

/* ── How it works ── */
.how {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 50%, var(--bg) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #a78bfa;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  text-align: center;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto 64px;
  line-height: 1.7;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.step {
  background: var(--bg-card);
  padding: 44px 36px;
  position: relative;
}

.step-number {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.step-icon {
  font-size: 2rem;
  margin-bottom: 20px;
  display: block;
}

.step h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.step-arrow {
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ── Features ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feature-card {
  background: var(--bg-card);
  padding: 36px;
  transition: background var(--transition);
}

.feature-card:hover {
  background: var(--bg-elevated);
}

.feature-icon {
  font-size: 1.6rem;
  margin-bottom: 16px;
  display: block;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Pricing ── */
.pricing-section {
  text-align: center;
}

.pricing-card {
  max-width: 460px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 52px 48px;
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.pricing-glow {
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 300px; height: 200px;
  background: radial-gradient(ellipse, var(--accent-glow-strong) 0%, transparent 70%);
  pointer-events: none;
}

.price-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #a78bfa;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.price-amount {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 6px;
}

.price-amount sup {
  font-size: 1.8rem;
  vertical-align: super;
  font-weight: 700;
}

.price-freq {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.price-list {
  list-style: none;
  text-align: left;
  margin-bottom: 36px;
}

.price-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
}

.price-list li:last-child { border-bottom: none; }

.price-list li .check {
  color: #a78bfa;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.byok-note {
  margin-top: 18px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
}

.footer-logo .logo-mark {
  width: 26px; height: 26px;
  background: var(--accent);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

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

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ── Privacy page ── */
.prose-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 24px 120px;
}

.prose-page h1 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.prose-page .updated {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 52px;
}

.prose-page h2 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 44px 0 12px;
  color: var(--text);
}

.prose-page p, .prose-page li {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 14px;
}

.prose-page ul, .prose-page ol {
  padding-left: 20px;
  margin-bottom: 14px;
}

.prose-page a {
  color: #a78bfa;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose-page a:hover { color: var(--text); }

.prose-page hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  section { padding: 72px 0; }

  .hero { padding: 80px 0 72px; }

  .steps {
    grid-template-columns: 1fr;
  }

  .step-arrow { display: none; }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    padding: 40px 28px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links .btn-ghost { display: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .hero h1 { letter-spacing: -0.03em; }

  .model-strip { gap: 16px; }

  .step { padding: 32px 24px; }

  .feature-card { padding: 28px 24px; }
}
