/* ===== DESIGN SYSTEM ===== */
:root {
  /* Base */
  --bg: #0C0B0F;
  --bg-warm: #12101A;
  --bg-card: #1A1726;
  --bg-card-hover: #221E30;

  /* Accent */
  --amber: #E8A84C;
  --amber-soft: #D4973F;
  --amber-glow: rgba(232, 168, 76, 0.15);
  --amber-border: rgba(232, 168, 76, 0.25);

  /* Text */
  --text-primary: #F0EDE6;
  --text-secondary: #9B95A8;
  --text-muted: #6B6578;

  /* Utility */
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(232, 168, 76, 0.3);

  /* Fonts */
  --font-display: 'Instrument Serif', serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Card fonts */
  --font-lotr: 'MedievalSharp', cursive;
  --font-furious: 'Teko', sans-serif;
  --font-pumpfun: 'Press Start 2P', monospace;
}

/* ===== RESET & GLOBAL ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 0.8; transform: translateY(6px); }
}

@keyframes grain {
  0% { background-position: 0 0; }
  25% { background-position: -5px -5px; }
  50% { background-position: 5px 5px; }
  75% { background-position: -3px 5px; }
  100% { background-position: 0 0; }
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(-50%) translateY(0); }
  to { opacity: 0; transform: translateX(-50%) translateY(10px); }
}

/* ===== SCROLL REVEAL ===== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  transition-delay: var(--delay, 0s);
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== GRAIN OVERLAY ===== */
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.03;
  animation: grain 0.5s steps(4) infinite;
}

.grain-overlay svg {
  width: 100%;
  height: 100%;
}

/* ===== FLOATING PILL ===== */
.floating-pill {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  background: rgba(12, 11, 15, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0.5;
  transition: opacity 0.4s ease, border-color 0.4s ease;
}

.floating-pill:hover {
  opacity: 1;
  border-color: var(--amber-border);
}

.pill-ca {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.pill-ca:hover {
  color: var(--amber);
}

.pill-separator {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.pill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color 0.3s ease;
  position: relative;
  z-index: 10;
}

.pill-icon:hover {
  color: var(--amber);
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  background: var(--bg-card);
  border: 1px solid var(--amber-border);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  transition: none;
}

.toast.show {
  animation: toastIn 0.3s ease forwards, toastOut 0.3s ease 2s forwards;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('static/web.png') center center / cover no-repeat;
  opacity: 0.25;
  z-index: 0;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 40%, rgba(232, 168, 76, 0.06) 0%, transparent 60%),
              linear-gradient(to top, var(--bg) 0%, transparent 40%);
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 700px;
  padding: 0 20px;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title {
  margin-bottom: 1.5rem;
}

.hero-title-top {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.hero-title-bottom {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(5rem, 14vw, 10rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 4px;
  text-transform: uppercase;
  text-shadow: 0 0 60px rgba(232, 168, 76, 0.15);
  line-height: 1;
}

.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  position: relative;
  z-index: 10;
}

.btn-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--amber);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 10;
}

.btn-buy:hover {
  background: var(--amber-soft);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(232, 168, 76, 0.2);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease;
  position: relative;
  z-index: 10;
}

.btn-icon:hover {
  border-color: var(--amber-border);
  color: var(--amber);
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  animation: scrollPulse 3s infinite ease-in-out;
  z-index: 5;
}

/* ===== REVEAL CARDS SECTION ===== */
.reveal-section {
  padding: 8rem 0;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section-title-serif {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 400;
}

.cards-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.reveal-card {
  width: 100%;
  aspect-ratio: 21 / 9;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.4s ease;
}

.reveal-card:hover {
  border-color: var(--border-hover);
}

.card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  clip-path: inset(0 50%);
  transition: clip-path 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 0;
}

.reveal-card:hover .card-image,
.reveal-card.revealed .card-image {
  clip-path: inset(0 0);
}

.card-lotr .card-image {
  filter: sepia(0.1) brightness(0.9);
}

.card-furious .card-image {
  filter: saturate(1.1) contrast(1.05);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(12, 11, 15, 0.4);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.reveal-card:hover .card-overlay,
.reveal-card.revealed .card-overlay {
  opacity: 1;
}

.card-scanlines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.reveal-card.card-pumpfun:hover .card-scanlines,
.reveal-card.card-pumpfun.revealed .card-scanlines {
  opacity: 1;
}

.card-pumpfun {
  border: 1px solid var(--amber-border);
}

.card-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  background: linear-gradient(to top, rgba(12, 11, 15, 0.85) 0%, rgba(12, 11, 15, 0.5) 60%, transparent 100%);
}

.card-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.card-here {
  line-height: 1.1;
}

.card-here-lotr {
  font-family: var(--font-lotr);
  font-size: clamp(3rem, 8vw, 5rem);
  color: var(--text-primary);
  letter-spacing: 2px;
}

.card-here-furious {
  font-family: var(--font-furious);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-style: italic;
  transform: skewX(-5deg);
  display: inline-block;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.card-here-pumpfun {
  font-family: var(--font-pumpfun);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--amber);
  letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.card-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.card-tap-hint {
  display: none;
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  z-index: 5;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

/* ===== TWEET SECTION ===== */
.tweet-section {
  padding: 6rem 0;
  background: var(--bg);
  text-align: center;
  padding-left: 20px;
  padding-right: 20px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.tweet-wrapper {
  max-width: 550px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 4px 30px rgba(232, 168, 76, 0.06);
}

/* ===== QUOTES SECTION ===== */
.quotes-section {
  padding: 6rem 0;
  background: var(--bg-warm);
  padding-left: 20px;
  padding-right: 20px;
}

.quotes-section .section-title-serif {
  margin-bottom: 4rem;
}

.quotes-flow {
  max-width: 650px;
  margin: 0 auto;
}

.quote-entry {
  margin-bottom: 3.5rem;
}

.quote-prefix {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--amber);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.quote-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--text-primary);
  line-height: 1.8;
}

.quotes-closing {
  text-align: center;
  margin-top: 5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--amber);
}

/* ===== HOW TO BUY ===== */
.buy-section {
  padding: 6rem 0;
  background: var(--bg);
  max-width: 600px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.buy-section .section-label {
  text-align: center;
}

.buy-section .section-title-serif {
  margin-bottom: 3rem;
}

.buy-steps {
  display: flex;
  flex-direction: column;
}

.buy-step {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 1.5rem;
  align-items: start;
}

.buy-step:last-child {
  border-bottom: none;
}

.step-number {
  font-family: var(--font-body);
  font-size: 2rem;
  font-weight: 700;
  color: var(--amber);
  min-width: 40px;
  line-height: 1;
}

.step-content {
  flex: 1;
}

.step-title {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
}

.step-desc {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.step-desc a {
  color: var(--amber);
  position: relative;
  z-index: 10;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.step-desc a:hover {
  color: var(--amber-soft);
}

/* ===== FOOTER ===== */
.footer {
  padding: 4rem 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-brand {
  margin-bottom: 2rem;
}

.footer-top {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text-muted);
}

.footer-here {
  display: block;
  font-family: var(--font-body);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 2px;
  text-shadow: 0 0 40px rgba(232, 168, 76, 0.1);
}

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.footer-links a {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: color 0.3s ease;
  position: relative;
  z-index: 10;
}

.footer-links a:hover {
  color: var(--amber);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* ===== RESPONSIVE (≤768px) ===== */
@media (max-width: 768px) {
  .reveal-card {
    aspect-ratio: 16 / 9;
  }

  .card-text {
    padding: 1.25rem;
  }

  .card-tap-hint {
    display: block;
  }

  .reveal-card.revealed .card-tap-hint {
    opacity: 0;
  }

  .floating-pill {
    padding: 0.4rem 0.8rem;
    opacity: 0.7;
    gap: 0.5rem;
  }

  .hero-buttons {
    flex-wrap: wrap;
  }

  .reveal-section,
  .quotes-section,
  .buy-section,
  .tweet-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .section-title-serif {
    margin-bottom: 2rem;
  }

  .quotes-section .section-title-serif {
    margin-bottom: 3rem;
  }

  .quote-entry {
    margin-bottom: 2.5rem;
  }

  .quotes-closing {
    margin-top: 3.5rem;
  }
}
