:root {
  --bg: #f6f7fc;
  --surface: #ffffff;
  --text: #121a33;
  --muted: #4c566e;
  --border: #e0e4f0;
  --accent: #4338ca;
  --navy: #0b1030;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #090d1f; --surface: #131a33; --text: #eef1fb; --muted: #b3bbd4; --border: #27305299; --accent: #a5b4fc; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--bg); color: var(--text); font: 0.975rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
a:focus-visible { outline: 3px solid #f59e0b; outline-offset: 3px; }
ul { list-style: none; margin: 0; padding: 0; }
.wrap { width: min(100% - 2rem, 68rem); margin-inline: auto; }
.skip { position: absolute; left: -999rem; z-index: 20; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); padding: .5rem 1rem; }

/* Header */
.bar { position: sticky; top: 0; z-index: 10; background: rgb(11 16 48 / .88); backdrop-filter: blur(10px); color: #fff; }
.bar-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem; padding-block: .7rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: #fff; text-decoration: none; }
nav { display: flex; gap: .25rem; }
nav a { color: #dbe0ff; text-decoration: none; padding: .45rem .8rem; border-radius: 999px; }
nav a:hover { background: rgb(255 255 255 / .12); color: #fff; }

/* Hero */
.hero { position: relative; overflow: hidden; isolation: isolate; color: #fff; text-align: center;
  background: radial-gradient(circle at 50% -20%, #312e81, var(--navy) 70%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgb(255 255 255 / .06) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .06) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at center, #000, transparent 75%); }
.glow { position: absolute; z-index: -1; width: 26rem; height: 26rem; border-radius: 50%; filter: blur(90px); opacity: .45; animation: drift 14s ease-in-out infinite alternate; }
.glow-a { background: #6366f1; top: -8rem; left: -6rem; }
.glow-b { background: #06b6d4; bottom: -12rem; right: -6rem; animation-delay: -7s; }
.hero-inner { padding-block: clamp(4rem, 10vw, 7rem); animation: rise .7s ease-out both; }
.eyebrow { display: inline-block; margin: 0 0 1rem; padding: .25rem .8rem; border: 1px solid rgb(255 255 255 / .25); border-radius: 999px; font-size: .85rem; color: #c7d2fe; }
h1 { max-width: 18ch; margin: 0 auto 1rem; font-size: clamp(2rem, 5.5vw, 3.4rem); line-height: 1.12; letter-spacing: -.02em; }
.gradient { background: linear-gradient(90deg, #a5b4fc, #67e8f9); background-clip: text; -webkit-background-clip: text; color: transparent; }
.lead { max-width: 36rem; margin: 0 auto 2rem; font-size: 1.1rem; color: #cbd2f5; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.button { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1.4rem; border-radius: 999px; font-weight: 600; text-decoration: none; color: #fff;
  background: linear-gradient(90deg, #4f46e5, #0e7490); transition: transform .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgb(79 70 229 / .45); }
.button.ghost { background: transparent; border: 1px solid rgb(255 255 255 / .35); }

/* Sections */
.section { padding-top: 4rem; text-align: center; }
h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.01em; }
.sub { margin: .4rem 0 2rem; color: var(--muted); }

/* Product cards */
.cards, .features { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); text-align: left; }
.card { --c1: #4f46e5; --c2: #06b6d4; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border); border-radius: 1rem; padding: 1.6rem; box-shadow: 0 4px 18px rgb(18 26 51 / .07); transition: transform .25s, box-shadow .25s; }
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--c1), var(--c2)); }
.card:not(.more):hover, .card:not(.more):focus-within { transform: translateY(-6px); box-shadow: 0 18px 40px rgb(18 26 51 / .18); }
.safety { --c1: #c2410c; --c2: #15803d; }
.more { border-style: dashed; box-shadow: none; --c1: #64748b; --c2: #94a3b8; }
.badge { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: .8rem; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.card h3 { margin: 1rem 0 .35rem; font-size: 1.2rem; }
.card p { margin: 0 0 1rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.25rem; }
.chips li { font-size: .78rem; padding: .15rem .65rem; border: 1px solid var(--border); border-radius: 999px; }
.open { margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; font-weight: 700; text-decoration: none; }
.open::after { content: ""; position: absolute; inset: 0; } /* whole card is clickable */
.open span { transition: transform .2s; }
.card:hover .open span { transform: translateX(5px); }

/* Features */
.features li { background: var(--surface); border: 1px solid var(--border); border-radius: 1rem; padding: 1.4rem; }
.features .icon { color: var(--accent); }
.features h3 { margin: .6rem 0 .25rem; font-size: 1.05rem; }
.features p { margin: 0; color: var(--muted); }

.band { background: linear-gradient(120deg, #1e1b4b, #164e63); color: #fff; border-radius: 1.25rem; padding: 2.5rem 1.5rem; }
.band h2 { margin-bottom: 1.25rem; }

footer { margin-top: 4rem; background: var(--navy); color: #b9c0e0; text-align: center; padding-block: .75rem; }

@keyframes drift { to { transform: translate(5rem, 3rem) scale(1.15); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

@supports (animation-timeline: view()) {
  .card, .features li { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
