/* ===========================================================
   ModyDesk — Landing Page Styles
   Built on Bootstrap 5.3
   =========================================================== */

:root {
  --md-primary: #4F46E5;
  --md-primary-dark: #4338CA;
  --md-primary-light: #6366F1;
  --md-accent: #F59E0B;
  --md-accent-dark: #D97706;
  --md-violet: #7C3AED;
  --md-ink: #0F172A;
  --md-text: #334155;
  --md-muted: #64748B;
  --md-border: #E2E8F0;
  --md-bg: #FFFFFF;
  --md-bg-soft: #F8FAFC;
  --md-bg-tint: #EEF2FF;

  /* Themed surfaces — overridden in [data-theme="midnight"] */
  --md-card-bg: #FFFFFF;
  --md-navbar-scrolled-bg: rgba(255, 255, 255, .9);
  --md-navbar-mobile-bg: #FFFFFF;
  --md-faq-active-bg: var(--md-bg-tint);
  --md-feature-icon-2-bg: linear-gradient(135deg, #FEF3C7, var(--md-card-bg));
  --md-feature-icon-3-bg: linear-gradient(135deg, #EDE9FE, var(--md-card-bg));
  --md-why-highlighted-bg: linear-gradient(135deg, #FFFBEB 0%, var(--md-card-bg) 100%);
  --md-hero-bg-stop-1: #FAFBFF;
  --md-hero-bg-stop-2: #FFFFFF;
  --md-hero-blob-1-opacity: .55;
  --md-hero-blob-2-opacity: .35;
  --md-eyebrow-bg: rgba(79, 70, 229, .08);
  --md-eyebrow-border: rgba(79, 70, 229, .18);
  --md-faq-arrow-fill: '%234F46E5';

  --md-shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .04);
  --md-shadow-md: 0 4px 6px -1px rgba(15, 23, 42, .07), 0 2px 4px -2px rgba(15, 23, 42, .05);
  --md-shadow-lg: 0 12px 24px -8px rgba(15, 23, 42, .12), 0 6px 12px -4px rgba(15, 23, 42, .08);
  --md-shadow-xl: 0 24px 48px -12px rgba(79, 70, 229, .18), 0 12px 24px -8px rgba(15, 23, 42, .08);

  --md-radius-sm: 8px;
  --md-radius: 14px;
  --md-radius-lg: 20px;

  /* Bootstrap variable overrides */
  --bs-primary: var(--md-primary);
  --bs-primary-rgb: 79, 70, 229;
  --bs-body-color: var(--md-text);
  --bs-body-bg: var(--md-bg);
  --bs-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bs-link-color: var(--md-primary);
  --bs-link-hover-color: var(--md-primary-dark);
  --bs-border-color: var(--md-border);
}

/* ----------------------------------------------------------
   Base
   ---------------------------------------------------------- */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--bs-body-font-family);
  color: var(--md-text);
  background-color: var(--md-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color .25s ease, color .25s ease;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--md-ink);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1, .h1 { font-weight: 800; }
.display-3, .display-4 { font-weight: 800; letter-spacing: -0.03em; }

p { color: var(--md-text); }
.text-muted, .text-secondary { color: var(--md-muted) !important; }

a { transition: color .15s ease; }

::selection { background: var(--md-primary); color: #fff; }

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

/* ----------------------------------------------------------
   Section spacing
   ---------------------------------------------------------- */

.section {
  padding: 6rem 0;
}

@media (max-width: 767.98px) {
  .section { padding: 4rem 0; }
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--md-primary);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--md-muted);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ----------------------------------------------------------
   Buttons
   ---------------------------------------------------------- */

.btn {
  font-weight: 600;
  border-radius: var(--md-radius-sm);
  padding: 0.625rem 1.25rem;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background-color: var(--md-primary);
  border-color: var(--md-primary);
  color: #fff;
  box-shadow: var(--md-shadow-md);
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--md-primary-dark);
  border-color: var(--md-primary-dark);
  color: #fff;
  box-shadow: var(--md-shadow-lg);
}

.btn-accent {
  background-color: var(--md-accent);
  border: 1px solid var(--md-accent);
  color: #1a1300;
  box-shadow: 0 6px 16px -4px rgba(245, 158, 11, .45);
}
.btn-accent:hover, .btn-accent:focus {
  background-color: var(--md-accent-dark);
  border-color: var(--md-accent-dark);
  color: #1a1300;
  box-shadow: 0 10px 24px -6px rgba(245, 158, 11, .5);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--md-border);
  color: var(--md-ink);
}
.btn-ghost:hover, .btn-ghost:focus {
  background: var(--md-bg-soft);
  border-color: var(--md-primary);
  color: var(--md-primary);
}

.btn-light-on-dark {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff;
  backdrop-filter: blur(4px);
}
.btn-light-on-dark:hover {
  background: rgba(255, 255, 255, .2);
  color: #fff;
  border-color: rgba(255, 255, 255, .4);
}

/* ----------------------------------------------------------
   Theme toggle
   ---------------------------------------------------------- */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--md-bg-soft);
  border: 1px solid var(--md-border);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
  transition: background-color .25s ease, border-color .25s ease;
}

.theme-toggle-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--md-muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.theme-toggle-btn:hover { color: var(--md-ink); }
.theme-toggle-btn:focus-visible {
  outline: 2px solid var(--md-primary);
  outline-offset: 2px;
}
.theme-toggle-btn.is-active {
  background: var(--md-card-bg);
  color: var(--md-ink);
  border-color: var(--md-border);
  box-shadow: var(--md-shadow-sm);
}
.theme-toggle-btn i { font-size: 0.95rem; line-height: 1; }

@media (max-width: 991.98px) {
  .theme-toggle-item { width: 100%; margin-top: 0.5rem; }
  .theme-toggle { width: 100%; justify-content: center; }
  .theme-toggle-btn { flex: 1; justify-content: center; }
}

/* ----------------------------------------------------------
   Navbar
   ---------------------------------------------------------- */

#mainNav {
  padding: 1rem 0;
  background-color: rgba(255, 255, 255, 0);
  transition: background-color .25s ease, box-shadow .25s ease, padding .25s ease, backdrop-filter .25s ease;
  z-index: 1030;
}

#mainNav.scrolled {
  background-color: var(--md-navbar-scrolled-bg);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 1px 0 var(--md-border);
  padding: 0.625rem 0;
}

#mainNav .navbar-brand img {
  height: 34px;
  width: auto;
}

#mainNav .nav-link {
  font-weight: 500;
  color: var(--md-text);
  padding: 0.5rem 1rem !important;
  border-radius: 6px;
}
#mainNav .nav-link:hover,
#mainNav .nav-link:focus {
  color: var(--md-primary);
}

#mainNav .navbar-toggler {
  border: 1px solid var(--md-border);
  padding: 0.4rem 0.6rem;
}
#mainNav .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(79, 70, 229, .2); }

@media (max-width: 991.98px) {
  #mainNav .navbar-collapse {
    background: var(--md-navbar-mobile-bg);
    border-radius: var(--md-radius);
    margin-top: 0.75rem;
    padding: 1rem;
    box-shadow: var(--md-shadow-lg);
    border: 1px solid var(--md-border);
  }
  #mainNav .nav-item .btn { width: 100%; margin-top: 0.5rem; }
}

/* ----------------------------------------------------------
   Hero
   ---------------------------------------------------------- */

.hero {
  position: relative;
  padding: 9rem 0 5rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 800px 400px at 15% 0%, rgba(99, 102, 241, .14), transparent 70%),
    radial-gradient(ellipse 700px 400px at 90% 30%, rgba(245, 158, 11, .1), transparent 65%),
    linear-gradient(180deg, var(--md-hero-bg-stop-1) 0%, var(--md-hero-bg-stop-2) 100%);
  transition: background .25s ease;
}

@media (max-width: 991.98px) {
  .hero { padding: 7rem 0 3rem; }
}

.hero::before, .hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}
.hero::before {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, var(--md-primary-light), transparent 60%);
  top: -120px;
  left: -120px;
  opacity: var(--md-hero-blob-1-opacity);
}
.hero::after {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--md-accent), transparent 60%);
  bottom: -160px;
  right: -100px;
  opacity: var(--md-hero-blob-2-opacity);
}

.hero .container { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--md-eyebrow-bg);
  border: 1px solid var(--md-eyebrow-border);
  color: var(--md-primary);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--md-accent);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, .2);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(245, 158, 11, .2); }
  50% { box-shadow: 0 0 0 8px rgba(245, 158, 11, .05); }
}

.hero h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  line-height: 1.05;
  margin-bottom: 1.25rem;
}

.hero .lead {
  font-size: 1.15rem;
  color: var(--md-muted);
  max-width: 560px;
  margin-bottom: 2rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.9rem;
  color: var(--md-muted);
}
.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.hero-trust i {
  color: var(--md-primary);
  font-size: 1.05rem;
}

/* App mockup */
.app-mockup {
  position: relative;
  filter: drop-shadow(0 30px 50px rgba(15, 23, 42, .15));
}
.app-mockup svg { width: 100%; height: auto; display: block; }

/* ----------------------------------------------------------
   Features
   ---------------------------------------------------------- */

.section-features { background: var(--md-bg); }

.feature-card {
  background: var(--md-card-bg);
  border: 1px solid var(--md-border);
  border-radius: var(--md-radius-lg);
  padding: 2rem;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background-color .25s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--md-shadow-xl);
  border-color: rgba(79, 70, 229, .25);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--md-bg-tint), var(--md-card-bg));
  color: var(--md-primary);
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
  box-shadow: inset 0 0 0 1px rgba(79, 70, 229, .15);
}
.feature-card:nth-child(2) .feature-icon {
  background: var(--md-feature-icon-2-bg);
  color: var(--md-accent-dark);
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, .25);
}
.feature-card:nth-child(3) .feature-icon {
  background: var(--md-feature-icon-3-bg);
  color: var(--md-violet);
  box-shadow: inset 0 0 0 1px rgba(124, 58, 237, .2);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.625rem;
}

.feature-card p {
  color: var(--md-muted);
  margin-bottom: 0;
  line-height: 1.6;
}

/* ----------------------------------------------------------
   Why ModyDesk strip
   ---------------------------------------------------------- */

.section-why {
  background: linear-gradient(180deg, var(--md-bg-soft) 0%, var(--md-bg) 100%);
}

.why-card {
  background: var(--md-card-bg);
  border-radius: var(--md-radius);
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--md-border);
  height: 100%;
  text-align: center;
  transition: box-shadow .2s ease, transform .2s ease, background-color .25s ease, border-color .25s ease;
  position: relative;
}
.why-card:hover { box-shadow: var(--md-shadow-md); transform: translateY(-2px); }

.why-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--md-bg-tint);
  color: var(--md-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.875rem;
}

.why-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: var(--md-ink);
}
.why-card p {
  font-size: 0.9rem;
  color: var(--md-muted);
  margin-bottom: 0;
}

.why-card.is-highlighted {
  background: var(--md-why-highlighted-bg);
  border-color: rgba(245, 158, 11, .3);
}
.why-card.is-highlighted .why-icon {
  background: rgba(245, 158, 11, .14);
  color: var(--md-accent-dark);
}

.lifetime-badge {
  position: absolute;
  top: -10px;
  right: -8px;
  background: var(--md-accent);
  color: #1a1300;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  box-shadow: 0 4px 10px -2px rgba(245, 158, 11, .45);
}

/* ----------------------------------------------------------
   How It Works
   ---------------------------------------------------------- */

.section-steps { background: var(--md-bg); }

.steps {
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--md-border) 20%, var(--md-border) 80%, transparent);
  z-index: 0;
}
@media (max-width: 767.98px) {
  .steps::before { display: none; }
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--md-card-bg);
  border: 2px solid var(--md-border);
  color: var(--md-primary);
  font-size: 1.5rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  position: relative;
  box-shadow: var(--md-shadow-md);
  transition: transform .2s ease, background-color .25s ease, border-color .25s ease;
}
.step:hover .step-num { transform: scale(1.05); }

.step-num::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 70, 229, .12), transparent 70%);
  z-index: -1;
}

.step h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.step p {
  color: var(--md-muted);
  max-width: 280px;
  margin: 0 auto;
  font-size: 0.95rem;
}

/* ----------------------------------------------------------
   Security section (already-dark, kept consistent across themes)
   ---------------------------------------------------------- */

.section-security {
  background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 70%, #312E81 100%);
  color: #E2E8F0;
  position: relative;
  overflow: hidden;
}
.section-security::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, .25), transparent 60%);
  top: -200px;
  right: -200px;
  filter: blur(60px);
}
.section-security::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, .15), transparent 60%);
  bottom: -200px;
  left: -150px;
  filter: blur(60px);
}

.section-security .container { position: relative; z-index: 1; }
.section-security h2 { color: #fff; }
.section-security .section-eyebrow { color: var(--md-accent); }
.section-security p { color: rgba(226, 232, 240, .85); }

.security-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.security-list li {
  display: flex;
  gap: 0.875rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: #E2E8F0;
}
.security-list li:last-child { border-bottom: 0; }

.security-list .check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(34, 197, 94, .18);
  color: #4ADE80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.security-list strong {
  color: #fff;
  display: block;
  margin-bottom: 2px;
}
.security-list small {
  color: rgba(226, 232, 240, .7);
  font-size: 0.875rem;
}

/* ----------------------------------------------------------
   FAQ
   ---------------------------------------------------------- */

.section-faq { background: var(--md-bg-soft); }

.faq-accordion .accordion-item {
  background: var(--md-card-bg);
  border: 1px solid var(--md-border);
  border-radius: var(--md-radius) !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: background-color .25s ease, border-color .25s ease;
}

.faq-accordion .accordion-button {
  background: var(--md-card-bg);
  color: var(--md-ink);
  font-weight: 600;
  font-size: 1.02rem;
  padding: 1.125rem 1.5rem;
  border-radius: var(--md-radius) !important;
}
.faq-accordion .accordion-button:not(.collapsed) {
  background: var(--md-faq-active-bg);
  color: var(--md-primary);
  box-shadow: none;
}
.faq-accordion .accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .2);
  border-color: transparent;
}

.faq-accordion .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%234F46E5'%3e%3cpath d='M3.204 5h9.592L8 10.481 3.204 5zm-.753.659l4.796 5.48a1 1 0 0 0 1.506 0l4.796-5.48c.566-.647.106-1.659-.753-1.659H3.204a1 1 0 0 0-.753 1.659z'/%3e%3c/svg%3e");
}

.faq-accordion .accordion-body {
  padding: 0 1.5rem 1.25rem;
  color: var(--md-text);
  line-height: 1.7;
}

/* ----------------------------------------------------------
   Final CTA
   ---------------------------------------------------------- */

.section-cta {
  padding: 5rem 0;
  background: linear-gradient(135deg, #4F46E5 0%, #6366F1 50%, #7C3AED 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.section-cta::before {
  content: '';
  position: absolute;
  top: -100px; left: -100px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .15), transparent 60%);
  filter: blur(40px);
}
.section-cta::after {
  content: '';
  position: absolute;
  bottom: -120px; right: -80px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, .25), transparent 60%);
  filter: blur(40px);
}

.section-cta .container { position: relative; z-index: 1; }

.section-cta h2 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}
.section-cta p {
  color: rgba(255, 255, 255, .85);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}
.section-cta .meta {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, .7);
  margin-top: 1.25rem;
  margin-bottom: 0;
}

/* ----------------------------------------------------------
   Footer
   ---------------------------------------------------------- */

.site-footer {
  background: #0F172A;
  color: #94A3B8;
  padding: 3.5rem 0 1.5rem;
}

.site-footer h5 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.125rem;
}

.site-footer .brand-tag {
  color: rgba(255, 255, 255, .65);
  font-size: 0.95rem;
  max-width: 280px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li { margin-bottom: 0.65rem; }
.site-footer a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color .15s ease;
}
.site-footer a:hover { color: #fff; }

.site-footer hr {
  border-color: rgba(255, 255, 255, .08);
  margin: 2.5rem 0 1.5rem;
}

.site-footer .copyright {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, .55);
  margin: 0;
}

.site-footer .footer-logo {
  height: 32px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

/* ----------------------------------------------------------
   Accessibility & motion
   ---------------------------------------------------------- */

:focus-visible {
  outline: 3px solid rgba(79, 70, 229, .4);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .eyebrow .dot { animation: none; }
}

/* ===========================================================
   Midnight theme
   =========================================================== */

[data-theme="midnight"] {
  --md-primary: #818CF8;
  --md-primary-dark: #6366F1;
  --md-primary-light: #A5B4FC;
  --md-violet: #A78BFA;
  --md-ink: #F1F5F9;
  --md-text: #CBD5E1;
  --md-muted: #94A3B8;
  --md-border: #1F2A3D;
  --md-bg: #0B1120;
  --md-bg-soft: #0F172A;
  --md-bg-tint: #1E1B4B;

  --md-card-bg: #131C2F;
  --md-navbar-scrolled-bg: rgba(11, 17, 32, 0.85);
  --md-navbar-mobile-bg: #131C2F;
  --md-faq-active-bg: #1A2238;
  --md-feature-icon-2-bg: linear-gradient(135deg, rgba(245, 158, 11, .18), var(--md-card-bg));
  --md-feature-icon-3-bg: linear-gradient(135deg, rgba(167, 139, 250, .2), var(--md-card-bg));
  --md-why-highlighted-bg: linear-gradient(135deg, rgba(245, 158, 11, .08) 0%, var(--md-card-bg) 100%);
  --md-hero-bg-stop-1: #0B1120;
  --md-hero-bg-stop-2: #0F172A;
  --md-hero-blob-1-opacity: .4;
  --md-hero-blob-2-opacity: .25;
  --md-eyebrow-bg: rgba(129, 140, 248, .14);
  --md-eyebrow-border: rgba(129, 140, 248, .3);

  --bs-primary: #818CF8;
  --bs-primary-rgb: 129, 140, 248;
  --bs-body-color: #CBD5E1;
  --bs-body-bg: #0B1120;
  --bs-link-color: #A5B4FC;
  --bs-link-hover-color: #C7D2FE;
  --bs-border-color: #1F2A3D;

  --md-shadow-sm: 0 1px 2px rgba(0, 0, 0, .35), 0 1px 3px rgba(0, 0, 0, .25);
  --md-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .4), 0 2px 4px -2px rgba(0, 0, 0, .3);
  --md-shadow-lg: 0 12px 24px -8px rgba(0, 0, 0, .5), 0 6px 12px -4px rgba(0, 0, 0, .35);
  --md-shadow-xl: 0 24px 48px -12px rgba(99, 102, 241, .35), 0 12px 24px -8px rgba(0, 0, 0, .4);
}

[data-theme="midnight"] .feature-card:hover {
  border-color: rgba(129, 140, 248, .35);
}
[data-theme="midnight"] .feature-icon {
  background: linear-gradient(135deg, rgba(99, 102, 241, .2), var(--md-card-bg));
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, .3);
}
[data-theme="midnight"] .feature-card:nth-child(2) .feature-icon {
  color: #FCD34D;
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, .35);
}
[data-theme="midnight"] .feature-card:nth-child(3) .feature-icon {
  color: #C4B5FD;
  box-shadow: inset 0 0 0 1px rgba(167, 139, 250, .3);
}

[data-theme="midnight"] .why-icon {
  background: rgba(99, 102, 241, .18);
  color: #A5B4FC;
}
[data-theme="midnight"] .why-card.is-highlighted .why-icon {
  background: rgba(245, 158, 11, .18);
  color: #FCD34D;
}

[data-theme="midnight"] .step-num {
  color: #A5B4FC;
}
[data-theme="midnight"] .step-num::after {
  background: radial-gradient(circle, rgba(129, 140, 248, .2), transparent 70%);
}

[data-theme="midnight"] .faq-accordion .accordion-button:not(.collapsed) {
  color: #A5B4FC;
}
[data-theme="midnight"] .faq-accordion .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23A5B4FC'%3e%3cpath d='M3.204 5h9.592L8 10.481 3.204 5zm-.753.659l4.796 5.48a1 1 0 0 0 1.506 0l4.796-5.48c.566-.647.106-1.659-.753-1.659H3.204a1 1 0 0 0-.753 1.659z'/%3e%3c/svg%3e");
}

[data-theme="midnight"] .btn-ghost { color: var(--md-ink); }
[data-theme="midnight"] .btn-ghost:hover,
[data-theme="midnight"] .btn-ghost:focus {
  background: var(--md-card-bg);
  border-color: var(--md-primary);
  color: #A5B4FC;
}

[data-theme="midnight"] #mainNav .navbar-toggler { border-color: var(--md-border); }
[data-theme="midnight"] #mainNav .navbar-toggler-icon { filter: invert(1) opacity(0.85); }

[data-theme="midnight"] .text-gradient {
  background: linear-gradient(135deg, #A5B4FC 0%, #C4B5FD 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

[data-theme="midnight"] .app-mockup {
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .55));
}

[data-theme="midnight"] .section-cta {
  background: linear-gradient(135deg, #312E81 0%, #4338CA 50%, #5B21B6 100%);
}

[data-theme="midnight"] .section-security {
  background: linear-gradient(135deg, #050814 0%, #0F0E2A 70%, #1E1B4B 100%);
}

[data-theme="midnight"] .site-footer {
  background: #050914;
  border-top: 1px solid var(--md-border);
}
