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

:root {
  --bg: #000000;
  --surface: #0a0a0a;
  --surface-2: #111111;
  --accent: #ffffff;
  --accent-dim: #888888;
  --text: #f0f0f0;
  --text-dim: #999999;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);
  --glow: rgba(255, 255, 255, 0.15);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

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

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

.video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: high-quality;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

/* ===== HERO TITLE ===== */
.hero-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 900;
  letter-spacing: 8px;
  line-height: 1.05;
  text-align: center;
  color: #ffffff;
  text-transform: uppercase;
  text-shadow:
    0 0 80px rgba(0, 0, 0, 0.9),
    0 0 40px rgba(0, 0, 0, 0.7),
    0 4px 20px rgba(0, 0, 0, 0.8),
    0 0 120px rgba(0, 0, 0, 0.5),
    0 0 10px rgba(255, 255, 255, 0.08);
  min-height: 1.1em;
}

.typewriter-text {
  display: inline;
}

.cursor-blink {
  display: inline;
  font-weight: 300;
  animation: blink 0.75s step-end infinite;
  margin-left: 2px;
  opacity: 1;
}

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

/* ===== HERO BUTTONS ===== */
.hero-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  letter-spacing: 2px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* X / Twitter button — rectangular */
.x-btn {
  width: 62px;
  height: 56px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
}

.x-btn svg {
  fill: #ffffff;
}

.x-btn:hover {
  background: #ffffff;
  border-color: #ffffff;
}

.x-btn:hover svg {
  fill: #000000;
}

/* How to Buy button */
.howtobuy-btn {
  height: 56px;
  padding: 0 36px;
  font-size: 0.82rem;
  color: #ffffff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.howtobuy-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Buy button */
.buy-btn {
  height: 56px;
  padding: 0 40px;
  font-size: 0.82rem;
  color: #000000;
  background: #ffffff;
  border: 1px solid #ffffff;
}

.buy-btn:hover {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.15);
}

/* ===== HERO CONTRACT ADDRESS ===== */
.hero-ca {
  margin-top: 6px;
}

.hero-ca .ca-address {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 0.8rem;
}

/* ===== SECTIONS COMMON ===== */
.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: 2px;
  color: var(--text);
}

.title-accent {
  color: #ffffff;
}

/* ===== SCROLLING BACKGROUND TEXT ===== */
.scrolling-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.scroll-track {
  white-space: nowrap;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.03);
  line-height: 2.4;
  user-select: none;
}

.scroll-track::before,
.scroll-track::after {
  content:
    'CHRONICALLY ONLINE  '
    'CHRONICALLY ONLINE  '
    'CHRONICALLY ONLINE  '
    'CHRONICALLY ONLINE  '
    'CHRONICALLY ONLINE  '
    'CHRONICALLY ONLINE  '
    'CHRONICALLY ONLINE  '
    'CHRONICALLY ONLINE  '
    'CHRONICALLY ONLINE  '
    'CHRONICALLY ONLINE  '
    'CHRONICALLY ONLINE  '
    'CHRONICALLY ONLINE  '
    'CHRONICALLY ONLINE  '
    'CHRONICALLY ONLINE  '
    'CHRONICALLY ONLINE  '
    'CHRONICALLY ONLINE  '
    'CHRONICALLY ONLINE  '
    'CHRONICALLY ONLINE  '
    'CHRONICALLY ONLINE  '
    'CHRONICALLY ONLINE  ';
  display: inline-block;
}

.scroll-track--left {
  animation: scrollLeft 60s linear infinite;
}

.scroll-track--right {
  animation: scrollRight 60s linear infinite;
}

.scroll-track--slow.scroll-track--left {
  animation: scrollLeft 90s linear infinite;
}

.scroll-track--slow.scroll-track--right {
  animation: scrollRight 90s linear infinite;
}

.scroll-track--fast.scroll-track--left {
  animation: scrollLeft 40s linear infinite;
}

.scroll-track--fast.scroll-track--right {
  animation: scrollRight 40s linear infinite;
}

@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scrollRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* ===== ABOUT SECTION ===== */
#about {
  padding: 120px 0 80px;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

#about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  z-index: 3;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 60px;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 44px 32px 40px;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, rgba(255,255,255,0.03) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.about-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.about-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: var(--border-hover);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 50px rgba(255, 255, 255, 0.03);
}

.about-card:hover::before,
.about-card:hover::after {
  opacity: 1;
}

.card-number {
  font-family: 'Orbitron', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.04);
  line-height: 1;
  margin-bottom: 20px;
}

.about-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #ffffff;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.about-card p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-dim);
}

.about-card p strong {
  color: #ffffff;
  font-weight: 600;
}

.about-quote {
  margin-top: 64px;
  text-align: center;
  padding: 40px 24px;
  background: var(--surface-2);
  border-radius: 16px;
  border: 1px solid var(--border);
}

.about-quote p {
  font-size: 1.3rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: 12px;
}

.about-quote span {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ===== BUY SECTION ===== */
#buy {
  padding: 120px 0 100px;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

#buy::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.buy-subtitle {
  text-align: center;
  color: var(--text-dim);
  font-size: 1.05rem;
  margin-bottom: 60px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.step-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 24px;
  transition: all 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.step-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 30px rgba(255,255,255,0.02);
}

.step-card:hover::before {
  opacity: 1;
}

.step-number {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}

.step-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 1px;
  color: #ffffff;
}

.step-card p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-dim);
}

.step-card p strong {
  color: var(--text);
}

/* ===== CONTRACT ADDRESS ===== */
.ca-address {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 24px;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.9rem;
  color: var(--text);
  letter-spacing: 1px;
  word-break: break-all;
}

.copy-btn {
  background: #ffffff;
  border: none;
  color: #000000;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.copy-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

/* ===== FOOTER ===== */
footer {
  padding: 40px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-text {
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 1px;
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(2rem, 12vw, 3.5rem);
    letter-spacing: 3px;
  }

  .hero-buttons {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .howtobuy-btn,
  .buy-btn {
    height: 50px;
    padding: 0 24px;
    font-size: 0.7rem;
  }

  .x-btn {
    width: 56px;
    height: 50px;
  }

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

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

  .ca-address {
    flex-direction: column;
    font-size: 0.8rem;
  }

  .footer-inner {
    justify-content: center;
    text-align: center;
  }
}
