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

:root {
  --navy: #0a1628;
  --navy-light: #1e293b;
  --cyan: #06b6d4;
  --purple: #8b5cf6;
  --mami-blue: #3B9ED9;
  --orange: #FD4F00;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--navy);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Dot grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(59, 158, 217, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* Ambient glow */
body::after {
  content: '';
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(6, 182, 212, 0.08) 0%, rgba(139, 92, 246, 0.05) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Nav */
nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 2rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-img {
  height: 50px;
  width: auto;
}

/* Hero */
.hero {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  gap: 2.5rem;
}

/* Text */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.15);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}

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

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 700px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.6;
}

/* CTA */
.cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.cta-form {
  display: flex;
  gap: 0;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(59, 158, 217, 0.15);
  border-radius: 12px;
  padding: 4px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.3s ease;
}

.cta-form:focus-within {
  border-color: rgba(59, 158, 217, 0.4);
}

.cta-input {
  background: transparent;
  border: none;
  outline: none;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-primary);
  width: 280px;
}

.cta-input::placeholder {
  color: var(--text-secondary);
}

.cta-button {
  padding: 0.75rem 1.75rem;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  border: none;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.cta-button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.cta-button:active {
  transform: translateY(0);
}

.cta-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.cta-note {
  font-size: 0.8rem;
  color: var(--text-secondary);
  opacity: 0.7;
  transition: color 0.3s ease, opacity 0.3s ease;
}

/* Footer */
footer {
  position: relative;
  z-index: 10;
  padding: 2rem;
  text-align: center;
  border-top: 1px solid rgba(59, 158, 217, 0.08);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  opacity: 0.6;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8rem;
  opacity: 0.6;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--cyan);
}

/* Animations on load */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up 0.8s ease forwards;
}

.fade-up-delay-1 { animation-delay: 0.1s; }
.fade-up-delay-2 { animation-delay: 0.2s; }
.fade-up-delay-3 { animation-delay: 0.35s; }
.fade-up-delay-4 { animation-delay: 0.5s; }
.fade-up-delay-5 { animation-delay: 0.65s; }

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Legal pages */
.legal-content {
  position: relative;
  z-index: 10;
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

.legal-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  opacity: 0.7;
}

.legal-content section {
  margin-bottom: 2rem;
}

.legal-content h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(59, 158, 217, 0.1);
}

.legal-content p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.legal-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 0.75rem;
}

.legal-content ul li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.legal-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.6;
}

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

.legal-content a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.legal-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .badge-dot, .fade-up {
    animation: none;
  }
  .fade-up {
    opacity: 1;
    transform: none;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .cta-form {
    flex-direction: column;
    width: 100%;
    max-width: 360px;
  }

  .cta-input {
    width: 100%;
    text-align: center;
  }

  .cta-button {
    width: 100%;
  }
}
