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

:root {
  --bg-deep: #050a15;
  --bg-card: rgba(10, 18, 38, 0.7);
  --border-subtle: rgba(80, 130, 200, 0.1);
  --border-hover: rgba(100, 160, 230, 0.25);
  --accent: #4a7cb8;
  --accent-bright: #6aadee;
  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.5);
  --text-body: rgba(255, 255, 255, 0.65);
}

html { scroll-behavior: smooth; }

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

/* ══════════════════════════════════
   HERO
   ══════════════════════════════════ */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75) saturate(0.9);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(15, 30, 60, 0.15) 0%, transparent 70%),
    linear-gradient(180deg,
      rgba(5, 10, 21, 0.2) 0%,
      rgba(5, 10, 21, 0.05) 30%,
      rgba(5, 10, 21, 0.35) 70%,
      rgba(5, 10, 21, 1) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  animation: heroReveal 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(40px);
}

@keyframes heroReveal {
  to { opacity: 1; transform: translateY(0); }
}

.hero-title {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 28px;
}

.title-line {
  display: block;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: 0.5em;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.title-accent {
  font-size: clamp(3.5rem, 9vw, 8rem);
  letter-spacing: 0.12em;
  color: var(--text);
  text-shadow: 0 0 80px rgba(74, 124, 184, 0.25);
}

.hero-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-bright), transparent);
  margin: 0 auto 28px;
}

.hero-quote {
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  font-weight: 400;
  color: var(--text-body);
  max-width: 520px;
  margin: 0 auto 52px;
  line-height: 1.8;
  font-style: italic;
  letter-spacing: 0.02em;
}

/* ══════════════════════════════════
   BUTTONS
   ══════════════════════════════════ */

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn-x {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-x:hover {
  background: #111;
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.08);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.06);
}

.btn-x svg { position: relative; z-index: 2; }

.btn-liquid {
  height: 50px;
  padding: 0 36px;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-text { position: relative; z-index: 2; pointer-events: none; }

.btn-bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 1;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-community .btn-bg {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-community:hover .btn-bg {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.03);
}
.btn-community:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.btn-howtobuy .btn-bg {
  background: transparent;
  border: 1px solid rgba(74, 124, 184, 0.25);
}
.btn-howtobuy:hover .btn-bg {
  background: rgba(74, 124, 184, 0.1);
  border-color: var(--accent-bright);
  box-shadow: inset 0 0 30px rgba(74, 124, 184, 0.06);
}
.btn-howtobuy:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(74, 124, 184, 0.15);
}

.btn-buy .btn-bg {
  background: linear-gradient(135deg, #3a6aa8 0%, #1e3f6e 100%);
  border: 1px solid rgba(106, 173, 238, 0.2);
}
.btn-buy:hover .btn-bg {
  background: linear-gradient(135deg, #4a7cb8 0%, #2a5090 100%);
  border-color: rgba(106, 173, 238, 0.4);
  box-shadow: inset 0 0 30px rgba(106, 173, 238, 0.1);
}
.btn-buy:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(74, 124, 184, 0.25),
              0 0 60px rgba(74, 124, 184, 0.08);
}

.btn-liquid::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  z-index: 1;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.12) 0%, transparent 60%);
  transition: opacity 0.4s;
}
.btn-liquid:hover::after { opacity: 1; }

.hero-ca {
  margin-top: 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  user-select: all;
  -webkit-user-select: all;
}

/* ══════════════════════════════════
   SCROLL INDICATOR
   ══════════════════════════════════ */

.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 40%;
  background: rgba(255, 255, 255, 0.6);
  animation: scrollDrop 2.5s ease-in-out infinite;
}

@keyframes scrollDrop {
  0% { top: -40%; }
  100% { top: 140%; }
}

.scroll-label {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--text-dim);
}

/* ══════════════════════════════════
   SECTIONS
   ══════════════════════════════════ */

.cards-section,
.howtobuy-section,
.roadmap-section {
  padding: 140px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  color: var(--accent-bright);
  text-transform: uppercase;
  margin-bottom: 16px;
  padding: 0;
  border: none;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-body);
  font-size: 0.95rem;
  font-weight: 400;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ══════════════════════════════════
   CARDS
   ══════════════════════════════════ */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 56px;
}

.card {
  position: relative;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  overflow: visible;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--accent), transparent);
  opacity: 0.3;
  transition: opacity 0.5s;
}

.card:hover::before {
  opacity: 0.7;
}

.card:hover {
  transform: translateX(6px);
}

.card-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-left: 24px;
}

.card-number {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-bright);
  letter-spacing: 0.15em;
}

.card-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(74, 124, 184, 0.2), transparent);
}

.card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.03em;
  padding-left: 24px;
}

.card p {
  color: var(--text-body);
  font-size: 0.9rem;
  line-height: 1.85;
  font-weight: 400;
  padding-left: 24px;
}

/* typewriter */
.tw-cursor::after {
  content: '|';
  display: inline-block;
  color: var(--accent-bright);
  font-weight: 400;
  animation: cursorBlink 0.7s steps(1) infinite;
  margin-left: 1px;
}

@keyframes cursorBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.tw-done::after { display: none; }

/* ══════════════════════════════════
   HOW TO BUY
   ══════════════════════════════════ */

.howtobuy-section {
  border-top: 1px solid var(--border-subtle);
}

.howtobuy-grid {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.howtobuy-step {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 40px 36px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.howtobuy-step:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.step-number {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(74, 124, 184, 0.08);
  border: 1px solid rgba(74, 124, 184, 0.15);
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent-bright);
}

.step-content h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}

.step-content p {
  color: var(--text-body);
  font-size: 0.88rem;
  line-height: 1.75;
  font-weight: 400;
}

.howtobuy-connector {
  display: flex;
  justify-content: center;
  padding: 0 0 0 62px;
}

.connector-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, var(--accent), transparent);
}

/* ══════════════════════════════════
   ROADMAP
   ══════════════════════════════════ */

.roadmap-section {
  border-top: 1px solid var(--border-subtle);
}

.roadmap-timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding-left: 40px;
}

.roadmap-line {
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--accent), rgba(74, 124, 184, 0.1));
}

.roadmap-phase {
  position: relative;
  margin-bottom: 48px;
}
.roadmap-phase:last-child { margin-bottom: 0; }

.phase-marker {
  position: absolute;
  left: -40px;
  top: 28px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phase-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 16px rgba(106, 173, 238, 0.4);
}

.phase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 36px 32px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.phase-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.phase-label {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 10px;
}

.phase-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
}

.phase-card ul {
  list-style: none;
  padding: 0;
}

.phase-card li {
  color: var(--text-body);
  font-size: 0.88rem;
  line-height: 1.6;
  font-weight: 400;
  padding: 6px 0;
  padding-left: 18px;
  position: relative;
}

.phase-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ══════════════════════════════════
   FOOTER
   ══════════════════════════════════ */

.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 52px 24px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.footer-tagline {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

/* ══════════════════════════════════
   SCROLL ANIMATIONS
   ══════════════════════════════════ */

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

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

.cards-grid .card:nth-child(1) { transition-delay: 0s; }
.cards-grid .card:nth-child(2) { transition-delay: 0.15s; }
.cards-grid .card:nth-child(3) { transition-delay: 0.3s; }
.cards-grid .card:nth-child(4) { transition-delay: 0.45s; }
.cards-grid .card:nth-child(5) { transition-delay: 0.6s; }
.cards-grid .card:nth-child(6) { transition-delay: 0.75s; }

.roadmap-phase:nth-child(2) { transition-delay: 0s; }
.roadmap-phase:nth-child(3) { transition-delay: 0.15s; }
.roadmap-phase:nth-child(4) { transition-delay: 0.3s; }
.roadmap-phase:nth-child(5) { transition-delay: 0.45s; }

/* ══════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════ */

@media (max-width: 768px) {
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 640px) {
  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .btn-liquid {
    width: 100%;
    max-width: 260px;
  }

  .cards-section,
  .howtobuy-section,
  .roadmap-section {
    padding: 100px 20px;
  }

  .howtobuy-step {
    flex-direction: column;
    gap: 16px;
  }

  .howtobuy-connector {
    padding: 0;
  }

  .roadmap-timeline {
    padding-left: 32px;
  }

  .phase-marker {
    left: -32px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
  }
}
