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

:root {
  --bg: #000000;
  --text: #f5f5f5;
  --text-secondary: #a0a0a0;
  --accent: #ffffff;
  --glow: rgba(255, 255, 255, 0.5);
  --glow-soft: rgba(255, 255, 255, 0.15);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 4px;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.65) 50%, var(--bg) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
}

.hero-pretext {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  font-weight: 400;
  letter-spacing: 6px;
  text-transform: lowercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(6rem, 18vw, 14rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -4px;
  color: var(--text);
  opacity: 0;
  transform: scale(0.3);
  display: inline-flex;
  position: relative;
  margin-bottom: 32px;
}

.hero-title.glitch-active {
  opacity: 1;
  animation: none;
}

.glitch-letter {
  display: inline-block;
  position: relative;
  opacity: 0;
}

.hero-title.settled {
  transform: scale(1);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), text-shadow 0.6s ease;
  text-shadow: 0 0 40px var(--glow), 0 0 80px var(--glow-soft);
}

.hero-title.settled .glitch-letter {
  opacity: 1;
}

/* ---- HERO BUTTONS ---- */
.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 1.6s;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  color: #000000;
  text-decoration: none;
  transition: all var(--transition);
}

.hero-btn:hover {
  transform: scale(1.1);
  opacity: 0.85;
}

.hero-btn svg {
  width: 20px;
  height: 20px;
}

.hero-btn-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0);
}

.hero-btn-text {
  width: auto;
  border-radius: 100px;
  padding: 0 24px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #000000;
}

.ca-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 20px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  font-family: 'Space Grotesk', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}

.ca-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text);
}

.ca-label {
  font-weight: 700;
  color: var(--text);
}

.ca-icon {
  opacity: 0.5;
  transition: opacity 0.2s;
}

.ca-btn:hover .ca-icon {
  opacity: 1;
}

.ca-copied {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  font-weight: 600;
  color: #ffffff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.ca-btn.copied .ca-copied {
  opacity: 1;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0;
  animation: fadeIn 1s ease forwards 1.2s;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ---- INTRO ---- */
.intro {
  position: relative;
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.intro-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.intro-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.intro-content {
  position: relative;
  z-index: 2;
}

.intro-text {
  font-size: clamp(1.15rem, 2.5vw, 1.6rem);
  color: var(--text);
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* ---- SECTIONS SHARED ---- */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -1px;
}

/* ---- ABOUT ---- */
.about {
  padding: 120px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-lead {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1.7;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-visual {
  display: flex;
  justify-content: center;
}

.arc-graphic {
  width: 100%;
  max-width: 400px;
  color: var(--accent);
}

.arc-svg {
  width: 100%;
  height: auto;
}

.arc-path {
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  transition: stroke-dashoffset 2s ease;
}

.arc-path.animated {
  stroke-dashoffset: 0;
}

.arc-dot {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.arc-dot.animated {
  opacity: 1;
}

.arc-dot-start.animated { transition-delay: 0s; }
.arc-dot-peak.animated { transition-delay: 1s; }
.arc-dot-end.animated { transition-delay: 2s; }

.arc-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.arc-label.animated {
  opacity: 1;
}

/* ---- HOW TO BUY ---- */
.howtobuy {
  position: relative;
  padding: 120px 0;
  border-top: none;
}

.howtobuy::before,
.howtobuy::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 160px;
  z-index: 3;
  pointer-events: none;
}

.howtobuy::before {
  top: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 1), transparent);
}

.howtobuy::after {
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 1), transparent);
}

.howtobuy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.howtobuy-step {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  background: rgba(255, 255, 255, 0.02);
  transition: all var(--transition);
}

.howtobuy-step:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

.howtobuy-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  opacity: 0.4;
}

.howtobuy-step h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}

.howtobuy-step p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* ---- SCROLL WORDS ---- */
.scroll-words {
  position: relative;
}

.scroll-word-panel {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-word {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(5rem, 15vw, 12rem);
  font-weight: 800;
  letter-spacing: -4px;
  text-transform: uppercase;
  line-height: 1;
  color: var(--text);
  opacity: 0;
  transform: scale(0.7) translateY(40px);
  filter: blur(10px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-word.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  filter: blur(0);
}

/* ---- LOWER WRAP (video bg for about + scroll-words) ---- */
.lower-wrap {
  position: relative;
  overflow: clip;
}

.lower-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.lower-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1;
}

.lower-wrap .about {
  position: relative;
  z-index: 2;
}

.lower-wrap .howtobuy {
  z-index: 2;
}

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scrollPulse {
  0%, 100% {
    opacity: 0.3;
    transform: scaleY(0.6);
    transform-origin: top;
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ---- RESPONSIVE ---- */
@media (max-width: 968px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-visual {
    order: -1;
  }

  .howtobuy-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-title {
    letter-spacing: -2px;
  }

  .hero-buttons {
    gap: 12px;
  }

  .hero-btn {
    width: 42px;
    height: 42px;
  }

  .hero-btn-text {
    padding: 0 18px;
    font-size: 0.8rem;
  }

  .scroll-word {
    font-size: clamp(3rem, 12vw, 5rem);
  }
}
