:root {
  --bg: #f5f5f7; --surface: #ffffff; --text: #1d1d1f; --muted: #6e6e73; --line: #d2d2d7;
  --accent: #0a84ff; --accent-text: #ffffff; --hero-bg: #000000; --hero-text: #f5f5f7; --hero-muted: #a1a1a6;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --surface: #161618; --text: #f5f5f7; --muted: #a1a1a6; --line: #2c2c2e; --accent: #409cff;
  }
}
:root[data-theme="dark"] { --bg: #000000; --surface: #161618; --text: #f5f5f7; --muted: #a1a1a6; --line: #2c2c2e; --accent: #409cff; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: color-mix(in srgb, var(--bg) 72%, transparent); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 52px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; }
.brand img { width: 28px; height: 28px; border-radius: 50%; }
.top nav { display: flex; gap: 20px; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current] { color: var(--text); }

/* Hero */
.hero { background: var(--hero-bg); color: var(--hero-text); text-align: center; padding: 72px 0 0; overflow: hidden; }
.hero .icon { width: 112px; height: 112px; border-radius: 50%; margin: 0 auto 24px; box-shadow: 0 0 60px rgba(80, 150, 255, .35); }
.hero h1 { font-size: clamp(40px, 8vw, 72px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 12px; }
.hero p.lede { font-size: clamp(19px, 2.6vw, 24px); color: var(--hero-muted); max-width: 680px; margin: 0 auto 28px; }
.hero .shot { margin: 48px auto 0; max-width: 1080px; border-radius: 18px 18px 0 0; overflow: hidden; }
.cta { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--accent-text); text-decoration: none;
  font-weight: 600; padding: 12px 24px; border-radius: 999px; }
.cta.secondary { background: transparent; color: var(--hero-text); border: 1px solid #48484a; margin-left: 8px; }
.note { font-size: 13px; color: var(--hero-muted); margin-top: 14px; }

/* Sections */
section { padding: 72px 0; }
h2 { font-size: clamp(28px, 4.5vw, 40px); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 12px; }
.section-lede { color: var(--muted); font-size: 19px; max-width: 680px; margin: 0 0 40px; }
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.card h3 { margin: 0 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.feature + .feature { margin-top: 64px; }
.feature.flip .text { order: 2; }
.feature img { border-radius: 18px; }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; gap: 20px; } .feature.flip .text { order: 0; } }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.gallery figure { margin: 0; }
.gallery img { border-radius: 14px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.gallery figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* Prose pages */
.prose { max-width: 720px; padding-top: 56px; padding-bottom: 72px; }
.prose h1 { font-size: clamp(32px, 6vw, 44px); line-height: 1.15; margin: 0 0 8px; }
.prose h2 { font-size: 22px; margin: 36px 0 8px; }
.prose .muted { color: var(--muted); }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* Footer */
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; padding: 28px 0 40px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer a { color: var(--muted); }
footer nav { display: flex; gap: 20px; }
@media (max-width: 480px) { .top nav a[href$="#modes"] { display: none; } .top nav { gap: 16px; } }
.prose a, footer a { overflow-wrap: anywhere; }
