:root {
    color-scheme: dark;
    --bg: #000;
    --surface: #0e0e10;
    --surface-2: #161619;
    --ink: #f4f4f5;
    --muted: #a1a1aa;
    --faint: #71717a;
    --line: rgba(255, 255, 255, .08);
    --line-strong: rgba(255, 255, 255, .14);
    --accent: #ff453a;
    --glow: #5b8cff;
    --radius: 20px;
    --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
/* The app's store art uses a serif voice; mirror it on the English page. */
:root:lang(en) { --display: ui-serif, "New York", "Iowan Old Style", Georgia, serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--glow); outline-offset: 4px; border-radius: 6px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 600; }
.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(9, 9, 11, .72);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid var(--line);
}
.header-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.brand img { border-radius: 7px; box-shadow: 0 0 0 1px var(--line); }
.main-nav { display: flex; gap: 32px; font-size: 14px; color: var(--muted); }
.main-nav a { transition: color .2s; }
.main-nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.languages { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; }
.languages a { min-width: 34px; padding: 3px 10px; border-radius: 999px; text-align: center; color: var(--faint); transition: color .2s; }
.languages a:hover { color: var(--ink); }
.languages a[aria-current] { background: var(--surface-2); color: var(--ink); }

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--ink);
    color: var(--bg);
    font-size: 15px;
    font-weight: 600;
    transition: transform .2s, background .2s, border-color .2s, color .2s;
}
.button:hover { background: #fff; transform: translateY(-1px); }
.button.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.button.ghost:hover { border-color: rgba(255, 255, 255, .32); background: rgba(255, 255, 255, .04); }
.button.small { height: 34px; padding: 0 14px; font-size: 13px; }
.button-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Hero */
.hero { position: relative; padding-top: 96px; padding-bottom: 72px; overflow: hidden; }
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 30%, transparent 100%);
    mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 30%, transparent 100%);
    opacity: .55;
    pointer-events: none;
}
.hero-copy { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 32px;
    padding: 6px 14px 6px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(255, 255, 255, .03);
    font-size: 13px;
    color: var(--muted);
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255, 69, 58, .6); animation: pulse 2s infinite; }
.live-sep { width: 1px; height: 12px; background: var(--line-strong); }
.live-time { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); letter-spacing: .02em; }
h1 {
    font-family: var(--display);
    font-size: clamp(44px, 7vw, 84px);
    line-height: 1.08;
    letter-spacing: -.035em;
    font-weight: 600;
}
:lang(en) h1 { font-weight: 400; letter-spacing: -.02em; }
h1 span {
    background: linear-gradient(180deg, #fff 10%, #8b8b94 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.intro { max-width: 540px; margin: 28px 0 36px; font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.availability { margin: 22px 0 0; font-size: 13px; color: var(--faint); }

.hero-visual { position: relative; display: flex; justify-content: center; gap: clamp(16px, 3vw, 40px); margin-top: 80px; }
.hero-glow {
    position: absolute;
    left: 50%;
    top: 12%;
    width: min(820px, 120%);
    aspect-ratio: 2 / 1;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(91, 140, 255, .28), rgba(255, 69, 58, .08) 55%, transparent);
    filter: blur(30px);
    pointer-events: none;
}
.device-shot {
    position: relative;
    margin: 0;
    width: min(360px, 42%);
    aspect-ratio: 946 / 1470;
    overflow: hidden;
    /* Fade out the store art's backdrop so only the device remains. */
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 62%, transparent 96%), linear-gradient(to right, transparent 2%, #000 14%, #000 86%, transparent 98%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 62%, transparent 96%), linear-gradient(to right, transparent 2%, #000 14%, #000 86%, transparent 98%);
    mask-composite: intersect;
}
.device-shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 90%; }
.tilt-left { transform: translateY(0); }
.tilt-right { transform: translateY(64px); }

/* Sections */
.section { padding-block: 128px; }
.section-title {
    max-width: 640px;
    font-family: var(--display);
    font-size: clamp(32px, 4.4vw, 52px);
    line-height: 1.15;
    letter-spacing: -.03em;
}
:lang(en) .section-title { font-weight: 400; letter-spacing: -.015em; }

.features { border-top: 1px solid var(--line); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 64px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature { padding: 36px 32px 40px; background: var(--bg); transition: background .3s; }
.feature:hover { background: var(--surface); }
.feature-index { display: block; margin-bottom: 48px; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.feature h3 { font-size: 20px; letter-spacing: -.01em; }
.feature p { margin: 10px 0 0; font-size: 15px; color: var(--muted); }

.preview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 64px; }
.preview-card { margin: 0; min-width: 0; }
.preview-media {
    display: block;
    aspect-ratio: 946 / 1300;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line);
}
.preview-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 82%; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.preview-media:hover img { transform: scale(1.03); }
.preview-card figcaption { padding: 22px 4px 0; }
.preview-card h3 { font-size: 18px; letter-spacing: -.01em; }
.preview-card p { margin: 4px 0 0; font-size: 15px; color: var(--muted); }
.image-note { margin: 32px 0 0; font-size: 13px; color: var(--faint); }

/* Download */
.download { border-top: 1px solid var(--line); background: radial-gradient(ellipse 70% 40% at 50% 0%, rgba(91, 140, 255, .1), transparent 70%); }
.download-head { text-align: center; }
.download-head img { margin: 0 auto 28px; border-radius: 17px; box-shadow: 0 0 0 1px var(--line), 0 20px 60px rgba(91, 140, 255, .25); }
.download-head h2 { font-family: var(--display); font-size: clamp(32px, 4.4vw, 52px); line-height: 1.15; letter-spacing: -.03em; }
:lang(en) .download-head h2 { font-weight: 400; letter-spacing: -.015em; }
.download-head p { margin: 16px 0 0; color: var(--muted); }
.platforms { display: grid; grid-template-columns: 3fr 2fr; gap: 20px; margin-top: 64px; }
.platform-heading { margin: 0 0 12px 4px; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.platform-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.platform {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 72px;
    padding: 14px 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    transition: border-color .2s, background .2s, transform .2s;
}
a.platform:hover { border-color: var(--line-strong); background: var(--surface-2); transform: translateY(-1px); }
.platform-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: rgba(255, 255, 255, .05); }
.platform-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.platform-text { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.platform-text strong { font-size: 16px; font-weight: 600; }
.platform-text small { font-size: 13px; color: var(--faint); }
.platform-arrow { color: var(--faint); transition: color .2s, transform .2s; }
a.platform:hover .platform-arrow { color: var(--ink); transform: translate(2px, -2px); }
.platform.is-soon { border-style: dashed; background: transparent; }
.platform.is-soon .platform-icon svg { stroke: var(--faint); }
.platform.is-soon strong { color: var(--muted); }
.soon-badge { padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; color: var(--faint); white-space: nowrap; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; list-style: none; cursor: pointer; font-size: 17px; font-weight: 500; }
summary::-webkit-details-marker { display: none; }
.faq-toggle { position: relative; flex: none; width: 14px; height: 14px; }
.faq-toggle::before, .faq-toggle::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 1.5px; background: var(--muted); transition: transform .25s; }
.faq-toggle::after { transform: rotate(90deg); }
details[open] .faq-toggle::after { transform: rotate(0); }
details p { margin: -8px 32px 24px 0; font-size: 15px; color: var(--muted); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-top: 64px; font-size: 14px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand a { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; color: var(--ink); }
.footer-brand a span { font-weight: 400; color: var(--faint); }
.footer-brand img { border-radius: 7px; }
.footer-brand p { margin: 12px 0 0; color: var(--faint); }
.footer nav { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer nav h2 { margin-bottom: 4px; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.footer nav a { transition: color .2s; }
.footer nav a:hover { color: var(--ink); }
.footer-soon { color: var(--faint); }
.footer-soon small { margin-left: 4px; font-size: 11px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 64px; padding-block: 24px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); }
.footer-bottom a:hover { color: var(--ink); }

.skip-link { position: fixed; left: 16px; top: -100px; z-index: 30; padding: 10px 14px; border-radius: 8px; background: var(--ink); color: var(--bg); }
.skip-link:focus { top: 12px; }

/* Scroll reveal only runs when JS is available, so content never stays hidden. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .feature-grid .reveal:nth-child(2), .js .preview-grid .reveal:nth-child(2) { transition-delay: .08s; }
.js .feature-grid .reveal:nth-child(3), .js .preview-grid .reveal:nth-child(3) { transition-delay: .16s; }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 69, 58, .55); }
    70% { box-shadow: 0 0 0 8px rgba(255, 69, 58, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 69, 58, 0); }
}

@media (max-width: 900px) {
    .main-nav { display: none; }
    .section { padding-block: 96px; }
    .feature-grid { grid-template-columns: 1fr; }
    .feature-index { margin-bottom: 20px; }
    .preview-grid { grid-template-columns: 1fr; gap: 48px; max-width: 440px; margin-inline: auto; }
    .platforms { grid-template-columns: 1fr; }
    .faq-inner { grid-template-columns: 1fr; gap: 32px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .wrap { width: calc(100% - 32px); }
    .header-actions { gap: 10px; }
    .hero { padding-top: 64px; }
    .live-pill { margin-bottom: 24px; }
    .hero-actions { width: 100%; flex-direction: column; }
    .hero-actions .button { width: 100%; }
    .hero-visual { margin-top: 56px; gap: 12px; }
    .device-shot { width: 48%; }
    .tilt-right { transform: translateY(40px); }
    .section { padding-block: 80px; }
    .feature-grid, .preview-grid, .platforms { margin-top: 40px; }
    .footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .js .reveal { opacity: 1; transform: none; }
}
