:root {
  --indigo: #5b4bf5;
  --indigo-deep: #3b2bb5;
  --teal: #14c8b4;
  --ink: #1d1b2e;
  --muted: #6e6b85;
  --bg: #fbfbfe;
  --surface: #ffffff;
  --surface-alt: #f3f2fa;
  --border: #e3e1ee;
  --night: #0b0a14;
  --radius: 20px;
  --shadow: 0 24px 60px -24px rgba(40, 30, 120, 0.35);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #eeedf7;
    --muted: #9a97b3;
    --bg: #12111c;
    --surface: #1e1d2b;
    --surface-alt: #191826;
    --border: #34324a;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  }
}
:root[data-theme="dark"] {
  --ink: #eeedf7;
  --muted: #9a97b3;
  --bg: #12111c;
  --surface: #1e1d2b;
  --surface-alt: #191826;
  --border: #34324a;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

kbd {
  font: 600 0.82em/1 "Inter", sans-serif;
  padding: 0.28em 0.5em;
  border-radius: 6px;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  background: var(--surface);
  color: var(--ink);
  white-space: nowrap;
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 10, 20, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: #fff; text-decoration: none; letter-spacing: -0.01em; }
.brand img { border-radius: 8px; }
.brand.small { font-size: 15px; color: var(--ink); }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: rgba(255, 255, 255, 0.72); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.btn-primary { background: linear-gradient(120deg, var(--indigo), #7a5cff 55%, var(--teal)); color: #fff; box-shadow: 0 12px 30px -10px rgba(91, 75, 245, 0.7); }
.btn-ghost { background: rgba(255, 255, 255, 0.08); color: #fff; border: 1px solid rgba(255, 255, 255, 0.22); }
.btn-small { padding: 9px 16px; font-size: 14px; }

/* Hero */
.hero { position: relative; background: var(--night); color: #fff; overflow: hidden; padding: 112px 0 220px; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--night) 0%, rgba(11, 10, 20, 0.86) 34%, rgba(11, 10, 20, 0.15) 70%),
    linear-gradient(0deg, var(--night) 0%, transparent 35%),
    url("assets/hero.jpg") right center / cover no-repeat;
}
.hero-inner { position: relative; max-width: 1160px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 12.5px; font-weight: 700; color: var(--teal); margin: 0 0 14px; }
.hero h1 { font-size: clamp(44px, 7vw, 84px); line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 22px; font-weight: 800; }
.grad { background: linear-gradient(100deg, #8f83ff, var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(17px, 2vw, 20px); color: rgba(255, 255, 255, 0.78); max-width: 560px; margin: 0 0 30px; }
.lede kbd { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.25); color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-row.center { justify-content: center; }
.fine { font-size: 13.5px; color: rgba(255, 255, 255, 0.55); margin: 18px 0 0; }

/* Product shot */
.showcase { position: relative; margin-top: -170px; z-index: 2; }
.window { margin: 0; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 40px 100px -30px rgba(20, 10, 80, 0.55); }
.window-bar { height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: var(--surface-alt); border-bottom: 1px solid var(--border); }
.window-bar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.window-bar i:nth-child(2) { background: #febc2e; }
.window-bar i:nth-child(3) { background: #28c840; }
.window-bar span { margin: 0 auto; font-size: 12.5px; color: var(--muted); transform: translateX(-30px); }

/* Sections */
.section { padding: 110px 0 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head .eyebrow { color: var(--indigo); }
h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.12; letter-spacing: -0.025em; margin: 0; font-weight: 800; }
h3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 14px; }
h4 { font-size: 17px; margin: 0 0 6px; }

.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; margin-bottom: 96px; }
.feature img { border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }
.feature p { color: var(--muted); font-size: 17px; margin: 0 0 18px; }
.feature.flip img { order: 2; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; font-weight: 500; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo), var(--teal));
  -webkit-mask: radial-gradient(circle, transparent 4px, #000 4.5px);
          mask: radial-gradient(circle, transparent 4px, #000 4.5px);
}

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 26px; transition: border-color 0.15s, transform 0.15s; }
.card:hover { border-color: var(--indigo); transform: translateY(-2px); }
.card .ico { font-size: 26px; display: block; margin-bottom: 12px; }
.card p { color: var(--muted); margin: 0; font-size: 15px; }

.how { margin-top: 110px; padding: 100px 0; background: var(--surface-alt); border-block: 1px solid var(--border); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 28px; }
.steps span { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 16px; color: #fff; font-weight: 800; background: linear-gradient(135deg, var(--indigo), var(--teal)); }
.steps p { color: var(--muted); margin: 0; }

.table-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); }
.keys { width: 100%; border-collapse: collapse; font-size: 15px; }
.keys td { padding: 16px 20px; border-bottom: 1px solid var(--border); }
.keys tr:last-child td { border-bottom: 0; }
.keys td:nth-child(odd) { width: 18%; white-space: nowrap; }
.keys td:nth-child(even) { color: var(--muted); }

/* Final CTA */
.final { position: relative; margin-top: 120px; background: var(--night); color: #fff; overflow: hidden; text-align: center; padding: 110px 0; }
.final-bg { position: absolute; inset: 0; background: radial-gradient(60% 80% at 50% 0%, rgba(91, 75, 245, 0.45), transparent 70%), radial-gradient(50% 60% at 80% 100%, rgba(20, 200, 180, 0.3), transparent 70%); }
.final-inner { position: relative; }
.final img { margin: 0 auto 24px; border-radius: 26px; }
.final h2 { max-width: 760px; margin: 0 auto 12px; }
.final > .final-inner > p { color: rgba(255, 255, 255, 0.72); font-size: 18px; margin: 0 0 30px; }

.footer { padding: 30px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
  .hero { padding: 72px 0 140px; }
  .hero-bg { background: linear-gradient(0deg, var(--night) 10%, rgba(11, 10, 20, 0.7) 60%, rgba(11, 10, 20, 0.5)), url("assets/hero.jpg") center / cover no-repeat; }
  .showcase { margin-top: -100px; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 28px; margin-bottom: 64px; }
  .feature.flip img { order: 0; }
  .grid, .steps { grid-template-columns: 1fr; }
  .section { padding-top: 72px; }
  .btn { width: 100%; }
  .btn-small { width: auto; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}
