:root {
  --bg: #07080c;
  --ink: #eef0f6;
  --muted: #8a91a6;
  --faint: #4d5468;
  --line: rgba(255, 255, 255, .08);
  --cyan: #5ef2ff;
  --violet: #8a5cff;
  --magenta: #ff4fd8;
  --sans: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
}
img, svg { -webkit-user-drag: none; user-drag: none; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* ------------------------------------------------------------ art layers */
#glow, #rim { position: fixed; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
#glow { filter: blur(26px); opacity: .85; }
.dots {
  position: fixed; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .11) 1px, transparent 1.3px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 25%, transparent 85%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 25%, transparent 85%);
}
/* brighter dots in a circle around the pointer (position set by art.js) */
.dots.hot {
  background-image: radial-gradient(rgba(200, 190, 255, .26) 1.1px, transparent 1.5px);
  -webkit-mask-image: radial-gradient(circle 150px at var(--mx, -999px) var(--my, -999px), #000, transparent);
  mask-image: radial-gradient(circle 150px at var(--mx, -999px) var(--my, -999px), #000, transparent);
  opacity: var(--mon, 0);
}
.scrim {
  position: fixed; inset: 0; pointer-events: none;
  background:
    radial-gradient(55% 65% at 16% 50%, rgba(7, 8, 12, .85) 0%, rgba(7, 8, 12, .4) 55%, transparent 80%);
}

/* ------------------------------------------------------------ layout */
.page {
  position: relative; z-index: 1;
  height: 100dvh;
  display: grid; grid-template-rows: auto 1fr auto;
  padding: clamp(20px, 3.2vw, 44px) clamp(20px, 5vw, 72px);
  padding-bottom: max(clamp(18px, 2.6vw, 32px), env(safe-area-inset-bottom));
}

.top { display: flex; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: .01em; font-size: 21px; }
.mark { width: 36px; height: 36px; }

.km b { font-weight: inherit; color: #00c2ff; }

.hero {
  align-self: center; width: 100%;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 440px); align-items: center;
  gap: clamp(32px, 6vw, 110px);
}
.apps { display: grid; gap: 12px; }
.eyebrow {
  margin: 0 0 18px; font: 500 12px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}
.eyebrow.tagline { margin: 0; }
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 1px; margin-right: 12px; vertical-align: middle; background: linear-gradient(90deg, var(--cyan), var(--violet)); }
h1 {
  margin: 0; font-weight: 600; letter-spacing: -.035em; line-height: 1.02;
  font-size: clamp(40px, 6.4vw, 92px);
}
.glow {
  background: linear-gradient(100deg, var(--cyan) 0%, var(--violet) 45%, var(--magenta) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { margin: 22px 0 0; max-width: 30em; color: var(--muted); font-size: clamp(15px, 1.25vw, 18px); }

/* ------------------------------------------------------------ app card */
.app {
  display: flex; align-items: center; gap: 16px;
  max-width: 470px; width: 100%; padding: 14px 18px 14px 14px;
  border: 1px solid var(--line); border-radius: 18px;
  background: rgba(16, 18, 26, .55);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: border-color .25s, transform .25s, background .25s;
}
.app:hover { border-color: rgba(138, 92, 255, .55); background: rgba(22, 24, 36, .7); transform: translateY(-2px); }
.app-icon.rounded { border-radius: 12px; }
.app-icon { width: 48px; height: 48px; flex: none; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.app:hover .app-icon:not(.rounded) { transform: rotate(30deg); }
.app-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.app-name { font-weight: 600; font-size: 17px; }
.app-name em {
  margin-left: 8px; padding: 2px 7px; border-radius: 99px; vertical-align: 2px;
  font: 600 10px/1.4 var(--mono); font-style: normal; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cyan); background: rgba(94, 242, 255, .1);
}
.app-desc { color: var(--muted); font-size: 14px; }
.arrow { width: 22px; height: 22px; flex: none; color: var(--muted); transition: transform .25s, color .25s; }
.app:hover .arrow { transform: translateX(3px); color: var(--ink); }
.soon-card { opacity: .55; border-style: dashed; }
.soon-card:hover { transform: none; border-color: var(--line); background: rgba(16, 18, 26, .55); }
.soon-card .app-name em { color: var(--muted); background: rgba(255, 255, 255, .06); }
.placeholder {
  display: grid; place-items: center; border-radius: 50%;
  border: 1.5px dashed rgba(138, 92, 255, .6); color: var(--muted); font: 600 20px var(--sans);
}
.soon-card:hover .placeholder { transform: none; }

/* ------------------------------------------------------------ footer */
.foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 22px;
  font-size: 12.5px; color: var(--faint);
}
.foot a { transition: color .2s; }
.foot a:hover { color: var(--ink); }
.foot > a { color: var(--muted); }
.legal { display: flex; gap: 16px; opacity: .7; }

/* ------------------------------------------------------------ legal overlay + pages */
dialog {
  width: min(680px, calc(100vw - 32px)); max-height: min(80dvh, 760px);
  padding: 0; border: 1px solid var(--line); border-radius: 18px;
  background: #0d0f16; color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
dialog::backdrop { background: rgba(4, 5, 8, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog[open] { animation: rise .25s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.legal-body { max-height: inherit; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #2a2f3d transparent;padding: 34px clamp(20px, 5vw, 44px) 36px; }
.close {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .06); color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer;
}
.close:hover { color: var(--ink); background: rgba(255, 255, 255, .12); }

.doc h1 { font-size: 28px; letter-spacing: -.02em; margin-bottom: 18px; }
.doc h2 { margin: 26px 0 6px; font-size: 15px; font-weight: 600; }
.doc p, .doc li { margin: 0 0 10px; color: #b7bdcc; font-size: 14.5px; }
.doc ul { padding-left: 20px; margin: 0 0 10px; }
.doc a { color: var(--cyan); }
.doc .small { color: var(--muted); font-size: 13px; }
body.legal-page { overflow: auto; }
.legal-page main { max-width: 680px; margin: 0 auto; padding: 56px 20px 80px; }
.legal-page .back { display: inline-block; margin-bottom: 30px; color: var(--muted); font-size: 14px; }

/* ------------------------------------------------------------ small screens */
@media (max-width: 900px) {
  body.home { overflow: auto; }
  .home .page { height: auto; min-height: 100dvh; row-gap: 28px; }
  .hero { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 640px) {
  .tagline { display: none; }
  .scrim { background: linear-gradient(180deg, rgba(7, 8, 12, .1), rgba(7, 8, 12, .55) 30%, rgba(7, 8, 12, .4) 60%, transparent 75%); }
  .lede { margin: 16px 0 26px; }
  .foot { justify-content: flex-start; }
  .foot { gap: 6px 16px; }
}
@media (max-height: 600px) {
  body { overflow: auto; }
  .page { height: auto; min-height: 100dvh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
