/* The Lineup Hub — Design System
   Shared across all hub pages (index, method, routing pages).
   Gold-primary palette (The Lineup brand), teal secondary. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --base: #0d1b2e;
  --base-deep: #091422;
  --base-light: #132640;
  --base-lighter: #1a3050;
  --teal: #0ea5e9;
  --teal-glow: #38bdf8;
  --teal-dim: rgba(14, 165, 233, 0.15);
  --gold: #d4a843;
  --gold-light: #f0d078;
  --gold-dim: rgba(212, 168, 67, 0.12);
  --white: #f1f5f9;
  --white-dim: #cbd5e1;
  --gray: #64748b;
  --gray-dark: #475569;
  --glass: rgba(13, 27, 46, 0.85);
  --glass-border: rgba(255, 255, 255, 0.08);
}

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

html {
  scroll-behavior: smooth;
  background: var(--base);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--base);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: var(--teal); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--teal-glow); }

/* ─── NAV ─── */
.hub-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
}

.hub-logo {
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.hub-logo .accent { color: var(--gold); }

.hub-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.hub-links a {
  color: var(--white-dim);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.hub-links a:hover,
.hub-links a.active {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
}

.hub-burger {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 6px;
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 860px) {
  .hub-links {
    display: none;
    position: fixed;
    top: 60px;
    left: 0; right: 0;
    background: var(--base-deep);
    flex-direction: column;
    padding: 20px 28px 30px;
    gap: 0;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    z-index: 99;
  }
  .hub-links.open { display: flex; }
  .hub-links a {
    font-size: 1.05rem;
    padding: 14px 0;
    border-bottom: 1px solid var(--glass-border);
    width: 100%;
  }
  .hub-links a:last-child { border-bottom: none; }
  .hub-burger { display: block; }
}

/* ─── HERO (shared pattern) ─── */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero--gold {
  background:
    radial-gradient(ellipse at 15% 20%, rgba(212, 168, 67, 0.15) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 70%, rgba(14, 165, 233, 0.12) 0%, transparent 55%),
    var(--base);
}

.hero--teal {
  background:
    radial-gradient(ellipse at 20% 20%, var(--base-light) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 60%, rgba(14, 165, 233, 0.15) 0%, transparent 55%),
    var(--base);
}

.hero-inner {
  max-width: 860px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: block;
}

.eyebrow--gold { color: var(--gold); }
.eyebrow--teal { color: var(--teal); }

.hero h1 {
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin-bottom: 0.5em;
}

.hero h1 .accent { color: var(--gold); }

.hero .tagline {
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  font-weight: 300;
  color: var(--white-dim);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero .description {
  font-size: 1rem;
  color: var(--white-dim);
  line-height: 1.75;
  max-width: 580px;
  margin: 0 auto 2.5rem;
}

/* ─── BUTTONS ─── */
.btn-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.btn-gold {
  background: var(--gold);
  color: var(--base-deep);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--base-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px rgba(212, 168, 67, 0.4);
}

.btn-teal {
  background: var(--teal);
  color: var(--base-deep);
  border-color: var(--teal);
}
.btn-teal:hover {
  background: var(--teal-glow);
  border-color: var(--teal-glow);
  color: var(--base-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px rgba(14, 165, 233, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--white-dim);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-2px);
}

/* ─── CONTENT SECTIONS ─── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

section.content {
  padding: 80px 24px;
}

section.content h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

section.content p {
  font-size: 1.05rem;
  color: var(--white-dim);
  line-height: 1.75;
  margin-bottom: 1.2rem;
  max-width: 720px;
}

/* ─── PILLARS GRID (method page + landing) ─── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 860px;
  margin: 0 auto 3rem;
}

.pillar {
  padding: 32px 22px;
  background: rgba(19, 38, 64, 0.6);
  border: 1px solid rgba(14, 165, 233, 0.12);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  text-align: center;
}

.pillar:hover {
  border-color: rgba(14, 165, 233, 0.4);
  transform: translateY(-4px);
}

.pillar-icon { font-size: 2.5rem; margin-bottom: 14px; display: block; }

.pillar-name {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}

.pillar-label {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.pillar-sub {
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.55;
}

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

/* ─── EQUATION LINE ─── */
.equation {
  font-size: 1.1rem;
  color: var(--white-dim);
  margin-bottom: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.5px;
  text-align: center;
}

.equation b { color: var(--gold-light); font-weight: 600; }

/* ─── STATUS PILL ─── */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold-dim);
  border: 1px solid rgba(212, 168, 67, 0.35);
  color: var(--gold-light);
  padding: 11px 24px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* ─── ROUTING PAGE: simplified hero ─── */
.hero--routing {
  min-height: 80vh;
}

.hero--routing .tagline {
  margin-bottom: 1.5rem;
}

.hero--routing .description {
  margin-bottom: 3rem;
}

/* ─── BOOK PAGE ─── */
.hero--book { text-align: left; }

.hero-inner--book {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1000px;
}

.book-visual {
  flex-shrink: 0;
}

.book-cover {
  width: 320px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(14, 165, 233, 0.08);
  transition: transform 0.4s ease;
}

.book-cover:hover {
  transform: scale(1.03) rotate(-1deg);
}

.book-text .tagline,
.book-text .description {
  margin-left: 0;
  margin-right: 0;
}

@media (max-width: 768px) {
  .hero-inner--book {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .book-visual { order: -1; }
  .book-cover { width: 260px; margin: 0 auto; }
  .book-text .btn-row { justify-content: center !important; }
  .book-text .tagline,
  .book-text .description {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ─── FOOTER ─── */
.hub-footer {
  padding: 40px 24px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--gray);
  border-top: 1px solid var(--glass-border);
  background: var(--base-deep);
}

.hub-footer a { color: var(--white-dim); }
.hub-footer a:hover { color: var(--gold-light); }

/* ─── METHOD PAGE EXTRAS ─── */
.method-section {
  padding: 80px 24px;
  border-top: 1px solid var(--glass-border);
}

.method-section:nth-child(odd) {
  background: var(--base-deep);
}

.method-section .container {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: start;
}

.method-icon {
  font-size: 3.5rem;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--base-light);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  flex-shrink: 0;
}

.method-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.8rem;
  color: var(--white);
}

.method-section .section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
  display: block;
}

.method-section p {
  font-size: 1.05rem;
  color: var(--white-dim);
  line-height: 1.75;
  margin-bottom: 1rem;
  max-width: 640px;
}

@media (max-width: 680px) {
  .method-section .container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .method-icon {
    width: 60px;
    height: 60px;
    font-size: 2.5rem;
  }
}

/* ─── FLOW FORMULA SECTION ─── */
.flow-formula {
  padding: 80px 24px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(212, 168, 67, 0.08) 0%, transparent 60%),
    var(--base);
}

.flow-formula h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
}

.flow-formula p {
  font-size: 1.1rem;
  color: var(--white-dim);
  line-height: 1.75;
  max-width: 600px;
  margin: 0 auto 1.2rem;
}

.flow-formula blockquote {
  border-left: 3px solid var(--gold);
  padding: 16px 24px;
  margin: 30px auto;
  max-width: 600px;
  text-align: left;
  background: var(--gold-dim);
  border-radius: 0 14px 14px 0;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--white-dim);
  line-height: 1.65;
}

/* ─── WAITLIST CARD ─── */
.waitlist-card {
  max-width: 480px;
  margin: 2.5rem auto 0;
  padding: 36px 32px;
  background: rgba(19, 38, 64, 0.65);
  border: 1px solid rgba(212, 168, 67, 0.2);
  border-radius: 20px;
  backdrop-filter: blur(14px);
  text-align: center;
}

.scarcity-badge {
  display: inline-block;
  background: var(--gold-dim);
  border: 1px solid rgba(212, 168, 67, 0.4);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}

.waitlist-card h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  color: var(--white);
}

.waitlist-copy {
  font-size: 0.92rem;
  color: var(--white-dim);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.waitlist-form input {
  width: 100%;
  padding: 14px 18px;
  background: var(--base-deep);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.waitlist-form input::placeholder {
  color: var(--gray);
}

.waitlist-form input:focus {
  border-color: var(--gold);
}

.waitlist-form button {
  margin-top: 4px;
  cursor: pointer;
}

.waitlist-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.waitlist-trust {
  font-size: 0.78rem;
  color: var(--gray);
  margin-top: 12px;
}

.waitlist-success {
  padding: 20px;
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.waitlist-success p {
  color: var(--white-dim);
  font-size: 0.95rem;
  line-height: 1.6;
}

.waitlist-error p {
  color: #f87171;
  font-size: 0.88rem;
  margin-top: 10px;
}

@media (max-width: 520px) {
  .waitlist-card {
    margin-left: 12px;
    margin-right: 12px;
    padding: 28px 20px;
  }
}
