:root {
  color-scheme: light dark;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #edf2f8;
  --ink: #151b26;
  --muted: #5f6878;
  --line: #dce2eb;
  --blue: #0878d1;
  --blue-bright: #24a7f2;
  --blue-soft: #e3f3ff;
  --red: #e6424f;
  --shadow: 0 24px 70px rgba(32, 63, 99, .16);
  --radius: 22px;
  --shell: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif; line-height: 1.55; overflow-x: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, select { font: inherit; }
.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 10px 14px; background: var(--ink); color: var(--surface); transform: translateY(-150%); border-radius: 8px; }
.skip-link:focus { transform: none; }

.site-header { position: sticky; z-index: 20; top: 0; height: 72px; border-bottom: 1px solid color-mix(in srgb, var(--line), transparent 25%); background: color-mix(in srgb, var(--bg), transparent 12%); backdrop-filter: blur(18px); }
.nav-wrap { height: 100%; display: flex; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; text-decoration: none; letter-spacing: -.02em; white-space: nowrap; }
.brand-mark { width: 37px; height: 37px; display: inline-flex; align-items: center; justify-content: center; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
nav { display: flex; gap: 24px; margin-left: auto; }
nav a, .footer-links a { color: var(--muted); font-size: .91rem; font-weight: 600; text-decoration: none; transition: color .2s; }
nav a:hover, .footer-links a:hover { color: var(--blue); }
.language-picker { display: flex; align-items: center; gap: 6px; }
.language-picker select { border: 1px solid var(--line); border-radius: 9px; padding: 7px 27px 7px 9px; background: var(--surface); color: var(--ink); cursor: pointer; }
.theme-toggle { position: relative; flex: 0 0 auto; width: 40px; height: 40px; padding: 9px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); cursor: pointer; }
.theme-toggle svg { position: absolute; inset: 9px; width: 20px; height: 20px; fill: currentColor; transition: opacity .2s, transform .25s; }
.theme-toggle .moon-icon { opacity: 0; transform: rotate(-35deg) scale(.7); }
[data-theme="dark"] .theme-toggle .sun-icon { opacity: 0; transform: rotate(35deg) scale(.7); }
[data-theme="dark"] .theme-toggle .moon-icon { opacity: 1; transform: none; }
.header-download { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 9px 16px; border-radius: 10px; background: var(--blue); color: white; font-size: .86rem; font-weight: 750; text-decoration: none; box-shadow: 0 7px 18px rgba(8,120,209,.24); }
.header-download svg { width: 19px; height: 19px; fill: currentColor; }
.header-download { position: relative; overflow: hidden; animation: download-pulse 3.2s ease-in-out infinite; }
.header-download::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,.3) 45%, transparent 65%); transform: translateX(-140%); animation: button-shine 4.5s ease-in-out infinite; }
.header-donate { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 9px 14px; border: 1px solid #e3aa20; border-radius: 10px; background: #ffc439; color: #172231; font-size: .84rem; font-weight: 800; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.header-donate:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(215,153,0,.22); }
@keyframes download-pulse { 0%, 100% { box-shadow: 0 7px 18px rgba(8,120,209,.24); } 50% { box-shadow: 0 9px 25px rgba(8,120,209,.42); } }
@keyframes button-shine { 0%, 68% { transform: translateX(-140%); } 88%, 100% { transform: translateX(140%); } }

.hero { position: relative; min-height: 700px; display: flex; align-items: center; padding: 82px 0 96px; isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -2; inset: 0; background: radial-gradient(circle at 76% 47%, color-mix(in srgb, var(--blue) 14%, transparent), transparent 36%), linear-gradient(125deg, transparent 55%, color-mix(in srgb, var(--blue) 5%, transparent)); }
.hero-glow { position: absolute; z-index: -1; width: 480px; height: 480px; right: 4%; top: 10%; border-radius: 50%; background: var(--blue); filter: blur(140px); opacity: .09; }
.hero-grid { display: grid; grid-template-columns: .86fr 1.14fr; align-items: center; gap: 66px; }
.eyebrow, .section-kicker { color: var(--blue); font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow > span:first-child { width: 30px; height: 2px; background: var(--blue); }
h1, h2 { margin: 0; letter-spacing: -.055em; line-height: 1.03; }
h1 { font-size: clamp(3.5rem, 6.4vw, 6.25rem); font-weight: 720; }
h1 em, h2 em { color: var(--blue); font-style: normal; }
.hero-lead { max-width: 570px; margin: 26px 0 32px; color: var(--muted); font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; max-width: 540px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-height: 52px; padding: 11px 20px; border: 1px solid transparent; border-radius: 11px; font-weight: 700; text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button svg { width: 24px; height: 24px; fill: currentColor; }
.button span { display: flex; flex-direction: column; line-height: 1.16; }
.button small { margin-top: 4px; font-size: .68rem; font-weight: 500; opacity: .8; }
.primary { background: var(--blue); color: white; box-shadow: 0 10px 24px rgba(8,120,209,.25); }
.primary:hover { background: #006bbb; box-shadow: 0 13px 30px rgba(8,120,209,.34); }
.hero-actions .primary { flex: 1 1 100%; min-height: 64px; font-size: 1.02rem; }
.hero-actions .secondary, .hero-actions .hero-donate { flex: 1 1 180px; }
.secondary { background: var(--surface); border-color: var(--line); }
.hero-donate { border-color: #e3aa20; background: #ffc439; color: #172231; }
.hero-donate:hover { background: #ffd15f; box-shadow: 0 10px 22px rgba(215,153,0,.2); }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 24px; color: var(--muted); font-size: .79rem; }
.trust-row b { color: var(--blue); }

.app-stage { position: relative; perspective: 1400px; }
.app-shot { position: relative; z-index: 2; margin: 0; overflow: hidden; border: 1px solid color-mix(in srgb, var(--line), #fff 30%); border-radius: 15px; background: #111827; box-shadow: var(--shadow); }
.app-shot img { width: 100%; height: auto; object-fit: contain; }
.app-shadow { position: absolute; inset: 8% 0 -7% 5%; border-radius: 50%; background: rgba(8,120,209,.24); filter: blur(45px); }
.floating-note { position: absolute; z-index: 3; display: flex; align-items: center; border: 1px solid color-mix(in srgb, var(--line), transparent 10%); background: color-mix(in srgb, var(--surface), transparent 8%); box-shadow: 0 12px 28px rgba(15,30,50,.17); backdrop-filter: blur(12px); }
.stations-note { right: -28px; bottom: -30px; flex-direction: column; align-items: flex-start; min-width: 150px; padding: 15px 18px; border-radius: 12px; }
.stations-note strong { color: var(--blue); font-size: 1.3rem; line-height: 1; }
.stations-note span { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }
.live-note { left: -24px; top: 18%; gap: 8px; padding: 8px 13px; border-radius: 999px; font-size: .7rem; font-weight: 800; letter-spacing: .1em; }
.live-note i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px color-mix(in srgb, var(--red), transparent 82%); animation: pulse 1.3s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px transparent; } }
.hero-switcher { position: absolute; z-index: 4; left: 50%; bottom: -31px; display: flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 99px; background: color-mix(in srgb, var(--surface), transparent 6%); box-shadow: 0 8px 20px rgba(20,42,68,.14); backdrop-filter: blur(12px); transform: translateX(-50%); }
.hero-switcher button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: var(--muted); opacity: .4; cursor: pointer; transition: width .25s, opacity .25s, background .25s; }
.hero-switcher button.active { width: 25px; background: var(--blue); opacity: 1; }

.promise { padding: 42px 0; background: #0878d1; color: white; }
.promise-grid { display: grid; grid-template-columns: 64px .72fr 1.2fr; align-items: center; gap: 28px; }
.promise-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.14); font-size: 1.7rem; }
.promise .section-kicker { margin: 0 0 8px; color: #bfe8ff; }
.promise h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); }
.promise p:last-child { margin: 0; color: rgba(255,255,255,.86); }

.section { padding: 112px 0; }
.section-heading { margin-bottom: 48px; }
.section-kicker { margin: 0 0 13px; }
.section-heading h2, .support h2 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature-card { position: relative; min-height: 310px; padding: 34px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 8px 24px rgba(34,54,78,.05); }
.feature-card.accent { background: var(--blue); color: white; border-color: transparent; }
.feature-icon { display: grid; place-items: center; width: 45px; height: 45px; margin-bottom: 35px; border-radius: 11px; background: var(--blue-soft); color: var(--blue); font-weight: 800; font-size: 1.25rem; }
.accent .feature-icon { background: rgba(255,255,255,.14); color: white; }
.feature-icon.red { color: var(--red); background: color-mix(in srgb, var(--red), transparent 89%); }
.feature-card h3 { margin: 0 0 8px; font-size: 1.45rem; letter-spacing: -.02em; }
.feature-card > p:not(.feature-number) { max-width: 450px; margin: 0; color: var(--muted); }
.feature-card.accent > p:not(.feature-number) { color: rgba(255,255,255,.82); }
.feature-number { position: absolute; right: 30px; top: 19px; margin: 0; color: rgba(255,255,255,.13); font-size: 4.4rem; font-weight: 800; letter-spacing: -.07em; }
.country-pills { display: flex; gap: 7px; margin-top: 29px; }
.country-pills span { display: grid; place-items: center; min-width: 37px; height: 30px; padding: 0 8px; border-radius: 8px; background: rgba(255,255,255,.13); font-size: .83rem; }
.record-demo, .meter, .theme-demo { position: absolute; right: 34px; bottom: 30px; left: 34px; display: flex; align-items: center; }
.record-demo { gap: 8px; padding: 13px 15px; border-radius: 10px; background: var(--surface-soft); font-size: .74rem; }
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.record-demo strong { color: var(--red); }
.record-demo time { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.wave { display: flex; align-items: center; gap: 2px; height: 17px; margin-left: 10px; }
.wave i { width: 2px; height: 35%; border-radius: 2px; background: var(--blue); animation: wave 1s ease-in-out infinite alternate; }
.wave i:nth-child(2n) { height: 90%; animation-delay: -.4s; }.wave i:nth-child(3n) { height: 60%; animation-delay: -.7s; }
@keyframes wave { to { height: 100%; } }
.meter { gap: 10px; color: var(--muted); font-size: .66rem; font-weight: 700; letter-spacing: .08em; }
.meter div { flex: 1; height: 5px; border-radius: 5px; background: var(--surface-soft); }.meter div i { display: block; width: 17%; height: 100%; border-radius: inherit; background: var(--blue); }.meter b { color: var(--blue); }
.theme-demo { justify-content: center; gap: 12px; }.theme-demo div { width: 54px; height: 27px; padding: 3px; border-radius: 99px; background: var(--ink); }.theme-demo i { display: block; width: 21px; height: 21px; margin-left: auto; border-radius: 50%; background: var(--surface); }

.screens { background: var(--surface-soft); }
.centered { text-align: center; }
.centered p:last-child { color: var(--muted); }
.screen-tabs { display: flex; justify-content: center; gap: 6px; margin: 0 auto 24px; }
.screen-tabs button { padding: 9px 17px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--muted); cursor: pointer; font-weight: 650; }
.screen-tabs button[aria-selected="true"] { border-color: var(--blue); background: var(--blue); color: white; box-shadow: 0 7px 15px rgba(8,120,209,.22); }
.screen-frame { width: min(900px, 100%); margin: auto; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); background: var(--surface); }
.screen-frame img { width: 100%; height: auto; object-fit: contain; }

.support { background: var(--bg); }
.support-card { display: grid; grid-template-columns: 1fr 300px; gap: 70px; align-items: center; padding: 68px 80px; border-radius: 28px; background: #172231; color: white; box-shadow: 0 25px 60px rgba(14,31,50,.22); }
.support-lead { max-width: 650px; margin: 22px 0 16px; color: #c4cfdb; font-size: 1.05rem; }
.open-source-note { display: flex; align-items: center; gap: 8px; margin: 0 0 28px; color: #a9dfff; font-size: .91rem; }
.open-source-note a { color: inherit; font-weight: 700; text-underline-offset: 3px; }
.donate { background: #ffc439; color: #172231; }
.donate:hover { background: #ffd15f; }
.qr-card { padding: 20px; border-radius: 16px; background: white; color: #172231; text-align: center; }
.qr-card img { width: 100%; border-radius: 7px; image-rendering: pixelated; }
.qr-card strong, .qr-card span { display: block; }.qr-card strong { margin-top: 10px; }.qr-card span { color: #667080; font-size: .75rem; }

footer { padding: 47px 0; border-top: 1px solid var(--line); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 55px; }
.footer-brand { margin-bottom: 10px; }.footer-grid p { margin: 0; color: var(--muted); font-size: .82rem; }.footer-links { display: flex; gap: 22px; }.author { text-align: right; }.author a { color: var(--ink); font-weight: 700; }.author small { color: var(--muted); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue), transparent 35%); outline-offset: 3px; }

@media (prefers-color-scheme: dark) {
  :root { --bg: #111827; --surface: #1d2635; --surface-soft: #182130; --ink: #f3f6fa; --muted: #aab4c3; --line: #2d394a; --blue: #29a8f2; --blue-bright: #48bcfb; --blue-soft: #173b53; --shadow: 0 26px 75px rgba(0,0,0,.42); }
  .hero::before { background: radial-gradient(circle at 76% 47%, rgba(41,168,242,.14), transparent 38%), linear-gradient(125deg, transparent 55%, rgba(41,168,242,.035)); }
  .primary { color: #08131e; }
  .promise { background: #0873bc; }
  .app-shot { border-color: #3a4656; }
  .support-card { background: #0c121d; border: 1px solid #293545; }
}

:root[data-theme="light"] { --bg: #f5f7fb; --surface: #ffffff; --surface-soft: #edf2f8; --ink: #151b26; --muted: #5f6878; --line: #dce2eb; --blue: #0878d1; --blue-bright: #24a7f2; --blue-soft: #e3f3ff; --shadow: 0 24px 70px rgba(32,63,99,.16); color-scheme: light; }
:root[data-theme="dark"] { --bg: #111827; --surface: #1d2635; --surface-soft: #182130; --ink: #f3f6fa; --muted: #aab4c3; --line: #2d394a; --blue: #29a8f2; --blue-bright: #48bcfb; --blue-soft: #173b53; --shadow: 0 26px 75px rgba(0,0,0,.42); color-scheme: dark; }
:root[data-theme="dark"] .brand-mark img, :root[data-theme="dark"] .footer-brand img { filter: invert(1); }
:root[data-theme="dark"] .primary { color: #08131e; }
:root[data-theme="dark"] .promise { background: #0873bc; }
:root[data-theme="dark"] .app-shot { border-color: #3a4656; }
:root[data-theme="dark"] .support-card { background: #0c121d; border: 1px solid #293545; }

@media (max-width: 900px) {
  nav { display: none; }
  .language-picker { margin-left: auto; }
  .header-donate { display: none; }
  .hero { padding-top: 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .hero-copy { text-align: center; }.eyebrow, .hero-actions, .trust-row { justify-content: center; }.hero-lead { margin-inline: auto; }
  .app-stage { width: min(720px, 95%); margin: auto; }
  .promise-grid { grid-template-columns: 58px 1fr; }.promise-grid > p:last-child { grid-column: 2; }
  .support-card { grid-template-columns: 1fr 240px; padding: 52px 45px; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }.author { grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 650px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .site-header { height: 64px; }.nav-wrap { gap: 8px; }.brand { font-size: .91rem; }.brand > span:last-child { display: none; }.brand-mark { width: 33px; height: 33px; }
  .language-picker { margin-left: auto; }.language-picker span[aria-hidden] { display: none; }.language-picker select { width: 103px; max-width: 103px; padding-left: 7px; }
  .theme-toggle { width: 38px; height: 38px; }
  .header-download { width: 40px; min-height: 40px; padding: 9px; justify-content: center; }.header-download span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .hero { min-height: auto; padding: 52px 0 72px; }.hero-grid { gap: 50px; } h1 { font-size: clamp(3.25rem, 16vw, 4.8rem); }
  .hero-actions { flex-direction: column; align-items: stretch; max-width: none; }.hero-actions .secondary, .hero-actions .hero-donate { flex: none; min-height: 54px; }.button { width: 100%; }.trust-row { gap: 10px 14px; font-size: .73rem; }
  .floating-note { display: none; }.app-shot { transform: none; border-radius: 10px; }.hero-switcher { bottom: -27px; }
  .promise { padding: 37px 0; }.promise-grid { grid-template-columns: 1fr; gap: 12px; text-align: center; }.promise-icon { margin: auto; }.promise-grid > p:last-child { grid-column: auto; }
  .section { padding: 78px 0; }.feature-grid { grid-template-columns: 1fr; }.feature-card { min-height: 330px; padding: 28px; }.record-demo, .meter, .theme-demo { right: 28px; left: 28px; }
  .screen-tabs { overflow-x: auto; justify-content: flex-start; padding-bottom: 5px; }.screen-tabs button { white-space: nowrap; }
  .support-card { grid-template-columns: 1fr; padding: 44px 25px; text-align: center; }.support-copy p { margin-inline: auto !important; }.qr-card { width: min(230px, 100%); margin: auto; }.donate { width: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }.footer-brand { justify-content: center; }.footer-links { flex-wrap: wrap; justify-content: center; }.author { grid-column: auto; text-align: center; }
}

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