:root {
  --bg: #0a0a0b;
  --card: #18181b;
  --text: #ffffff;
  --muted: #a1a1aa;
  --muted-2: #71717a;
  --purple: #7c3aed;
  --blue: #3b82f6;
  --green: #10b981;
  --orange: #f59e0b;
  --border: rgba(255,255,255,0.08);
  --ring: rgba(124,58,237,0.5);
}
/* Light theme */
.theme-light {
  --bg: #ffffff;
  --card: #f7f7fb;
  --text: #0b0b0c;
  --muted: #44454a;
  --muted-2: #5b5c62;
  --border: rgba(12, 12, 13, 0.12);
  --ring: rgba(124,58,237,0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Background layers */
.bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bg__orbs, .bg__waves, .bg__grid, .bg__particles { position: absolute; inset: 0; }
.bg__bubbles { position: absolute; inset: 0; pointer-events: none; }
.bg__brand { position: absolute; inset: 0; pointer-events: none; display: flex; align-items: center; justify-content: center; gap: 40vw; z-index: 1; }
.brand-brace { 
  font-family: Inter, ui-sans-serif, system-ui; 
  font-weight: 500; 
  font-size: clamp(120px, 32vw, 520px); 
  line-height: 1; 
  color: rgba(59,130,246,0.08); 
  filter: blur(0.15px); 
  animation: colorShift 8s ease-in-out infinite;
}
.brand-brace--left { transform: translateY(-4vh); }
.brand-brace--right { transform: translateY(6vh); }
.theme-light .brand-brace { color: rgba(59,130,246,0.10); }

@keyframes colorShift {
  0% { 
    color: rgba(59,130,246,0.08); /* Blue */
  }
  16.66% { 
    color: rgba(124,58,237,0.08); /* Purple */
  }
  33.33% { 
    color: rgba(16,185,129,0.08); /* Green */
  }
  50% { 
    color: rgba(245,158,11,0.08); /* Orange */
  }
  66.66% { 
    color: rgba(239,68,68,0.08); /* Red */
  }
  83.33% { 
    color: rgba(139,92,246,0.08); /* Violet */
  }
  100% { 
    color: rgba(59,130,246,0.08); /* Back to Blue */
  }
}

.theme-light .brand-brace {
  animation: colorShiftLight 8s ease-in-out infinite;
}

@keyframes colorShiftLight {
  0% { 
    color: rgba(59,130,246,0.10); /* Blue */
  }
  16.66% { 
    color: rgba(124,58,237,0.10); /* Purple */
  }
  33.33% { 
    color: rgba(16,185,129,0.10); /* Green */
  }
  50% { 
    color: rgba(245,158,11,0.10); /* Orange */
  }
  66.66% { 
    color: rgba(239,68,68,0.10); /* Red */
  }
  83.33% { 
    color: rgba(139,92,246,0.10); /* Violet */
  }
  100% { 
    color: rgba(59,130,246,0.10); /* Back to Blue */
  }
}

/* Gradient orbs */
.orb { position: absolute; border-radius: 9999px; filter: blur(50px); opacity: 0.25; transform: translateZ(0); animation: orbFloat 12s ease-in-out infinite; }
.orb--1 { width: 480px; height: 480px; background: radial-gradient( circle at 30% 30%, rgba(124,58,237,0.45), transparent 60% ); top: -120px; left: -120px; }
.orb--2 { width: 420px; height: 420px; background: radial-gradient( circle at 70% 40%, rgba(59,130,246,0.35), transparent 60% ); bottom: -140px; right: -120px; animation-delay: 2s; }
.orb--3 { width: 360px; height: 360px; background: radial-gradient( circle at 50% 50%, rgba(16,185,129,0.35), transparent 60% ); top: 40%; left: 60%; animation-delay: 4s; }

@keyframes orbFloat { 0%,100% { transform: translateY(0) translateX(0); } 50% { transform: translateY(-20px) translateX(10px); } }

/* Waves */
.bg__waves .wave { position: absolute; inset: 0; opacity: 0.045; background: radial-gradient(1200px 220px at 50% 110%, var(--purple), transparent 72%); animation: wave 20s ease-in-out infinite; }
.bg__waves .wave--2 { background: radial-gradient(1200px 220px at 40% 110%, var(--blue), transparent 72% ); animation-delay: 3s; }
.bg__waves .wave--3 { background: radial-gradient(1200px 220px at 60% 110%, var(--green), transparent 72% ); animation-delay: 6s; }
.bg__waves .wave--4 { background: radial-gradient(1200px 220px at 55% 112%, var(--orange), transparent 72% ); animation-delay: 9s; opacity: 0.035; }
@keyframes wave { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-28px); } }

/* Grid overlay */
.bg__grid { background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 80px 80px, 80px 80px; opacity: 0.25; animation: gridPulse 8s ease-in-out infinite; }
@keyframes gridPulse { 0%,100% { opacity: 0.2; } 50% { opacity: 0.4; } }

/* Particles */
.bg__particles span { position: absolute; width: 2px; height: 2px; background: rgba(255,255,255,0.6); border-radius: 9999px; opacity: 0.6; animation: floatY var(--dur) linear infinite; transform: translateZ(0); }
.bg__particles span:nth-child(1) { left: 5%; top: 80%; --dur: 20s; }
.bg__particles span:nth-child(2) { left: 12%; top: 60%; --dur: 22s; }
.bg__particles span:nth-child(3) { left: 20%; top: 70%; --dur: 18s; }
.bg__particles span:nth-child(4) { left: 28%; top: 85%; --dur: 25s; }
.bg__particles span:nth-child(5) { left: 35%; top: 65%; --dur: 21s; }
.bg__particles span:nth-child(6) { left: 42%; top: 78%; --dur: 19s; }
.bg__particles span:nth-child(7) { left: 50%; top: 72%; --dur: 24s; }
.bg__particles span:nth-child(8) { left: 58%; top: 88%; --dur: 17s; }
.bg__particles span:nth-child(9) { left: 66%; top: 68%; --dur: 23s; }
.bg__particles span:nth-child(10) { left: 74%; top: 82%; --dur: 20s; }
.bg__particles span:nth-child(11) { left: 82%; top: 62%; --dur: 16s; }
.bg__particles span:nth-child(12) { left: 88%; top: 86%; --dur: 22s; }
.bg__particles span:nth-child(13) { left: 26%; top: 58%; --dur: 15s; }
.bg__particles span:nth-child(14) { left: 54%; top: 58%; --dur: 19s; }
.bg__particles span:nth-child(15) { left: 90%; top: 66%; --dur: 25s; }
@keyframes floatY { 0% { transform: translateY(0); opacity: 0.6; } 50% { opacity: 0.4; } 100% { transform: translateY(-120px); opacity: 0.6; } }

/* Bubbles */
.bg__bubbles span { position: absolute; border-radius: 9999px; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.12), rgba(255,255,255,0.03)); opacity: 0.12; filter: blur(0.2px); animation: bubbleFloat var(--dur) ease-in-out infinite; mix-blend-mode: screen; }
.bg__bubbles span:nth-child(1) { width: 34px; height: 34px; left: 8%; bottom: -40px; --dur: 18s; }
.bg__bubbles span:nth-child(2) { width: 26px; height: 26px; left: 18%; bottom: -60px; --dur: 22s; }
.bg__bubbles span:nth-child(3) { width: 40px; height: 40px; left: 28%; bottom: -50px; --dur: 20s; }
.bg__bubbles span:nth-child(4) { width: 22px; height: 22px; left: 40%; bottom: -55px; --dur: 19s; }
.bg__bubbles span:nth-child(5) { width: 30px; height: 30px; left: 52%; bottom: -45px; --dur: 24s; }
.bg__bubbles span:nth-child(6) { width: 24px; height: 24px; left: 62%; bottom: -60px; --dur: 21s; }
.bg__bubbles span:nth-child(7) { width: 36px; height: 36px; left: 70%; bottom: -50px; --dur: 23s; }
.bg__bubbles span:nth-child(8) { width: 20px; height: 20px; left: 78%; bottom: -55px; --dur: 17s; }
.bg__bubbles span:nth-child(9) { width: 28px; height: 28px; left: 86%; bottom: -60px; --dur: 26s; }
.bg__bubbles span:nth-child(10) { width: 24px; height: 24px; left: 92%; bottom: -50px; --dur: 20s; }

@keyframes bubbleFloat { 0% { transform: translateY(0) translateX(0) scale(1); opacity: 0.1; } 25% { transform: translateY(-20vh) translateX(-6px) scale(1.03); opacity: 0.14; } 50% { transform: translateY(-40vh) translateX(4px) scale(1.05); opacity: 0.12; } 75% { transform: translateY(-60vh) translateX(-4px) scale(1.06); opacity: 0.1; } 100% { transform: translateY(-80vh) translateX(2px) scale(1.08); opacity: 0.08; } }

/* Header */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: linear-gradient(180deg, rgba(10,10,11,0.9), rgba(10,10,11,0.5) 60%, rgba(10,10,11,0)); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--border); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: 0.2px; }
.logo__icon { font-size: 20px; }
.logo__img { display: block; height: 28px; width: auto; object-fit: contain; }

.nav { display: flex; align-items: center; gap: 20px; }
.nav__list { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.nav__list a, .nav__link { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 16px; line-height: 1.6; }
.nav__list a:hover, .nav__link:hover { color: var(--text); }
.nav__link { background: transparent; border: 0; cursor: pointer; }
.nav__toggle { display: none; background: transparent; border: 0; padding: 8px; border-radius: 8px; }
.nav__bar { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; }

.header__cta { display: none; }

/* Theme toggle */
.theme-toggle { background: transparent; border: 1px solid var(--border); color: var(--text); height: 36px; width: 36px; border-radius: 10px; margin-right: 10px; cursor: pointer; }
.theme-toggle:hover { background: rgba(255,255,255,0.06); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 12px; text-decoration: none; font-weight: 600; border: 1px solid var(--border); transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn--primary { background: linear-gradient(90deg, var(--purple), var(--blue)); color: #fff; box-shadow: 0 0 0 0 rgba(124,58,237,0.2); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px -8px rgba(124,58,237,0.5); }
.btn--ghost { background: transparent; color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,0.06); }

/* Light theme component refinements */
.theme-light .header { background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.65) 60%, rgba(255,255,255,0)); border-bottom-color: var(--border); }
.theme-light .btn--primary { background: linear-gradient(90deg, #7c3aed, #3b82f6); color: #fff; box-shadow: 0 6px 18px -8px rgba(124,58,237,0.35); }
.theme-light .btn--ghost { color: var(--text); }
.theme-light .btn--ghost:hover { background: rgba(10,10,11,0.06); }
.theme-light .cards .card, .theme-light .stat { background: #ffffff; border-color: var(--border); box-shadow: 0 10px 30px -20px rgba(15, 23, 42, 0.15); }
.theme-light .logo-pill, .theme-light .trust-badge { background: rgba(10,10,11,0.035); border-color: var(--border); color: var(--muted); }
.theme-light .gradient-text { background: linear-gradient(90deg, #0b0b0c, #273043 40%, #3b82f6 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.theme-light .footer { background: radial-gradient(700px 220px at 50% -50px, rgba(124,58,237,0.10), transparent 70%); }
.theme-light .theme-toggle:hover { background: rgba(10,10,11,0.06); }

/* Light background animation tuning */
.theme-light .bg__grid { opacity: 0.18; }
.theme-light .bg__waves .wave { opacity: 0.03; }
.theme-light .bg__waves .wave--4 { opacity: 0.025; }
.theme-light .bg__bubbles span { opacity: 0.08; }

/* Sections */
.main { position: relative; z-index: 10; }
.section { padding: 120px 0; }
.h1 { font-size: 72px; line-height: 1.05; margin: 0 0 18px; font-weight: 800; letter-spacing: -0.02em; }
.h2 { font-size: 48px; line-height: 1.1; margin: 0 0 28px; font-weight: 800; letter-spacing: -0.02em; }
.gradient-text { background: linear-gradient(90deg, #fff, #c7c7c7 30%, #8ab4ff 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.subtitle { color: var(--muted); font-size: 18px; max-width: 760px; }
.muted { color: var(--muted); }

.hero { padding-top: 160px; text-align: center; }
.hero__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero__logos { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.logo-pill { padding: 8px 12px; border: 1px solid var(--border); border-radius: 9999px; color: var(--muted); background: rgba(255,255,255,0.02); }
.section .h2 { text-align: center; }
.section .subtitle { text-align: center; margin-left: auto; margin-right: auto; }
.trust-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 9999px; background: rgba(255,255,255,0.03); color: var(--muted); font-size: 14px; }
.trust-badge .dot { width: 8px; height: 8px; border-radius: 9999px; background: var(--green); box-shadow: 0 0 0 0 rgba(16,185,129,0.7); animation: ping 1.2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(16,185,129,0.7); } 70% { box-shadow: 0 0 0 10px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }

/* Grid */
.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Cards */
.cards .card { background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)); border: 1px solid var(--border); border-radius: 16px; padding: 20px; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; position: relative; overflow: hidden; }
.card:hover { transform: translateY(-6px); border-color: rgba(124,58,237,0.4); box-shadow: inset 0 0 0 1px rgba(124,58,237,0.15), 0 10px 30px -15px rgba(124,58,237,0.4); }
.card__icon { font-size: 22px; margin-bottom: 10px; }
.card__title { font-size: 24px; font-weight: 700; margin: 0 0 8px; }
.card__body { color: var(--muted); margin: 0; }
.list { margin: 0; padding-left: 18px; color: var(--muted); }
.lift { will-change: transform; }

/* Stats */
.stats__grid { gap: 24px; }
.stat { background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 16px; padding: 20px; text-align: center; }
.stat__value { font-size: 40px; font-weight: 800; background: linear-gradient(90deg, var(--purple), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { color: var(--muted); font-size: 14px; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding-top: 40px; margin-top: 40px; background: radial-gradient(600px 200px at 50% -50px, rgba(124,58,237,0.15), transparent 70%); }

.footer__heading { font-size: 14px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted-2); margin: 10px 0 16px; text-align: center; }
.footer__grid { display: grid; grid-template-columns: 1.2fr repeat(4, 1fr); gap: 20px; }
.footer__brand { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.footer__brand .muted { margin: 0; text-align: center; }
.footer__title { font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-2); margin: 0 0 8px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; padding: 16px 0 30px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Mega menu */
.has-dropdown { position: relative; }
.mega { position: fixed; top: 64px; left: 0; right: 0; transform: none; display: none; min-width: 760px; width: 100vw; max-width: 100vw; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 16px; box-shadow: 0 20px 60px -30px rgba(0,0,0,0.6); z-index: 70; overflow: hidden; }
.mega.is-open { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 16px; }
.has-dropdown:hover .mega, .has-dropdown:focus-within .mega { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 16px; }
.mega__col { border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: rgba(255,255,255,0.02); }
.mega__title { font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-2); margin: 0 0 10px; }
.mega__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mega__row { display: flex; gap: 10px; align-items: center; flex-wrap: nowrap; white-space: nowrap; }
.mega__row a { padding: 6px 8px; }
.mega__section { border: 1px solid var(--border); border-radius: 10px; padding: 10px; background: rgba(255,255,255,0.02); display: grid; gap: 8px; }
.mega__section-title { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-2); }
.mega__icon { width: 16px; display: inline-flex; justify-content: center; margin-right: 6px; }
.mega__item a { color: var(--muted); text-decoration: none; display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 10px; border: 1px solid transparent; }
.mega__item a:hover { color: var(--text); background: rgba(255,255,255,0.04); border-color: var(--border); }
.mega__tag { font-size: 11px; padding: 2px 6px; border-radius: 9999px; border: 1px solid var(--border); color: var(--muted); }

/* Simple dropdown (Know) */
.dropdown { position: absolute; top: 110%; right: 0; display: none; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 8px; z-index: 80; min-width: 180px; }
.dropdown a { display: block; color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: 8px; }
.dropdown a:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.has-dropdown:hover > .dropdown, .has-dropdown:focus-within > .dropdown { display: block; }

/* Responsive */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .header__cta { display: none; }
  .nav__toggle { display: inline-block; }
  .nav__list { position: absolute; top: 64px; right: 20px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 10px; display: none; flex-direction: column; gap: 10px; }
  .nav__list.is-open { display: flex; }
  .has-dropdown { width: 100%; }
  .mega { position: static; transform: none; min-width: 0; max-width: none; width: 100%; margin-top: 8px; overflow: visible; }
  .mega.is-open { grid-template-columns: 1fr; }
  .has-dropdown:hover .mega, .has-dropdown:focus-within .mega { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: 1fr; }
  .h1 { font-size: 44px; }
  .h2 { font-size: 32px; }
  .section { padding: 80px 0; }
}


