@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ── Variables ── */
:root {
  --bg: #0d0d0d;
  --surface: #1a1a1a;
  --border: #2a2a2a;
  --orange: #e05a2b;
  --blue: #4a9eca;
  --purple: #8b6abf;
  --text: #c8c8c8;
  --heading: #ffffff;
  --muted: #909090;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --max-width: 1200px;
  --section-padding: 100px 24px;
}

/* ── 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: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--orange);
  text-decoration: none;
  transition: opacity 0.2s;
}
a:hover { opacity: 0.8; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--heading);
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; font-family: var(--font-sans); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

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

section {
  padding: var(--section-padding);
}

/* ── Utility: Orange Rule ── */
.orange-rule {
  border: none;
  border-top: 2px solid var(--orange);
  width: 60px;
  margin: 1.25rem 0;
}

/* ── Utility: Section Label ── */
.section-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Utility: Early Access Badge ── */
.badge-early-access {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-top: 1.25rem;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  text-decoration: none;
  border: none;
}
.btn:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-primary {
  background: var(--orange);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--orange);
  border: 1.5px solid var(--orange);
}

/* ── Cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 3rem;
}

.card {
  background: var(--surface);
  padding: 2rem;
}

.card-icon {
  margin-bottom: 1.25rem;
  color: var(--orange);
}

.card h3 {
  color: var(--heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
}

/* ── Pull Quotes ── */
.pull-quote {
  font-family: var(--font-serif);
  font-style: normal;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: var(--heading);
  line-height: 1.4;
  text-align: center;
  max-width: 820px;
  margin: 0 auto 2.5rem;
}

.insight-block {
  border-left: 3px solid var(--orange);
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  background: var(--surface);
  border-radius: 0 6px 6px 0;
}

.insight-block p {
  font-family: var(--font-serif);
  font-style: normal;
  font-size: 1.2rem;
  color: var(--heading);
  margin: 0;
}

/* ── 3-column personas ── */
.col-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.persona {
  padding: 2rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 8px;
}

.persona h3 {
  color: var(--orange);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.persona p {
  font-size: 0.9rem;
  color: var(--text);
  margin: 0;
}

/* ── Authors ── */
.author-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.author-card {
  padding: 2rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 8px;
}

.author-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--heading);
  margin-bottom: 0.75rem;
}

.author-card p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.author-card em { color: var(--blue); font-style: italic; }

/* ── CTA Section ── */
.cta-section {
  border-top: 2px solid var(--orange);
  background: var(--surface);
}

.tally-placeholder {
  background: var(--bg);
  border: 1.5px dashed var(--border);
  border-radius: 8px;
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.tally-placeholder strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.gdpr-note {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 1.5rem;
  line-height: 1.6;
}

/* ── Footer ── */
footer {
  background: var(--bg);
  border-top: 1.5px solid var(--border);
  padding: 3rem 24px;
  text-align: center;
}

.footer-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--heading);
  margin-bottom: 0.25rem;
}

.footer-subtitle {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

.footer-copy {
  font-size: 0.75rem;
  color: var(--muted);
}

/* ── Scroll Indicator ── */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ── Gate Overlay (early access page) ── */
.gate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 13, 13, 0.97);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.gate-box {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 3rem 2.5rem;
  width: 100%;
  max-width: 440px;
  text-align: center;
}

.gate-box h2 {
  font-size: 1.6rem;
  margin: 0.5rem 0 0.75rem;
}

.gate-box > p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.gate-form {
  display: flex;
  gap: 8px;
  margin-bottom: 1rem;
}

.gate-form input {
  flex: 1;
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--heading);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 12px 16px;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s;
}
.gate-form input:focus { border-color: var(--orange); }
.gate-form input::placeholder { color: var(--muted); }

.gate-form button {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.gate-form button:hover { opacity: 0.85; }

.gate-error {
  color: #e05a5a;
  font-size: 0.85rem;
  margin: 0 0 0.75rem;
}

.gate-request {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

.gate-request a { color: var(--orange); }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

.shake { animation: shake 0.4s ease; }

/* ── Early Access Content Page ── */
.ea-header {
  background: var(--surface);
  border-bottom: 1.5px solid var(--border);
  padding: 1.25rem 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ea-header-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--heading);
}

.manuscript-section {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 2.5rem;
  margin-top: 2rem;
  text-align: center;
}

.manuscript-section h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--heading);
  margin-bottom: 0.5rem;
}

.version-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 1rem;
}

.confidential-banner {
  background: rgba(224, 90, 43, 0.08);
  border: 1.5px solid rgba(224, 90, 43, 0.25);
  border-radius: 6px;
  padding: 1rem 1.5rem;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 2rem;
  text-align: center;
}

/* ── Privacy page ── */
.privacy-content h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1.5px solid var(--border);
}

.privacy-content p, .privacy-content li {
  font-size: 0.95rem;
  line-height: 1.75;
}

.privacy-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

/* ── Simple nav ── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
}

.nav-brand {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--heading);
  text-decoration: none;
}

.nav-cta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--orange);
  text-decoration: none;
  border: 1px solid var(--orange);
  padding: 6px 16px;
  border-radius: 20px;
  transition: background 0.2s, color 0.2s;
}
.nav-cta:hover { background: var(--orange); color: #fff; opacity: 1; }

/* ── Section headings centered ── */
.section-centered { text-align: center; }
.section-centered h2 { margin-bottom: 0.5rem; }
.section-centered .section-label { display: block; margin-bottom: 0.75rem; }

/* ── Responsive ── */
@media (max-width: 768px) {
  :root { --section-padding: 64px 20px; }

  .hero-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 6rem;
  }

  .hero-left { align-items: center; }
  .orange-rule { margin: 1.25rem auto; }

  .hero-right { margin-top: 2.5rem; }
  .hero-right img { max-height: 50vh; margin: 0 auto; }

  .card-grid { grid-template-columns: 1fr; }
  .col-3 { grid-template-columns: 1fr; }
  .author-grid { grid-template-columns: 1fr; }

  .gate-box { padding: 2rem 1.5rem; }
  .gate-form { flex-direction: column; }
}
