/* OmniBots install site — the app's look: deep navy, cyan glow, glass panels. */
:root {
  --bg0: #070b18; --bg1: #0b1226; --bg2: #111a35; --bg3: #16224a;
  --border: #22345f; --accent: #2f7dff; --cyan: #6fe3ff; --purple: #7c4dff;
  --text: #e7edfb; --dim: #8b97b8; --faint: #5b6688; --green: #3ad07a;
  --radius: 18px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font: 16px/1.6 var(--font); color: var(--text); background: var(--bg0);
  background-image:
    radial-gradient(1100px 600px at 80% -10%, rgba(47,125,255,.18), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(124,77,255,.12), transparent 60%);
  background-attachment: fixed;
}
img, video { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: .92em; background: var(--bg2); border: 1px solid var(--border);
       border-radius: 6px; padding: .05em .35em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.section { padding-block: 72px 24px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.sub { color: var(--dim); margin: -.2em 0 1.6em; }
.dim { color: var(--dim); }

/* header */
.top { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
       background: rgba(7,11,24,.72); border-bottom: 1px solid var(--border);
       padding-top: env(safe-area-inset-top, 0px); }
.top-row { display: flex; align-items: center; gap: 14px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.2rem; }
.brand:hover { text-decoration: none; }
.version { display: inline-flex; align-items: center; gap: 7px; font: 600 .82rem var(--mono); color: var(--cyan);
           background: rgba(111,227,255,.08); border: 1px solid rgba(111,227,255,.35); border-radius: 999px; padding: 3px 11px; }
.version:hover { text-decoration: none; border-color: var(--cyan); }
.version .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.version.live .dot { background: var(--green); box-shadow: 0 0 8px var(--green); }
.nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--dim); padding: 6px 12px; border-radius: 10px; }
.nav a:hover { color: var(--text); background: var(--bg2); text-decoration: none; }

/* hero */
.hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; padding-block: 64px 32px; }
.eyebrow { color: var(--cyan); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; margin: 0 0 12px; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); letter-spacing: -.02em; }
.glow { color: var(--cyan); text-shadow: 0 0 28px rgba(111,227,255,.45); }
.lead { color: #c3cde6; font-size: 1.1rem; max-width: 36em; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 22px; }
.btn { display: inline-block; font-weight: 600; padding: 12px 22px; border-radius: 14px; border: 1px solid var(--border);
       color: var(--text); transition: transform .15s, box-shadow .15s, border-color .15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--purple)); border-color: transparent;
               box-shadow: 0 8px 28px rgba(47,125,255,.35); }
.btn.primary:hover { box-shadow: 0 10px 34px rgba(47,125,255,.5); }
.btn.ghost { background: rgba(17,26,53,.6); }
.btn.ghost:hover { border-color: var(--cyan); }
.btn.disabled { opacity: .55; cursor: not-allowed; transform: none; }
.facts { list-style: none; display: flex; gap: 22px; padding: 0; margin: 0; color: var(--dim); flex-wrap: wrap; }
.facts b { color: var(--text); margin-right: 4px; }
.hero-media { border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(111,227,255,.35);
              box-shadow: 0 0 0 1px rgba(47,125,255,.15), 0 30px 80px rgba(0,0,0,.55), 0 0 60px rgba(47,125,255,.18);
              aspect-ratio: 16 / 9; background: #05070d; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; }

/* screenshots */
.shot { margin: 0 0 28px; }
.shot .zoom { display: block; width: 100%; padding: 0; border: 1px solid var(--border); border-radius: var(--radius);
              overflow: hidden; background: var(--bg1); cursor: zoom-in; transition: border-color .2s, transform .2s; }
.shot .zoom:hover { border-color: var(--cyan); transform: translateY(-2px); }
.shot .zoom img { width: 100%; height: auto; }
.grid2 .shot .zoom { aspect-ratio: 16 / 10.4; }
.grid2 .shot .zoom img { height: 100%; object-fit: cover; object-position: top left; }
.shot figcaption { color: var(--dim); font-size: .95rem; margin-top: 10px; }
.shot figcaption b { color: var(--text); }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 28px; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: linear-gradient(180deg, rgba(17,26,53,.75), rgba(11,18,38,.75)); border: 1px solid var(--border);
        border-radius: var(--radius); padding: 22px 22px 18px; }
.card h3 { font-size: 1.08rem; }
.card p { color: var(--dim); margin: 0; }

/* install */
.install { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; align-items: start; }
.need, .hint { color: var(--dim) !important; margin: 0 0 14px !important; }
.hint { margin: 14px 0 0 !important; font-size: .92rem; }
.code { position: relative; background: #05080f; border: 1px solid var(--border); border-radius: 14px; }
.code pre { margin: 0; padding: 18px 20px; overflow-x: auto; }
.code pre code { background: none; border: 0; padding: 0; color: #c9d4ee; font-size: .95rem; line-height: 1.75; }
.copy { position: absolute; top: 10px; right: 10px; font: 600 .8rem var(--font); color: var(--text); background: var(--bg3);
        border: 1px solid var(--border); border-radius: 9px; padding: 5px 12px; cursor: pointer; }
.copy:hover { border-color: var(--cyan); }
.copy.done { color: var(--green); border-color: var(--green); }
.soon .btn { margin-top: 16px; }

/* footer */
.foot { border-top: 1px solid var(--border); margin-top: 72px; padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px));
        background: rgba(7,11,24,.8); }
.foot-row { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center; }
.foot p { margin: 2px 0; }

/* lightbox */
dialog#lightbox { border: 1px solid var(--border); border-radius: var(--radius); padding: 0; background: var(--bg0);
                  max-width: min(96vw, 1600px); max-height: 94vh; overflow: auto; }
dialog#lightbox::backdrop { background: rgba(3,5,12,.82); backdrop-filter: blur(4px); }
dialog#lightbox img { width: 100%; height: auto; }
dialog#lightbox .close { position: sticky; top: 10px; float: right; margin: 10px; z-index: 1; font-size: 1rem; color: var(--text);
                         background: var(--bg3); border: 1px solid var(--border); border-radius: 10px; width: 36px; height: 36px; cursor: pointer; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .install { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .grid2, .cards { grid-template-columns: 1fr; }
  .nav { width: 100%; margin-left: -12px; }
  .section { padding-top: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .shot .zoom { transition: none; }
}

/* the "install by hand" fold */
.manual { margin-top: 16px; }
.manual summary { cursor: pointer; color: var(--dim); font-weight: 600; margin-bottom: 10px; }
.manual summary:hover { color: var(--text); }

/* long commands wrap instead of hiding under the Copy button */
.code pre { padding-right: 96px; white-space: pre-wrap; overflow-wrap: anywhere; }
