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

:root {
  --bg:            #080808;
  --bg-2:          #0E0E10;
  --bg-3:          #14110C;
  --line:          rgba(232, 220, 190, 0.08);
  --line-strong:   rgba(232, 220, 190, 0.20);

  --text:          #EFEAE0;
  --text-dim:      #9A9286;
  --text-faint:    #5C564D;

  --gold:          #C8A35E;
  --gold-bright:   #E5C88B;
  --gold-deep:     #8E6F3A;
  --glow:          rgba(229, 200, 139, 0.35);
  --glow-soft:     rgba(229, 200, 139, 0.12);

  --green:         #6FBF73;
  --red:           #C25450;

  --f-serif:       'Cormorant Garamond', 'Times New Roman', serif;
  --f-sans:        'Inter', system-ui, sans-serif;
  --f-mono:        'JetBrains Mono', 'Menlo', monospace;

  --shadow-card:   0 30px 80px -20px rgba(0,0,0,0.7), 0 0 0 1px var(--line);
  --shadow-glow:   0 0 60px var(--glow-soft);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: var(--gold);
  color: var(--bg);
}

h1, h2, h3, h4 {
  font-family: var(--f-serif);
  font-weight: 500;
  margin: 0;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* Noise overlay */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.06;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
}

/* Cursor glow */
#cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
  mix-blend-mode: screen;
  opacity: 0.5;
  pointer-events: none;
  z-index: 2;
  transform: translate3d(-9999px, -9999px, 0);
  transition: opacity 0.4s ease;
}

@media (hover: none) {
  #cursor-glow { display: none; }
}

/* ===== NAV ===== */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  padding: 0 32px;
  background: rgba(8,8,8,0.6);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.logo {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  color: var(--text);
  position: relative;
  padding-bottom: 2px;
}
.logo::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.logo:hover::after { width: 100%; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--f-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ca-pill {
  position: relative;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  background: rgba(20,17,12,0.4);
  border-radius: 999px;
  color: var(--text);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 0.6s cubic-bezier(0.16,1,0.3,1), box-shadow 0.6s cubic-bezier(0.16,1,0.3,1), background 0.6s cubic-bezier(0.16,1,0.3,1);
}
.ca-pill:hover {
  border-color: var(--gold);
  box-shadow: 0 0 24px var(--glow-soft);
  background: rgba(20,17,12,0.8);
}
.ca-pill .ca-label { color: var(--text-dim); }
.ca-pill .ca-value {
  color: var(--gold-bright);
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ca-pill .copy-icon { color: var(--text-dim); }

.nav-icon {
  position: relative;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: color 0.4s cubic-bezier(0.16,1,0.3,1), transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.nav-icon:hover {
  color: var(--gold-bright);
  transform: translateY(-1px);
}

/* ===== HERO ===== */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  z-index: 0;
}

#hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,8,8,0.20) 0%, rgba(8,8,8,0.32) 50%, rgba(8,8,8,0.92) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  padding: 64px 24px 7vh;
  text-align: center;
}

.hero-label {
  font-family: var(--f-mono);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--gold);
  letter-spacing: 0.3em;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s cubic-bezier(0.16,1,0.3,1) 0.2s, transform 1.2s cubic-bezier(0.16,1,0.3,1) 0.2s;
}

.hero-title {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(64px, 12vw, 180px);
  line-height: 0.95;
  color: var(--text);
  text-shadow: 0 0 80px var(--glow-soft);
  letter-spacing: -0.02em;
  margin: 24px 0 28px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.4s cubic-bezier(0.16,1,0.3,1) 0.4s, transform 1.4s cubic-bezier(0.16,1,0.3,1) 0.4s;
}

.hero-sub {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.2em;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s cubic-bezier(0.16,1,0.3,1) 0.7s, transform 1.2s cubic-bezier(0.16,1,0.3,1) 0.7s;
}
.hero-line {
  display: inline-block;
  width: 60px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}
.hero-ticker { color: var(--gold-bright); }

.hero-tag {
  margin-top: 24px;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--text-dim);
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 1.2s cubic-bezier(0.16,1,0.3,1) 0.95s, transform 1.2s cubic-bezier(0.16,1,0.3,1) 0.95s;
}

body.loaded .hero-label,
body.loaded .hero-title,
body.loaded .hero-sub,
body.loaded .hero-tag {
  opacity: 1;
  transform: translateY(0);
}

/* ===== TWEET SECTION ===== */
#tweet-section {
  position: relative;
  background: var(--bg-2);
  padding: 120px 32px;
  z-index: 5;
}

.tiny-label {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--gold);
}
.tiny-label.centered {
  display: block;
  text-align: center;
  margin-bottom: 24px;
}

#tweet-wrap {
  max-width: 580px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 0 80px var(--glow-soft);
  padding: 4px;
  background: var(--bg-3);
}
#tweet-container {
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#tweet-container .twitter-tweet {
  margin: 0 auto !important;
}
.tweet-fallback {
  padding: 32px;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--text-dim);
  text-align: center;
}

/* ===== MANIFESTO + ASSET CARD ===== */
#manifesto-section {
  position: relative;
  padding: 160px 32px;
  overflow: hidden;
  z-index: 5;
}

#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.manifesto-grid {
  position: relative;
  z-index: 5;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.epigraph {
  min-height: 60px;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 20px;
  color: var(--text-dim);
  margin-bottom: 60px;
}
.epigraph .author { color: var(--gold); }

.manifesto-body p {
  font-family: var(--f-serif);
  font-size: 22px;
  line-height: 1.5;
  color: var(--text);
  max-width: 520px;
  margin: 0 0 28px;
}
.manifesto-body em {
  color: var(--gold-bright);
  font-style: italic;
}
.manifesto-final {
  font-style: italic;
  color: var(--gold-bright);
  font-size: 26px !important;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s cubic-bezier(0.16,1,0.3,1), transform 1s cubic-bezier(0.16,1,0.3,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.card-col {
  display: flex;
  justify-content: center;
}

.asset-card {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 460px;
  background: var(--bg-3);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 28px;
  font-family: var(--f-mono);
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1), box-shadow 0.6s cubic-bezier(0.16,1,0.3,1);
}
.asset-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 100px var(--glow-soft), var(--shadow-card);
}

.asset-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}
.asset-name {
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.08em;
}
.asset-sub {
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.2em;
  margin-top: 4px;
}
.asset-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--green);
  letter-spacing: 0.15em;
}
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.asset-chart {
  position: relative;
  width: 100%;
  height: 200px;
  margin-bottom: 20px;
}
.asset-chart svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 0 8px var(--glow));
}

.asset-divider {
  height: 1px;
  background: var(--line);
  margin: 16px 0;
}

.asset-metrics {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.metric-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.metric-row:last-child { border-bottom: none; }
.metric-label { color: var(--text-dim); letter-spacing: 0.1em; }
.metric-value { color: var(--gold-bright); }

.asset-sentiment { padding-top: 4px; }
.sentiment-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 8px;
  letter-spacing: 0.1em;
}
.sentiment-row span:last-child { color: var(--gold-bright); }
.sentiment-bar {
  height: 4px;
  background: var(--gold-deep);
  border-radius: 2px;
  overflow: hidden;
  opacity: 0.4;
}
.sentiment-fill {
  width: 0;
  height: 100%;
  background: var(--gold-bright);
  box-shadow: 0 0 10px var(--glow);
  transition: width 2s cubic-bezier(0.16,1,0.3,1);
}

/* ===== SCROLL WORDS ===== */
#scroll-section {
  position: relative;
  height: 400vh;
  z-index: 5;
}
.scroll-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.scroll-counter {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.3em;
  margin-bottom: 24px;
}
#scroll-word {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(80px, 18vw, 280px);
  color: var(--text);
  text-shadow: 0 0 100px var(--glow-soft);
  letter-spacing: -0.03em;
  line-height: 1;
  transition: opacity 0.2s ease;
}
.scroll-progress {
  width: 200px;
  height: 1px;
  background: var(--line);
  margin-top: 40px;
  overflow: hidden;
}
#scroll-progress-fill {
  width: 0;
  height: 100%;
  background: var(--gold);
  transition: width 0.1s linear;
}

/* ===== HOW TO + FOOTER ===== */
#howto-section {
  position: relative;
  padding: 160px 32px 80px;
  z-index: 5;
}
.section-heading {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(40px, 6vw, 56px);
  color: var(--gold-bright);
  text-align: center;
  margin: 16px auto 64px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.step-card {
  padding: 32px 24px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: border-color 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1), box-shadow 0.6s cubic-bezier(0.16,1,0.3,1);
}
.step-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 0 40px var(--glow-soft);
}
.step-num {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 48px;
  color: var(--gold-bright);
  opacity: 0.5;
  line-height: 1;
  margin-bottom: 16px;
}
.step-title {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 8px;
}
.step-body {
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}

.footer-divider {
  margin: 80px auto 0;
  max-width: 1100px;
  height: 1px;
  background: var(--gold-deep);
  opacity: 0.3;
}

#footer {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.footer-logo {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--text);
}
.footer-tag {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--gold-bright);
}
.footer-icons {
  display: flex;
  gap: 24px;
  margin-top: 6px;
}
.footer-ca {
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 16px;
  color: var(--text-dim);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  transition: border-color 0.4s cubic-bezier(0.16,1,0.3,1), color 0.4s cubic-bezier(0.16,1,0.3,1);
}
.footer-ca:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}
.footer-ca #footer-ca-value { color: var(--gold-bright); }
.footer-copy {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 16px;
}

/* ===== AUDIO CONTROL ===== */
.audio-control {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(20,17,12,0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.mute-btn {
  position: relative;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--gold-bright);
  padding: 0;
}
.hint-dot {
  position: absolute;
  top: 0;
  right: -2px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 10px var(--glow);
  animation: pulse 1.6s ease-in-out infinite;
}
.hint-dot.hide { display: none; }

#vol-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 2px;
  background: var(--gold-deep);
  border-radius: 2px;
  outline: none;
  margin: 0;
}
#vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 8px var(--glow);
  cursor: pointer;
  border: none;
}
#vol-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 8px var(--glow);
  cursor: pointer;
  border: none;
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translate(-50%, 30px);
  z-index: 200;
  background: var(--bg-3);
  border: 1px solid var(--gold);
  color: var(--text);
  font-family: var(--f-mono);
  font-size: 14px;
  letter-spacing: 0.1em;
  padding: 12px 20px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16,1,0.3,1), transform 0.3s cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 0 30px var(--glow-soft);
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .manifesto-grid { gap: 60px; }
}

@media (max-width: 768px) {
  #nav { padding: 0 16px; }
  .nav-right { gap: 12px; }
  .nav-icon[aria-label="community"],
  .nav-icon[aria-label="pump.fun"],
  .nav-icon[aria-label="dexscreener"] { display: none; }
  .ca-pill { padding: 6px 10px; font-size: 10px; }
  .ca-pill .ca-value { max-width: 90px; }

  .hero-title { font-size: clamp(56px, 16vw, 84px); }
  .hero-sub { font-size: 12px; gap: 10px; }
  .hero-line { width: 36px; }
  .hero-tag { font-size: 16px; }
  .hero-label { font-size: 10px; letter-spacing: 0.25em; }

  .audio-control { bottom: 16px; right: 16px; padding: 6px 10px; }
  #vol-slider { width: 60px; }

  #tweet-section { padding: 80px 16px; }

  #manifesto-section { padding: 100px 20px; }
  .manifesto-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .card-col { order: -1; }
  .asset-card { padding: 20px; max-width: 100%; }
  .manifesto-body p { font-size: 18px; }
  .epigraph { font-size: 18px; margin-bottom: 40px; }

  #scroll-word { font-size: clamp(72px, 22vw, 200px); }

  #howto-section { padding: 100px 16px 60px; }
  .steps-grid { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 480px) {
  #tweet-section { padding: 60px 12px; }
  #manifesto-section { padding: 80px 16px; }
  #howto-section { padding: 80px 12px 50px; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  body.loaded .hero-label,
  body.loaded .hero-title,
  body.loaded .hero-sub,
  body.loaded .hero-tag { opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; }
  #particles { display: none; }
}
