/* ===== CSS VARIABLES ===== */
:root {
  --green: #00FF66;
  --dark-bg: #0a0a0a;
  --text-white: #FFFFFF;
  --text-muted: #888888;
  --gold: #D4A017;
  --overlay: rgba(0, 0, 0, 0.55);
}

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

html {
  scroll-behavior: smooth;
}

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

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

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

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  max-width: 700px;
}

/* Logo */
.hero-logo {
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 700;
  color: var(--green);
  text-shadow:
    0 0 20px rgba(0, 255, 102, 0.6),
    0 0 60px rgba(0, 255, 102, 0.3),
    0 0 100px rgba(0, 255, 102, 0.15);
  letter-spacing: -0.02em;
  line-height: 1;
}

/* Tagline */
.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--text-white);
  font-weight: 400;
  opacity: 0.9;
  font-style: italic;
}

/* ===== SPINNING COIN ===== */
.spinning-coin {
  width: 140px;
  height: 140px;
  perspective: 800px;
}

.coin-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: coinSpin 3.5s linear infinite;
}

.coin-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 0 20px rgba(0, 255, 102, 0.3),
    0 0 40px rgba(0, 255, 102, 0.1);
}

.coin-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.coin-back {
  transform: rotateY(180deg);
}

/* Shine overlay */
.coin-face::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.15) 45%,
    rgba(255, 255, 255, 0.05) 50%,
    transparent 55%
  );
  pointer-events: none;
}

@keyframes coinSpin {
  0%   { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

/* ===== CONTRACT ADDRESS BADGE ===== */
.ca-badge,
.footer-ca {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  position: relative;
  user-select: none;
}

.ca-badge:hover,
.footer-ca:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--green);
}

.ca-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.ca-address {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  color: var(--text-white);
}

.ca-copy-icon {
  opacity: 0.5;
  flex-shrink: 0;
}

.ca-tooltip {
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #000;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.ca-tooltip.show {
  opacity: 1;
}

/* ===== SOCIAL LINKS ===== */
.social-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-white);
  transition: all 0.25s;
  position: relative;
}

.social-link:hover {
  background: rgba(0, 255, 102, 0.15);
  color: var(--green);
  box-shadow: 0 0 16px rgba(0, 255, 102, 0.3);
  transform: translateY(-2px);
}

.social-link--disabled {
  opacity: 0.5;
  cursor: default;
}

.social-link--disabled:hover {
  opacity: 0.7;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-white);
  box-shadow: none;
  transform: none;
}

.social-link .tooltip {
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: var(--text-white);
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.social-link--disabled:hover .tooltip {
  opacity: 1;
}

/* ===== CTA BUTTON ===== */
.cta-button {
  display: inline-block;
  background: var(--green);
  color: #000;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 16px 36px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: ctaPulse 2s ease-in-out infinite;
  letter-spacing: 0.01em;
}

.cta-button:hover {
  transform: scale(1.05);
  box-shadow:
    0 0 30px rgba(0, 255, 102, 0.5),
    0 0 60px rgba(0, 255, 102, 0.2);
}

@keyframes ctaPulse {
  0%, 100% {
    box-shadow:
      0 0 10px rgba(0, 255, 102, 0.3),
      0 0 30px rgba(0, 255, 102, 0.1);
  }
  50% {
    box-shadow:
      0 0 20px rgba(0, 255, 102, 0.5),
      0 0 50px rgba(0, 255, 102, 0.2);
  }
}

/* ===== SECTIONS (Coinfessions & Platform) ===== */
.section {
  padding: 80px 20px;
}

.section--coinfessions {
  background: #0a0a0a;
}

.section--platform {
  background: #0d0d0d;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.section-inner--reversed {
  direction: rtl;
}

.section-inner--reversed > * {
  direction: ltr;
}

/* Text side */
.section-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--green);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.section-subheading {
  font-size: 1.15rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 24px;
}

.section-bullets {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section-bullets li {
  position: relative;
  padding-left: 24px;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.section-bullets li::before {
  content: '✝';
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 0.9rem;
}

.section--coinfessions .section-bullets li::before {
  color: var(--gold);
}

/* Badge */
.badge--coming-soon {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(0, 255, 102, 0.12);
  color: var(--green);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 102, 0.25);
  vertical-align: middle;
}

/* Media side */
.section-media {
  border-radius: 12px;
  overflow: hidden;
}

.media-link {
  display: block;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(212, 160, 23, 0.2);
}

.media-link:hover {
  transform: scale(1.03);
  box-shadow: 0 0 30px rgba(212, 160, 23, 0.25);
}

.demo-video {
  width: 100%;
  display: block;
  border-radius: 12px;
}

.media-label {
  display: block;
  text-align: center;
  padding: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
  background: rgba(0, 0, 0, 0.6);
}

/* Platform media (static, not clickable) */
.section-media--static .media-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 255, 102, 0.15);
}

.coming-soon-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  pointer-events: none;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 50px 20px;
  background: #050505;
}

.footer-inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-ca {
  /* inherits from .ca-badge styles above */
}

.footer-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 400px;
  line-height: 1.5;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .section-inner,
  .section-inner--reversed {
    grid-template-columns: 1fr;
    gap: 40px;
    direction: ltr;
  }

  .section {
    padding: 60px 20px;
  }

  .hero-content {
    gap: 16px;
  }

  .spinning-coin {
    width: 110px;
    height: 110px;
  }

  .cta-button {
    font-size: 1rem;
    padding: 14px 28px;
  }

  .ca-badge,
  .footer-ca {
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  .ca-address {
    font-size: 0.8rem;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .hero-logo {
    font-size: 3rem;
  }

  .spinning-coin {
    width: 90px;
    height: 90px;
  }

  .social-links {
    gap: 10px;
  }

  .social-link {
    width: 38px;
    height: 38px;
  }
}
