:root {
  --bg: #f6f7fb; --surface: #fff; --surface-2: #eef0f7; --border: #e3e6ef; --border-2: #cfd4e2;
  --text: #121826; --muted: #5d6679; --primary: #5145e5; --primary-2: #8b5cf6; --soft: rgba(81, 69, 229, .1);
  --glass: rgba(255, 255, 255, .75); --shadow: 0 16px 40px -12px rgba(16, 24, 40, .18);
  --red-bg: #fee4e2; --red: #b42318; --amber-bg: #fef0c7; --amber: #93370d; --green-bg: #dcfae6; --green: #067647;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b0e14; --surface: #121722; --surface-2: #1c2333; --border: #222a3a; --border-2: #303a4f;
  --text: #e8ecf4; --muted: #8f9bb3; --primary: #8b83ff; --primary-2: #c084fc; --soft: rgba(139, 131, 255, .14);
  --glass: rgba(14, 18, 27, .75); --shadow: 0 16px 40px -8px rgba(0, 0, 0, .6);
  --red-bg: rgba(239, 68, 68, .15); --red: #fca5a5; --amber-bg: rgba(245, 158, 11, .15); --amber: #fcd34d;
  --green-bg: rgba(34, 197, 94, .15); --green: #86efac;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0e14; --surface: #121722; --surface-2: #1c2333; --border: #222a3a; --border-2: #303a4f;
    --text: #e8ecf4; --muted: #8f9bb3; --primary: #8b83ff; --primary-2: #c084fc; --soft: rgba(139, 131, 255, .14);
    --glass: rgba(14, 18, 27, .75); --shadow: 0 16px 40px -8px rgba(0, 0, 0, .6);
    --red-bg: rgba(239, 68, 68, .15); --red: #fca5a5; --amber-bg: rgba(245, 158, 11, .15); --amber: #fcd34d;
    --green-bg: rgba(34, 197, 94, .15); --green: #86efac;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); overflow-x: clip;
  font: 16px/1.6 "Inter", "Segoe UI Variable Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
h3 { margin-bottom: 6px; font-size: 1.05rem; }
ul, ol { list-style: none; padding: 0; margin: 0; }
.muted { color: var(--muted); }
.wrap { max-width: 1140px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

.blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blobs span { position: absolute; width: 480px; height: 480px; border-radius: 50%; filter: blur(100px); opacity: .2; animation: drift 24s ease-in-out infinite alternate; }
.blobs span:first-child { background: var(--primary); top: -180px; right: -100px; }
.blobs span:last-child { background: #ec4899; bottom: -200px; left: -150px; animation-delay: -10s; }
@keyframes drift { to { transform: translate(-60px, 50px) scale(1.15); } }

.topbar { position: sticky; top: 0; z-index: 10; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.bar { display: flex; align-items: center; gap: 20px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 750; }
.mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--primary), var(--primary-2)); }
.nav { flex: 1; display: flex; justify-content: center; gap: 6px; }
.nav a { color: var(--muted); padding: 6px 12px; border-radius: 8px; font-size: .92rem; font-weight: 550; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.bar-right { display: flex; align-items: center; gap: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 16px;
  border: 1px solid transparent; border-radius: 10px; font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: transform .15s, box-shadow .2s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; }
.btn-primary:hover { box-shadow: 0 8px 22px -8px var(--primary); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-2); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-lg { height: 50px; padding: 0 24px; font-size: 1rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-white { background: #fff; color: #312e81; }

.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 56px; }
.hero > div { animation: up .6s both; }
@keyframes up { from { opacity: 0; transform: translateY(14px); } }
.pill { display: inline-block; padding: 5px 14px; border-radius: 999px; background: var(--soft); color: var(--primary); font-size: .83rem; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); line-height: 1.07; letter-spacing: -.04em; margin: 18px 0; }
.grad { background: linear-gradient(120deg, var(--primary), #ec4899); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 520px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.ticks { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 20px; color: var(--muted); font-size: .9rem; }
.ticks li::before, .plan li::before { content: "✓"; color: #22c55e; font-weight: 700; margin-right: 7px; }

.preview { position: relative; margin: 0; animation: up .8s .15s both; }
.window { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); padding: 0 18px 12px; }
.window-bar { display: flex; align-items: center; gap: 6px; padding: 12px 0; margin-bottom: 14px; border-bottom: 1px solid var(--border); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-2); }
.window-bar span { margin-left: auto; font-size: .76rem; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.stats div { display: grid; padding: 12px; border-radius: 12px; }
.stats b { font-size: 1.6rem; line-height: 1.1; }
.stats span { font-size: .76rem; }
.red { background: var(--red-bg); color: var(--red); }
.amber { background: var(--amber-bg); color: var(--amber); }
.green { background: var(--green-bg); color: var(--green); }
.health { display: flex; gap: 2px; height: 9px; border-radius: 999px; overflow: hidden; }
.health span { transform-origin: left; animation: grow 1s .4s both; }
.h-red { flex: 1; background: #ef4444; } .h-amber { flex: 2; background: #f59e0b; } .h-green { flex: 21; background: #22c55e; }
@keyframes grow { from { transform: scaleX(0); } }
.rows { margin-top: 8px; }
.rows li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.rows li:last-child { border-bottom: none; }
.ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--surface-2); font-size: .85rem; }
.name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; font-weight: 550; }
.badge { padding: 2px 10px; border-radius: 999px; font-size: .74rem; font-weight: 600; white-space: nowrap; }
.float { position: absolute; left: -20px; bottom: -22px; padding: 10px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); font-size: .85rem; font-weight: 600; animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }

.types { text-align: center; padding-top: 24px; }
.types ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.types li { padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .85rem; font-weight: 550; }

.section { padding-top: 88px; scroll-margin-top: 40px; }
.head { text-align: center; margin-bottom: 32px; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); letter-spacing: -.03em; line-height: 1.2; margin-bottom: 8px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px; }
.card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), var(--soft), transparent 55%); }
.card:hover::after { opacity: 1; }
.card p { color: var(--muted); margin-bottom: 0; }
.fico { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 14px; border-radius: 12px; background: var(--soft); font-size: 1.2rem; }
.num { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 14px; border-radius: 12px; color: #fff; font-weight: 750; background: linear-gradient(135deg, var(--primary), var(--primary-2)); }

.toggle { display: inline-flex; gap: 4px; padding: 4px; margin-top: 8px; background: var(--surface-2); border-radius: 999px; }
.toggle button { border: none; background: transparent; color: var(--muted); padding: 6px 18px; border-radius: 999px; font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer; }
.toggle button.on { background: var(--primary); color: #fff; }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.plan { display: flex; flex-direction: column; }
.plan.featured { border-color: var(--primary); box-shadow: 0 0 0 3px var(--soft), var(--shadow); }
.price { margin: 4px 0 14px; }
.price b { font-size: 2.1rem; letter-spacing: -.03em; }
.price small { margin-left: 5px; color: var(--muted); }
.plan ul { flex: 1; display: grid; gap: 8px; align-content: start; margin-bottom: 18px; font-size: .9rem; }
.plan li { padding-left: 20px; text-indent: -20px; }
.note { text-align: center; font-size: .86rem; }

.faq { max-width: 720px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 18px; }
.faq summary { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 1.2rem; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); }

.final { text-align: center; color: #fff; padding: 56px 24px; border-radius: 24px; background: linear-gradient(135deg, #312e81, #5145e5 55%, #a855f7); }
.final p { opacity: .85; margin-bottom: 22px; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 64px; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; }

.reveal { transition: opacity .6s, transform .6s, border-color .2s, box-shadow .2s; }
.reveal.pending { opacity: 0; transform: translateY(24px); }

@media (max-width: 980px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 40px; }
  .nav { display: none; }
  .bar-right { margin-left: auto; }
  .float { left: 8px; }
}
@media (max-width: 620px) {
  .plans, .grid3 { grid-template-columns: minmax(0, 1fr); }
  .brand-text { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
