:root {
  --bg: #07060d;
  --bg-2: #0e0c1a;
  --text: #f3f1ff;
  --muted: #a39fc0;
  --line: rgba(255, 255, 255, 0.08);
  --violet: #7c5cff;
  --cyan: #40d9ff;
  --grad: linear-gradient(120deg, var(--violet), var(--cyan));
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { color-scheme: dark; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }

/* Background glow */
.glow {
  position: fixed; inset: -20vmax -20vmax auto auto; width: 70vmax; height: 70vmax;
  background: radial-gradient(closest-side, rgba(124, 92, 255, 0.28), transparent 70%);
  filter: blur(20px); pointer-events: none; z-index: -1;
  animation: drift 18s ease-in-out infinite alternate;
}
.glow.two {
  inset: auto auto -25vmax -25vmax;
  background: radial-gradient(closest-side, rgba(64, 217, 255, 0.18), transparent 70%);
  animation-duration: 24s;
}
@keyframes drift { to { transform: translate(-6vmax, 6vmax) scale(1.1); } }

/* Nav */
nav { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; font-size: 18px; }
.brand svg { width: 30px; height: 30px; }
nav .links { display: flex; gap: 22px; font-size: 14px; color: var(--muted); }
nav .links a { text-decoration: none; }
nav .links a:hover { color: var(--text); }

/* Hero */
.hero { text-align: center; padding: 72px 0 40px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(124, 92, 255, 0.12); border: 1px solid rgba(124, 92, 255, 0.35); color: #cfc4ff;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }

h1 {
  font-size: clamp(40px, 7vw, 76px); line-height: 1.03; letter-spacing: -0.045em; font-weight: 800;
  margin: 22px auto 18px; max-width: 14ch;
}
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 40rem; margin-inline: auto; }

.cta { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 12px;
  font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04); transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); background: rgba(255, 255, 255, 0.08); }
.btn.primary { background: var(--grad); border: none; color: #fff; box-shadow: 0 10px 40px -10px rgba(124, 92, 255, .8); }
.kbd { font-family: ui-monospace, "SF Mono", monospace; font-size: 13px; padding: 2px 7px; border-radius: 6px; background: rgba(255,255,255,.08); border: 1px solid var(--line); }

/* Demo */
.demo { margin: 56px auto 0; max-width: 860px; position: relative; }
.window {
  border-radius: var(--radius); background: #f7f6fb; color: #1c1a26; overflow: hidden; position: relative;
  box-shadow: 0 40px 120px -30px rgba(124, 92, 255, .55), 0 0 0 1px rgba(255,255,255,.06);
}
.titlebar { height: 38px; background: #e9e7f1; display: flex; align-items: center; gap: 8px; padding-left: 14px; }
.titlebar i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.titlebar i:nth-child(1) { background: #ff5f57; } .titlebar i:nth-child(2) { background: #febc2e; } .titlebar i:nth-child(3) { background: #28c840; }
.page { padding: 34px 40px 40px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; text-align: left; position: relative; }
.page h3 { font-size: 26px; letter-spacing: -0.02em; }
.page p { font-size: 15px; color: #4a4659; }
.blk { border-radius: 10px; padding: 8px 10px; margin: -8px -10px 14px; position: relative; }
.qr { width: 112px; height: 112px; border-radius: 12px; background:
  conic-gradient(from 90deg at 30% 30%, #1c1a26 25%, transparent 0) 0 0/28px 28px,
  repeating-linear-gradient(45deg, #1c1a26 0 6px, transparent 6px 12px); opacity: .9; }

/* dim + ring that snap between blocks */
.dim { position: absolute; inset: 38px 0 0 0; background: rgba(8, 6, 20, 0.45); pointer-events: none; }
.ring {
  position: absolute; border-radius: 10px; border: 2px solid var(--violet);
  box-shadow: 0 0 0 9999px rgba(8, 6, 20, 0.45), 0 0 24px 2px rgba(124, 92, 255, .9);
  transition: all .28s cubic-bezier(.2, .8, .2, 1); pointer-events: none;
}
.cursor { position: absolute; width: 22px; height: 22px; transition: all .45s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.cursor::before, .cursor::after { content: ""; position: absolute; background: #fff; box-shadow: 0 0 0 1px #000; }
.cursor::before { left: 10px; top: 0; width: 2px; height: 22px; }
.cursor::after { top: 10px; left: 0; height: 2px; width: 22px; }

.hint {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  background: rgba(20, 18, 32, .78); backdrop-filter: blur(12px); color: #fff; font-size: 13px; font-weight: 500;
  padding: 8px 16px; border-radius: 999px; white-space: nowrap;
}
.preview-card {
  position: absolute; right: -24px; bottom: -36px; width: 300px; padding: 16px; border-radius: 16px;
  background: rgba(22, 19, 38, .92); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.8); text-align: left; font-size: 13px;
  opacity: 0; transform: translateY(12px) scale(.98); transition: all .35s ease;
}
.preview-card.show { opacity: 1; transform: none; }
.tabs { display: flex; gap: 4px; margin: 10px 0; flex-wrap: wrap; }
.tabs span { padding: 3px 8px; border-radius: 7px; background: rgba(255,255,255,.06); color: var(--muted); font-size: 11.5px; }
.tabs span.on { background: var(--violet); color: #fff; }
.copied { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; color: #7ef0c1; }

/* Features */
section { padding: 96px 0 0; }
.eyebrow { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--cyan); font-weight: 700; }
h2 { font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -0.035em; line-height: 1.1; margin: 10px 0 14px; }
.sub { color: var(--muted); max-width: 40rem; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.card {
  padding: 24px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid var(--line); transition: border-color .2s, transform .2s;
}
.card:hover { border-color: rgba(124, 92, 255, .5); transform: translateY(-2px); }
.card .ic {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 14px;
  background: rgba(124, 92, 255, .15); color: #c7b9ff;
}
.card .ic svg { width: 21px; height: 21px; }
.card h4 { font-size: 17px; margin-bottom: 6px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 14.5px; }

/* Compare */
table { width: 100%; border-collapse: collapse; margin-top: 34px; font-size: 15px; }
th, td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-weight: 600; font-size: 13px; }
td.y { color: #7ef0c1; font-weight: 700; } td.n { color: #6d6890; }
.table-wrap { overflow-x: auto; }

/* Final CTA */
.final {
  margin: 110px 0 0; padding: 56px 28px; border-radius: 26px; text-align: center;
  background: radial-gradient(120% 140% at 50% 0%, rgba(124, 92, 255, .35), rgba(64, 217, 255, .08) 60%, transparent), var(--bg-2);
  border: 1px solid rgba(124, 92, 255, .3);
}

footer { padding: 56px 0 40px; color: var(--muted); font-size: 13.5px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { text-decoration: none; margin-left: 18px; } footer a:hover { color: var(--text); }

/* Legal / support pages */
.doc { max-width: 760px; padding: 40px 0 20px; }
.doc h1 { font-size: clamp(34px, 5vw, 50px); margin: 10px 0 8px; max-width: none; }
.doc .updated { color: var(--muted); font-size: 14px; margin-bottom: 34px; }
.doc h2 { font-size: 22px; margin: 34px 0 8px; letter-spacing: -0.02em; }
.doc p, .doc li { color: #cfcbe6; }
.doc ul { padding-left: 22px; margin: 8px 0; }
.doc .callout { margin: 24px 0; padding: 18px 20px; border-radius: 14px; background: rgba(124,92,255,.1); border: 1px solid rgba(124,92,255,.3); }
details { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin: 12px 0; background: rgba(255,255,255,.02); }
summary { cursor: pointer; font-weight: 600; }
details p { margin-top: 10px; }

@media (max-width: 820px) {
  .grid { grid-template-columns: 1fr; }
  .page { grid-template-columns: 1fr; padding: 26px 22px 70px; }
  .preview-card { position: relative; right: auto; bottom: auto; width: auto; margin: 16px; }
  nav .links a.hide-sm { display: none; }
  footer a { margin: 0 18px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
