:root {
  color-scheme: dark;
  --bg: #07080a;
  --bg-2: #0b0e12;
  --panel: #101419;
  --panel-2: #141a21;
  --text: #f2f5f8;
  --muted: #97a2ae;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #0a84ff;
  --accent-2: #57aaff;
  --green: #30d158;
  --orange: #ff9f0a;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  --max: 1120px;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f6f7f9;
    --bg-2: #ffffff;
    --panel: #ffffff;
    --panel-2: #f4f6f8;
    --text: #0a0c0f;
    --muted: #5d6773;
    --line: rgba(0, 0, 0, 0.08);
    --line-strong: rgba(0, 0, 0, 0.14);
    --shadow: 0 24px 60px rgba(18, 30, 45, 0.12);
  }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html, body {
  width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(10, 132, 255, 0.16), transparent 60%),
    radial-gradient(900px 500px at 95% 0%, rgba(87, 170, 255, 0.10), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.01em;
  font-size: 15px;
  flex: 0 0 auto;
}

.brand img {
  border-radius: 7px;
  box-shadow: 0 0 0 1px var(--line);
}

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: 8px;
  flex: 1 1 auto;
}

.nav-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--text); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}

.github-link {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}

.github-link:hover { color: var(--text); }

.coffee-nav {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  border-radius: 8px;
  border: 1px solid rgba(255, 214, 94, 0.62);
  background: linear-gradient(180deg, #ffd866, #f2b300);
  color: #241a03;
  font-size: 12.5px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 5px 16px rgba(245, 184, 0, 0.16);
  transition: filter 0.15s, box-shadow 0.15s;
}

.coffee-nav:hover {
  filter: brightness(1.04);
  box-shadow: 0 7px 20px rgba(245, 184, 0, 0.22);
}

@media (max-width: 600px) {
  .coffee-full { display: none; }
  .coffee-nav { font-size: 12px; padding: 7px 9px; }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  padding: 12px 20px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  box-shadow: 0 8px 24px rgba(10, 132, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.15s ease;
}

.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(1px); }

.btn:focus-visible,
.coffee-nav:focus-visible,
.chip:focus-visible,
.dialog-close:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

.btn-small {
  padding: 8px 14px;
  font-size: 12.5px;
  border-radius: 8px;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
  box-shadow: none;
}

.btn-ghost:hover {
  background: color-mix(in srgb, var(--text) 5%, transparent);
  filter: none;
}

.btn-block { width: 100%; }

.btn-coffee {
  background: linear-gradient(180deg, #ffcf5c, #f0a500);
  color: #1c1404;
  box-shadow: 0 8px 24px rgba(240, 165, 0, 0.25);
  white-space: normal;
}

/* Hero */

.hero {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 56px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 56px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 22px;
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(48, 209, 88, 0.14);
}

.hero h1 {
  margin: 0 0 20px;
  overflow-wrap: break-word;
  font-size: clamp(40px, 5.1vw, 62px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.grad {
  background: linear-gradient(92deg, var(--accent-2), #bfe0ff 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (prefers-color-scheme: light) {
  .grad { background: linear-gradient(92deg, #0068d8, #0a84ff 70%); -webkit-background-clip: text; background-clip: text; }
}

.lede {
  width: 100%;
  margin: 0 0 28px;
  overflow-wrap: break-word;
  max-width: 520px;
  font-size: 17px;
  color: var(--muted);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.fine {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.hero-visual {
  width: 100%;
  min-width: 0;
  display: flex;
  justify-content: center;
  position: relative;
}

.shot-frame {
  max-width: 100%;
  border-radius: 22px;
  padding: 7px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-shot {
  width: 100%;
  max-width: 356px;
}

.hero-shot img {
  border-radius: 16px;
  width: 100%;
  height: auto;
}

/* Sections */

.section {
  padding-top: 62px;
  padding-bottom: 62px;
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 680px;
  margin-bottom: 30px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent-2);
}

h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 680;
}

.section-sub {
  margin: 12px 0 0;
  font-size: 15px;
  color: var(--muted);
  max-width: 620px;
}

/* Features */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature {
  min-width: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel) 96%, transparent), color-mix(in srgb, var(--panel-2) 88%, transparent));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--accent-2);
  background: rgba(10, 132, 255, 0.11);
  border: 1px solid rgba(10, 132, 255, 0.16);
  margin-bottom: 14px;
}

.feature-icon svg { width: 20px; height: 20px; }

.feature h3 {
  margin: 0 0 6px;
  font-size: 15.5px;
  letter-spacing: -0.015em;
  font-weight: 650;
}

.feature p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}

/* Screenshots */

.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.shot-card {
  min-width: 0;
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
}

.shot-card img {
  border-radius: 12px;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}

.shot-card figcaption {
  padding: 12px 6px 4px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.step {
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.step-number {
  width: 27px;
  height: 27px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 13px;
}

.step h3 {
  margin: 0 0 6px;
  font-size: 15px;
  letter-spacing: -0.015em;
}

.step p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.text-link {
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-2);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.text-link:hover { text-decoration: underline; }

.note {
  margin-top: 18px;
  border: 1px solid rgba(255, 159, 10, 0.22);
  background: rgba(255, 159, 10, 0.07);
  border-radius: 13px;
  padding: 13px 16px;
  font-size: 12.5px;
  color: var(--muted);
}

.note strong { color: var(--text); }

code {
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 0.92em;
  background: color-mix(in srgb, var(--text) 7%, transparent);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
  white-space: nowrap;
}

/* Compatibility */

.compat {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
  background: linear-gradient(150deg, color-mix(in srgb, var(--panel) 94%, transparent), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px;
}

.compat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
  font-size: 13.5px;
}

.compat-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
}

.tick {
  color: var(--green);
  font-weight: 700;
}

.muted { color: var(--muted); }

/* FAQ */

.faq {
  display: grid;
  gap: 9px;
  max-width: 820px;
}

details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 0 16px;
}

details[open] { background: var(--panel-2); }

summary {
  cursor: pointer;
  list-style: none;
  padding: 15px 0;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  color: var(--muted);
  font-weight: 400;
  font-size: 20px;
  line-height: 1;
  transition: transform 0.18s;
}

details[open] summary::after { transform: rotate(45deg); }

details p {
  margin: 0 0 15px;
  font-size: 13px;
  color: var(--muted);
  max-width: 700px;
}

/* Support */

.support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background:
    radial-gradient(600px 220px at 0% 0%, rgba(255, 159, 10, 0.12), transparent 70%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px;
}

.support h2 { margin-bottom: 8px; }

.support p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  max-width: 600px;
}

/* Footer */

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 34px;
  margin-top: 28px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.footer-brand img { border-radius: 6px; }

.footer-dot { color: var(--muted); }

.footer-links {
  display: flex;
  gap: 18px;
  font-size: 12.5px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover { color: var(--text); }

.footer-fine {
  margin-top: 16px;
  color: var(--muted);
  font-size: 11px;
  opacity: 0.8;
}

/* Dialog */

dialog {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(440px, calc(100vw - 32px));
  width: 100%;
  color: var(--text);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.dialog-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 26px;
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--text) 5%, transparent);
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.dialog-close:hover { color: var(--text); }

.dialog-icon {
  border-radius: 14px;
  margin-bottom: 14px;
  box-shadow: 0 0 0 1px var(--line), 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dialog-card h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.dialog-sub {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--muted);
}

.amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.chip {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--text) 4%, transparent);
  color: var(--text);
  border-radius: 9px;
  padding: 8px 13px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.chip:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }

.chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.chip-custom {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-right: 8px;
  color: var(--muted);
}

.chip-custom input {
  width: 58px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  outline: none;
  padding: 0;
}

.chip-custom input::-webkit-outer-spin-button,
.chip-custom input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.chip-custom input::placeholder { color: var(--muted); font-weight: 500; }

.dialog-fine {
  margin: 12px 0 0;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

.dialog-fine a { color: var(--accent-2); text-decoration: none; }

.coffee-link {
  display: block;
  margin-top: 14px;
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
  text-decoration: none;
}

.coffee-link:hover { color: var(--text); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    padding-top: 46px;
  }
  .hero-visual { order: 2; }
  .hero-shot { width: min(100%, 330px); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .shot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shot-grid .shot-card:last-child { grid-column: span 2; max-width: 380px; justify-self: center; }
  .compat { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .support { flex-direction: column; align-items: flex-start; }
  .nav-links { display: none; }
  .github-link { display: none; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  .hero h1 { font-size: 34px; }
  .hero-actions { gap: 8px; }
  .hero-actions .btn { padding: 11px 16px; font-size: 13px; }
  .lede { font-size: 15px; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .shot-grid { grid-template-columns: minmax(0, 1fr); }
  .shot-grid .shot-card:last-child { grid-column: auto; max-width: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .section { padding-top: 46px; padding-bottom: 46px; }
  .hero h1 { font-size: 32px; }
  .dialog-card { padding: 22px; }
}
