html { scroll-behavior: smooth; }

body {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(1200px 700px at -4% 6%, rgba(37, 99, 235, 0.16), transparent 58%),
    radial-gradient(900px 600px at 92% 14%, rgba(16, 185, 129, 0.16), transparent 55%),
    linear-gradient(152deg, #1f2937 0%, #111827 48%, #020617 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(85% 85% at 50% 50%, #000 45%, transparent 95%);
  pointer-events: none;
  z-index: -1;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-header {
  box-shadow: 0 8px 24px -18px rgba(15, 23, 42, 0.85);
}

.site-nav-link {
  position: relative;
  padding-bottom: 3px;
}

.site-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #34d399 0%, #99f6e4 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

.site-nav-link:hover::after,
.site-nav-link.is-active::after {
  transform: scaleX(1);
}

.site-cta-primary {
  box-shadow: 0 14px 28px -16px rgba(16, 185, 129, 0.7);
}

.site-mobile-menu {
  background-image: linear-gradient(180deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.98));
}

main a.inline-flex.rounded-full.border {
  backdrop-filter: blur(4px);
  border-color: rgba(148, 163, 184, 0.32) !important;
  color: #f8fafc !important;
}

main a.inline-flex.rounded-full.border:hover {
  border-color: rgba(110, 231, 183, 0.6) !important;
  color: #6ee7b7 !important;
}

main a.inline-flex.rounded-full.bg-emerald-700,
main button.rounded-full.bg-emerald-700 {
  box-shadow: 0 14px 28px -16px rgba(16, 185, 129, 0.65);
}

.btn-secondary {
  background: rgba(2, 6, 23, 0.35);
  border-color: rgba(148, 163, 184, 0.4) !important;
  color: #f8fafc !important;
  transition: border-color .2s ease, color .2s ease, transform .2s ease, background-color .2s ease;
}

.btn-secondary:hover {
  border-color: rgba(110, 231, 183, 0.75) !important;
  color: #6ee7b7 !important;
  transform: translateY(-1px);
}

/* Strong global readability on dark theme */
main { color: #e2e8f0; }
main .text-charcoal-900 { color: #f8fafc; }
main [class*="text-charcoal-900/"] { color: #e2e8f0 !important; }
main .text-emerald-700 { color: #6ee7b7; }
main [class*="text-emerald-700/"] { color: #6ee7b7 !important; }
main .text-slate-200 { color: #e2e8f0; }
main [class*="text-slate-200/"] { color: #e2e8f0 !important; }
main .text-slate-300 { color: #cbd5e1; }
main [class*="text-slate-300/"] { color: #cbd5e1 !important; }
main .text-slate-700 { color: #e2e8f0; }
main [class*="text-slate-700/"] { color: #e2e8f0 !important; }
main .text-slate-600 { color: #cbd5e1; }
main [class*="text-slate-600/"] { color: #cbd5e1 !important; }
main .text-slate-500 { color: #94a3b8; }

/* Convert light cards/panels to elevated dark surfaces with hover lift */
main .bg-white {
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.93), rgba(3, 11, 28, 0.9)) !important;
  color: #e2e8f0 !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
  box-shadow: 0 18px 32px -24px rgba(0, 0, 0, 0.75);
}

main article.bg-white,
main div.bg-white,
main form.bg-white {
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

main article.bg-white:hover,
main div.bg-white:hover,
main form.bg-white:hover {
  border-color: rgba(110, 231, 183, 0.32) !important;
  box-shadow: 0 24px 42px -28px rgba(15, 23, 42, 0.9);
}

main .bg-white .text-charcoal-900,
main .bg-white .text-slate-200,
main .bg-white .text-slate-300,
main .bg-white .text-slate-700,
main .bg-white .text-slate-600,
main .bg-white .text-slate-500 {
  color: #e2e8f0 !important;
}

main .bg-white .text-emerald-700 { color: #6ee7b7 !important; }
main .bg-white a.text-charcoal-900 { color: #e2e8f0 !important; }

/* Improve form control readability inside dark cards */
main .bg-white input,
main .bg-white select,
main .bg-white textarea {
  background-color: #0b1220 !important;
  color: #f8fafc !important;
  border-color: rgba(148, 163, 184, 0.45) !important;
}

main .bg-white input::placeholder,
main .bg-white textarea::placeholder {
  color: #94a3b8 !important;
}

main .bg-white strong { color: #f8fafc !important; }
main .bg-white .text-red-700 { color: #fecaca !important; }
main .bg-white .text-amber-800 { color: #fde68a !important; }

/* Solid light-emerald surfaces need dark text contrast */
main .bg-emerald-100 {
  color: #064e3b;
  border-color: rgba(6, 95, 70, 0.25) !important;
}

main .bg-emerald-100 .text-emerald-700,
main .bg-emerald-100 .text-slate-600,
main .bg-emerald-100 .text-slate-700,
main .bg-emerald-100 .text-charcoal-900 {
  color: #064e3b !important;
}

/* Translucent emerald accents sit on dark cards and need light text */
main [class*="bg-emerald-100/"] {
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.24) !important;
}

main [class*="bg-emerald-100/"] .text-slate-600,
main [class*="bg-emerald-100/"] .text-slate-700,
main [class*="bg-emerald-100/"] .text-charcoal-900 {
  color: #e2e8f0 !important;
}

main .bg-charcoal-900 {
  background:
    radial-gradient(1000px 420px at 18% -16%, rgba(52, 211, 153, 0.14), transparent 60%),
    linear-gradient(160deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.95));
}

main .faq-toggle {
  transition: background-color .2s ease;
}

main .faq-toggle:hover {
  background-color: rgba(148, 163, 184, 0.08);
}

.site-footer {
  background:
    radial-gradient(640px 320px at 6% -28%, rgba(52, 211, 153, 0.2), transparent 62%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 1));
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #34d399;
  outline-offset: 2px;
}

@media (max-width: 640px) {
  main h1 { line-height: 1.08; }
  main h2 { line-height: 1.15; }
  .site-header .h-20 { height: 4.5rem; }
}

@media (max-width: 767px) {
  body.has-mobile-cta { padding-bottom: 84px; }
}
