/* ============================================
   CAIN & CO INNOVATORS — GP SERIES
   Premium dark editorial aesthetic
   ============================================ */

/* ── Tokens ─────────────────────────────────── */
:root {
  --bg:          #0e0e0e;
  --bg-alt:      #141414;
  --bg-card:     #181818;
  --text:        #f0ebe3;
  --text-muted:  #8a7f73;
  --text-dim:    #5a5249;
  --gold:        #c8a96e;
  --gold-dim:    #a08858;
  --gold-subtle: rgba(200, 169, 110, 0.08);
  --border:      rgba(240, 235, 227, 0.07);
  --border-gold: rgba(200, 169, 110, 0.25);

  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'DM Sans', -apple-system, sans-serif;
  --font-mono:   'DM Mono', 'Courier New', monospace;

  --max-w:       1080px;
  --pad-x:       clamp(24px, 5vw, 80px);
  --pad-section: clamp(80px, 10vw, 140px);
}

/* ── Reset ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

::selection { background: var(--gold); color: var(--bg); }

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 3px; }

/* ── Typography helpers ───────────────────────── */
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: block;
}
.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.01em;
}
.section-body {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-muted);
  font-weight: 300;
}
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--pad-section) var(--pad-x);
}

/* ── Buttons ──────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--gold);
  color: var(--bg);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.2s ease, transform 0.15s ease;
}
.btn-primary:hover { background: #d4b87a; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border: 1px solid var(--border-gold);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--text); transform: translateY(-1px); }

/* ── Nav ─────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 var(--pad-x);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(14, 14, 14, 0.85);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
}
.nav-cta {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border-gold);
  padding: 8px 18px;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}
.nav-cta:hover { background: var(--gold-subtle); }

/* ── Hero ─────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px var(--pad-x) var(--pad-section);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(200, 169, 110, 0.04) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-w);
  width: 100%;
  position: relative;
  z-index: 1;
}
.hero-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 28px;
}
.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 32px;
}
.hero-headline em {
  font-style: italic;
  color: var(--gold);
}
.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 48px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-ornament {
  position: absolute;
  bottom: var(--pad-section);
  right: var(--pad-x);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.ornament-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}
.ornament-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

/* ── Problem ──────────────────────────────────── */
.problem { background: var(--bg-alt); }
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.problem-text .section-heading { margin-bottom: 28px; }
.problem-text .section-body + .section-body { margin-top: 20px; }

.problem-stats {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.stat-item { padding: 24px 0; }
.stat-item:first-child { padding-top: 0; }
.stat-divider { height: 1px; background: var(--border); }
.stat-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1;
}
.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.5;
}

/* ── What You Get ─────────────────────────────── */
.offer { background: var(--bg); }
.offer .section-heading { margin-bottom: 60px; }
.offer .centered { text-align: center; }
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.offer-card {
  background: var(--bg-card);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.2s;
}
.offer-card:hover { background: #1c1c1c; }
.offer-card-pricing {
  background: var(--gold-subtle);
  grid-column: span 1;
}
.offer-card-pricing:hover { background: rgba(200, 169, 110, 0.12); }
.offer-icon { flex-shrink: 0; }
.offer-card h3 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
}
.offer-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.7;
}

/* ── Eligibility ──────────────────────────────── */
.eligibility { background: var(--bg-alt); }
.eligibility-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.eligibility-left .section-heading { margin-bottom: 24px; }
.criteria-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 52px;
}
.criteria-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
}
.criteria-item:last-child { border-bottom: none; }
.criteria-item:hover { background: var(--bg-card); color: var(--text); }
.criteria-item strong { color: var(--text); font-weight: 500; }
.criteria-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  color: var(--gold);
}

/* ── Founder ──────────────────────────────────── */
.founder { background: var(--bg); }
.founder-inner { max-width: 860px; }
.founder-content {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 80px;
  align-items: start;
}
.founder-name {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.founder-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 32px;
}
.founder-bio .section-body + .section-body { margin-top: 18px; }
.founder-credential {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 8px;
}
.credential-item {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.credential-item:last-child { border-bottom: none; }
.credential-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.credential-value {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
}

/* ── Team ─────────────────────────────────────── */
.team .section-heading { margin-bottom: 16px; }
.team-intro { max-width: 600px; margin-bottom: 52px; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 40px 32px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  transition: border-color 0.2s, background 0.2s;
}
.team-card:hover {
  border-color: var(--border-gold);
  background: #1c1c1c;
}
.team-avatar {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  color: var(--gold);
  margin-bottom: 4px;
}
.team-name {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}
.team-role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ── Apply ────────────────────────────────────── */
.apply { background: var(--bg-alt); }
.apply-inner { max-width: 640px; }
.apply .section-heading { margin-bottom: 16px; }
.apply .section-body { margin-bottom: 40px; }
.apply-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.form-group input,
.form-group select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 300;
  padding: 13px 16px;
  width: 100%;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.form-group input::placeholder { color: var(--text-dim); }
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--border-gold);
  background: #1c1c1c;
}
.form-group select { cursor: pointer; }
.form-group select option { background: var(--bg-card); }

.btn-submit { align-self: flex-start; margin-top: 8px; }
.form-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-align: center;
  margin-top: 4px;
}
.apply-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 40px 0;
}
.success-icon { color: var(--gold); }
.apply-success h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text);
}
.apply-success p { color: var(--text-muted); font-size: 1rem; }

/* ── Spinner ──────────────────────────────────── */
.btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.spinner {
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Footer ──────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 40px var(--pad-x);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-brand > span:first-child {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
}
.footer-tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.footer-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }

/* ── Scroll reveal ────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 768px) {
  .problem-grid,
  .eligibility-split,
  .founder-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .offer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-ornament { display: none; }
  .nav-brand { font-size: 0.9375rem; }
  .criteria-list { margin-top: 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
  .offer-card { padding: 28px 24px; }
}