:root {
  color-scheme: light dark;
  --bg: #f5f7fc;
  --bg-2: #e9eefa;
  --fg: #0d1424;
  --muted: #4c5870;
  --card: rgba(255, 255, 255, .78);
  --card-hover: #fff;
  --line: rgba(13, 20, 36, .09);
  --accent: #2f6fe8;
  --glow-1: rgba(47, 123, 255, .30);
  --glow-2: rgba(47, 209, 139, .22);
  --glow-3: rgba(140, 92, 255, .22);
  --chip: rgba(13, 20, 36, .05);
  --btn-fg: #fff;
  --btn-bg: #0d1424;
  --shadow: 0 1px 2px rgba(13, 20, 36, .06), 0 12px 32px -12px rgba(13, 20, 36, .18);
  --radius: 22px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070b14;
    --bg-2: #0c1322;
    --fg: #eef2fb;
    --muted: #9aa6bd;
    --card: rgba(255, 255, 255, .035);
    --card-hover: rgba(255, 255, 255, .06);
    --line: rgba(255, 255, 255, .09);
    --accent: #6ea3ff;
    --glow-1: rgba(47, 123, 255, .34);
    --glow-2: rgba(47, 209, 139, .20);
    --glow-3: rgba(140, 92, 255, .26);
    --chip: rgba(255, 255, 255, .07);
    --btn-fg: #070b14;
    --btn-bg: #eef2fb;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -16px rgba(0, 0, 0, .7);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Aurora background: three blurred blobs drifting slowly (transform only, GPU friendly). */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0, var(--bg) 92vh);
}
.blob { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(70px); opacity: .9; }
.blob.b1 { background: radial-gradient(circle, var(--glow-1), transparent 62%); top: -28vmax; left: -14vmax; animation: drift1 26s ease-in-out infinite alternate; }
.blob.b2 { background: radial-gradient(circle, var(--glow-2), transparent 62%); top: -20vmax; right: -22vmax; animation: drift2 32s ease-in-out infinite alternate; }
.blob.b3 { background: radial-gradient(circle, var(--glow-3), transparent 62%); top: 18vmax; left: 20vmax; animation: drift3 38s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(12vmax, 8vmax) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-10vmax, 14vmax) scale(.9); } }
@keyframes drift3 { to { transform: translate(-16vmax, -6vmax) scale(1.2); } }

/* Header */
header.top { position: sticky; top: 0; z-index: 10; backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
header.top.scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bg) 70%, transparent); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 700; letter-spacing: -.02em; font-size: 19px; }
.brand:hover { text-decoration: none; }
.mark { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; font: 700 14px/1 ui-monospace, SFMono-Regular, Menlo, monospace; background: linear-gradient(135deg, #2f7bff, #8c5cff 55%, #2fd18b); background-size: 200% 200%; animation: shift 8s ease-in-out infinite alternate; }
@keyframes shift { to { background-position: 100% 100%; } }
nav.top { display: flex; gap: 6px; align-items: center; font-size: 15px; }
nav.top a { color: var(--muted); padding: 6px 10px; border-radius: 999px; }
nav.top a:hover { color: var(--fg); background: var(--chip); text-decoration: none; }
nav.top a.lang { border: 1px solid var(--line); color: var(--fg); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 72px 0 56px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); border: 1px solid var(--line); background: var(--card); padding: 6px 12px; border-radius: 999px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #2fd18b; box-shadow: 0 0 0 0 rgba(47, 209, 139, .6); animation: ping 2.4s ease-out infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(47, 209, 139, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 209, 139, 0); } }
h1 { font-size: clamp(40px, 6.4vw, 72px); line-height: 1.02; letter-spacing: -.045em; margin: 22px 0 18px; font-weight: 750; }
h1 .w { display: inline-block; }
h1 .grad { background: linear-gradient(100deg, #2f7bff, #8c5cff 45%, #2fd18b 90%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shift 6s ease-in-out infinite alternate; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 34em; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 16px; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn.primary { background: var(--btn-bg); color: var(--btn-fg); box-shadow: var(--shadow); }
.btn.ghost { border: 1px solid var(--line); color: var(--fg); background: var(--card); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* Orbit of app icons */
.orbit { position: relative; width: min(100%, 380px); aspect-ratio: 1; margin: 0 auto; }
.orbit .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed var(--line); }
.orbit .ring.inner { inset: 22%; }
.orbit .spin { position: absolute; inset: 0; animation: spin 48s linear infinite; }
.orbit .slot { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px; transform: rotate(var(--a)) translate(calc(min(100vw - 40px, 380px) / 2)) rotate(calc(-1 * var(--a))); }
.orbit .slot img { width: 100%; height: 100%; border-radius: 22%; box-shadow: var(--shadow); animation: spin 48s linear infinite reverse; display: block; }
.orbit .core { position: absolute; inset: 36%; border-radius: 30%; display: grid; place-items: center; background: linear-gradient(135deg, #2f7bff, #8c5cff 55%, #2fd18b); background-size: 200% 200%; animation: shift 8s ease-in-out infinite alternate, float 6s ease-in-out infinite; color: #fff; font: 700 clamp(22px, 4vw, 30px)/1 ui-monospace, SFMono-Regular, Menlo, monospace; box-shadow: 0 20px 60px -10px var(--glow-3); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { translate: 0 -8px; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 8px 0 88px; }
.stats div { background: var(--bg-2); padding: 22px 24px; }
.stats b { display: block; font-size: 30px; letter-spacing: -.03em; line-height: 1.1; }
.stats span { color: var(--muted); font-size: 15px; }

/* Apps */
section h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.035em; line-height: 1.1; margin: 0 0 10px; }
section .sub { color: var(--muted); margin: 0 0 32px; max-width: 36em; }
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; list-style: none; padding: 0; margin: 0 0 96px; }
.app {
  --mx: 50%; --my: 50%;
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 24px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), background .3s;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  isolation: isolate;
}
.app::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx) var(--my), var(--tint, var(--glow-1)), transparent 45%);
}
.app:hover { background: var(--card-hover); }
.app:hover::before { opacity: 1; }
.app .head { display: flex; gap: 14px; align-items: center; }
.app img { width: 64px; height: 64px; border-radius: 22%; flex: none; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .35); transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.app:hover img { transform: scale(1.06) rotate(-3deg); }
.app h3 { margin: 0; font-size: 21px; letter-spacing: -.02em; }
.app h3 a { color: var(--fg); }
.app h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* whole card links to the app site */
.app p { margin: 0; color: var(--muted); font-size: 16px; flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip { font-size: 13px; padding: 3px 10px; border-radius: 999px; background: var(--chip); color: var(--muted); }
.app .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.store { position: relative; z-index: 1; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: var(--btn-bg); color: var(--btn-fg); }
.store:hover { text-decoration: none; filter: brightness(1.1); }
.store.soon { background: var(--chip); color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot, #2fd18b); }
.status.soon { --dot: #f5a524; }

/* Values */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0 0 96px; }
.value { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.value .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--chip); margin-bottom: 14px; }
.value .ic svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.value h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -.01em; }
.value p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Contact + footer */
.contact { text-align: center; padding: 56px 24px; border-radius: 28px; border: 1px solid var(--line); background: linear-gradient(135deg, color-mix(in srgb, var(--glow-1) 50%, transparent), color-mix(in srgb, var(--glow-3) 40%, transparent)); margin-bottom: 64px; }
.contact h2 { margin-bottom: 8px; }
.contact p { color: var(--muted); margin: 0 0 22px; }
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer a { color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }

/* Entrance animations: hero words rise in; sections reveal on scroll (only when JS runs). */
.rise { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 70ms + 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 80ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .app.reveal.in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 40px 0 40px; gap: 28px; }
  .orbit { width: min(100%, 240px); order: -1; }
  .orbit .slot { width: 52px; height: 52px; margin: -26px; transform: rotate(var(--a)) translate(calc(min(100vw - 40px, 240px) / 2)) rotate(calc(-1 * var(--a))); }
  .values { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; margin-bottom: 64px; }
  .stats div { padding: 14px 18px; display: flex; align-items: baseline; gap: 14px; }
  .stats b { font-size: 22px; min-width: 64px; }
  nav.top a:not(.lang) { display: none; }
}
@media (max-width: 380px) { .apps { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
