/* ProxDroid website — palette sampled from assets/boot/proxdroid-splash.bmp
   orange chevron #ff6d01 / #f16404, android green #5bc930 / #74de3e,
   X-white #f0efef, background #0e0d0e. No external fonts or trackers. */

:root {
  --bg: #0b0a0b;
  --bg-2: #121112;
  --surface: #171617;
  --surface-2: #1e1d1e;
  --line: #2a282a;
  --line-2: #3a373a;
  --text: #f0efef;
  --text-2: #b9b6b9;
  --muted: #858185;
  --orange: #ff6d01;
  --orange-2: #f16404;
  --orange-soft: rgba(255, 109, 1, .12);
  --green: #5bc930;
  --green-2: #74de3e;
  --green-soft: rgba(91, 201, 48, .12);
  --grad: linear-gradient(100deg, var(--orange) 0%, #f39a1a 38%, var(--green-2) 62%, var(--green) 100%);
  --radius: 14px;
  --radius-s: 8px;
  --max: 1180px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "JetBrains Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--font);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-2); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
code, kbd, pre { font-family: var(--mono); font-size: .9em; }
:not(pre) > code {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: .08em .38em;
  color: #ffd2b0;
  overflow-wrap: anywhere;
}
::selection { background: var(--orange); color: #000; }
:focus-visible { outline: 2px solid var(--green-2); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--orange); color: #000; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 10, 11, .78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; letter-spacing: .04em; font-size: 1.12rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 9px; }
.brand .x { color: var(--orange); }
.brand .droid { color: var(--green); }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text-2); padding: 8px 12px; border-radius: 8px; font-size: .93rem; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: 8px; width: 42px; height: 40px; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: currentColor; margin: 0 auto; position: relative; transition: .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 16px 16px;
    background: rgba(11, 10, 11, .97); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-open .nav-links { display: flex; }
  .nav-links a { display: block; padding: 12px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 56px; overflow: hidden; isolation: isolate; }
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(90px); opacity: .5;
}
.hero::before { width: 520px; height: 520px; left: -220px; top: -120px; background: radial-gradient(circle, rgba(255,109,1,.55), transparent 65%); }
.hero::after { width: 560px; height: 560px; right: -240px; bottom: -200px; background: radial-gradient(circle, rgba(91,201,48,.45), transparent 65%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 .74rem/1 var(--mono); letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 14px; background: var(--bg-2);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.dot.o { background: var(--orange); box-shadow: 0 0 12px var(--orange); }
h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.01em; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); font-weight: 850; margin-top: 22px; letter-spacing: -.025em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.04rem, 1.6vw, 1.2rem); color: var(--text-2); max-width: 600px; }
.tagline { font: 600 .82rem/1.4 var(--mono); letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin: 18px 0 0; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px;
  font-weight: 650; font-size: .96rem; border: 1px solid transparent; transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #120800; box-shadow: 0 10px 30px -10px rgba(255,109,1,.7); }
.btn-primary:hover { background: #ff7f1f; }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: var(--bg-2); }
.btn-ghost:hover { border-color: var(--green); color: var(--green-2); }
.hero-shot {
  border-radius: 18px; border: 1px solid var(--line-2); overflow: hidden; box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.02) inset;
  position: relative; background: #000;
}
.hero-shot .bar { display: flex; gap: 6px; padding: 10px 12px; background: var(--surface); border-bottom: 1px solid var(--line); align-items: center; }
.hero-shot .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); display: block; }
.hero-shot .bar span { margin-left: 10px; font: .72rem var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-shot img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }
.progress { height: 3px; background: var(--line); overflow: hidden; }
.progress::after { content: ""; display: block; height: 100%; width: 40%; background: var(--grad); animation: load 2.6s ease-in-out infinite; }
@keyframes load { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 56px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--bg-2); padding: 20px 22px; }
.stat b { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -.01em; }
.stat span { color: var(--muted); font-size: .86rem; }
.stat:nth-child(odd) b { color: var(--orange); }
.stat:nth-child(even) b { color: var(--green-2); }

@media (max-width: 900px) {
  .hero { padding-top: 44px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Sections ---------- */
section { padding: 84px 0; border-top: 1px solid var(--line); }
section.alt { background: var(--bg-2); }
.section-head { max-width: 780px; margin-bottom: 40px; }
.kicker { font: 700 .74rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--orange); display: block; margin-bottom: 14px; }
.kicker.g { color: var(--green); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; color: var(--text); }
.section-head p { color: var(--text-2); font-size: 1.06rem; margin: 0; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

.grid { display: grid; gap: 18px; }
.grid > *, .hero-grid > *, .footer-grid > * { min-width: 0; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } section { padding: 60px 0; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px;
  transition: border-color .2s, transform .2s; min-width: 0;
}
.card:hover { border-color: var(--line-2); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card p, .card li { color: var(--text-2); font-size: .95rem; }
.icon {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 14px;
  background: var(--orange-soft); color: var(--orange); border: 1px solid rgba(255,109,1,.25);
}
.icon.g { background: var(--green-soft); color: var(--green-2); border-color: rgba(91,201,48,.25); }
.icon svg { width: 22px; height: 22px; }

ul.clean { list-style: none; padding: 0; margin: 0; }
ul.clean li { position: relative; padding-left: 20px; margin: 0 0 .45em; }
ul.clean li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--orange); transform: rotate(45deg); }
ul.clean.g li::before { background: var(--green); }

/* ---------- Boot chain ---------- */
.chain { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; counter-reset: c; }
.chain .node {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 14px; min-width: 0;
}
.chain .node::before { counter-increment: c; content: "0" counter(c); font: 700 .7rem var(--mono); color: var(--muted); letter-spacing: .1em; }
.chain .node h4 { margin: 6px 0 6px; font-size: .96rem; }
.chain .node p { margin: 0; font-size: .82rem; color: var(--text-2); }
.chain .node:not(:last-child)::after {
  content: ""; position: absolute; right: -10px; top: 50%; width: 10px; height: 2px; background: var(--grad);
}
.chain .node.o { border-top: 2px solid var(--orange); }
.chain .node.g { border-top: 2px solid var(--green); }
@media (max-width: 1000px) {
  .chain { grid-template-columns: repeat(2, 1fr); }
  .chain .node::after { display: none; }
}
@media (max-width: 520px) { .chain { grid-template-columns: 1fr; } }

/* ---------- Pipeline / timeline ---------- */
.pipeline { position: relative; display: grid; gap: 16px; }
.step {
  display: grid; grid-template-columns: 64px 1fr; gap: 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; min-width: 0;
}
.step .num {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  font: 800 1.1rem var(--mono); color: #0b0a0b; background: var(--grad);
}
.step > div { min-width: 0; }
.step h3 { margin-bottom: .35em; }
.step p { color: var(--text-2); }
.io { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.io div { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: .86rem; color: var(--text-2); min-width: 0; }
.io b { display: block; font: 700 .68rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
@media (max-width: 760px) {
  .step { grid-template-columns: 1fr; gap: 12px; }
  .io { grid-template-columns: 1fr; }
}

/* ---------- Code ---------- */
.code {
  position: relative; background: #070607; border: 1px solid var(--line); border-radius: 12px; margin: 14px 0 0; overflow: hidden;
}
.code .head { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--surface); }
.code .head span { font: .72rem var(--mono); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.copy { background: none; border: 1px solid var(--line-2); color: var(--text-2); border-radius: 6px; font: .72rem var(--mono); padding: 4px 9px; cursor: pointer; }
.copy:hover { color: var(--green-2); border-color: var(--green); }
pre { margin: 0; padding: 16px 18px; overflow-x: auto; line-height: 1.6; color: #e6e3e6; font-size: .84rem; tab-size: 2; }
pre .c { color: #6f6a6f; }
pre .k { color: var(--orange); }
pre .s { color: var(--green-2); }
pre .v { color: #ffc48f; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 700 .72rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--bg-2); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td { color: var(--text-2); }
td:first-child { color: var(--text); font-weight: 600; }
td code { white-space: nowrap; }

.badge { display: inline-block; font: 700 .7rem/1 var(--mono); letter-spacing: .08em; padding: 5px 8px; border-radius: 6px; white-space: nowrap; }
.b-pass { color: var(--green-2); background: var(--green-soft); border: 1px solid rgba(91,201,48,.35); }
.b-cur { color: var(--orange); background: var(--orange-soft); border: 1px solid rgba(255,109,1,.4); }
.b-next { color: #ffc48f; background: rgba(255,196,143,.08); border: 1px solid rgba(255,196,143,.25); }
.b-todo { color: var(--muted); background: var(--surface-2); border: 1px solid var(--line-2); }

/* ---------- Roadmap ---------- */
.roadmap { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.phase { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.phase .pn { font: 700 .74rem var(--mono); color: var(--muted); letter-spacing: .1em; }
.phase h4 { margin: 0; font-size: .98rem; }
.phase .meter { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.phase .meter i { display: block; height: 100%; background: var(--grad); }
.phase.done { border-color: rgba(91,201,48,.28); }
.phase.current { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange), 0 10px 40px -16px rgba(255,109,1,.6); }
.phase small { color: var(--muted); font-size: .78rem; }

/* ---------- Callouts ---------- */
.note {
  border: 1px solid var(--line-2); border-left: 3px solid var(--orange); background: var(--orange-soft);
  border-radius: 10px; padding: 14px 18px; color: var(--text-2); font-size: .95rem; margin: 18px 0 0;
}
.note.g { border-left-color: var(--green); background: var(--green-soft); }
.note strong { color: var(--text); }

details.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
details.faq + details.faq { margin-top: 10px; }
details.faq summary { cursor: pointer; padding: 16px 0; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--orange); font: 700 1.2rem var(--mono); }
details.faq[open] summary::after { content: "−"; }
details.faq > div { padding: 0 0 16px; color: var(--text-2); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; background: #070607; color: var(--muted); font-size: .9rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.site-footer img { width: 220px; opacity: .95; }
.site-footer a { color: var(--text-2); }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
