@import url('https://api.fontshare.com/v2/css?f[]=satoshi@400,500,700,900&f[]=general-sans@400,500,600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #0a0a0a;
  --surface: #121212;
  --surface-2: #181818;
  --border: #242424;
  --border-soft: #1b1b1b;
  --text: #f6f6f5;
  --muted: #a6a6a3;
  --faint: #6d6d6a;
  --green: #1ed760;
  --green-dim: #16a44a;
  --gold: #e0a96a;
  --gold-dim: #a9793f;

  --font-display: 'Satoshi', system-ui, sans-serif;
  --font-body: 'General Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --nav-h: 66px;
  --maxw: 1200px;
  --radius: 14px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--font-mono); }
.text-green { color: var(--green); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--muted); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Molten background (injected by talos.js) */
.talos-bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: #060606; }
.talos-bg video, .talos-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% center; animation: bgdrift 40s ease-in-out infinite alternate; }
@keyframes bgdrift { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.12) translate(-2%, -1%); } }
.talos-scrim {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10,10,10,.94) 0%, rgba(10,10,10,.72) 34%, rgba(10,10,10,.42) 66%, rgba(10,10,10,.66) 100%),
    linear-gradient(180deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,0) 22%, rgba(10,10,10,0) 62%, rgba(10,10,10,.92) 100%);
  transition: opacity .6s var(--ease);
}
.talos-bloom {
  position: fixed; z-index: -1; width: 620px; height: 620px; border-radius: 50%; pointer-events: none;
  transform: translate(-50%, -50%); opacity: 0; transition: opacity .5s ease;
  background: radial-gradient(circle, rgba(245,205,150,.42) 0%, rgba(224,169,106,.20) 34%, rgba(224,169,106,0) 68%);
  mix-blend-mode: screen;
}

/* Two-tier nav + Explore dropdown */
.nav-shell { position: fixed; top: 0; left: 0; right: 0; z-index: 50; }
.topbar { height: 34px; overflow: hidden; border-bottom: 1px solid var(--border-soft); background: rgba(10,10,10,.55); backdrop-filter: blur(10px); transition: height .4s var(--ease), opacity .4s var(--ease), border-color .4s; }
.nav-shell.scrolled .topbar { height: 0; opacity: 0; border-color: transparent; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 34px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .02em; color: var(--faint); }
.topbar-status { display: flex; align-items: center; gap: 8px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: live 2.2s ease-in-out infinite; }
@keyframes live { 0%,100% { opacity: .45; } 50% { opacity: 1; } }
.topbar-link { color: var(--muted); transition: color .2s; }
.topbar-link:hover { color: var(--gold); }
.nav { position: relative; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; border-bottom: 1px solid transparent; transition: background .4s var(--ease), border-color .4s var(--ease); }
.nav-shell.scrolled .nav { background: rgba(10,10,10,.74); backdrop-filter: blur(14px); border-bottom-color: var(--border-soft); }
.nav-shell.scrolled .nav::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(224,169,106,.35), transparent); }
.nav-right { display: flex; align-items: center; gap: 20px; }
.explore { position: relative; }
.explore-btn { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-body); font-size: 14px; color: var(--muted); background: none; border: 0; cursor: pointer; padding: 8px 2px; transition: color .2s; }
.explore-btn:hover, .explore.open .explore-btn { color: var(--text); }
.explore-btn svg { transition: transform .25s var(--ease); }
.explore.open .explore-btn svg { transform: rotate(180deg); }
.dropdown { position: absolute; top: calc(100% + 14px); right: 0; width: 324px; background: rgba(20,20,20,.9); backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: 16px; padding: 8px; box-shadow: 0 26px 64px rgba(0,0,0,.62), inset 0 1px 0 rgba(255,255,255,.05); opacity: 0; transform: translateY(-10px) scale(.97); transform-origin: top right; pointer-events: none; transition: opacity .22s var(--ease), transform .22s var(--ease); }
.explore.open .dropdown { opacity: 1; transform: none; pointer-events: auto; }
.dropdown::before { content: ''; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.drop-item { display: flex; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 11px; transition: background .16s; }
.drop-item:hover { background: rgba(255,255,255,.05); }
.drop-item.active { background: rgba(30,215,96,.08); }
.drop-ico { width: 36px; height: 36px; border-radius: 10px; background: rgba(30,215,96,.10); border: 1px solid rgba(30,215,96,.22); display: grid; place-items: center; flex: none; color: var(--green); }
.drop-item > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.drop-title { display: block; font-family: var(--font-display); font-weight: 600; font-size: 14px; line-height: 1.2; }
.drop-desc { display: block; font-size: 12px; color: var(--faint); margin-top: 2px; line-height: 1.2; }
@media (max-width: 640px) {
  .dropdown { position: fixed; top: 106px; left: 16px; right: 16px; width: auto; transform-origin: top center; }
  .nav-shell.scrolled .dropdown { top: 72px; }
}

/* Logo: orb + wordmark */
.logo { display: flex; align-items: center; gap: 10px; }
.orb {
  width: 13px; height: 13px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 30%, #eafff1, var(--green) 55%, var(--green-dim));
  box-shadow: 0 0 10px rgba(30,215,96,.7), 0 0 22px rgba(224,169,106,.25);
}
.orb.pulse { animation: orbpulse .7s var(--ease); }
@keyframes orbpulse { 0% { box-shadow: 0 0 10px rgba(30,215,96,.7); transform: scale(1); } 40% { box-shadow: 0 0 20px rgba(30,215,96,1), 0 0 40px rgba(224,169,106,.5); transform: scale(1.35); } 100% { box-shadow: 0 0 10px rgba(30,215,96,.7); transform: scale(1); } }
.wordmark { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body); font-weight: 600; font-size: 15px; padding: 12px 22px; border-radius: 12px; cursor: pointer; border: 1px solid transparent; transition: transform .18s var(--ease), filter .2s, box-shadow .3s var(--ease); }
.btn:active { transform: scale(.97); }
.btn-green {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #34e074 0%, #16b64f 100%);
  color: #04220e; letter-spacing: -0.01em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.30), 0 8px 26px rgba(30,215,96,.20), 0 0 0 1px rgba(30,215,96,.32);
}
.btn-green > * { position: relative; z-index: 1; }
.btn-green::after { content: ''; position: absolute; top: 0; left: -70%; width: 45%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent); transform: skewX(-18deg); opacity: 0; pointer-events: none; }
.btn-green:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: inset 0 1px 0 rgba(255,255,255,.36), 0 14px 38px rgba(30,215,96,.4), 0 0 0 1px rgba(30,215,96,.55); }
.btn-green:hover::after { animation: sheen .85s var(--ease); }
@keyframes sheen { 0% { left: -70%; opacity: 0; } 18% { opacity: 1; } 100% { left: 130%; opacity: 0; } }
.btn-ghost { background: rgba(255,255,255,.04); border-color: var(--border); color: var(--text); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: rgba(224,169,106,.4); background: rgba(255,255,255,.07); }

/* Cards & surfaces */
.card { background: rgba(18,18,18,.66); border: 1px solid var(--border-soft); border-radius: var(--radius); backdrop-filter: blur(6px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em; color: var(--gold); border: 1px solid rgba(224,169,106,.28); border-radius: 999px; padding: 6px 13px; }
.divider { height: 1px; border: 0; background: linear-gradient(90deg, transparent, rgba(224,169,106,.22), transparent); margin: 0; }

/* Scroll reveal */
[data-reveal] { opacity: 0; transform: translateY(38px); filter: blur(8px); transition: opacity .8s var(--ease), transform .9s var(--ease), filter .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; filter: none; }
.hero-enter { animation: heroIn 1.1s var(--ease) both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(30px); filter: blur(7px); } to { opacity: 1; transform: none; filter: none; } }

/* Audio waveform */
.wave { display: block; width: 100%; height: 100%; }

/* Footer */
.footer { position: relative; border-top: 1px solid var(--border-soft); margin-top: 120px; overflow: hidden; }
.footer::before { content: 'TALOS'; position: absolute; left: 50%; bottom: -.28em; transform: translateX(-50%); font-family: var(--font-display); font-weight: 900; font-size: 26vw; line-height: .8; color: #0e0e0e; letter-spacing: -0.04em; pointer-events: none; white-space: nowrap; }
.footer-inner { position: relative; z-index: 1; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer-badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--faint); border: 1px solid var(--border-soft); border-radius: 999px; padding: 5px 11px; }
.footer-col-title { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-bottom: 12px; }
.footer-link { display: block; font-size: 14px; color: var(--muted); padding: 5px 0; transition: color .2s; }
.footer-link:hover { color: var(--text); }
.byline a { color: var(--muted); text-decoration: none; transition: color .2s; }
.byline a:hover { color: var(--gold); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
  .orb.pulse { animation: none; }
  .hero-enter { animation: none; }
  .talos-bg video, .talos-bg img { animation: none; transform: scale(1.04); }
}
