:root {
  color-scheme: light;
  --bg: #fafbfd;
  --fg: #17243a;
  --muted: #58657b;
  --card: #fff;
  --soft: #f1f5fa;
  --border: #dce3ed;
  --accent: #325bcb;
  --cyan: #087a88;
  --purple: #7543cf;
  --shadow: 0 24px 70px rgba(33, 49, 89, .1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b101b;
    --fg: #edf2fc;
    --muted: #a6b4c9;
    --card: #121a29;
    --soft: #172132;
    --border: #29364a;
    --accent: #98b8ff;
    --cyan: #76e5e2;
    --purple: #c5a3ff;
    --shadow: 0 24px 70px rgba(0, 0, 0, .25);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b101b;
  --fg: #edf2fc;
  --muted: #a6b4c9;
  --card: #121a29;
  --soft: #172132;
  --border: #29364a;
  --accent: #98b8ff;
  --cyan: #76e5e2;
  --purple: #c5a3ff;
  --shadow: 0 24px 70px rgba(0, 0, 0, .25);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; border-radius: 4px; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; height: auto; vertical-align: middle; }
code { font: .87em ui-monospace, "SF Mono", Menlo, monospace; background: var(--soft); padding: 2px 5px; border-radius: 5px; overflow-wrap: anywhere; }
.wrap { width: min(1180px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 20px; z-index: 10; padding: 12px 20px; background: var(--card); }
.skip-link:focus { top: 12px; }
.site-header { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); font-size: 20px; font-weight: 750; letter-spacing: -.7px; text-decoration: none; }
.brand img { border-radius: 9px; }
.brand-dot { color: var(--cyan); margin-left: -10px; }
nav { display: flex; align-items: center; gap: 28px; }
nav a { color: var(--muted); font-size: 14px; font-weight: 550; text-decoration: none; padding-block: 10px; }
nav a:hover { color: var(--fg); }
.theme-toggle { min-width: 60px; min-height: 44px; padding: 8px 13px; border: 1px solid var(--border); border-radius: 24px; color: var(--muted); background: transparent; font-size: 12px; }
.theme-toggle:hover { background: var(--card); color: var(--fg); }
section { padding-block: 88px; }
.hero { display: grid; grid-template-columns: .95fr 1.15fr; align-items: center; gap: 48px; padding-top: 60px; padding-bottom: 80px; }
.hero-copy, .shot, .section-heading, .steps, .faq { min-width: 0; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1.6px; color: var(--cyan); line-height: 1.8; }
.hero .eyebrow { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .1px; }
.status-dot { height: 6px; width: 6px; flex-shrink: 0; border-radius: 50%; background: var(--cyan); }
h1 { margin-top: 23px; font-size: clamp(44px, 4.7vw, 66px); line-height: 1.08; letter-spacing: -3px; font-weight: 750; }
.gradient-text { color: var(--accent); background: linear-gradient(105deg, var(--cyan), var(--accent) 53%, var(--purple)); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.tag { max-width: 470px; color: var(--muted); font-size: 17px; line-height: 1.75; margin-top: 24px; }
.free-label { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; font-weight: 700; margin-top: 24px; }
.free-label span { color: var(--muted); font-weight: 400; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 19px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 22px; border-radius: 10px; font-size: 14px; font-weight: 650; text-decoration: none; transition: transform .16s, box-shadow .16s; }
.btn:hover { transform: translateY(-2px); }
.primary { color: white; background: linear-gradient(115deg, #225ab6, #6041cd); box-shadow: 0 6px 20px #4a50b935; border: 1px solid transparent; }
.primary:hover { box-shadow: 0 8px 26px #4a50b954; }
.secondary { color: var(--fg); background: var(--card); border: 1px solid var(--border); }
.req { font-size: 11px; color: var(--muted); margin-top: 14px; }
.brew { margin-top: 25px; font-size: 11px; color: var(--muted); }
.brew code { display: block; width: fit-content; max-width: 100%; margin-top: 8px; padding: 10px 13px; border: 1px solid var(--border); color: var(--fg); font-size: 12px; user-select: all; }
.repo-stats { display: flex; gap: 12px; margin-top: 17px; font-size: 11px; color: var(--muted); }
.repo-stats a { color: inherit; text-decoration: none; }
.shot { position: relative; }
.shot::before { content: ""; position: absolute; inset: -40px -20px; z-index: -1; background: radial-gradient(ellipse at 25% 35%, #42b8d322, transparent 65%), radial-gradient(ellipse at 85% 75%, #865bd526, transparent 65%); }
.shot-frame { padding: 10px; background: linear-gradient(135deg, #66dbd133, #627cdd26, #a16bdc33); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); }
.shot img { display: block; width: 100%; border-radius: 10px; }
figcaption { font-size: 11px; color: var(--muted); margin-top: 14px; text-align: center; }
.principles { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-block: 25px; border-block: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.principles p { display: flex; align-items: center; gap: 9px; }
.principles span { color: var(--cyan); font-size: 20px; }
h2 { font-size: clamp(30px, 3vw, 40px); letter-spacing: -1.5px; font-weight: 700; line-height: 1.2; margin-top: 13px; }
.lead { color: var(--muted); max-width: 650px; margin-top: 19px; margin-bottom: 38px; font-size: 15px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 27px; min-width: 0; }
.card.featured { grid-column: span 2; background: linear-gradient(130deg, #529ecd0c, #8d62d810), var(--card); }
.feature-symbol { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); background: var(--soft); color: var(--cyan); font-size: 25px; line-height: 1; }
.card h3 { font-size: 18px; letter-spacing: -.4px; margin: 18px 0 10px; line-height: 1.35; }
.card.featured h3 { font-size: 24px; }
.card p { color: var(--muted); font-size: 14px; line-height: 1.8; max-width: 560px; }
#screenshots { border-top: 1px solid var(--border); }
.showcase { max-width: 960px; margin-inline: auto; }
.showcase-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 24px; }
.showcase-tabs button { min-height: 44px; padding: 9px 20px; border: 1px solid transparent; border-radius: 24px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; }
.showcase-tabs button:hover { background: var(--soft); color: var(--fg); }
.showcase-tabs button[aria-selected="true"] { background: var(--card); color: var(--cyan); border-color: var(--border); box-shadow: 0 3px 12px #17243a08; }
.showcase-panels { display: grid; gap: 24px; }
.showcase.is-interactive .showcase-panels { touch-action: pan-y pinch-zoom; }
.showcase figure { padding: 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.showcase figure:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.showcase-image { aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center; background: var(--soft); border-radius: 10px; overflow: hidden; }
.showcase-image img { width: 100%; height: 100%; object-fit: contain; display: block; }
.showcase figcaption { margin-top: 16px; min-height: 3.3em; padding-inline: 6px; font-size: 13px; }
.showcase-hint { text-align: center; color: var(--muted); font-size: 11px; margin-top: 18px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.setup, .faq-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; border-top: 1px solid var(--border); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 0 0 28px 54px; }
.steps li:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 39px; bottom: 7px; width: 1px; background: var(--border); }
.steps .num { counter-increment: step; position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid var(--border); border-radius: 50%; color: var(--cyan); background: var(--card); font-size: 13px; font-weight: 700; }
.steps .num::before { content: counter(step); }
.steps h3 { font-size: 16px; line-height: 1.5; margin-bottom: 7px; }
.steps p { color: var(--muted); font-size: 14px; }
.code { display: block; margin-top: 10px; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--soft); font: 13px/1.7 ui-monospace, "SF Mono", Menlo, monospace; overflow-wrap: anywhere; }
.how { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 0; margin: 32px 0 0; list-style: none; }
.how li { padding: 24px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); font-size: 14px; color: var(--muted); }
.how strong { display: block; color: var(--fg); font-size: 17px; margin-bottom: 10px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 20px 0; cursor: pointer; font-size: 15px; font-weight: 600; list-style: none; line-height: 1.6; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; flex-shrink: 0; }
.faq details[open] summary::after { content: "\2212"; }
.faq p { padding: 0 24px 20px 0; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.closing { padding-block: 0 80px; }
.closing-inner { padding: 55px 24px; text-align: center; border: 1px solid var(--border); border-radius: 20px; background: radial-gradient(ellipse at 20% 0%, #3197c812, transparent 65%), radial-gradient(ellipse at 90% 100%, #9465d612, transparent 65%), var(--card); }
.closing img { border-radius: 17px; margin-bottom: 20px; }
.closing h2 { margin-bottom: 16px; }
.closing p:not(.eyebrow) { color: var(--muted); }
.closing .btn { margin-top: 24px; }
footer { border-top: 1px solid var(--border); padding: 30px 0 38px; font-size: 12px; color: var(--muted); text-align: center; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }
@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; gap: 40px; text-align: center; padding-top: 40px; }
  .hero-copy { max-width: 650px; margin-inline: auto; }
  .hero .eyebrow, .free-label, .cta, .repo-stats { justify-content: center; }
  .tag { margin-inline: auto; max-width: 580px; }
  h1 { font-size: clamp(44px, 7vw, 66px); }
  .brew code { margin-inline: auto; }
  .shot { max-width: 820px; margin-inline: auto; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card.featured { grid-column: auto; }
  .card.featured h3 { font-size: 18px; }
  .setup, .faq-section { grid-template-columns: 1fr; gap: 25px; }
  .principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { min-height: 80px; gap: 10px; }
  nav { gap: 15px; }
  .nav-features { display: none; }
  .brand { font-size: 18px; gap: 8px; }
  .brand-dot { margin-left: -8px; }
  .brand img { width: 32px; height: 32px; }
  nav a { font-size: 12px; }
  .theme-toggle { min-width: 48px; padding-inline: 9px; }
  .hero { padding-top: 30px; padding-bottom: 50px; gap: 30px; }
  .hero .eyebrow { font-size: 10px; }
  h1 { font-size: clamp(37px, 10vw, 52px); letter-spacing: -2px; }
  .tag { font-size: 15px; margin-top: 20px; }
  .free-label { font-size: 11px; gap: 7px; }
  .cta { gap: 9px; }
  .btn { padding: 12px 16px; font-size: 13px; }
  .brew code { font-size: 11px; }
  .shot::before { inset: -15px; }
  .shot-frame { padding: 5px; border-radius: 12px; }
  .shot img { border-radius: 7px; }
  .shot figcaption { font-size: 10px; }
  section { padding-block: 55px; }
  h2 { font-size: 30px; letter-spacing: -1px; }
  .principles { gap: 15px 10px; font-size: 10px; }
  .principles span { font-size: 18px; }
  .grid, .how { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .showcase-tabs { gap: 4px; margin-bottom: 18px; }
  .showcase-tabs button { flex: 0 1 calc(33.333% - 4px); padding-inline: 6px; font-size: 12px; }
  .showcase figure { padding: 8px; }
  .showcase figcaption { font-size: 12px; min-height: 4.95em; margin-top: 12px; }
  .closing { padding-bottom: 55px; }
  .closing h2 { font-size: 29px; }
  .closing p:not(.eyebrow) { font-size: 14px; }
  .closing .req { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
