:root {
  --bg: #ffffff; --surface: #f5f5f7; --text: #1d1d1f; --muted: #6e6e73; --line: rgba(0, 0, 0, .08);
  --link: #0066cc; --chip: rgba(0, 0, 0, .05);
}
/* Dark: the system's choice unless the visitor picked light, or the visitor's pick (theme.js sets data-theme). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --surface: #161617; --text: #f5f5f7; --muted: #a1a1a6; --line: rgba(255, 255, 255, .1);
    --link: #2997ff; --chip: rgba(255, 255, 255, .08); color-scheme: dark;
  }
  :root:not([data-theme="light"]) .only-light { display: none; }
  :root:not([data-theme="light"]) .only-dark { display: block; }
}
:root[data-theme="dark"] {
  --bg: #000000; --surface: #161617; --text: #f5f5f7; --muted: #a1a1a6; --line: rgba(255, 255, 255, .1);
  --link: #2997ff; --chip: rgba(255, 255, 255, .08); color-scheme: dark;
}
:root[data-theme="dark"] .only-light { display: none; }
:root[data-theme="dark"] .only-dark { display: block; }
:root[data-theme="light"] { color-scheme: light; }
.only-dark { display: none; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased; letter-spacing: -.01em;
}
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
h1, h2, h3 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif; }
p, h1, h2 { text-wrap: pretty; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.mark { display: inline-flex; color: var(--text); }
.mark svg { width: 28px; height: 28px; display: block; }
.links { display: flex; align-items: center; gap: 26px; font-size: 14px; }
.links a { text-decoration: none; color: var(--muted); }
.links a:hover { color: var(--text); }
.links .lang { color: var(--text); padding: 5px 12px; border-radius: 999px; background: var(--chip); }
.theme { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0;
  border: 0; border-radius: 999px; background: var(--chip); color: var(--text); cursor: pointer; }
.theme svg { width: 17px; height: 17px; }
.theme:focus-visible, .links a:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
@media (max-width: 600px) { .links .section { display: none; } }

/* Hero */
.hero { padding: 96px 0 72px; }
.eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hero h1 { margin: 0; max-width: 15ch; font-size: clamp(42px, 7.2vw, 76px); line-height: 1.04; font-weight: 700; letter-spacing: -.035em; }
.hero p { margin: 24px 0 0; max-width: 38rem; font-size: clamp(19px, 2.3vw, 22px); line-height: 1.45; color: var(--muted); }
@media (max-width: 600px) { .hero { padding: 56px 0 40px; } }

/* Sections */
section { padding: 40px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.section-head h2 { margin: 0; font-size: 28px; letter-spacing: -.025em; }

/* Apps */
.apps { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .apps { grid-template-columns: 1fr 1fr; } }
.card { display: flex; flex-direction: column; gap: 14px; background: var(--surface); border-radius: 22px; padding: 26px; }
.head { display: flex; align-items: center; gap: 16px; }
.icon { width: 64px; height: 64px; border-radius: 15px; flex: none; box-shadow: 0 0 0 1px var(--line); }
.head h3 { margin: 0; font-size: 20px; line-height: 1.25; letter-spacing: -.02em; }
.kind { margin-top: 3px; font-size: 14px; color: var(--muted); }
.card p { margin: 0; color: var(--muted); }
.action { margin-top: auto; padding-top: 6px; display: flex; align-items: center; min-height: 44px; }
.action a { display: inline-flex; }
/* No display here: .only-light and .only-dark decide which badge shows. */
.action img { height: 44px; width: auto; }
.button { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 18px; border-radius: 999px;
  background: var(--text); color: var(--bg); font-weight: 600; font-size: 15px; text-decoration: none; }
.soon { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px;
  background: var(--chip); color: var(--muted); font-size: 14px; font-weight: 600; }

/* About and contact */
.about { display: grid; gap: 12px 48px; grid-template-columns: 1fr; border-top: 1px solid var(--line); padding-top: 48px; margin-top: 32px; }
@media (min-width: 760px) { .about { grid-template-columns: 1fr 2fr; } }
.about h2 { margin: 0; font-size: 28px; letter-spacing: -.025em; }
.about p { margin: 0; font-size: 20px; line-height: 1.5; color: var(--muted); }
.about p strong { color: var(--text); font-weight: 600; }
.mail { font-size: 20px; font-weight: 600; color: var(--link); text-decoration: none; }
.mail:hover { text-decoration: underline; }
footer { border-top: 1px solid var(--line); margin-top: 48px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding: 28px 22px 44px; font-size: 13px; color: var(--muted); }
