/* ===================== Tokens ===================== */
:root {
  --bg:        #0a0e17;
  --bg-2:      #0e1320;
  --surface:   #141b2b;
  --surface-2: #1a2333;
  --border:    #25324a;
  --text:      #e8edf6;
  --text-soft: #9fb0ca;
  --text-dim:  #647089;
  --accent:    #4f8cff;   /* electric blue */
  --accent-2:  #19d3a2;   /* mint/teal */
  --accent-glow: rgba(79,140,255,0.4);
  --max-w: 1180px;
  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ===================== Nav ===================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,14,23,0);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
.nav.scrolled {
  background: rgba(10,14,23,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand {
  font-family: var(--font-display);
  font-weight: 700; font-size: 19px; letter-spacing: 0.04em;
  color: var(--text);
}
.brand span { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--text-soft);
  font-family: var(--font-mono); letter-spacing: 0.02em;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  border: 1px solid var(--border);
  padding: 8px 18px; border-radius: 999px;
  color: var(--text) !important;
}
.nav-cta:hover { border-color: var(--accent); background: var(--accent-glow); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); transition: 0.25s; }

/* ===================== Hero ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(79,140,255,0.16), transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(25,211,162,0.10), transparent 60%),
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 54px 54px, 54px 54px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 100% 100% at 50% 35%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at 50% 35%, #000 35%, transparent 78%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center;
}

.eyebrow {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.04em;
  color: var(--text-soft); text-transform: none;
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 24px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 12px var(--accent-2); flex: none; }

.hero-copy h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(48px, 8vw, 92px); line-height: 0.98; letter-spacing: -0.02em;
  margin-bottom: 18px;
  background: linear-gradient(180deg, #fff 30%, #b9c6df);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-tags {
  font-family: var(--font-mono); font-size: 14px; color: var(--accent);
  letter-spacing: 0.02em; margin-bottom: 26px;
}
.hero-lede { font-size: 18px; color: var(--text-soft); max-width: 520px; margin-bottom: 36px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-photo {
  position: relative;
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  aspect-ratio: 1 / 1;
}
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10,14,23,0.55));
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  padding: 13px 26px; border-radius: 999px; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #6aa0ff);
  color: #06122e; box-shadow: 0 8px 28px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px var(--accent-glow); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: #fff; transform: translateY(-2px); }

/* ===================== Sections ===================== */
.section { padding: 110px 0; position: relative; }
.section-label {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em;
  color: var(--accent); margin-bottom: 18px;
}
.section-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(28px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.01em;
  margin-bottom: 48px; max-width: 760px;
}

/* About */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; }
.about-text p { font-size: 17.5px; color: var(--text-soft); margin-bottom: 20px; }
.about-text a { color: var(--accent); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.about-text a:hover { border-bottom-color: var(--accent); }
.about-credentials { display: flex; flex-direction: column; gap: 14px; }
.cred {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 18px; display: flex; flex-direction: column; gap: 4px;
}
.cred-k { font-family: var(--font-mono); font-size: 12px; color: var(--accent-2); letter-spacing: 0.05em; }
.cred-v { font-size: 15px; color: var(--text); font-weight: 500; }

/* Prediction / On the record */
.prediction { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }

.records-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  align-items: stretch;
}
.record { display: flex; flex-direction: column; height: 100%; }

.prediction blockquote {
  position: relative; flex: 1 1 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 16px; padding: 40px 40px 32px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  display: flex; flex-direction: column;
}
.quote-mark { font-family: var(--font-display); font-size: 72px; line-height: 0; color: var(--accent); height: 28px; opacity: 0.5; }
.quote-body { font-family: var(--font-display); font-weight: 500; font-size: clamp(19px, 1.9vw, 25px); line-height: 1.34; color: #fff; margin: 18px 0 24px; flex: 1 1 auto; }
.prediction blockquote footer { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-top: auto; }
.quote-name { font-weight: 600; color: var(--text); font-size: 15px; }
.quote-date { font-family: var(--font-mono); font-size: 13px; color: var(--text-dim); }

.prediction-note {
  font-size: 15px; color: var(--text-soft); line-height: 1.6;
  margin: 18px 0 0;
}
.prediction-note strong { color: var(--text); font-weight: 600; }
.prediction-note .gain { color: var(--accent-2); font-weight: 600; }

.prediction-disclaimer {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--text-dim);
  margin-top: 36px; max-width: 880px; line-height: 1.6;
}

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

/* Books */
.book-feature {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 44px; margin-bottom: 28px;
}
.book-image { display: flex; justify-content: center; }
.book-image img { filter: drop-shadow(0 24px 48px rgba(0,0,0,0.5)); }
.badge {
  display: inline-block; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em;
  color: var(--accent-2); background: rgba(25,211,162,0.12); border: 1px solid rgba(25,211,162,0.3);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
}
.book-info h3 { font-family: var(--font-display); font-weight: 600; font-size: 30px; margin-bottom: 4px; }
.book-year { font-family: var(--font-mono); font-size: 14px; color: var(--text-dim); margin-bottom: 18px; }
.book-info p { color: var(--text-soft); font-size: 16.5px; margin-bottom: 24px; }
.book-secondary {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 20px; padding: 36px 44px;
}
.book-secondary .book-info p:last-child { margin-bottom: 0; }

/* Videos */
.video-cta {
  border-radius: 20px; border: 1px solid var(--border);
  background-size: cover; background-position: center;
  padding: 80px 48px; display: flex; align-items: flex-end; min-height: 340px;
}
.video-cta h3 { font-family: var(--font-display); font-weight: 600; font-size: 28px; margin-bottom: 10px; }
.video-cta p { color: var(--text-soft); max-width: 460px; margin-bottom: 24px; }

/* Connect */
.connect-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 820px; }
.connect-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 22px 24px; display: flex; flex-direction: column; gap: 6px;
  transition: transform 0.18s ease, border-color 0.2s ease, background 0.2s ease;
}
.connect-card:hover { transform: translateY(-3px); border-color: var(--accent); background: var(--surface-2); }
.connect-k { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent); letter-spacing: 0.04em; }
.connect-v { font-size: 18px; font-weight: 500; font-family: var(--font-display); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0; background: var(--bg-2); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-family: var(--font-mono); font-size: 13px; color: var(--text-dim); }

/* ===================== Reveal animation ===================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2,0.7,0.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===================== Responsive ===================== */
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { max-width: 360px; order: -1; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .book-feature { grid-template-columns: 1fr; gap: 28px; text-align: center; padding: 32px; }
  .book-feature .book-info { text-align: left; }
  .connect-grid { grid-template-columns: 1fr; }

  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(10,14,23,0.97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 20px;
    transform: translateY(-130%); transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav-cta { text-align: center; margin-top: 12px; border-radius: 999px; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 520px) {
  .section { padding: 80px 0; }
  .video-cta { padding: 48px 28px; }
}
