/* Edge Cockpit site. Same palette and type as the console: anodized plates,
   backlit keycaps, cyan for flight, amber for the frame. */

@font-face { font-family: "Chakra Petch"; font-weight: 600; font-display: swap; src: url(fonts/chakra-petch-600.woff2) format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-weight: 700; font-display: swap; src: url(fonts/chakra-petch-700.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(fonts/inter-400.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url(fonts/inter-500.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(fonts/inter-600.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url(fonts/jetbrains-mono-500.woff2) format("woff2"); }

:root {
  --bg: #07090b; --plate: #15191e; --plate-hi: #1d2229; --line: #ffffff14;
  --ink: #e4ebf1; --paint: #c3ccd5; --muted: #8b97a3; --dim: #56626e;
  --cyan: #5cc8e6; --cyan-hi: #8ae2f6; --amber: #ffb547; --ok: #5fe0a0;
  --hud: "Chakra Petch", "Bahnschrift", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  --w: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased;
  background-image: linear-gradient(#ffffff06 1px, transparent 1px), linear-gradient(90deg, #ffffff06 1px, transparent 1px);
  background-size: 48px 48px; background-position: center top; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--cyan-hi); text-decoration: underline; text-underline-offset: 3px; }
code { font: 500 .88em var(--mono); color: var(--paint); background: #0a0c0f; padding: 1px 6px; border-radius: 4px; box-shadow: inset 0 1px 2px #000; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; z-index: 20; background: var(--plate); padding: 8px 12px; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px; padding: 12px max(16px, calc((100% - var(--w)) / 2));
  background: #07090bd9; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font: 700 17px/1 var(--hud); letter-spacing: .14em; text-transform: uppercase; }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand b { color: var(--cyan); font-weight: 700; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.top nav a { color: var(--paint); font: 600 13px/1 var(--hud); letter-spacing: .16em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; }
.top nav a:hover { color: var(--ink); text-decoration: none; }
.top nav .nav-sponsor { color: var(--amber); }
.top nav .nav-sponsor:hover { color: #ffd08a; }
.top nav .gh { color: var(--paint); }

/* ---------- hero ---------- */
main { max-width: var(--w); margin: 0 auto; padding: 0 16px; }
.hero { padding: 56px 0 36px; display: grid; }
.eyebrow { margin: 0 0 14px; font: 700 13px/1 var(--hud); letter-spacing: .32em; text-transform: uppercase; color: var(--amber); }
h1 { margin: 0; font: 700 clamp(34px, 4.6vw, 58px)/1.06 var(--hud); letter-spacing: .01em; text-transform: uppercase; }
h1 span { color: var(--cyan); display: block; }
.lead { margin: 22px 0 0; max-width: 60ch; font-size: clamp(17px, 2vw, 20px); color: #b7c2cc; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cta.center { justify-content: center; }
.meta { margin: 14px 0 0; font: 500 13px/1.5 var(--mono); color: var(--muted); }
.meta a { color: var(--paint); }
.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 22px 0 0; }
.pills li { font: 700 11px/1 var(--hud); letter-spacing: .18em; text-transform: uppercase; color: var(--paint);
  padding: 7px 10px; border-radius: 4px; background: #0a0c0f; box-shadow: inset 0 1px 2px #000, 0 1px 0 #ffffff12; }
.pills li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 6px var(--ok); margin-right: 8px; vertical-align: 1px; }

/* keycaps */
.key { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 22px; border-radius: 10px;
  font: 700 14px/1 var(--hud); letter-spacing: .16em; text-transform: uppercase; color: var(--paint);
  background: linear-gradient(180deg, #2a3038, #1b2026); box-shadow: inset 0 1px 0 #ffffff26, 0 4px 0 #0d1013, 0 6px 14px #0008;
  transition: transform .08s, box-shadow .08s; }
.key:hover { color: var(--ink); text-decoration: none; background: linear-gradient(180deg, #313841, #1f252c); }
.key:active { transform: translateY(3px); box-shadow: inset 0 1px 0 #ffffff26, 0 1px 0 #0d1013, 0 2px 6px #0008; }
.key.primary { color: #04131a; background: linear-gradient(180deg, var(--cyan-hi), var(--cyan)); box-shadow: inset 0 1px 0 #ffffff80, 0 4px 0 #1f6c84, 0 0 28px #5cc8e655; }
.key.primary:hover { color: #04131a; background: linear-gradient(180deg, #a6ecfb, #6fd3ee); }
.key.primary:active { box-shadow: inset 0 1px 0 #ffffff80, 0 1px 0 #1f6c84, 0 0 18px #5cc8e655; }
.key.amber { color: #1d1200; background: linear-gradient(180deg, #ffd08a, var(--amber)); box-shadow: inset 0 1px 0 #ffffff80, 0 4px 0 #8a5a12, 0 0 24px #ffb54740; }
.key.amber:hover { color: #1d1200; background: linear-gradient(180deg, #ffdca6, #ffc165); }

/* ---------- the device ---------- */
.device { margin: 8px auto 0; max-width: 1400px; padding: 0 16px; }
.bezel { padding: clamp(6px, 1.1vw, 14px); border-radius: clamp(10px, 1.4vw, 20px);
  background: linear-gradient(180deg, #23282f, #0d0f12); box-shadow: inset 0 1px 0 #ffffff22, 0 0 0 1px #000, 0 30px 80px #000c, 0 0 120px #5cc8e61a; }
.bezel img { border-radius: clamp(4px, .6vw, 8px); }
.device figcaption { margin-top: 14px; text-align: center; font: 500 13px/1.5 var(--mono); color: var(--muted); }
.device { position: relative; }
.handset { display: block; padding: 6px; border-radius: 26px; background: #050608; box-shadow: 0 0 0 1px #2a2f36, inset 0 0 0 1px #ffffff14, 0 24px 60px #000c; cursor: zoom-in; }
.handset img { display: block; border-radius: 20px; }
.device .handset { position: absolute; right: 2.5%; bottom: 8px; width: 13%; }
.device figcaption { padding-right: 15%; }
.shot.handsets { display: flex; gap: 18px; align-items: flex-end; justify-content: center; padding: 18px; cursor: default; }
.handsets .handset { width: 30%; } .handsets .wide { width: 66%; border-radius: 22px; } .handsets .wide img { border-radius: 16px; }
@media (max-width: 700px) { .device .handset { display: none; } .device figcaption { padding-right: 0; } }

/* ---------- sections ---------- */
section { padding: 80px 0 0; }
.plate-title { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 0 40px;
  font: 700 15px/1 var(--hud); letter-spacing: .32em; text-transform: uppercase; color: var(--paint); }
.plate-title::before, .plate-title::after { content: ""; height: 2px; width: 32px; background: var(--paint); opacity: .45; }
.sub { text-align: center; color: var(--muted); max-width: 60ch; margin: -22px auto 32px; }

.feat { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; margin-bottom: 64px; }
.feat:nth-of-type(even) .feat-text { order: 2; }
.feat h3 { margin: 0 0 10px; font: 700 24px/1.15 var(--hud); letter-spacing: .06em; text-transform: uppercase; color: var(--cyan); }
.feat p { margin: 0; color: #b7c2cc; }
.shot { display: block; padding: 6px; border-radius: 12px; background: linear-gradient(180deg, #23282f, #0d0f12); box-shadow: inset 0 1px 0 #ffffff1c, 0 0 0 1px #000, 0 16px 40px #000a; cursor: zoom-in; }
.shot img { border-radius: 7px; }

.grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid li, .trust li, .steps li, .faq details, .support { border-radius: 14px;
  background: linear-gradient(180deg, var(--plate-hi), var(--plate) 60%, #111418); box-shadow: inset 0 1px 0 #ffffff1c, inset 0 -1px 0 #00000080, 0 0 0 1px #000, 0 6px 18px #0009; }
.grid li { padding: 20px 22px; }
.grid b, .trust b, .steps b { display: block; margin-bottom: 6px; font: 700 14px/1.3 var(--hud); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.grid span, .trust span, .steps span { color: var(--muted); font-size: 15px; }

/* install */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.steps li { counter-increment: s; padding: 22px 22px 24px; position: relative; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; margin-bottom: 12px; font: 700 28px/1 var(--hud); color: var(--amber); }
.steps em { font-style: normal; color: var(--paint); }

/* safety */
.trust { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.trust li { padding: 20px 22px; display: flex; flex-direction: column; }
.trust b::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 6px var(--ok); margin-right: 10px; vertical-align: 2px; }
.trust span { flex: 1; }
.trust a { margin-top: 12px; font: 600 12px/1 var(--hud); letter-spacing: .16em; text-transform: uppercase; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 26px 0 0; }

/* faq */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; display: flex; justify-content: space-between; gap: 16px;
  font: 600 17px/1.35 var(--hud); letter-spacing: .04em; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cyan); font: 700 20px/1 var(--mono); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 22px 20px; color: #b7c2cc; }

/* support */
.support { margin-top: 80px; padding: 28px 32px; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.support h2 { margin: 0 0 4px; font: 700 22px/1.2 var(--hud); letter-spacing: .1em; text-transform: uppercase; color: var(--amber); }
.support p { margin: 0; color: var(--muted); }
.support .cta { margin: 0; }

.foot { max-width: var(--w); margin: 72px auto 0; padding: 28px 16px 48px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; text-align: center; }
.foot p { margin: 0 0 6px; }
.foot a { color: var(--muted); }

/* lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 92vh; overflow: auto; }
.lightbox::backdrop { background: #000d; }
.lightbox img { max-width: none; width: 2560px; max-height: none; }
@media (min-width: 900px) { .lightbox img { width: min(2560px, 96vw); } }
.lightbox .close { position: fixed; top: 14px; right: 18px; width: 40px; height: 40px; border: 0; border-radius: 8px; cursor: pointer;
  color: var(--ink); font-size: 18px; background: linear-gradient(180deg, #2a3038, #1b2026); box-shadow: inset 0 1px 0 #ffffff26; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .feat { grid-template-columns: 1fr; gap: 18px; margin-bottom: 48px; }
  .feat:nth-of-type(even) .feat-text { order: 0; }
  .grid, .trust, .steps { grid-template-columns: 1fr 1fr; }
  .support { grid-template-columns: 1fr; text-align: left; }
  .top nav a:not(.nav-sponsor):not(.gh) { display: none; }
}
@media (max-width: 600px) {
  .hero { padding-top: 44px; }
  .grid, .trust, .steps { grid-template-columns: 1fr; }
  .key { width: 100%; justify-content: center; }
  section { padding-top: 60px; }
  .brand span { font-size: 15px; }
  .top { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .key { transition: none; } }
