:root {
  --bg: #070d16;
  --bg-2: #0c1624;
  --card: #101c2c;
  --line: #1e2d42;
  --text: #e6eef8;
  --muted: #9bb0c8;
  --dim: #6f8399;
  --green: #34d399;
  --sky: #38bdf8;
  --amber: #fbbf24;
  --radius: 20px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.section { padding: 88px 0; }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.eyebrow { color: var(--green); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .8em; }
.lead { color: var(--muted); font-size: 1.15rem; max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.grad { background: linear-gradient(90deg, var(--sky), var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(7, 13, 22, .82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.15rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--muted); font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 14px; font-weight: 700; border: 1px solid var(--line); color: var(--text); background: var(--card); }
.btn:hover { text-decoration: none; border-color: #2c4260; }
.btn.primary { background: linear-gradient(90deg, #0ea5e9, #10b981); border: 0; color: #04111c; }
.btn.small { padding: 8px 14px; font-size: .9rem; border-radius: 11px; }

.store-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store { display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 14px; min-width: 210px; border-radius: 14px; background: #000; border: 1px solid #2a3a50; color: #fff; }
.store:hover { text-decoration: none; border-color: #44607f; }
.store svg { width: 28px; height: 28px; flex: none; }
.store small { display: block; font-size: .7rem; color: #a9b8c9; line-height: 1.2; }
.store strong { display: block; font-size: 1.05rem; line-height: 1.2; }
.store[aria-disabled="true"] { cursor: default; }
.store .soon { margin-left: auto; font-size: .68rem; font-weight: 700; color: var(--amber); border: 1px solid rgba(251, 191, 36, .4); border-radius: 999px; padding: 2px 8px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto auto; width: 720px; height: 720px; background: radial-gradient(circle, rgba(16, 185, 129, .18), transparent 65%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero .badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pill { font-size: .82rem; color: var(--muted); border: 1px solid var(--line); background: rgba(16, 28, 44, .6); border-radius: 999px; padding: 4px 12px; }
.devices { position: relative; padding: 0 0 48px 14%; }
.devices .tablet { position: relative; width: 100%; border-radius: 16px; border: 7px solid #1b2738; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.devices .phone { position: absolute; left: 0; bottom: 0; width: 24%; border-radius: 26px; border: 6px solid #1b2738; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* Cards */
.grid { display: grid; gap: 18px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid.three, .grid.two { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { color: var(--muted); margin: 0; }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(52, 211, 153, .12); color: var(--green); margin-bottom: 14px; }
.icon svg { width: 24px; height: 24px; }
.icon.sky { background: rgba(56, 189, 248, .12); color: var(--sky); }

/* Platforms */
.platform { display: flex; flex-direction: column; gap: 10px; }
.platform .status { margin-top: auto; padding-top: 12px; font-size: .85rem; color: var(--amber); font-weight: 700; }
.platform .status.ok { color: var(--green); }

/* Screenshots */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); margin: 8px 0 28px; }
.tabs button { font: inherit; font-weight: 700; color: var(--muted); background: none; border: 0; padding: 8px 16px; border-radius: 10px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: #0ea5e9; color: #04111c; }
.gallery { display: grid; grid-auto-flow: column; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; }
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery figcaption { color: var(--muted); font-size: .9rem; margin-top: 10px; }
.gallery img { border-radius: 16px; border: 1px solid var(--line); background: var(--card); }
.gallery.phone { grid-auto-columns: minmax(220px, 260px); }
.gallery.tablet { grid-auto-columns: minmax(300px, 640px); }
.gallery[hidden] { display: none; }

/* Lists */
.check { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check li { padding-left: 30px; position: relative; color: var(--muted); }
.check li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: rgba(52, 211, 153, .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; }
.check li b { color: var(--text); }

table.compat { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.compat th, table.compat td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.compat th { color: var(--dim); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
table.compat td:first-child { font-weight: 700; white-space: nowrap; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.tag.ok { color: var(--green); background: rgba(52, 211, 153, .12); }
.tag.soon { color: var(--amber); background: rgba(251, 191, 36, .12); }
.table-scroll { overflow-x: auto; }

/* FAQ */
details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; }
details + details { margin-top: 12px; }
summary { cursor: pointer; font-weight: 700; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--dim); font-weight: 400; font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 12px 0 0; }

/* CTA + footer */
.cta { text-align: center; background: radial-gradient(circle at 50% 0, rgba(14, 165, 233, .18), transparent 60%), var(--bg-2); border-top: 1px solid var(--line); }
.cta .store-row { justify-content: center; }
.site-footer { padding: 40px 0 56px; color: var(--dim); font-size: .88rem; border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.legal { max-width: 760px; }

/* Plain document pages */
.doc { padding: 56px 0 80px; }
.doc .wrap { max-width: 780px; }
.doc h2 { font-size: 1.35rem; margin-top: 2em; }
.doc p, .doc li { color: var(--muted); }
.doc li { margin-bottom: .4em; }
.doc .updated { color: var(--dim); font-size: .9rem; }
