/* Blabla landing — Glass UI (from the app design: Onest, soft colour blobs, frosted cards, indigo→violet accent).
   Layout: one centred column; hero = text + live phone demo side by side, stacks under 900px. */
:root {
  --bg: #EEF0FA;
  --ink: #15132B;
  --ink-2: rgba(21, 19, 43, 0.74);
  --ink-3: rgba(21, 19, 43, 0.58);
  --glass: rgba(255, 255, 255, 0.56);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --edge: rgba(255, 255, 255, 0.92);
  --edge-low: rgba(255, 255, 255, 0.55);
  --line: rgba(21, 19, 43, 0.10);
  --indigo: #5B4BF5;
  --violet: #A855F7;
  --pink: #EC4899;
  --accent-ink: #3E2FC4;
  --accent-soft: rgba(91, 75, 245, 0.12);
  --rec: #EF4444;
  --live: #22C55E;
  --shadow: 0 18px 44px rgba(60, 50, 140, 0.13);
  --blob-a: 1;
  --phone-bg: #EEF0FA;

  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-card: 28px;
  --r-pill: 999px;
  --wrap: 1160px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E0D1C;
    --ink: #F3F2FB;
    --ink-2: rgba(243, 242, 251, 0.76);
    --ink-3: rgba(243, 242, 251, 0.58);
    --glass: rgba(255, 255, 255, 0.06);
    --glass-strong: rgba(28, 26, 48, 0.92);
    --edge: rgba(255, 255, 255, 0.16);
    --edge-low: rgba(255, 255, 255, 0.05);
    --line: rgba(255, 255, 255, 0.10);
    --accent-ink: #BDB3FF;
    --accent-soft: rgba(139, 124, 255, 0.18);
    --shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
    --blob-a: 0.42;
    --phone-bg: #0E0D1C;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E0D1C;
  --ink: #F3F2FB;
  --ink-2: rgba(243, 242, 251, 0.76);
  --ink-3: rgba(243, 242, 251, 0.58);
  --glass: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(28, 26, 48, 0.92);
  --edge: rgba(255, 255, 255, 0.16);
  --edge-low: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.10);
  --accent-ink: #BDB3FF;
  --accent-soft: rgba(139, 124, 255, 0.18);
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
  --blob-a: 0.42;
  --phone-bg: #0E0D1C;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-ink); }
h1, h2, h3 { text-wrap: balance; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 12px; }

/* ---------------------------------------------------------------- background blobs */
.blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blobs span {
  position: absolute; border-radius: 50%; opacity: var(--blob-a);
  filter: blur(10px);
}
.blobs .b1 { width: 620px; height: 620px; left: -220px; top: -200px; background: radial-gradient(circle, rgba(129,140,248,.85), rgba(129,140,248,0) 70%); }
.blobs .b2 { width: 640px; height: 640px; right: -220px; top: 18%; background: radial-gradient(circle, rgba(216,140,250,.72), rgba(216,140,250,0) 70%); }
.blobs .b3 { width: 560px; height: 560px; left: -180px; top: 58%; background: radial-gradient(circle, rgba(56,220,240,.55), rgba(56,220,240,0) 70%); }
.blobs .b4 { width: 460px; height: 460px; right: 8%; bottom: -160px; background: radial-gradient(circle, rgba(251,113,133,.45), rgba(251,113,133,0) 70%); }

/* ---------------------------------------------------------------- shared */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.glass {
  background: var(--glass);
  border: 1px solid var(--edge);
  border-bottom-color: var(--edge-low);
  box-shadow: inset 0 1px 0 var(--edge), var(--shadow);
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-ink);
}
.section { padding-block: 72px; }
.section-head { max-width: 720px; display: grid; gap: 12px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.08; font-weight: 800; }
.section-head p { color: var(--ink-2); font-size: 18px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 24px; border-radius: 20px; border: 0;
  font: 700 17px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  box-shadow: 0 12px 28px rgba(91, 75, 245, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 34px rgba(91, 75, 245, 0.55), inset 0 1px 0 rgba(255,255,255,.4); }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { transform: translateY(-1px); }

/* ---------------------------------------------------------------- nav */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg);
}
.nav-shell { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; padding-top: 12px; }
.nav {
  display: flex; align-items: center; gap: 16px;
  padding: 8px 8px 8px 12px; border-radius: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
.brand img { width: 38px; height: 38px; border-radius: 12px; box-shadow: 0 6px 16px rgba(124, 58, 237, 0.35); }
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a {
  color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 8px 12px; border-radius: 12px;
}
.nav-links a:hover { color: var(--ink); background: var(--accent-soft); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav .btn { height: 44px; padding: 0 18px; border-radius: 16px; font-size: 15px; }

.lang-switch { display: flex; padding: 4px; gap: 2px; border-radius: var(--r-pill); background: var(--accent-soft); }
.lang-switch button {
  border: 0; background: transparent; color: var(--ink-2); cursor: pointer;
  font: 800 13px/1 var(--font); letter-spacing: 0.04em;
  height: 34px; min-width: 40px; padding: 0 10px; border-radius: var(--r-pill);
}
.lang-switch button[aria-pressed="true"] {
  color: #fff; background: linear-gradient(135deg, var(--indigo), var(--violet));
  box-shadow: 0 4px 12px rgba(91, 75, 245, 0.4);
}

/* ---------------------------------------------------------------- hero */
.hero { padding-block: 56px 40px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; }
.hero h1 .grad {
  background: linear-gradient(120deg, var(--indigo), var(--violet) 55%, var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 19px; color: var(--ink-2); max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 600; color: var(--ink);
}
.chip svg { width: 16px; height: 16px; color: var(--accent-ink); }

/* ---------------------------------------------------------------- phone demo */
.phone-stage { display: flex; justify-content: center; min-width: 0; }
.phone {
  position: relative; width: 340px; max-width: 100%; aspect-ratio: 340 / 700;
  border-radius: 52px; padding: 12px;
  background: linear-gradient(160deg, #26243A, #0D0C18);
  box-shadow: 0 40px 80px rgba(40, 30, 110, 0.35), inset 0 0 0 2px rgba(255,255,255,0.08);
}
.screen {
  position: relative; height: 100%; border-radius: 42px; overflow: hidden;
  background: var(--phone-bg); display: flex; flex-direction: column; gap: 8px; padding: 34px 12px 12px;
  container-type: inline-size;
}
.screen::before, .screen::after {
  content: ""; position: absolute; border-radius: 50%; z-index: 0; opacity: var(--blob-a);
}
.screen::before { width: 260px; height: 260px; left: -90px; top: -70px; background: radial-gradient(circle, rgba(129,140,248,.9), rgba(129,140,248,0) 70%); }
.screen::after { width: 280px; height: 280px; right: -110px; top: 45%; background: radial-gradient(circle, rgba(216,140,250,.75), rgba(216,140,250,0) 70%); }
.screen > * { position: relative; z-index: 1; }
.notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 92px; height: 22px; border-radius: 12px; background: #0D0C18; z-index: 2; }

.app-head { display: flex; align-items: center; gap: 8px; padding: 0 4px; }
.app-head img { width: 32px; height: 32px; border-radius: 10px; }
.app-head .t { display: grid; line-height: 1.15; }
.app-head b { font-size: 16px; font-weight: 800; }
.app-head small { font-size: 11px; color: var(--ink-2); display: flex; align-items: center; gap: 5px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 8px var(--live); }

.panel { border-radius: 20px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.panel.orig { flex: 0.42; }
.panel.tr { flex: 0.58; background: linear-gradient(160deg, rgba(91,75,245,.16), var(--glass)); }
.panel-head { display: flex; align-items: center; gap: 6px; font-size: 10.5px; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: var(--r-pill); background: var(--glass-strong); font-weight: 700; }
.panel.tr .pill { background: var(--accent-soft); color: var(--accent-ink); }
.panel-head .cap { margin-left: auto; color: var(--ink-3); font-weight: 500; }
.rec-dot { width: 6px; height: 6px; border-radius: 50%; background: #FF5A5F; animation: blink 1.2s ease-in-out infinite; }
.lines {
  flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 5px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22px); mask-image: linear-gradient(to bottom, transparent 0, #000 22px);
}
.lines p { color: var(--ink-3); transition: color .4s ease; }
.lines p.cur { color: var(--ink); }
.lines p.partial { color: var(--ink-3); opacity: .75; }
.orig .lines { font-size: 12.5px; line-height: 1.4; }
.tr .lines { font-size: 16px; line-height: 1.32; font-weight: 600; letter-spacing: -0.01em; }

.pair { align-self: center; display: flex; align-items: center; gap: 4px; padding: 3px; border-radius: var(--r-pill); font-size: 12px; font-weight: 800; }
.pair span { padding: 4px 10px; }
.pair i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--indigo), var(--violet)); font-style: normal; }
.pair i svg { width: 14px; height: 14px; }

.dock { border-radius: 22px; padding: 8px 12px; display: grid; gap: 4px; }
.wave { height: 20px; display: flex; align-items: center; gap: 2px; }
.wave span { flex: 1; border-radius: 2px; background: linear-gradient(180deg, #4F3FE0, #8B7CFF); height: 3px; transition: height .12s ease; }
.dock-row { display: flex; align-items: center; }
.dock-row .time { flex: 1; display: grid; line-height: 1.1; }
.dock-row .time b { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dock-row .time small { font-size: 10px; color: var(--ink-2); }
.rec-btn { position: relative; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #FF5A5F, #DC2626); box-shadow: 0 8px 18px rgba(239,68,68,.5); }
.rec-btn::before, .rec-btn::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(255,90,95,.45); animation: halo 1.8s ease-out infinite; z-index: -1; }
.rec-btn::after { animation-delay: .9s; }
.rec-btn span { width: 16px; height: 16px; border-radius: 5px; background: #fff; }
.dock-row .hp { flex: 1; display: grid; justify-items: end; gap: 2px; font-size: 9.5px; color: var(--accent-ink); font-weight: 600; }
.hp i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--indigo), var(--violet)); font-style: normal; }
.hp i svg { width: 16px; height: 16px; }

/* ---------------------------------------------------------------- features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { border-radius: var(--r-card); padding: 24px; display: grid; gap: 10px; align-content: start; }
.feature h3 { font-size: 20px; font-weight: 700; }
.feature p { color: var(--ink-2); font-size: 16px; }
.tile { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; color: #fff; margin-bottom: 4px; }
.tile svg { width: 24px; height: 24px; }
.t1 { background: linear-gradient(135deg, #6D5DF6, var(--violet)); }
.t2 { background: linear-gradient(135deg, var(--violet), var(--pink)); }
.t3 { background: linear-gradient(135deg, #0EA5E9, #6D5DF6); }
.t4 { background: linear-gradient(135deg, #6D5DF6, #22D3EE); }
.t5 { background: linear-gradient(135deg, #F472B6, var(--violet)); }
.t6 { background: linear-gradient(135deg, var(--indigo), #0EA5E9); }

/* ---------------------------------------------------------------- steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step { border-radius: var(--r-card); padding: 24px; display: grid; gap: 10px; align-content: start; }
.step .n {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--indigo), var(--violet));
}
.step h3 { font-size: 20px; font-weight: 700; }
.step p { color: var(--ink-2); font-size: 16px; }
.step code { font-family: inherit; font-weight: 700; color: var(--accent-ink); }

/* ---------------------------------------------------------------- summary showcase */
.summary-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 32px; align-items: start; }
.summary-card { border-radius: 32px; padding: 20px; display: grid; gap: 12px; }
.summary-card .meta { display: flex; flex-wrap: wrap; gap: 8px; }
.summary-card .meta .chip { background: var(--glass-strong); border: 1px solid var(--edge); }
.summary-card .meta .chip.acc { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.sec { border-radius: 22px; padding: 16px 18px; background: var(--glass); border: 1px solid var(--edge); border-bottom-color: var(--edge-low); }
.sec.lead { background: linear-gradient(160deg, rgba(91,75,245,.15), var(--glass)); }
.sec h4 { margin: 0 0 6px; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.sec.lead h4 { color: var(--accent-ink); }
.sec h4::before { content: ""; width: 4px; height: 15px; border-radius: 2px; background: linear-gradient(180deg, #8B7CFF, #C084FC); }
.sec.lead h4::before { display: none; }
.sec ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.sec li { display: flex; gap: 10px; font-size: 15.5px; }
.sec li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: #6D5DF6; }
.example-tag { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }

.points { display: grid; gap: 14px; }
.point { display: flex; gap: 14px; align-items: flex-start; }
.point .tile { width: 40px; height: 40px; border-radius: 13px; margin: 0; flex: none; }
.point .tile svg { width: 20px; height: 20px; }
.point b { display: block; font-size: 17px; }
.point span { color: var(--ink-2); font-size: 15.5px; }

/* ---------------------------------------------------------------- languages */
.langs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lang-card { border-radius: var(--r-card); padding: 24px; display: grid; gap: 8px; }
.lang-card .code { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.lang-card .name { font-weight: 700; font-size: 18px; }
.lang-card .say { color: var(--ink-2); font-size: 15.5px; font-style: italic; }
.pairs { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.pairs .chip { font-weight: 800; letter-spacing: 0.02em; }

/* ---------------------------------------------------------------- facts */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fact { border-radius: var(--r-card); padding: 24px; display: grid; gap: 6px; }
.fact .big { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.fact p { color: var(--ink-2); font-size: 15.5px; }

/* ---------------------------------------------------------------- faq */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border-radius: 22px; padding: 0 20px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; border-right: 2.5px solid var(--ink-2); border-bottom: 2.5px solid var(--ink-2);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq details p { padding-bottom: 18px; color: var(--ink-2); }

/* ---------------------------------------------------------------- download band */
.download { padding-block: 40px 80px; }
.dl-card {
  border-radius: 36px; padding: 40px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: center;
  color: #fff;
  background: linear-gradient(140deg, rgba(91,75,245,.95), rgba(168,85,247,.92) 60%, rgba(236,72,153,.88));
  box-shadow: 0 28px 60px rgba(124, 58, 237, 0.35), inset 0 1px 0 rgba(255,255,255,.4);
}
.dl-card img { width: 88px; height: 88px; border-radius: 26px; box-shadow: 0 14px 30px rgba(40, 10, 90, .35); }
.dl-card h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.dl-card p { color: rgba(255, 255, 255, 0.88); margin-top: 6px; }
.dl-card .btn { background: #fff; color: #3E2FC4; box-shadow: 0 12px 28px rgba(40, 10, 90, .3); }
.dl-card .btn:hover { transform: translateY(-1px); }
.dl-note { margin-top: 14px; font-size: 14px; color: var(--ink-3); text-align: center; }

/* ---------------------------------------------------------------- footer */
footer { padding-block: 28px 40px; border-top: 1px solid var(--line); }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; color: var(--ink-2); font-size: 15px; }
.foot .brand { font-size: 17px; }
.foot .brand img { width: 30px; height: 30px; border-radius: 9px; }
.foot .sp { flex: 1; }
.foot a { font-weight: 700; text-decoration: none; }

/* ---------------------------------------------------------------- motion */
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes halo { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .nav-links { display: none; }
}
@media (max-width: 900px) {
  .hero-grid, .summary-grid { grid-template-columns: minmax(0, 1fr); }
  .features, .steps, .langs, .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl-card { grid-template-columns: minmax(0, 1fr); text-align: left; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding-block: 52px; }
  .features, .steps, .langs, .facts { grid-template-columns: minmax(0, 1fr); }
  .nav .btn-primary span { display: none; }
  .nav .btn { padding: 0 12px; }
  .brand span { display: none; }
  .dl-card { padding: 28px 22px; }
  .hero { padding-block: 32px 24px; }
}
