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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

::selection { background: rgba(125, 211, 192, 0.25); color: #f0fdfa; }

/* ─── NAV ─────────────────────────────────────── */
#site-header { background: transparent; }
#site-header.scrolled {
  background: rgba(4, 15, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04);
}

.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #7dd3c0;
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ─── MOBILE MENU ─────────────────────────────── */
#mobile-menu.open { opacity: 1 !important; pointer-events: all !important; }
#mobile-menu.open .mobile-link { animation: fadeUp 0.4s ease forwards; opacity: 0; }
#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.menu-line { display: block; }
#menu-btn[aria-expanded="true"] .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
#menu-btn[aria-expanded="true"] .menu-line:nth-child(2) { opacity: 0; }
#menu-btn[aria-expanded="true"] .menu-line:nth-child(3) {
  width: 6px;
  transform: rotate(-45deg) translate(4px, -4px);
}

/* ─── HERO ────────────────────────────────────── */
#hero { position: relative; }

.hero-gradient {
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(45, 158, 139, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 20% 60%, rgba(10, 37, 64, 0.9) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 30%, rgba(74, 114, 168, 0.15) 0%, transparent 70%),
    linear-gradient(180deg, #040f1a 0%, #0a2540 50%, #071a2e 100%);
}

.hero-pattern {
  background-image:
    radial-gradient(circle at 25% 25%, rgba(125,211,192,0.08) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(125,211,192,0.05) 1px, transparent 1px);
  background-size: 48px 48px, 32px 32px;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  background: #7dd3c0;
}
.hero-glow-1 { top: 10%; left: 10%; }
.hero-glow-2 { bottom: 20%; right: 5%; background: #4a72a8; }
.hero-glow-3 { bottom: 10%; left: 30%; background: #2d9e8b; }

.hero-badge {
  animation: heroFade 0.8s ease both;
}
.hero-badge svg { animation: pulse 2.5s ease-in-out infinite; }

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

#hero h1 {
  animation: heroFade 0.8s 0.15s ease both;
}

#hero p {
  animation: heroFade 0.8s 0.3s ease both;
}

#hero .flex {
  animation: heroFade 0.8s 0.45s ease both;
}

@keyframes heroFade {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.scroll-indicator {
  display: block;
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* ─── BUTTONS ─────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: #7dd3c0;
  color: #0a2540;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: #bceade;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(125, 211, 192, 0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: #f0fdfa;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.3s ease;
}
.btn-secondary:hover {
  border-color: #7dd3c0;
  color: #7dd3c0;
  transform: translateY(-2px);
}

/* ─── SECTION TITLES ──────────────────────────── */
.label-mint {
  display: inline-block;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7dd3c0;
}

.section-title {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.2;
  color: #f0fdfa;
}

/* ─── INPUTS ──────────────────────────────────── */
.input-field {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 14px 16px;
  color: #f0fdfa;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  transition: all 0.3s ease;
  outline: none;
  width: 100%;
}
.input-field::placeholder { color: rgba(255,255,255,0.25); }
.input-field:focus {
  border-color: #7dd3c0;
  background: rgba(125,211,192,0.05);
  box-shadow: 0 0 0 3px rgba(125,211,192,0.1);
}
.input-field:invalid:not(:placeholder-shown) {
  border-color: #f87171;
}

/* ─── REVEAL ANIMATIONS (below fold only) ─────── */
.reveal-up {
  opacity: 1;
  transform: none;
}
.reveal-left {
  opacity: 1;
  transform: none;
}
.reveal-right {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal-up.visible,
  .reveal-left.visible,
  .reveal-right.visible {
    opacity: 1;
    transform: none;
  }
}

/* ─── MENU PATTERN ────────────────────────────── */
.menu-pattern {
  background-image:
    radial-gradient(circle at 20% 80%, rgba(125,211,192,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(74,114,168,0.06) 0%, transparent 50%);
}

/* ─── UTILITY ─────────────────────────────────── */
@media (max-width: 639px) {
  html { scroll-padding-top: 70px; }
}

/* ─── FOCUS VISIBLE ───────────────────────────── */
:focus-visible {
  outline: 2px solid #7dd3c0;
  outline-offset: 2px;
}

/* ─── SCROLLBAR ───────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #040f1a; }
::-webkit-scrollbar-thumb { background: #26426e; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #34568a; }
