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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Nunito', system-ui, sans-serif;
  color: #0B1D3A;
  background: #F0FCF8;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', system-ui, sans-serif;
  line-height: 1.2;
}

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

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

/* ===== NAV ===== */
.nav {
  background: rgba(11, 29, 58, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  background: rgba(4, 13, 26, 0.97);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #5EEAD4;
  border-radius: 1px;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* ===== BUTTONS ===== */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: 60px;
  font-family: 'Nunito', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.cta-primary {
  background: #5EEAD4;
  color: #0B1D3A;
  box-shadow: 0 4px 20px rgba(94, 234, 212, 0.35);
}

.cta-primary:hover {
  background: #7EDBB8;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(94, 234, 212, 0.45);
}

.cta-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}

.cta-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(94, 234, 212, 0.5);
  transform: translateY(-2px);
}

.cta-dark {
  background: #0B1D3A;
  color: #5EEAD4;
  box-shadow: 0 4px 20px rgba(11, 29, 58, 0.35);
}

.cta-dark:hover {
  background: #112D56;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(11, 29, 58, 0.45);
}

/* ===== HERO ===== */
.hero {
  position: relative;
}

.hero-bg {
  will-change: transform;
}

.hero-img {
  will-change: transform;
}

.hero-overlay {
  background: linear-gradient(
    160deg,
    rgba(4, 13, 26, 0.88) 0%,
    rgba(11, 29, 58, 0.78) 40%,
    rgba(27, 63, 114, 0.65) 100%
  );
}

.hero-content {
  animation: heroFadeIn 0.8s ease-out both;
}

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

.hero-badge {
  animation: heroFadeIn 0.8s ease-out 0.15s both;
}

.hero-content h1 {
  animation: heroFadeIn 0.8s ease-out 0.3s both;
}

.hero-content > p {
  animation: heroFadeIn 0.8s ease-out 0.45s both;
}

.hero-content > div:first-of-type {
  animation: heroFadeIn 0.8s ease-out 0.55s both;
}

.hero-scroll-indicator {
  animation: heroFadeIn 0.8s ease-out 0.7s both;
}

/* ===== SECTIONS ===== */
.section {
  position: relative;
}

/* ===== BADGES ===== */
.badge-mint {
  background: rgba(94, 234, 212, 0.15);
  padding: 0.4rem 1rem;
  border-radius: 60px;
}

.badge-light {
  background: rgba(94, 234, 212, 0.12);
  padding: 0.4rem 1rem;
  border-radius: 60px;
}

/* ===== CARDS ===== */
.card {
  perspective: 800px;
}

.card-inner {
  transform-style: preserve-3d;
  will-change: transform;
}

.service-card:hover .card-inner {
  transform: translateY(-6px);
}

/* ===== INPUTS ===== */
.input:focus {
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.2);
}

/* ===== FORM SUCCESS ===== */
.form-success {
  animation: fadeInUp 0.4s ease-out;
}

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

/* ===== MOBILE MENU ===== */
.mobile-menu {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.mobile-menu.open {
  max-h: 400px;
}

.mobile-link {
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-link:last-child {
  border-bottom: none;
}

/* ===== MENU TOGGLE ===== */
#menu-toggle[aria-expanded="true"] .menu-bar:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

#menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

#menu-toggle[aria-expanded="true"] .menu-bar:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }

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

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .nav {
    height: 64px;
  }

  .hero-content h1 {
    font-size: 2.25rem;
  }

  .section {
    py-16;
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  .hero-content h1 {
    font-size: 3rem;
  }
}
