:root {
  --bg: #070a1a;
  --bg2: #0c1230;
  --panel: rgba(20, 27, 62, .62);
  --line: rgba(150, 170, 255, .16);
  --text: #eef1ff;
  --muted: #a6b0d8;
  --dim: #7681ad;
  --gold: #ffd27a;
  --ac: #7fe3ff;
  --radius: 22px;
  --wrap: 1160px;
  --head: 'Bricolage Grotesque', 'Be Vietnam Pro', system-ui, sans-serif;
  --body: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--text); font: 400 17px/1.6 var(--body);
  background: radial-gradient(1200px 700px at 85% -10%, #1b2a6b 0%, transparent 60%),
              radial-gradient(900px 600px at -10% 40%, #2a1650 0%, transparent 60%),
              linear-gradient(180deg, var(--bg) 0%, #080b1e 60%, #05070f 100%);
  background-color: var(--bg);
  min-height: 100vh; overflow-x: hidden;
}
#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); letter-spacing: -.02em; line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-top: 0; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(7, 10, 26, .62); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.25rem var(--head); }
.brand b { color: var(--gold); font-weight: 700; margin-left: 4px; }
.logo { width: 32px; height: 32px; }
.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a, .lang { text-decoration: none; color: var(--muted); font-weight: 500; font-size: .95rem; }
.top nav a:hover, .lang:hover { color: var(--text); }
.lang { border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; white-space: nowrap; }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 40px; }
.eyebrow { color: var(--gold); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; }
.lead { color: var(--muted); font-size: 1.15rem; max-width: 36em; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 7px; border-radius: 999px; text-decoration: none;
  background: var(--panel); border: 1px solid var(--line); font-weight: 500; transition: border-color .2s, transform .2s; }
.chip img { border-radius: 8px; }
.chip:hover { border-color: var(--ac); transform: translateY(-2px); }
.fan { position: relative; height: 600px; }
.phone { margin: 0; border-radius: 34px; padding: 7px; background: linear-gradient(160deg, #2c3768, #141a38);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .06) inset; }
.phone img { border-radius: 28px; width: 100%; height: auto; }
.fan .phone { position: absolute; width: 250px; }
.fan .p1 { left: 2%; top: 70px; transform: rotate(-8deg); }
.fan .p2 { left: 31%; top: 0; z-index: 2; width: 270px; }
.fan .p3 { right: 0; top: 80px; transform: rotate(8deg); }

/* app rows */
section { padding-block: 56px; }
.sub { color: var(--muted); margin-bottom: 36px; }
.row { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; padding: 48px; margin-bottom: 28px;
  border-radius: 32px; background: linear-gradient(140deg, color-mix(in srgb, var(--ac) 14%, transparent), var(--panel) 45%);
  border: 1px solid var(--line); position: relative; overflow: hidden; }
.row.flip .row-media { order: 2; }
.row-media { position: relative; height: 440px; }
.row-media .phone { position: absolute; width: 205px; left: 50%; top: 0; transform: translateX(-62%); z-index: 2; }
.row-media .phone.back { transform: translateX(-5%) rotate(7deg); top: 30px; z-index: 1; opacity: .9; }
.app-id { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.app-id img { border-radius: 16px; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .7); flex: none; }
.app-id h3 { margin: 0 0 2px; font-size: 1.5rem; }
.app-id h3 a { text-decoration: none; }
.app-id p { margin: 0; color: var(--ac); font-weight: 500; }
.card-copy { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 0 0 22px; }
.ticks li { padding-left: 28px; position: relative; margin: 8px 0; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 9px; height: 9px; border-radius: 50%;
  background: var(--ac); box-shadow: 0 0 12px var(--ac); }
.more { color: var(--ac); font-weight: 700; text-decoration: none; display: inline-block; margin-top: 16px; }
.more:hover { text-decoration: underline; }

/* badges */
.badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px 9px 14px; border-radius: 14px; text-decoration: none;
  background: #000; border: 1px solid rgba(255, 255, 255, .28); font-weight: 700; font-size: 1.05rem; line-height: 1.1; transition: transform .15s, border-color .15s; }
.badge:hover { transform: translateY(-2px); border-color: #fff; }
.badge svg { width: 24px; height: 24px; flex: none; }
.badge small { display: block; font-weight: 400; font-size: .68rem; opacity: .85; }
.badge.big { padding: 11px 22px 11px 16px; font-size: 1.15rem; }
.soon { display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px; border-radius: 999px; font-weight: 700;
  border: 1px dashed color-mix(in srgb, var(--ac) 60%, transparent); color: var(--ac); }
.soon i { width: 8px; height: 8px; border-radius: 50%; background: var(--ac); animation: pulse 1.8s infinite; }
.soon-note { color: var(--dim); font-size: .9rem; flex-basis: 100%; }
@keyframes pulse { 50% { opacity: .25; } }

/* why + faq */
.whys { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.why, .feat { padding: 28px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.why p, .feat p { color: var(--muted); margin: 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; max-width: 820px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; list-style: none; position: relative; padding-right: 32px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: -2px; font-size: 1.4rem; color: var(--gold); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 10px 0 0; }
.credits { color: var(--dim); font-size: .92rem; margin-top: 28px; max-width: 820px; }

/* app page */
.crumbs { padding-top: 22px; color: var(--dim); font-size: .9rem; display: flex; gap: 8px; }
.crumbs a { color: var(--muted); }
.app-hero { display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: center; padding-top: 30px; }
.app-id.big img { border-radius: 24px; }
.app-id.big h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin: 0 0 6px; }
.app-id.big .lead { color: var(--ac); margin: 0; font-weight: 500; }
.price { color: var(--dim); font-size: .92rem; margin-top: 14px; }
.hero-phone .phone { max-width: 290px; margin: 0 auto; box-shadow: 0 40px 120px -30px color-mix(in srgb, var(--ac) 45%, transparent), 0 0 0 1px rgba(255,255,255,.06) inset; }
.gallery { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 4px 24px; scrollbar-width: thin; }
.gallery .phone { flex: 0 0 230px; scroll-snap-align: start; }
.feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feat h3 { color: var(--text); }
.feat:first-child { grid-column: 1 / -1; background: linear-gradient(140deg, color-mix(in srgb, var(--ac) 16%, transparent), var(--panel) 55%); }
.minis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mini { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line);
  text-decoration: none; transition: border-color .2s, transform .2s; }
.mini:hover { border-color: var(--ac); transform: translateY(-2px); }
.mini img { border-radius: 14px; flex: none; }
.mini span { color: var(--muted); font-size: .92rem; line-height: 1.4; }
.mini b { display: block; color: var(--text); font-size: 1.05rem; }
.nf { padding: 120px 20px; text-align: center; }
.nf h1 { font-size: 6rem; color: var(--gold); }
.nf .lead { margin: 0 auto 20px; }

/* footer */
.foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 48px 0 28px; background: rgba(5, 7, 16, .6); }
.fgrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot p { color: var(--dim); margin-top: 12px; max-width: 28em; }
.foot h3 { font-size: .95rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 7px 0; }
.foot li a { color: var(--muted); text-decoration: none; }
.foot li a:hover { color: var(--text); }
.fine { color: var(--dim); font-size: .85rem; margin-top: 28px; }

@media (max-width: 900px) {
  .hero, .app-hero { grid-template-columns: 1fr; padding-top: 40px; }
  .fan { height: 440px; max-width: 520px; width: 100%; margin: 0 auto; }
  .fan .phone { width: 41%; }
  .fan .p2 { width: 44%; left: 28%; }
  .row { grid-template-columns: 1fr; padding: 28px 20px; gap: 24px; }
  .row.flip .row-media { order: 0; }
  .row-media { height: 380px; }
  .row-media .phone { width: 175px; }
  .whys, .feats, .minis { grid-template-columns: 1fr; }
  .fgrid { grid-template-columns: 1fr 1fr; }
  .fgrid > :first-child { grid-column: 1 / -1; }
  .hero-phone { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 16px; }
  .top nav { display: none; }
  .lang { margin-left: auto; }
  .fan { height: 360px; }
  .row-media { height: 330px; }
  .row-media .phone { width: 150px; }
  .gallery .phone { flex-basis: 64vw; }
  section { padding-block: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
