:root {
  --bg: #050608;
  --bg-2: #0b0d12;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eef1f7;
  --muted: #9aa3b5;
  --dim: #6b7385;
  --blue: #2f7bff;
  --cyan: #19e3d0;
  --violet: #8b5cf6;
  --grad: linear-gradient(110deg, var(--blue) 0%, var(--cyan) 45%, var(--violet) 100%);
  --radius: 24px;
  --wrap: 1180px;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* ---------- Background ---------- */
.bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(47, 123, 255, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 20%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 20%, #000 0%, transparent 75%);
  opacity: 0.55;
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.35;
  will-change: transform; animation: drift 22s ease-in-out infinite alternate;
}
.orb.o1 { width: 520px; height: 520px; background: var(--blue); top: -180px; left: -120px; }
.orb.o2 { width: 460px; height: 460px; background: var(--violet); top: 120px; right: -160px; animation-duration: 28s; opacity: 0.28; }
.orb.o3 { width: 380px; height: 380px; background: var(--cyan); top: 520px; left: 30%; animation-duration: 34s; opacity: 0.16; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(60px, 40px, 0) scale(1.12); }
}
@media (max-width: 720px) {
  .orb { filter: blur(60px); }
  .orb.o1 { width: 320px; height: 320px; }
  .orb.o2 { width: 280px; height: 280px; }
  .orb.o3 { display: none; }
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 6, 8, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.08em; font-size: 15px; white-space: nowrap; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--grad); color: #04060a; font-weight: 800; font-size: 14px; letter-spacing: 0;
  box-shadow: 0 0 24px rgba(25, 227, 208, 0.35);
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 500;
  transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.lang {
  display: inline-flex; padding: 3px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface);
}
.lang button {
  appearance: none; border: 0; background: transparent; color: var(--muted); font: 600 12px var(--font-body);
  padding: 6px 10px; border-radius: 999px; cursor: pointer; letter-spacing: .04em;
}
.lang button[aria-pressed="true"] { background: var(--text); color: #05070b; }
.menu-btn {
  display: none; appearance: none; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--text); cursor: pointer; place-items: center;
}
.menu-btn svg { width: 20px; height: 20px; }
@media (max-width: 820px) {
  .menu-btn { display: grid; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px 16px 18px; background: rgba(7, 8, 12, 0.97); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { padding: 12px 14px; font-size: 16px; border-radius: 12px; }
}

/* ---------- Hero ---------- */
.hero { padding: 96px 0 72px; text-align: center; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted);
  font-size: 13px; font-weight: 500; letter-spacing: .02em;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.hero h1 {
  font-family: var(--font-display); font-weight: 800; margin: 26px 0 0;
  font-size: clamp(54px, 15vw, 132px); line-height: .95; letter-spacing: -0.035em;
}
.hero h1 .l1 { display: block; color: var(--text); }
.hero h1 .l2 {
  display: block; background: var(--grad); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 9s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 28px rgba(47, 123, 255, 0.35));
}
@keyframes sheen { to { background-position: 100% 0; } }
.slogan {
  margin: 22px auto 0; font-family: var(--font-display); font-size: clamp(17px, 2.4vw, 22px);
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 500;
}
@media (max-width: 480px) { .slogan { font-size: 15px; letter-spacing: .1em; } }
.lead { max-width: 620px; margin: 18px auto 0; color: var(--muted); font-size: 17px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 14px;
  font-weight: 600; font-size: 15px; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
  border: 1px solid transparent;
}
.btn-primary { background: var(--grad); color: #04060a; box-shadow: 0 10px 30px -10px rgba(47, 123, 255, 0.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(25, 227, 208, 0.65); }
.btn-ghost { border-color: var(--line-strong); background: var(--surface); color: var(--text); }
.btn-ghost:hover { border-color: rgba(25, 227, 208, 0.5); background: var(--surface-2); }
.btn svg { width: 18px; height: 18px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 640px; margin: 64px auto 0; }
.stat { padding: 18px 12px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.stat b { display: block; font-family: var(--font-display); font-size: 28px; line-height: 1.1; }
.stat span { display: block; color: var(--dim); font-size: 13px; line-height: 1.35; margin-top: 4px; }

/* ---------- Sections ---------- */
section { scroll-margin-top: 80px; }
.section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); }
.section h2 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(30px, 4.6vw, 46px); line-height: 1.1; margin: 10px 0 12px;
}
.section-head p { color: var(--muted); margin: 0; font-size: 17px; }

/* ---------- App cards ---------- */
.apps { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.card {
  --accent: var(--blue);
  position: relative; display: flex; flex-direction: column; gap: 18px; padding: 26px;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .35s, box-shadow .35s;
  overflow: hidden; isolation: isolate;
}
.card::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; opacity: 0;
  background: radial-gradient(420px 220px at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 28%, transparent), transparent 70%);
  transition: opacity .35s;
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: 0 24px 60px -30px color-mix(in srgb, var(--accent) 70%, transparent); }
.card:hover::before { opacity: 1; }
.card-top { display: flex; align-items: center; gap: 16px; }
.icon {
  width: 68px; height: 68px; border-radius: 18px; flex: none; overflow: hidden;
  box-shadow: 0 0 0 1px var(--line-strong), 0 10px 30px -12px color-mix(in srgb, var(--accent) 80%, transparent);
  background: var(--bg-2);
}
.icon img { width: 100%; height: 100%; object-fit: cover; }
.icon.mono {
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 26px; color: #04060a;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
}
.card h3 { margin: 0; font-family: var(--font-display); font-size: 21px; line-height: 1.2; letter-spacing: -0.01em; }
.card .cat { color: var(--dim); font-size: 13px; margin-top: 3px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; border: 1px solid var(--line-strong); color: var(--muted); background: var(--surface);
}
.badge.live { color: #7ff5d6; border-color: rgba(25, 227, 208, 0.35); background: rgba(25, 227, 208, 0.08); }
.badge.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.soon { color: #c4b5fd; border-color: rgba(139, 92, 246, 0.35); background: rgba(139, 92, 246, 0.08); }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.store {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: rgba(0,0,0,0.35); font-size: 13px; font-weight: 600;
  transition: border-color .2s, background .2s;
}
.store:hover { border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: rgba(255,255,255,0.05); }
.store svg { width: 16px; height: 16px; }
.more { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-size: 14px; font-weight: 600; }
.more svg { width: 16px; height: 16px; transition: transform .2s; }
.card:hover .more svg { transform: translateX(3px); }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.card .store, .card .more { position: relative; z-index: 1; }

/* ---------- About ---------- */
.about { display: grid; gap: 20px; grid-template-columns: 1.2fr 1fr; align-items: start; }
.about-text p { color: var(--muted); font-size: 17px; margin: 0 0 16px; }
.pillars { display: grid; gap: 12px; }
.pillar { display: flex; gap: 14px; padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.pillar i {
  flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-style: normal;
  background: rgba(47, 123, 255, 0.12); color: var(--blue); border: 1px solid rgba(47, 123, 255, 0.3);
}
.pillar:nth-child(2) i { background: rgba(25, 227, 208, 0.1); color: var(--cyan); border-color: rgba(25, 227, 208, 0.3); }
.pillar:nth-child(3) i { background: rgba(139, 92, 246, 0.12); color: var(--violet); border-color: rgba(139, 92, 246, 0.3); }
.pillar i svg { width: 20px; height: 20px; }
.pillar b { display: block; font-size: 15px; }
.pillar span { color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact {
  position: relative; padding: 48px 28px; border-radius: 32px; text-align: center; overflow: hidden;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(600px 240px at 50% 0%, rgba(47, 123, 255, 0.18), transparent 70%),
    radial-gradient(500px 240px at 90% 100%, rgba(139, 92, 246, 0.16), transparent 70%),
    var(--bg-2);
}
.contact h2 { margin-top: 8px; }
.contact p { color: var(--muted); max-width: 520px; margin: 0 auto 28px; }
.mail { font-family: var(--font-display); font-size: clamp(18px, 4vw, 26px); font-weight: 600; word-break: break-all; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px 0 32px; margin-top: 40px; color: var(--muted); font-size: 14px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1.4fr 1fr 1fr; }
.footer h4 { color: var(--text); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer a:hover { color: var(--text); }
.footer .note { color: var(--dim); font-size: 13px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- App detail page ---------- */
.app-hero { padding: 64px 0 40px; }
.crumbs { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.crumbs:hover { color: var(--text); }
.crumbs svg { width: 16px; height: 16px; }
.app-head { display: flex; gap: 28px; align-items: center; margin-top: 28px; }
.app-head .icon { width: 120px; height: 120px; border-radius: 30px; }
.app-head .icon.mono { font-size: 44px; }
.app-head h1 { font-family: var(--font-display); font-size: clamp(32px, 6vw, 56px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 10px; }
.app-head p { color: var(--muted); font-size: 18px; margin: 0 0 16px; max-width: 640px; }
@media (max-width: 640px) {
  .app-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .app-head .icon { width: 96px; height: 96px; border-radius: 24px; }
}
.detail { display: grid; gap: 20px; grid-template-columns: 1.5fr 1fr; padding-bottom: 40px; }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; } }
.panel { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.panel h2 { font-family: var(--font-display); font-size: 20px; margin: 0 0 18px; }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.features li { display: flex; gap: 12px; color: var(--muted); }
.features li::before {
  content: ""; flex: none; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%;
  background: var(--accent, var(--cyan)); box-shadow: 0 0 10px var(--accent, var(--cyan));
}
.facts { display: grid; gap: 0; margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--dim); }
.facts dd { margin: 0; text-align: right; color: var(--text); word-break: break-word; }
.facts a { color: var(--cyan); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

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