/* === Custom Properties === */
:root {
  --primary-blue: #0066CC;
  --light-blue: #00A5E0;
  --deep-blue: #0052A5;
  --orange-accent: #FF8800;
  --green-accent: #4CAD33;
  --teal-sparkle: #00B5A0;
  --dark-navy: #0a1628;
  --white: #FFFFFF;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--white);
  background: var(--dark-navy);
  -webkit-font-smoothing: antialiased;
}

/* === Navigation === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: transparent;
  transition: background 0.3s ease;
}

.nav-logo {
  height: 40px;
  width: auto;
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.nav-link:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* === Hero Section === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--deep-blue) 0%, var(--primary-blue) 40%, var(--light-blue) 100%);
  overflow: hidden;
  padding: 2rem;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  animation: float 6s ease-in-out infinite;
}

.hero::before {
  width: 300px;
  height: 300px;
  background: var(--orange-accent);
  top: 10%;
  right: -5%;
  animation-delay: 0s;
}

.hero::after {
  width: 200px;
  height: 200px;
  background: var(--teal-sparkle);
  bottom: 15%;
  left: -3%;
  animation-delay: 3s;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  opacity: 0.85;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.hero-cta:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* === Sparkle Decorations === */
.sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--orange-accent);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation: twinkle 3s ease-in-out infinite;
}

.sparkle:nth-child(1) { top: 20%; left: 15%; animation-delay: 0s; }
.sparkle:nth-child(2) { top: 30%; right: 20%; animation-delay: 1s; background: var(--teal-sparkle); width: 12px; height: 12px; }
.sparkle:nth-child(3) { bottom: 25%; left: 25%; animation-delay: 2s; background: var(--green-accent); width: 6px; height: 6px; }
.sparkle:nth-child(4) { top: 15%; right: 10%; animation-delay: 0.5s; width: 10px; height: 10px; }
.sparkle:nth-child(5) { bottom: 35%; right: 15%; animation-delay: 1.5s; background: var(--teal-sparkle); }

/* === Services Section === */
.services {
  padding: 5rem 2rem;
  background: #f7f9fc;
  text-align: center;
  color: #1a1a2e;
}

.services-heading {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 3rem;
  letter-spacing: -0.01em;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.service-icon {
  display: block;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-blue);
}

.service-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.service-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.7;
}

/* === Why Section === */
.why {
  padding: 4rem 2rem;
  text-align: center;
  background: var(--white);
  color: #1a1a2e;
}

.why-heading {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.why-list {
  list-style: none;
  max-width: 480px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 2.2;
  opacity: 0.75;
}

/* === Legal Page Content === */
.legal-page {
  padding: 7rem 2rem 4rem;
  max-width: 720px;
  margin: 0 auto;
  color: var(--white);
  min-height: 100vh;
}

.legal-page h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.legal-page .legal-updated {
  font-size: 0.85rem;
  opacity: 0.5;
  margin-bottom: 2.5rem;
}

.legal-page h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-page p,
.legal-page ul {
  font-size: 0.95rem;
  line-height: 1.8;
  opacity: 0.8;
  margin-bottom: 1rem;
}

.legal-page ul {
  padding-left: 1.5rem;
}

.legal-page a {
  color: var(--light-blue);
  text-decoration: none;
}

.legal-page a:hover {
  text-decoration: underline;
}

/* === Footer === */
.footer {
  background: var(--dark-navy);
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-contact {
  margin-bottom: 1.5rem;
}

.footer-email {
  color: var(--light-blue);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-email:hover {
  color: var(--orange-accent);
}

.footer-legal {
  font-size: 0.8rem;
  opacity: 0.5;
  line-height: 1.8;
}

.footer-legal a {
  color: var(--white);
  opacity: 0.7;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-legal a:hover {
  opacity: 1;
}

.footer-links {
  margin-top: 1rem;
  font-size: 0.8rem;
}

.footer-links a {
  color: var(--white);
  opacity: 0.4;
  text-decoration: none;
  margin: 0 0.5rem;
  transition: opacity 0.2s ease;
}

.footer-links a:hover {
  opacity: 0.8;
}

/* === Animations === */
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* === Responsive === */
@media (min-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .nav {
    padding: 1.5rem 3rem;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4rem;
  }
}

/* === Accessibility === */
.nav-link:focus-visible,
.hero-cta:focus-visible,
.footer-email:focus-visible,
.footer-links a:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero::before,
  .hero::after,
  .sparkle {
    animation: none;
  }
}
