*, *::before, *::after { box-sizing: border-box; }

:root {
  color-scheme: light dark;
  --bg: light-dark(#fff, #0f0f0f);
  --fg: light-dark(#0f0f0f, #f1f1f1);
  --muted: light-dark(#606060, #aaa);
  --line: light-dark(#e5e5e5, #303030);
  --soft: light-dark(#f5f5f5, #181818);
  --accent: light-dark(#1654d1, #80b2ff);
  --blue: #2563eb;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
img, video { display: block; max-width: 100%; height: auto; }
button, select { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
::selection { background: var(--blue); color: #fff; }

.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.skip { position: fixed; z-index: 10; inset: 8px auto auto 8px; padding: 8px 12px; background: var(--bg); transform: translateY(-200%); }
.skip:focus { transform: none; }

/* Header: brand, theme, install. Stays in view so the install button is always one tap away. */
.topbar { position: sticky; z-index: 5; inset-block-start: 0; background: var(--bg); border-block-end: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; margin-inline-end: auto; font-size: 21px; font-weight: 750; letter-spacing: -0.03em; text-decoration: none; }
.theme-toggle { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: none; }
.theme-toggle:hover { background: var(--soft); }
.theme-toggle svg { width: 18px; height: 18px; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 24px; border-radius: 26px; background: var(--fg); color: var(--bg); font-size: 16px; font-weight: 650; line-height: 1.3; text-decoration: none; }
.button:hover { background: var(--blue); color: #fff; }
.button svg { flex: none; width: 20px; height: 20px; }
.button-small { min-height: 40px; padding: 8px 18px; font-size: 14px; white-space: nowrap; }
.text-link { display: inline-flex; align-items: center; gap: 8px; padding-block: 8px; font-size: 14px; font-weight: 650; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.text-link svg { flex: none; width: 17px; height: 17px; }
[dir="rtl"] .text-link svg { transform: scaleX(-1); }

/* Hero: headline, one sentence, install, then the demo. */
.hero { display: grid; grid-template-columns: 1.25fr 1fr; align-items: end; gap: 36px 56px; padding-block: 64px 88px; }
h1 { font-size: clamp(40px, 5.4vw, 72px); font-weight: 750; line-height: 1.05; letter-spacing: -0.05em; text-wrap: balance; overflow-wrap: anywhere; }
h1 span { display: block; color: var(--accent); }
.intro { max-width: 30em; margin-block-end: 24px; color: var(--muted); font-size: 18px; }
.trust { margin-block-start: 12px; color: var(--muted); font-size: 13px; }
.demo { position: relative; grid-column: 1 / -1; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #0f1220; }
.demo img { width: 100%; height: 100%; object-fit: cover; }
.play { position: absolute; inset: 0; display: grid; place-items: center; width: 84px; height: 84px; margin: auto; border-radius: 50%; background: #fff; color: #0f0f0f; box-shadow: 0 8px 32px #0006; transition: transform .15s; }
.demo:hover .play { transform: scale(1.08); }
.play svg { width: 30px; height: 30px; margin-inline-start: 4px; }

/* Why this one: three claims next to the real card. */
.why { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 72px; padding-block: 88px; border-block-start: 1px solid var(--line); }
h2 { font-size: clamp(30px, 3.6vw, 48px); font-weight: 750; line-height: 1.1; letter-spacing: -0.04em; text-wrap: balance; }
.why ul { display: grid; gap: 28px; margin-block: 36px 28px; }
h3 { font-size: 19px; line-height: 1.35; letter-spacing: -0.02em; }
.why li p { margin-block-start: 4px; color: var(--muted); }
.card { display: grid; place-items: center; padding: 36px 24px; border: 1px solid var(--line); border-radius: 24px; background: var(--soft); }
.card img { width: min(100%, 352px); border: 1px solid var(--line); border-radius: 12px; }
.card-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .card-dark { display: block; }
  :root:not([data-theme="light"]) .card-light { display: none; }
}
:root[data-theme="dark"] .card-dark { display: block; }
:root[data-theme="dark"] .card-light { display: none; }

.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 72px; padding-block: 88px; border-block-start: 1px solid var(--line); }
details { border-block-end: 1px solid var(--line); }
details:first-child { border-block-start: 1px solid var(--line); }
summary { position: relative; padding-block: 20px; padding-inline-end: 36px; font-weight: 650; list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; inset-block-start: 12px; inset-inline-end: 4px; color: var(--muted); font-size: 24px; font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { padding-block-end: 22px; padding-inline-end: 36px; color: var(--muted); font-size: 15px; }

.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 56px; border-block: 1px solid var(--line); }
.cta > p, .cta > h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }

footer { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px 24px; padding-block: 28px 36px; color: var(--muted); font-size: 13px; }
footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
footer a { padding-block: 6px; text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer select { max-width: 100%; min-height: 40px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); font-size: 13px; }
footer p, footer noscript { grid-column: 1 / -1; }

[dir="rtl"] :is(h1, h2, h3, .brand) { letter-spacing: normal; }
[dir="rtl"] :is(h1, h2) { line-height: 1.35; }

@media (max-width: 900px) {
  .hero { gap: 28px 36px; padding-block: 48px 64px; }
  .why, .faq { gap: 40px; padding-block: 64px; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .hero { grid-template-columns: 1fr; gap: 20px; padding-block: 32px 56px; }
  h1 { font-size: clamp(38px, 11vw, 56px); }
  .intro { margin-block-end: 20px; font-size: 17px; }
  .hero .button { width: 100%; }
  .demo { aspect-ratio: 4 / 5; border-radius: 14px; margin-block-start: 12px; }
  .play { width: 68px; height: 68px; }
  .why, .faq { grid-template-columns: 1fr; gap: 32px; padding-block: 56px; }
  .card { padding: 24px 16px; border-radius: 18px; }
  .cta { flex-direction: column; align-items: stretch; padding-block: 40px; }
  footer { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .topbar .wrap { gap: 8px; }
  .brand { flex-shrink: 0; gap: 5px; font-size: 19px; }
  .brand img { width: 32px; height: 32px; }
  .theme-toggle { flex-shrink: 0; width: 36px; height: 36px; }
  .button-small { padding-inline: 10px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .play { transition: none; }
}
