/* ── Base & Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Navigation ── */
.nav-scrolled {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(10,35,66,0.06);
  box-shadow: 0 1px 12px rgba(10,35,66,0.06);
  transition: background 0.3s, box-shadow 0.3s;
}

.nav-link { transition: color 0.2s, background 0.2s; }

/* Mobile menu */
#mobileMenu {
  animation: slideDown 0.25s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(6,23,41,0.82) 0%,
    rgba(10,35,66,0.70) 50%,
    rgba(10,35,66,0.55) 100%
  );
}
.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-content { position: relative; z-index: 10; }

.hero-badge {
  display: inline-flex;
  animation: fadeInUp 0.8s 0.2s both;
}
.hero-title {
  animation: fadeInUp 0.8s 0.35s both;
}
.hero-subtitle {
  animation: fadeInUp 0.8s 0.5s both;
}
.hero-actions {
  animation: fadeInUp 0.8s 0.65s both;
}
.hero-cards {
  animation: fadeInRight 0.8s 0.8s both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translate(32px, -50%); }
  to   { opacity: 1; transform: translate(0, -50%); }
}

/* Scroll indicator */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInUp 0.8s 1s both;
}
.scroll-dot {
  animation: scrollBounce 2s infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%       { transform: translateY(8px); opacity: 0.4; }
}

/* ── Buttons ── */
.btn-primary, .btn-secondary, .btn-cta, .btn-cta-secondary, .btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Section ── */
.section { position: relative; }

/* ── Badges ── */
.badge-mint {
  background: rgba(52,212,168,0.15);
  color: #14916B;
  padding: 0.4em 1em;
  border-radius: 9999px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

/* ── Service Cards ── */
.service-card {
  opacity: 1;
}

/* ── Community Cards ── */
.community-card {
  opacity: 1;
}

/* ── Testimonial Cards ── */
.testimonial-card {
  opacity: 1;
}

/* ── Input Fields ── */
.input-field {
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

/* ── Back to Top ── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #0A2342;
  color: #34D4A8;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(10,35,66,0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s, background 0.2s;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: #1552E8;
  color: #fff;
}

/* ── Spinner ── */
.spinner-circle {
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Focus Visible ── */
*:focus-visible {
  outline: 2px solid #34D4A8;
  outline-offset: 2px;
  border-radius: 4px;
}
