@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,300;1,9..144,400&family=IBM+Plex+Mono:wght@400;500;600&family=Mulish:wght@300;400;500;600;700&display=swap');

:root {
  --lime: #C5F135;
  --lime-dim: #8faf22;
  --dark: #07090c;
  --mid: #0d1117;
  --panel: #111620;
  --panel2: #161d28;
  --border: #1e2a38;
  --text: #cdd3d6;
  --muted: #5a6a7a;
  --white: #eef3f8;
  --red: #ff4f4f;
  --amber: #f5a623;
  --blue: #4a9eff;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--text);
  font-family: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.75;
  overflow-x: hidden;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3 { font-family: 'Fraunces', serif; color: #ece7dc; line-height: 1.15; }
h1 { font-size: clamp(36px, 6vw, 72px); font-weight: 700; }
h2 { font-size: clamp(26px, 4vw, 48px); font-weight: 600; }
h3 { font-size: clamp(18px, 2.5vw, 26px); font-weight: 600; }
p { color: var(--text); line-height: 1.75; }
a { color: var(--lime); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .8; }

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; font-weight: 600; letter-spacing: .14em;
  color: var(--lime); text-transform: uppercase; margin-bottom: 14px; display: block;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(7,9,12,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
  display: flex; align-items: center; gap: 32px;
  height: 64px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.nav-logo svg { width: 22px; height: 22px; }
.nav-brand {
  font-family: 'Fraunces', serif; font-size: 17px; font-weight: 700;
  color: #fff; letter-spacing: .02em;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: 12px; color: var(--muted); letter-spacing: .05em; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-cta {
  background: var(--lime); color: #000;
  font-size: 12px; font-weight: 600; letter-spacing: .06em;
  padding: 8px 20px; border: none; cursor: pointer;
  transition: opacity .2s;
}
.nav-cta:hover { opacity: .9; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-hamburger span { width: 22px; height: 2px; background: #fff; display: block; transition: .3s; }

/* ── LAYOUT ── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 5%; }
.section { padding: 100px 0; }
.section-sm { padding: 64px 0; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px; font-weight: 600; letter-spacing: .08em;
  padding: 14px 28px; cursor: pointer;
  transition: all .2s; border: none; text-decoration: none;
}
.btn-lime { background: var(--lime); color: #000; }
.btn-lime:hover { background: #d4ff44; opacity: 1; }
.btn-outline { background: transparent; color: #fff; border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--lime); color: var(--lime); opacity: 1; }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.1); opacity: 1; }

/* ── DEVICE PILLS ── */
.device-pill {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border);
  padding: 4px 12px; font-size: 11px; color: var(--muted);
  background: var(--panel);
}
.device-pill.active { border-color: rgba(197,241,53,.4); color: var(--lime); background: rgba(197,241,53,.06); }

/* ── CARDS ── */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 28px;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: rgba(197,241,53,.3); transform: translateY(-2px); }

/* ── DIVIDERS ── */
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ── FOOTER ── */
footer {
  background: var(--mid);
  border-top: 1px solid var(--border);
  padding: 60px 5% 40px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand-name { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer-tagline { font-size: 11px; color: var(--muted); line-height: 1.6; max-width: 240px; }
.footer-col-title { font-size: 10px; font-weight: 600; letter-spacing: .1em; color: var(--lime); margin-bottom: 14px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 12px; color: var(--muted); transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: var(--muted);
}

/* ── SCROLL REVEAL ── */
.reveal { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
.js .reveal { opacity: 0; transform: translateY(24px); }
.js .reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ── MOBILE ── */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  nav.open .nav-links {
    display: flex; flex-direction: column; position: fixed;
    top: 64px; left: 0; right: 0; background: var(--mid);
    border-bottom: 1px solid var(--border);
    padding: 24px 5%; gap: 20px;
  }
  nav.open .nav-cta { display: block; width: 100%; text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── NAV LOGO (real sail mark + wordmark) ── */
.nav-logo-link { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.nav-mark { height: 30px; width: auto; display: block; }
.nav-wordmark { height: 17px; width: auto; display: block; opacity: .95; }

/* ── COMPOUNDING INTELLIGENCE CALLOUT ── */
.compound-section { padding: clamp(70px, 10vw, 130px) 0; background:
  radial-gradient(ellipse 80% 60% at 50% 0%, rgba(197,241,53,.06), transparent 70%), var(--mid); border-top: 1px solid var(--border); }
.compound-head { max-width: 860px; margin: 0 auto; text-align: center; }
.compound-head h2 { font-size: clamp(30px, 5vw, 58px); margin-bottom: 26px; }
.compound-head h2 em { font-weight: 300; font-style: italic; color: var(--lime); }
.compound-lead { font-size: clamp(15px, 1.6vw, 18px); color: var(--text); line-height: 1.8; max-width: 720px; margin: 0 auto; }
.compound-lead em { color: #fff; font-style: normal; font-weight: 600; }
.compound-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 60px; max-width: 920px; margin-left: auto; margin-right: auto; }
.cstat { text-align: center; padding: 32px 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); }
.cstat-num { font-family: 'Fraunces', serif; font-size: clamp(40px, 6vw, 64px); font-weight: 700; color: var(--lime); line-height: 1; }
.cstat-num span { font-size: 18px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.cstat-lbl { font-size: 13px; color: var(--muted); line-height: 1.5; margin-top: 14px; }

/* ── WHAT YOU LOG / SYNTHESIS ── */
.track-section { padding: clamp(70px, 10vw, 130px) 0; background: var(--dark); }
.track-head { max-width: 760px; margin: 0 auto 60px; text-align: center; }
.track-head h2 { font-size: clamp(28px, 4.5vw, 50px); margin-bottom: 22px; }
.track-head h2 em { font-weight: 300; font-style: italic; color: var(--text); }
.track-head p { color: var(--text); max-width: 640px; margin: 0 auto; }
.track-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.track-card { padding: 26px 22px; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); transition: border-color .25s, transform .25s; }
.track-card:hover { border-color: rgba(197,241,53,.35); transform: translateY(-3px); }
.track-ic { font-size: 26px; margin-bottom: 14px; line-height: 1; }
.track-tt { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 600; color: #fff; margin-bottom: 9px; }
.track-bd { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.track-synthesis { margin-top: 56px; max-width: 860px; margin-left: auto; margin-right: auto; padding: 40px clamp(24px, 4vw, 50px); border: 1px solid rgba(197,241,53,.22); border-radius: 18px; background: linear-gradient(180deg, rgba(197,241,53,.05), rgba(197,241,53,.01)); }
.track-synth-eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .12em; color: var(--lime); display: block; margin-bottom: 22px; }
.track-synth-line { font-family: 'Fraunces', serif; font-size: clamp(17px, 2.1vw, 22px); color: #fff; line-height: 1.5; padding: 14px 0; border-bottom: 1px solid var(--border); font-style: italic; font-weight: 400; }
.track-synth-line:last-of-type { border-bottom: none; }
.track-synth-foot { font-size: 14px; color: var(--muted); line-height: 1.7; margin-top: 22px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .track-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .compound-stats { grid-template-columns: 1fr; }
  .track-grid { grid-template-columns: 1fr; }
  .nav-wordmark { height: 15px; }
}
