:root {
  --mz-bg: #0f1419;
  --mz-bg-elevated: #1a222d;
  --mz-surface: #232d3b;
  --mz-text: #f4f1ea;
  --mz-text-muted: #a8b0bc;
  --mz-accent: #6ee7b7;
  --mz-accent-2: #fbbf24;
  --mz-border: rgba(255, 255, 255, 0.08);
  --mz-radius: 12px;
  --mz-max-width: 72rem;
  --mz-header-height: 4.5rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--mz-bg);
  color: var(--mz-text);
  line-height: 1.6;
  min-height: 100vh;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--mz-accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--mz-accent);
  color: #0f1419;
  font-weight: 600;
  border-radius: var(--mz-radius);
  text-decoration: none;
}

.skip-link:focus { top: 1rem; }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--mz-header-height);
  background: rgba(15, 20, 25, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--mz-border);
}

.header-inner {
  max-width: var(--mz-max-width);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--mz-text);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.logo-link img {
  width: 2rem;
  height: 2rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
}

.site-nav a {
  text-decoration: none;
  color: var(--mz-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.site-nav a:hover { color: var(--mz-text); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--mz-border);
  color: var(--mz-text);
  padding: 0.5rem 0.75rem;
  border-radius: var(--mz-radius);
  cursor: pointer;
  font: inherit;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: var(--mz-header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--mz-bg-elevated);
    border-bottom: 1px solid var(--mz-border);
    display: none;
  }

  .site-nav.is-open { display: flex; }
}

/* Buttons */
.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  padding: 0.875rem 1.5rem;
  border-radius: var(--mz-radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--mz-accent-2);
  color: #1a1408;
  box-shadow: 0 4px 24px rgba(251, 191, 36, 0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--mz-text);
  border: 1px solid var(--mz-border);
}

.btn-ghost {
  background: rgba(110, 231, 183, 0.1);
  color: var(--mz-accent);
  border: 1px solid rgba(110, 231, 183, 0.25);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  min-height: 36px;
}

/* Main layout */
.main-content {
  position: relative;
  max-width: var(--mz-max-width);
  margin: 0 auto;
  padding: calc(var(--mz-header-height) + clamp(3rem, 8vw, 6rem)) clamp(1.25rem, 4vw, 2rem) clamp(3rem, 8vw, 5rem);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(110, 231, 183, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(251, 191, 36, 0.08), transparent);
  pointer-events: none;
  animation: drift 18s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-2%) scale(1.02); }
}

.eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mz-accent);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.1s;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1.5rem;
}

.hero-title .line {
  display: block;
  opacity: 0;
  transform: translateY(1.5rem);
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-title .line:nth-child(1) { animation-delay: 0.2s; }
.hero-title .line:nth-child(2) { animation-delay: 0.45s; color: var(--mz-text-muted); }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero-subtitle {
  max-width: 38rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--mz-text-muted);
  margin: 0 0 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.65s;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.85s;
}

/* Sections */
.section {
  margin-top: clamp(4rem, 12vw, 8rem);
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.section-header p {
  color: var(--mz-text-muted);
  max-width: 40rem;
  margin: 0;
  font-size: 1.05rem;
}

.reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--mz-bg-elevated);
  border: 1px solid var(--mz-border);
  border-radius: calc(var(--mz-radius) * 1.25);
  padding: 1.75rem;
  transition: border-color 0.25s, transform 0.25s;
}

.card:hover {
  border-color: rgba(110, 231, 183, 0.3);
  transform: translateY(-4px);
}

.card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: rgba(110, 231, 183, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.card p {
  color: var(--mz-text-muted);
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1.5rem;
}

.step {
  padding: 1.5rem;
  border-left: 2px solid var(--mz-accent);
  background: linear-gradient(90deg, rgba(110, 231, 183, 0.06), transparent);
  border-radius: 0 var(--mz-radius) var(--mz-radius) 0;
}

.step-num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--mz-accent);
  margin-bottom: 0.5rem;
}

.step h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.step p { margin: 0; color: var(--mz-text-muted); font-size: 0.95rem; }

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.25rem;
}

.testimonial {
  background: var(--mz-surface);
  border: 1px solid var(--mz-border);
  border-radius: calc(var(--mz-radius) * 1.25);
  padding: 1.5rem;
}

.testimonial blockquote {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--mz-text-muted);
}

.testimonial cite {
  font-style: normal;
  font-weight: 600;
  font-size: 0.875rem;
}

/* Trust pillars */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1.25rem;
}

.pillar h3 { margin: 0 0 0.5rem; font-size: 1rem; }
.pillar p { margin: 0; color: var(--mz-text-muted); font-size: 0.9rem; }

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--mz-bg-elevated);
  border: 1px solid var(--mz-border);
  border-radius: var(--mz-radius);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  background: none;
  border: none;
  color: var(--mz-text);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  min-height: 44px;
}

.faq-question:hover { background: rgba(255, 255, 255, 0.02); }

.faq-icon {
  flex-shrink: 0;
  transition: transform 0.25s;
  color: var(--mz-accent);
}

.faq-item.is-open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding: 0 1.25rem 1.125rem;
  color: var(--mz-text-muted);
  font-size: 0.95rem;
}

.faq-item.is-open .faq-answer { max-height: 20rem; }

/* CTA banner */
.cta-banner {
  margin-top: clamp(4rem, 12vw, 8rem);
  padding: clamp(2rem, 5vw, 3rem);
  background: linear-gradient(135deg, rgba(110, 231, 183, 0.12), rgba(251, 191, 36, 0.08));
  border: 1px solid var(--mz-border);
  border-radius: calc(var(--mz-radius) * 1.5);
  text-align: center;
}

.cta-banner h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.cta-banner p {
  color: var(--mz-text-muted);
  margin: 0 0 1.5rem;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}

.modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--mz-bg-elevated);
  border: 1px solid var(--mz-border);
  border-radius: calc(var(--mz-radius) * 1.5);
  max-width: 32rem;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2rem;
  transform: scale(0.95) translateY(8px);
  transition: transform 0.25s ease;
}

.modal-backdrop.is-open .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.modal h2 { margin: 0; font-size: 1.35rem; }

.modal-close {
  background: none;
  border: none;
  color: var(--mz-text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  flex-shrink: 0;
}

.modal p, .modal li {
  color: var(--mz-text-muted);
  font-size: 0.95rem;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.modal-form label {
  font-size: 0.875rem;
  font-weight: 500;
}

.modal-form input {
  padding: 0.75rem 1rem;
  border-radius: var(--mz-radius);
  border: 1px solid var(--mz-border);
  background: var(--mz-bg);
  color: var(--mz-text);
  font: inherit;
}

.modal-form input:focus {
  outline: 2px solid var(--mz-accent);
  outline-offset: 0;
}

/* Footer */
.site-footer {
  max-width: var(--mz-max-width);
  margin: 0 auto;
  padding: 2rem clamp(1.25rem, 4vw, 2rem) 2.5rem;
  border-top: 1px solid var(--mz-border);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--mz-text-muted);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand img {
  width: 1.5rem;
  height: 1.5rem;
}

.site-footer a {
  color: var(--mz-text);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover { color: var(--mz-accent); }

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

/* Legal pages */
.legal-page {
  max-width: 42rem;
  margin: 0 auto;
  padding: calc(var(--mz-header-height) + 3rem) clamp(1.25rem, 4vw, 2rem) 4rem;
}

.legal-page h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.legal-page .updated {
  color: var(--mz-text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.legal-page p, .legal-page li {
  color: var(--mz-text-muted);
  font-size: 0.95rem;
}

.legal-page ul {
  padding-left: 1.25rem;
}

.legal-page a { color: var(--mz-accent); }
