/* ============================================
   SCI Landing Page — styles.css
   Bloomberg terminal × Christopher Nolan
   ============================================ */

/* --- TOKENS --- */
:root {
  --bg: #0a0a0f;
  --bg-deep: #050508;
  --surface: #12121a;
  --surface-light: #1a1a25;
  --gold: #d4a843;
  --gold-bright: #f0c850;
  --gold-dim: #8a6f2d;
  --text: #e8e8f0;
  --text-dim: #6a6a80;
}

/* --- RESET --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- UTILITY --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 0;
}
.section-deep { background: var(--bg-deep); }

/* --- HERO VIDEO BACKGROUND --- */
.hero-video-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 1;
  opacity: 0.55;
  pointer-events: none;
}
#globe-canvas { z-index: 0; }
@media (max-width: 768px) { .hero-video-bg { display: none; } }

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 32px;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.btn-gold {
  background: var(--gold);
  color: var(--bg);
}
.btn-gold:hover {
  background: var(--gold-bright);
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(212, 168, 67, 0.3);
}
.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
}
.btn-outline:hover {
  border-color: var(--gold);
  background: rgba(212, 168, 67, 0.08);
}
.btn-lg { font-size: 16px; padding: 18px 48px; }
.btn-xl { font-size: 18px; padding: 22px 60px; }
.btn-nav { padding: 10px 24px; font-size: 12px; }
.cta-center { display: block; width: fit-content; margin: 60px auto 0; }

/* --- CANVAS (THREE.JS) --- */
#globe-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* --- STICKY NAV --- */
#sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 168, 67, 0.2);
  z-index: 9999;
  display: flex;
  align-items: center;
  transition: transform 0.4s ease;
}
.nav-hidden { transform: translateY(-100%); }
.nav-visible { transform: translateY(0); }
.nav-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-wordmark {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--gold);
}

/* --- HERO --- */
.hero {
  position: relative;
  z-index: 1;
  background: transparent;
  text-align: center;
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero-divider {
  width: 0;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 40px;
}
.hero-headline {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: clamp(24px, 5vw, 56px);
  letter-spacing: 6px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero-tagline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(16px, 2.5vw, 24px);
  color: var(--text);
  margin-bottom: 48px;
  opacity: 0;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  opacity: 0;
}
.scroll-indicator {
  margin-top: 60px;
  opacity: 0;
  animation: bounce 2s infinite 3s;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* --- EMAIL CAPTURE --- */
.email-capture {
  display: flex;
  gap: 0;
  max-width: 420px;
  width: 100%;
}
.email-capture input[type="email"] {
  flex: 1;
  padding: 14px 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  background: var(--surface);
  border: 1px solid var(--gold-dim);
  border-right: none;
  color: var(--text);
  outline: none;
  transition: border-color 0.3s ease;
}
.email-capture input[type="email"]:focus {
  border-color: var(--gold);
}
.email-capture .btn {
  border-left: none;
  white-space: nowrap;
}
.email-capture-final {
  margin: 32px auto 0;
}
.email-status {
  font-size: 13px;
  letter-spacing: 2px;
  font-family: 'JetBrains Mono', monospace;
  margin-top: 12px;
  min-height: 20px;
}
.email-status.success { color: var(--gold); }
.email-status.error { color: #cc4444; }
.limited-note {
  color: var(--text-dim);
  font-size: 13px;
  margin-top: 24px;
}

/* --- SECTION HEADLINES --- */
.section-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 5vw, 72px);
  color: var(--gold);
  text-align: center;
  margin-bottom: 24px;
}
.section-headline-bright { color: var(--gold-bright); }
.section-sub {
  font-size: clamp(16px, 2vw, 24px);
  color: var(--text);
  text-align: center;
  margin-bottom: 60px;
}
.eyebrow {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--gold);
  text-align: center;
  margin-bottom: 16px;
}

/* --- THESIS GRID --- */
.thesis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 60px;
}
.thesis-col {
  text-align: center;
}
.thesis-col h3 {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 4px;
  color: var(--gold);
  margin-bottom: 16px;
}
.thesis-col p {
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
}

/* --- SECTORS --- */
.sector-section {
  position: relative;
  overflow: hidden;
}
.sector-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.sector-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10, 10, 15, 0.92) 0%,
    rgba(10, 10, 15, 0.6) 50%,
    rgba(10, 10, 15, 0.92) 100%
  );
}
.sector-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}
.sector-left { margin-right: auto; }
.sector-right { margin-left: auto; text-align: right; }
.sector-name {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: clamp(20px, 3vw, 36px);
  letter-spacing: 6px;
  color: var(--gold);
  margin-bottom: 24px;
}
.sector-body {
  color: var(--text);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 24px;
}
.sector-stat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  letter-spacing: 3px;
  color: var(--gold-dim);
}

/* --- PIPELINE --- */
#pipeline { background: var(--bg); }
#pipeline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(212, 168, 67, 0.03) 0%, transparent 70%);
  pointer-events: none;
}
.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 60px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--gold-dim);
  padding: 40px 32px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}
.card h3 {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 12px;
}
.card p {
  color: var(--text);
  font-size: 15px;
  margin-bottom: 16px;
}
.card-stat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 2px;
}
.big-stat {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: clamp(48px, 8vw, 96px);
  color: var(--gold);
  text-align: center;
  margin-top: 60px;
}
.big-stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--text-dim);
  text-align: center;
}

/* --- TIMELINE --- */
.timeline {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 60px 0;
  padding-top: 40px;
}
.timeline-line {
  position: absolute;
  top: 48px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold-dim);
  transform-origin: left;
  transform: scaleX(0);
}
.timeline-item {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 8px;
}
.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  margin: 0 auto 16px;
  position: relative;
}
.timeline-dot-pulse {
  background: var(--gold-bright);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(240, 200, 80, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(240, 200, 80, 0); }
}
.timeline-dot-outline {
  background: transparent;
  border: 2px solid var(--gold);
  animation: pulse 2s infinite;
}
.timeline-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 700;
}
.timeline-desc {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
}
.marquee-item .timeline-label { color: var(--gold-bright); font-size: 12px; }

/* --- STATS ROW --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin: 60px 0;
  text-align: center;
}
.stat span {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 48px);
  color: var(--gold);
  display: block;
}
.stat label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-dim);
  margin-top: 8px;
  display: block;
}

/* --- BITCOIN PLAYBOOK --- */
.bitcoin-section::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(212, 168, 67, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.btc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0;
}
.btc-card {
  background: var(--surface);
  border: 1px solid var(--gold-dim);
  padding: 32px 24px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--gold);
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.btc-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-bright);
  box-shadow: 0 8px 30px rgba(212, 168, 67, 0.1);
}

/* --- PULL QUOTE --- */
.pull-quote {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(18px, 2.5vw, 28px);
  font-style: italic;
  color: var(--gold);
  text-align: center;
  margin: 48px 0;
  line-height: 1.5;
}

/* --- I TOKEN --- */
.token-render-placeholder {
  width: 300px;
  height: 300px;
  margin: 60px auto;
  border: 1px dashed var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 2px;
}

/* --- LIBRARY --- */
.library-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.library-col {
  background: var(--surface);
  border: 1px solid var(--gold-dim);
  padding: 40px 28px;
}
.library-col h3 {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 24px;
  line-height: 1.6;
}
.tier-range {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 2px;
  font-weight: 400;
}
.library-col ul li {
  font-size: 14px;
  color: var(--text);
  padding: 8px 0;
  border-bottom: 1px solid rgba(106, 106, 128, 0.15);
  line-height: 1.5;
}
.library-col ul li:last-child { border-bottom: none; }

/* --- PRICING TABLE --- */
.pricing-table-wrap {
  overflow-x: auto;
  margin-top: 40px;
}
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.pricing-table th {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--gold);
  text-align: left;
  padding: 16px 20px;
  border-bottom: 2px solid var(--gold-dim);
}
.pricing-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(106, 106, 128, 0.15);
  color: var(--text);
}
.marquee-row td {
  color: var(--gold-bright);
  font-weight: 700;
}

/* --- FINAL CAPTURE --- */
.section-grain {
  background: var(--bg);
}
#final-capture .container {
  text-align: center;
}
#final-capture .btn-xl {
  margin: 40px auto 0;
  display: inline-block;
}

/* --- FOOTER --- */
#footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--gold-dim);
  padding: 40px 24px 32px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-dim);
}
.footer-inner a {
  color: var(--text-dim);
  transition: color 0.3s ease;
}
.footer-inner a:hover { color: var(--gold); }
.disclaimer {
  max-width: 1200px;
  margin: 24px auto 0;
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* --- RESPONSIVE --- */

/* Tablet */
@media (max-width: 1024px) {
  .thesis-grid,
  .btc-grid { gap: 24px; }
  .timeline { flex-wrap: wrap; gap: 24px; }
  .timeline-item { flex: 0 0 25%; }
}

/* Mobile */
@media (max-width: 768px) {
  .section { padding: 80px 0; min-height: auto; }

  .nav-wordmark { display: none; }

  .hero-headline { letter-spacing: 3px; }

  .thesis-grid,
  .library-grid,
  .btc-grid {
    grid-template-columns: 1fr;
  }
  .pipeline-grid {
    grid-template-columns: 1fr;
  }

  .sector-content {
    max-width: 100%;
    text-align: center;
  }
  .sector-left,
  .sector-right {
    margin: 0 auto;
    text-align: center;
  }

  .timeline {
    flex-direction: column;
    padding-left: 30px;
    padding-top: 0;
  }
  .timeline-line {
    top: 0;
    bottom: 0;
    left: 6px;
    right: auto;
    width: 2px;
    height: 100%;
    transform-origin: top;
    transform: scaleY(0);
  }
  .timeline-item {
    text-align: left;
    padding: 16px 0;
  }
  .timeline-dot {
    position: absolute;
    left: -30px;
    top: 20px;
    margin: 0;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .email-capture {
    flex-direction: column;
    gap: 8px;
  }
  .email-capture input[type="email"] { border-right: 1px solid var(--gold-dim); }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .pricing-table { font-size: 12px; }
  .pricing-table th,
  .pricing-table td { padding: 12px 12px; }
}
