:root {
  --bg: #0b1322;
  --bg-2: #0f1a2e;
  --surface: #13203a;
  --surface-2: #182844;
  --line: #24365a;
  --text: #e8eef9;
  --muted: #9fb0cc;
  --accent: #3b9cff;
  --accent-2: #2a7fe0;
  --android: #8fd14f;
  --code: #0a111f;
  --radius: 14px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .65);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f8fc;
    --bg-2: #eef2f9;
    --surface: #ffffff;
    --surface-2: #f2f5fb;
    --line: #d9e1ee;
    --text: #0f1b2f;
    --muted: #51607a;
    --accent: #1f6fd6;
    --accent-2: #185cb4;
    --android: #4f9a1c;
    --code: #0f1a2e;
    --shadow: 0 24px 50px -28px rgba(15, 27, 47, .35);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", "Noto Sans", Ubuntu, Cantarell, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, kbd {
  font-family: ui-monospace, "JetBrains Mono", "Cascadia Code", "DejaVu Sans Mono", monospace;
  font-size: .92em;
}
:not(pre) > code { background: var(--surface-2); border: 1px solid var(--line); padding: .05em .35em; border-radius: 6px; }
kbd { background: var(--surface-2); border: 1px solid var(--line); border-bottom-width: 2px; padding: 0 .4em; border-radius: 5px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 16px; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.15rem; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 9px; }
.brand b { color: var(--accent); font-weight: 700; }
.brand.small { font-size: 1rem; }
.nav nav { display: flex; align-items: center; gap: 22px; }
.nav nav a { color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav nav a:hover { color: var(--text); text-decoration: none; }
.nav .gh { display: inline-flex; align-items: center; gap: 6px; color: var(--text); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
@media (max-width: 760px) {
  .nav nav a:not(.gh) { display: none; }
  .nav .gh span { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; border-radius: 12px; font-weight: 600;
  border: 1px solid transparent; transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 10px 26px -12px var(--accent); }
.btn.primary:hover { background: var(--accent-2); }
.btn.ghost { color: var(--text); border-color: var(--line); background: var(--surface); }
.btn.ghost:hover { border-color: var(--accent); }
.btn.small { padding: 9px 16px; font-size: .95rem; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: 72px 0 56px;
  background:
    radial-gradient(900px 420px at 85% 10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(600px 320px at 5% 90%, color-mix(in srgb, var(--android) 12%, transparent), transparent 70%);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; color: var(--muted); font-size: .9rem; font-weight: 500;
  border: 1px solid var(--line); background: var(--surface); padding: 5px 12px; border-radius: 999px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--android); box-shadow: 0 0 0 4px color-mix(in srgb, var(--android) 22%, transparent); }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 18px; }
h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.note { color: var(--muted); font-size: .88rem; margin: 18px 0 0; }
.shot { margin: 0; }
.shot img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--bg-2); }
.hero-shot img { transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transform-origin: left center; }
@media (max-width: 960px) {
  .hero { padding-top: 48px; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-shot img { transform: none; }
}

/* Sections */
.section { padding: 72px 0; }
.section-head { max-width: 46em; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; letter-spacing: -.01em; margin: 0 0 10px; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }
.fine { color: var(--muted); font-size: .9rem; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature h3 { margin: 14px 0 6px; font-size: 1.08rem; }
.feature p { margin: 0; color: var(--muted); font-size: .96rem; }
.ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.ico svg { width: 22px; height: 22px; fill: currentColor; }

.gallery-section { padding-top: 0; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; } }
.gallery figcaption { color: var(--muted); font-size: .92rem; margin-top: 12px; }

/* Install */
.install-section { background: var(--bg-2); border-block: 1px solid var(--line); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; width: fit-content; max-width: 100%; }
.tabs button {
  font: inherit; font-weight: 600; font-size: .94rem; color: var(--muted);
  background: transparent; border: 0; padding: 9px 14px; border-radius: 10px; cursor: pointer;
}
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { background: var(--accent); color: #fff; }
.panel { margin-top: 18px; max-width: 860px; }
.panel p { color: var(--muted); }
.cmd {
  display: flex; align-items: center; gap: 12px;
  background: var(--code); color: #dbe7ff; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 14px 14px 18px; overflow: hidden;
}
.cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font-size: .95rem; background: none; border: 0; padding: 4px 0; }
.cmd code::before { content: "$ "; color: var(--android); user-select: none; }
.copy {
  flex: none; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer;
  color: #dbe7ff; background: #1b2a47; border: 1px solid #2c3f66; padding: 7px 12px; border-radius: 8px;
}
.copy:hover { background: #24375c; }
.copy.done { background: var(--android); border-color: var(--android); color: #0b1322; }
.req { margin-top: 36px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; max-width: 860px; }
.req h3 { margin: 0 0 8px; font-size: 1.05rem; }
.req ul { margin: 0; padding-left: 1.2em; color: var(--muted); }
.req li { margin: 4px 0; }

/* Steps */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; color: var(--muted); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: color-mix(in srgb, var(--android) 20%, transparent); color: var(--android); font-weight: 700; margin-bottom: 12px; }
.steps b { color: var(--text); }

/* FAQ */
.faq { max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 0 0 16px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--muted); font-size: .9rem; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.footer p { margin: 0; }
.footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr; } }

/* User guide */
.nav nav a[aria-current="page"] { color: var(--text); }
.guide-hero { padding: 56px 0 32px;
  background: radial-gradient(800px 320px at 85% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%); }
.guide-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
.guide-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; padding-bottom: 72px; }
.toc { position: sticky; top: 88px; font-size: .94rem; }
.toc-title { margin: 0 0 10px; color: var(--muted); font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); }
.toc a:hover { color: var(--text); text-decoration: none; }
.toc a[aria-current="true"] { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.guide { max-width: 820px; }
.guide section { padding: 8px 0 40px; scroll-margin-top: 84px; }
.guide section + section { border-top: 1px solid var(--line); padding-top: 40px; }
.guide h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); line-height: 1.2; margin: 0 0 16px; letter-spacing: -.01em; }
.guide p, .guide li { color: var(--muted); }
.guide b, .guide strong { color: var(--text); }
.guide ul, .guide ol { padding-left: 1.3em; }
.guide li { margin: 8px 0; }
.guide .shot { margin: 8px 0 24px; }
.guide .shot figcaption { color: var(--muted); font-size: .9rem; margin-top: 10px; }
.guide-steps { counter-reset: step; list-style: none; padding: 0 !important; }
.guide-steps li { counter-increment: step; position: relative; padding-left: 44px; margin: 14px 0; }
.guide-steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: color-mix(in srgb, var(--android) 20%, transparent); color: var(--android); font-weight: 700; font-size: .9rem; }
.note-box { padding: 14px 18px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; background: var(--surface); }
.table-wrap { overflow-x: auto; margin: 8px 0 20px; border: 1px solid var(--line); border-radius: 12px; }
.guide table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.guide th, .guide td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.guide th { background: var(--surface-2); color: var(--text); font-size: .85rem; }
.guide td { color: var(--muted); }
.guide td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
.guide tr:last-child td { border-bottom: 0; }
.tag { display: inline-block; margin-left: 6px; padding: 0 6px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: .72rem; font-weight: 500; vertical-align: middle; }
@media (max-width: 900px) {
  .guide-layout { grid-template-columns: 1fr; gap: 8px; }
  .toc { position: static; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
  .toc ol { display: flex; flex-wrap: wrap; gap: 4px 14px; border: 0; }
  .toc a { padding: 2px 0; border: 0; margin: 0; }
  .guide td:first-child { white-space: normal; }
}
