/* E-Bike Doctor PRO – website design system. Dark navy / black, neon cyan, white; glass surfaces; system fonts (no
   third-party font requests = fast and GDPR-friendly). Motion respects prefers-reduced-motion. */
:root {
  --bg: #04060c; --bg2: #081226; --navy: #0b1a3a;
  --glass: rgba(16, 30, 58, .48); --glass-2: rgba(22, 42, 78, .62);
  --line: rgba(120, 210, 255, .14); --line-2: rgba(120, 210, 255, .28);
  --ink: #eef7ff; --muted: #9fb2cf; --dim: #6f83a3;
  --cyan: #2de2ff; --teal: #1fe0c8; --blue: #3a7bff; --amber: #ffc861;
  --grad: linear-gradient(110deg, #2de2ff 0%, #3a7bff 55%, #8a7bff 100%);
  --radius: 22px; --radius-sm: 14px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px var(--line);
  --glow: 0 0 0 1px rgba(45, 226, 255, .35), 0 20px 60px -20px rgba(45, 226, 255, .45);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "SF Pro Text", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "SF Pro Display", Roboto, Arial, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--cyan); color: #001018; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(960px, 100% - 40px); }
.center { text-align: center; }
.muted { color: var(--muted); } .small { font-size: .9rem; }
.ic { width: 24px; height: 24px; flex: none; } .ic.sm { width: 18px; height: 18px; }

/* ---------- animated background */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(1200px 700px at 75% -10%, #0c2350 0%, transparent 60%), radial-gradient(900px 600px at -10% 30%, #071a33 0%, transparent 60%), var(--bg); }
.grid { position: absolute; inset: -50%; background-image: linear-gradient(rgba(45, 226, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(45, 226, 255, .06) 1px, transparent 1px);
  background-size: 56px 56px; transform: perspective(900px) rotateX(58deg) translateY(-10%); mask-image: radial-gradient(ellipse at 50% 35%, #000 20%, transparent 65%); animation: gridmove 22s linear infinite; }
@keyframes gridmove { to { background-position: 0 560px, 0 0; } }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; animation: float 18s ease-in-out infinite; }
.o1 { width: 520px; height: 520px; background: #0e5bff55; top: -120px; right: -80px; }
.o2 { width: 420px; height: 420px; background: #00e0ff33; top: 45%; left: -160px; animation-delay: -6s; }
.o3 { width: 380px; height: 380px; background: #6a4dff30; bottom: -160px; right: 20%; animation-delay: -11s; }
@keyframes float { 50% { transform: translate3d(40px, -30px, 0) scale(1.08); } }

/* ---------- header */
.topbar { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: linear-gradient(180deg, rgba(4, 7, 14, .82), rgba(4, 7, 14, .55)); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 22px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 600 1.08rem var(--display); letter-spacing: .2px; white-space: nowrap; }
.brand:hover { text-decoration: none; } .brand img { border-radius: 10px; } .brand b { color: var(--cyan); }
.mainnav { display: flex; gap: 6px; margin-left: 10px; }
.mainnav a { color: var(--muted); padding: 8px 14px; border-radius: 999px; font-weight: 500; }
.mainnav a:hover { color: var(--ink); background: rgba(255, 255, 255, .05); text-decoration: none; }
.mainnav a[aria-current="page"] { color: var(--ink); background: rgba(45, 226, 255, .1); box-shadow: inset 0 0 0 1px rgba(45, 226, 255, .3); }
.bar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.langs { display: flex; align-items: center; gap: 2px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .03); color: var(--muted); }
.langs .ic { margin: 0 4px; }
.langs a { color: var(--muted); font-weight: 700; font-size: .82rem; padding: 4px 8px; border-radius: 999px; letter-spacing: .6px; }
.langs a:hover { color: var(--ink); text-decoration: none; }
.langs a[aria-current="true"] { color: #001018; background: var(--cyan); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 12px; padding: 8px; cursor: pointer; }

/* ---------- buttons, chips */
.btn { --b: transparent; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; font: 650 1rem var(--font);
  padding: 12px 22px; border-radius: 14px; color: var(--ink); transition: transform .18s ease, box-shadow .25s ease, background .25s ease; text-decoration: none !important; white-space: nowrap; }
.btn-sm { padding: 8px 16px; font-size: .92rem; border-radius: 12px; }
.btn-lg { padding: 15px 26px; font-size: 1.05rem; border-radius: 16px; }
.btn-primary { color: #00111a; background: var(--grad); background-size: 160% 100%; box-shadow: 0 10px 30px -10px rgba(45, 226, 255, .7); }
.btn-primary:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 16px 40px -12px rgba(45, 226, 255, .9); }
.btn-glass { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line-2); backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(45, 226, 255, .12); transform: translateY(-2px); }
.btn-ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--cyan); }
.btn.disabled { opacity: .65; cursor: default; transform: none; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; } .center-row { justify-content: center; }
.eyebrow { display: inline-flex; flex-wrap: wrap; max-width: 100%; align-items: center; gap: 8px; color: var(--cyan); font-weight: 700; font-size: .78rem; letter-spacing: 1.6px; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; background: rgba(45, 226, 255, .08); box-shadow: inset 0 0 0 1px rgba(45, 226, 255, .25); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chip { font-size: .85rem; color: var(--muted); padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- glass */
.glass { background: linear-gradient(160deg, var(--glass-2), var(--glass)); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(16px) saturate(130%); -webkit-backdrop-filter: blur(16px) saturate(130%); box-shadow: var(--shadow); }
.glow { box-shadow: var(--glow); position: relative; overflow: hidden; }
.glow::before { content: ""; position: absolute; inset: -1px; background: conic-gradient(from var(--a, 0deg), transparent 0 70%, rgba(45, 226, 255, .55) 80%, transparent 90%);
  border-radius: inherit; z-index: -1; animation: spin 8s linear infinite; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; padding: 1px; }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --a: 360deg; } }

/* ---------- typography */
.h1 { font: 800 clamp(2.5rem, 5.6vw, 4.6rem)/1.04 var(--display); letter-spacing: -1.6px; margin: 18px 0 18px; }
.h1 span { display: inline-block; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h2 { font: 750 clamp(1.8rem, 3.4vw, 2.7rem)/1.12 var(--display); letter-spacing: -.8px; margin: 0 0 12px; }
.h3 { font: 700 1.35rem/1.25 var(--display); margin: 6px 0 8px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 640px; margin: 0 0 28px; }
.sub { color: var(--muted); max-width: 720px; margin: 0 auto; font-size: 1.08rem; }
.sh { text-align: center; margin-bottom: 44px; }
.section { padding: 70px 0; }

/* ---------- hero */
.hero { padding: 64px 0 40px; }
.sub-hero { padding-bottom: 20px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero-grid > *, .products > *, .vehicles > *, .editions > *, .two-col > *, .pricecard > * { min-width: 0; }
.hero-grid.wide-visual { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.hero-devices { position: relative; min-height: 460px; display: grid; place-items: center; }
.hero-devices .scan { position: absolute; inset: 10% 0; background: linear-gradient(180deg, transparent, rgba(45, 226, 255, .12), transparent); height: 120px; filter: blur(8px);
  animation: scan 6s ease-in-out infinite; pointer-events: none; border-radius: 40px; }
@keyframes scan { 0%, 100% { transform: translateY(-40px); opacity: 0; } 30%, 70% { opacity: 1; } 50% { transform: translateY(260px); } }

/* devices */
.device { position: relative; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .65)); }
.phone { width: 270px; border-radius: 42px; padding: 10px; background: linear-gradient(145deg, #2a3446, #0b0f17 40%, #1a2333); box-shadow: inset 0 0 0 2px #3b4860, 0 0 0 1px #000; }
.phone img { width: 100%; height: auto; aspect-ratio: 600 / 1067; object-fit: cover; object-position: top; border-radius: 33px; background: #05070d; }
.phone .notch { position: absolute; top: 16px; left: 50%; translate: -50% 0; width: 76px; height: 20px; background: #05070d; border-radius: 12px; z-index: 2; }
.laptop { width: min(640px, 100%); }
.laptop .screen { padding: 12px 12px 14px; border-radius: 18px 18px 6px 6px; background: linear-gradient(160deg, #263247, #0c1019); box-shadow: inset 0 0 0 2px #3a4860; }
.laptop .screen img { border-radius: 8px; width: 100%; }
.laptop .base { height: 16px; margin: 0 -6%; background: linear-gradient(180deg, #4a5872, #1b2231); border-radius: 0 0 22px 22px; box-shadow: 0 6px 0 -2px #0b0f17; }
.hero-laptop { width: min(600px, 100%); transform: perspective(1400px) rotateY(-10deg) rotateX(4deg); animation: hover 7s ease-in-out infinite; }
.hero-laptop.solo { width: min(680px, 100%); }
.hero-phone { position: absolute; right: -10px; bottom: -30px; width: 200px; transform: rotate(4deg); animation: hover 7s ease-in-out infinite -3.5s; }
.phones .p-back { transform: translateX(-70px) rotate(-6deg) scale(.92); opacity: .9; animation: hover 8s ease-in-out infinite; }
.phones .p-front { position: absolute; transform: translateX(80px) rotate(5deg); animation: hover 8s ease-in-out infinite -4s; }
@keyframes hover { 50% { translate: 0 -12px; } }

.stats { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 56px; padding: 22px 10px; }
.stat { text-align: center; padding: 6px 10px; border-right: 1px solid var(--line); }
.stat:last-child { border: 0; }
.num { display: block; font: 800 2.2rem/1.1 var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lbl { color: var(--muted); font-size: .92rem; }

/* ---------- products */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.product { display: grid; grid-template-rows: auto 1fr; overflow: hidden; transition: transform .35s ease, box-shadow .35s ease; }
.product:hover { transform: translateY(-6px); box-shadow: var(--glow); }
.p-visual { height: 270px; display: grid; place-items: center; overflow: hidden; position: relative;
  background: radial-gradient(500px 220px at 50% 110%, rgba(45, 226, 255, .22), transparent 70%), linear-gradient(180deg, rgba(58, 123, 255, .12), transparent); border-bottom: 1px solid var(--line); }
.p-visual .phone.mini { width: 200px; margin-top: 90px; }
.p-visual .laptop.mini { width: 88%; margin-top: 60px; }
.p-body { padding: 26px 28px 30px; }
.p-body h3 { font: 800 1.9rem var(--display); margin: 12px 0 4px; }
.p-price { font: 800 1.6rem var(--display); color: var(--ink); margin: 2px 0 14px; } .p-price small { font: 500 .85rem var(--font); color: var(--muted); margin-left: 6px; }
.ticks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 9px; }
.ticks.two { grid-template-columns: 1fr 1fr; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: #d4e3f7; }
.ticks .ic { color: var(--teal); margin-top: 4px; }

/* ---------- features */
.features { display: grid; gap: 20px; }
.f3 { grid-template-columns: repeat(3, 1fr); } .f4 { grid-template-columns: repeat(4, 1fr); }
.feature { padding: 26px 24px; transition: transform .3s ease, border-color .3s ease; }
.feature:hover { transform: translateY(-4px); border-color: var(--line-2); }
.feature h3 { font: 700 1.12rem var(--display); margin: 16px 0 8px; }
.feature p { margin: 0; color: var(--muted); font-size: .97rem; }
.fi { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: var(--cyan);
  background: linear-gradient(145deg, rgba(45, 226, 255, .18), rgba(58, 123, 255, .08)); box-shadow: inset 0 0 0 1px rgba(45, 226, 255, .3), 0 0 24px -6px rgba(45, 226, 255, .6); }
.fi .ic { width: 28px; height: 28px; }

/* ---------- showcase */
.tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 34px; }
.tabs button { display: inline-flex; gap: 8px; align-items: center; font: 650 1rem var(--font); color: var(--muted); background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line); padding: 10px 20px; border-radius: 999px; cursor: pointer; }
.tabs button[aria-selected="true"] { color: #00111a; background: var(--cyan); border-color: transparent; }
.sc-panel { display: grid; place-items: center; min-height: 380px; } .sc-panel[hidden] { display: none; }
.phone.big { width: 310px; }
.laptop.big { width: min(900px, 100%); }
.rotator { position: relative; width: 100%; height: 100%; }
.phone .rotator { height: 100%; }
.rotator img { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.rotator img.on { opacity: 1; position: relative; }
.phone .rotator img:not(.on) { width: 100%; }
.laptop .rotator img:not(.on) { width: 100%; }

/* ---------- vehicles */
.vehicles { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.v-art { padding: 30px; display: grid; gap: 4px; }
.vehicle { width: 100%; height: auto; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.vehicle .wheel { stroke: rgba(150, 210, 255, .55); stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: wheel 6s linear infinite; }
.vehicle .wheel path { stroke-width: 1.4; opacity: .55; }
.vehicle .frame { stroke-width: 6; }
.vehicle .battery-pack { fill: rgba(45, 226, 255, .18); stroke: var(--cyan); stroke-width: 2; animation: charge 2.8s ease-in-out infinite; }
.vehicle .motor { fill: rgba(58, 123, 255, .3); stroke: #7fb0ff; stroke-width: 2; }
.vehicle .spark { fill: var(--cyan); filter: drop-shadow(0 0 8px var(--cyan)); animation: pulse 2.4s ease-in-out infinite; }
@keyframes wheel { to { rotate: 360deg; } }
@keyframes charge { 50% { fill: rgba(45, 226, 255, .45); } }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- steps / trust / hw */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { padding: 28px 26px; position: relative; }
.step .n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; font: 800 1.2rem var(--display); color: #00111a; background: var(--grad); }
.step h3 { font: 700 1.15rem var(--display); margin: 16px 0 6px; } .step p { margin: 0; color: var(--muted); }
.trusts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.trust { display: flex; gap: 16px; padding: 28px; border-right: 1px solid var(--line); }
.trust:last-child { border: 0; } .trust > .ic { width: 34px; height: 34px; color: var(--cyan); }
.trust h3 { margin: 0 0 4px; font: 700 1.05rem var(--display); } .trust p { margin: 0; color: var(--muted); font-size: .95rem; }
.hw { display: flex; gap: 26px; align-items: center; padding: 30px 34px; }
.hw-ic { flex: none; width: 86px; height: 86px; border-radius: 24px; display: grid; place-items: center; color: var(--amber);
  background: rgba(255, 200, 97, .08); box-shadow: inset 0 0 0 1px rgba(255, 200, 97, .35); }
.hw-ic .ic { width: 44px; height: 44px; }
.badge-soon { display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--amber);
  padding: 4px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255, 200, 97, .45); }

/* ---------- faq, final */
.faq { display: grid; gap: 12px; }
.faq details { padding: 0; border-radius: var(--radius-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 22px; font-weight: 650; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; translate: 0 -50%; color: var(--cyan); font: 400 1.6rem/1 var(--font); transition: rotate .25s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }
.final { text-align: center; padding: 56px 30px; }

/* ---------- product pages */
.editions { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.edition { padding: 28px; } .edition h3 { font: 700 1.3rem var(--display); margin: 16px 0 6px; } .edition p { color: var(--muted); }
.gallery { display: grid; gap: 18px; }
.gallery.android { grid-template-columns: repeat(4, 1fr); }
.gallery.windows { grid-template-columns: repeat(2, 1fr); }
.shot { padding: 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--bg2); cursor: zoom-in; position: relative; color: var(--ink); text-align: left;
  transition: transform .3s ease, box-shadow .3s ease; }
.shot:hover { transform: translateY(-4px); box-shadow: var(--glow); }
.shot span { display: block; font-size: .88rem; font-weight: 650; padding: 10px 14px; border-top: 1px solid var(--line); background: rgba(8, 18, 38, .9); }
.req { padding: 28px 30px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.table-wrap { overflow-x: auto; padding: 6px; }
.compare { width: 100%; border-collapse: collapse; font-size: 1rem; }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { color: var(--muted); font-size: .85rem; letter-spacing: 1px; text-transform: uppercase; }
.compare tbody th { font-weight: 600; }
.compare td.pro { color: var(--cyan); font-weight: 700; }
.compare tr:last-child > * { border-bottom: 0; }
.pricecard { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; padding: 38px 40px; }
.price { font: 800 clamp(2.4rem, 5vw, 3.4rem)/1 var(--display); margin: 16px 0 6px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pc-cta { display: grid; justify-items: stretch; } .pc-cta .btn { width: 100%; }

/* ---------- footer */
.footer { margin-top: 40px; border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(8, 18, 38, .6)); padding: 50px 0 30px; }
.fgrid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 30px; }
.fgrid a { display: block; color: var(--muted); margin: 6px 0; } .fgrid a:hover { color: var(--ink); }
.fgrid .brand { color: var(--ink); }
.fh { font: 700 .82rem var(--font); letter-spacing: 1.5px; text-transform: uppercase; color: var(--dim); margin: 6px 0 12px; }
.fine { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--dim); font-size: .86rem; }

/* ---------- dialogs */
dialog { border: 0; padding: 0; background: transparent; color: var(--ink); }
dialog::backdrop { background: rgba(2, 4, 10, .78); backdrop-filter: blur(6px); }
.modal-card { width: min(520px, 92vw); padding: 32px; } .modal-card h2 { font: 750 1.6rem var(--display); margin: 14px 0 8px; } .modal-card p { color: var(--muted); }
.lightbox { max-width: 96vw; max-height: 94vh; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 16px; box-shadow: 0 0 0 1px var(--line-2), 0 40px 90px rgba(0, 0, 0, .8); }
.lb-close, .lb-nav { position: fixed; z-index: 2; border: 0; cursor: pointer; color: var(--ink); background: rgba(16, 30, 58, .8); border-radius: 50%; width: 48px; height: 48px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-2); }
.lb-close { top: 18px; right: 18px; } .lb-prev { left: 18px; top: 50%; } .lb-next { right: 18px; top: 50%; } .lb-prev .ic { rotate: 180deg; }

/* ---------- reveal on scroll (only when JS is available) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive */
@media (max-width: 1080px) {
  .f4 { grid-template-columns: repeat(2, 1fr); }
  .gallery.android { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 920px) {
  .hero-grid, .hero-grid.wide-visual, .products, .vehicles, .editions, .two-col, .pricecard { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 40px; } .hero-devices { min-height: 360px; margin-top: 10px; }
  .f3 { grid-template-columns: repeat(2, 1fr); }
  .steps, .trusts { grid-template-columns: 1fr; } .trust { border-right: 0; border-bottom: 1px solid var(--line); }
  .stats { grid-template-columns: repeat(3, 1fr); row-gap: 16px; } .stat:nth-child(3) { border-right: 0; }
  .menu-btn { display: inline-grid; }
  .mainnav { position: fixed; inset: 70px 0 auto 0; flex-direction: column; gap: 4px; padding: 14px 20px 22px; margin: 0; background: #050912;
    border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .3s ease; visibility: hidden; }
  .mainnav.open { transform: none; visibility: visible; }
  .mainnav a { padding: 12px 14px; font-size: 1.05rem; }
  .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fgrid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap, .narrow { width: calc(100% - 32px); }
  .bar { gap: 10px; height: 64px; } .mainnav { inset: 64px 0 auto 0; }
  .brand span { font-size: .9rem; } .brand img { width: 30px; height: 30px; } .hide-sm { display: none; } .langs .ic { display: none; }
  .langs { padding: 3px; } .langs a { padding: 4px 6px; font-size: .78rem; } .bar-right { gap: 8px; }
  .h1 { font-size: clamp(2.1rem, 10vw, 2.6rem); letter-spacing: -1px; } .eyebrow { font-size: .7rem; letter-spacing: 1.1px; }
  .hero-devices { min-height: 300px; } .hero-laptop { transform: none; }
  .section { padding: 50px 0; }
  .f3, .f4, .gallery.windows { grid-template-columns: 1fr; }
  .gallery.android { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stats { grid-template-columns: repeat(2, 1fr); } .stat { border-right: 0; } .stat:last-child { grid-column: 1 / -1; }
  .hero-phone { width: 140px; right: 0; bottom: -20px; }
  .phones .p-back { transform: translateX(-50px) rotate(-6deg) scale(.82); } .phones .p-front { transform: translateX(55px) rotate(5deg) scale(.86); }
  .phone { width: 220px; } .phone.big { width: 260px; }
  .ticks.two { grid-template-columns: 1fr; }
  .hw { flex-direction: column; align-items: flex-start; padding: 24px; }
  .pricecard { padding: 28px 22px; }
  .btn-lg { width: 100%; }
  .p-body { padding: 22px; }
  .fgrid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =====================================================================================================================
   Stage 2: navigation dropdowns, knowledge base, support, legal and product-page components
   ===================================================================================================================== */
.ic.xs { width: 14px; height: 14px; }
.sub.left { margin: 0 0 18px; }
.section.tight { padding: 30px 0 50px; }
.hero.slim { padding: 34px 0 10px; }
.h1-md { font-size: clamp(2rem, 4.2vw, 3.3rem); letter-spacing: -1px; }
.h2.sm { font-size: 1.55rem; } .h3.sm { font-size: 1.08rem; display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.h3 .ic { color: var(--cyan); vertical-align: -5px; }

/* dropdown navigation */
.dd { position: relative; }
.dd-btn { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; color: var(--muted); font: 500 1rem var(--font); padding: 8px 12px; border-radius: 999px; cursor: pointer; }
.dd-btn:hover, .dd.open .dd-btn, .dd.cur .dd-btn { color: var(--ink); background: rgba(255, 255, 255, .05); }
.dd.cur .dd-btn { box-shadow: inset 0 0 0 1px rgba(45, 226, 255, .3); }
.dd-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px; padding: 8px; display: grid; gap: 2px; border-radius: 16px;
  background: #08101f; border: 1px solid var(--line-2); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 60; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu, .dd.open .dd-menu { opacity: 1; visibility: visible; transform: none; }
.dd-menu a { padding: 9px 12px; border-radius: 10px; color: var(--muted); }
.dd-menu a:hover, .dd-menu a[aria-current="page"] { color: var(--ink); background: rgba(45, 226, 255, .1); text-decoration: none; }
.mainnav { align-items: center; }

/* breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 18px; font-size: .86rem; color: var(--dim); }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--dim); }
.crumbs a { color: var(--muted); }

/* knowledge base */
.codepill { display: inline-grid; place-items: center; min-width: 1.6em; padding: 0 .35em; margin-right: .25em; border-radius: .3em; font-size: .8em; color: #00111a; background: var(--grad); vertical-align: .05em; }
.meaning { color: var(--ink); font-size: 1.25rem; }
.conf { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; white-space: normal; }
.conf.documented { color: #7df0b6; background: rgba(60, 220, 140, .1); box-shadow: inset 0 0 0 1px rgba(60, 220, 140, .4); }
.conf.common { color: var(--amber); background: rgba(255, 200, 97, .08); box-shadow: inset 0 0 0 1px rgba(255, 200, 97, .4); }
.pst { font-size: .78rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.pst.sourced { color: #7df0b6; box-shadow: inset 0 0 0 1px rgba(60, 220, 140, .4); }
.pst.secondary, .pst.partial { color: var(--amber); box-shadow: inset 0 0 0 1px rgba(255, 200, 97, .4); }
.kbgrid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.kbmain, .kbside { display: grid; gap: 16px; min-width: 0; }
.kbside { position: sticky; top: 90px; }
.kbsec { padding: 22px 24px; }
.kbsec p { margin: 0; }
.kbsec.warn { border-color: rgba(255, 200, 97, .35); background: linear-gradient(160deg, rgba(60, 40, 10, .35), rgba(16, 30, 58, .5)); }
.ticks.warn .ic { color: var(--amber); }
.kbcols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 30px; }
.meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 14px; font-size: .95rem; }
.meta dt { color: var(--dim); } .meta dd { margin: 0; overflow-wrap: anywhere; }
.meta code { font-size: .82rem; color: var(--cyan); }
.relcodes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 26px; }
.relcode { display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(16, 30, 58, .5); color: var(--ink); }
.relcode:hover { border-color: var(--cyan); text-decoration: none; }
.relcode b { color: var(--cyan); font-size: 1.1rem; } .relcode span { color: var(--muted); font-size: .88rem; }
.syscards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.syscard { display: grid; gap: 4px; padding: 18px 20px; color: var(--ink); transition: transform .25s, border-color .25s; }
.syscard:hover { transform: translateY(-3px); border-color: var(--line-2); text-decoration: none; }
.syscard b { font: 700 1.15rem var(--display); } .syscard span { color: var(--muted); font-size: .88rem; } .syscard em { font-style: normal; color: var(--cyan); font-weight: 700; font-size: .88rem; }
.syscard.dim { opacity: .75; }
.kbtable { width: 100%; border-collapse: collapse; }
.kbtable th, .kbtable td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: .95rem; }
.kbtable thead th { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; }
.kbtable tbody th { font-weight: 700; white-space: nowrap; }
.kbtable tr:last-child > * { border-bottom: 0; }
.kbtable.plain thead { display: none; }
.kbsearch { position: relative; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 6px 16px; margin-top: 22px; max-width: 760px; border-radius: 18px; }
.kbsearch > .ic { color: var(--cyan); }
.kbsearch input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--ink); font: 400 1.08rem var(--font); padding: 12px 0; outline: none; }
.results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); display: none; max-height: 60vh; overflow: auto; padding: 8px; border-radius: 16px;
  background: #08101f; border: 1px solid var(--line-2); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9); z-index: 40; }
.results.show { display: grid; gap: 2px; }
.results a { display: grid; gap: 2px; padding: 9px 12px; border-radius: 10px; color: var(--ink); }
.results a:hover, .results a:focus { background: rgba(45, 226, 255, .1); text-decoration: none; }
.results small { color: var(--muted); } .results .none { padding: 10px 12px; color: var(--muted); }
.kbcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 20px; }
.kbcard { display: flex; gap: 14px; align-items: flex-start; padding: 20px; color: var(--ink); transition: transform .25s, border-color .25s; }
.kbcard:hover { transform: translateY(-3px); border-color: var(--line-2); text-decoration: none; }
.kbcard > .ic { width: 30px; height: 30px; color: var(--cyan); flex: none; } .kbcard span { display: grid; gap: 3px; } .kbcard small { color: var(--muted); }
.tgroup { margin: 0 0 28px; scroll-margin-top: 90px; }
.topics { display: flex; flex-wrap: wrap; gap: 10px; }
.topic { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; color: var(--ink); font-weight: 600; }
.topic:hover { border-color: var(--cyan); text-decoration: none; }
.topic em { font-style: normal; font-size: .78rem; color: #00111a; background: var(--cyan); border-radius: 999px; padding: 1px 8px; }
.stats.four { grid-template-columns: repeat(4, 1fr); margin-top: 0; }
.stats.four .stat:nth-child(4) { border-right: 0; } .stats.four .stat:last-child { grid-column: auto; }
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; border-color: rgba(255, 200, 97, .4); }
.notice > .ic { color: var(--amber); width: 28px; height: 28px; } .notice p { margin: 0; }
.cta-apps { display: flex; gap: 24px; align-items: center; justify-content: space-between; padding: 28px 30px; margin-top: 30px; }
.cta-apps h2 { margin-top: 0; } .cta-apps p { margin: 0; }
.srcs { padding-left: 18px; margin: 0; font-size: .9rem; } .srcs li { margin: 4px 0; }
.bsec { margin-bottom: 26px; }
.narrow-in { max-width: 960px; margin: 28px auto 0; }

/* smart hardware */
.hwgroups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.hwgroup { padding: 26px 28px; }
.planned { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; }
.planned li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.planned em { font-style: normal; font-size: .72rem; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--amber); white-space: nowrap; }
.hwdevice { position: relative; width: min(380px, 90%); aspect-ratio: 1.2; display: grid; place-items: center; }
.hw-body { position: relative; width: 78%; aspect-ratio: 1.55; border-radius: 28px; padding: 18px; background: linear-gradient(150deg, #1d2a42, #070b14 60%, #13203a);
  box-shadow: inset 0 0 0 2px #2c3b58, 0 40px 80px -20px rgba(0, 0, 0, .9), 0 0 60px -10px rgba(45, 226, 255, .35); animation: hover 7s ease-in-out infinite; }
.hw-screen { height: 72%; border-radius: 14px; background: radial-gradient(circle at 30% 20%, #0f3d4f, #031017); box-shadow: inset 0 0 0 1px rgba(45, 226, 255, .4); padding: 12px 14px; display: grid; align-content: start; gap: 4px; overflow: hidden; }
.hw-v { font: 800 1.9rem/1 var(--display); color: var(--cyan); text-shadow: 0 0 18px rgba(45, 226, 255, .8); }
.hw-lbl { font-size: .7rem; letter-spacing: 2px; color: var(--muted); }
.hw-wave { width: 100%; height: 40px; fill: none; stroke: var(--cyan); stroke-width: 2; filter: drop-shadow(0 0 6px var(--cyan)); stroke-dasharray: 260; animation: wave 3s linear infinite; }
@keyframes wave { from { stroke-dashoffset: 520; } to { stroke-dashoffset: 0; } }
.hw-leds { display: flex; gap: 8px; margin-top: 12px; } .hw-leds i { width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: pulse 2s infinite; }
.hw-leds i:nth-child(2) { background: var(--teal); animation-delay: .4s; } .hw-leds i:nth-child(3) { background: var(--amber); box-shadow: 0 0 10px var(--amber); animation-delay: .8s; }
.hw-cable { position: absolute; bottom: 8%; left: 50%; width: 6px; height: 22%; background: linear-gradient(#2c3b58, transparent); translate: -50% 0; border-radius: 4px; }
.hw-glow { position: absolute; inset: 20%; background: radial-gradient(circle, rgba(45, 226, 255, .25), transparent 70%); z-index: -1; filter: blur(30px); }
.hw-link { color: var(--ink); } .hw-link:hover { text-decoration: none; border-color: var(--line-2); } .hw-arrow { margin-left: auto; color: var(--cyan); flex: none; }

/* forms */
.mailform, .apiform { display: grid; gap: 16px; padding: 30px; }
.mailform label, .apiform label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.mailform input[type="email"], .mailform input[type="text"], .mailform select, .mailform textarea,
.apiform input[type="email"], .apiform input[type="text"] {
  width: 100%; font: 400 1rem var(--font); color: var(--ink); background: rgba(4, 8, 16, .6); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; }
.mailform input:focus, .mailform select:focus, .mailform textarea:focus, .apiform input:focus { outline: 2px solid var(--cyan); outline-offset: 1px; }
.mailform fieldset, .apiform fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin: 0; }
.mailform legend, .apiform legend { padding: 0 6px; font-weight: 600; }
/* stage 3: server forms */
.apiform .chk a { font-weight: 500; }
.apiform button[disabled] { opacity: .6; cursor: progress; }
.apiform input[name="license_key"] { font-family: Consolas, "SF Mono", monospace; letter-spacing: .04em; text-transform: uppercase; }
.formmsg { min-height: 1.4em; margin: 0; font-size: .95rem; color: var(--muted); }
.formmsg.ok { color: var(--teal); } .formmsg.err { color: #ff9a9a; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.apiforms { margin: 18px 0; align-items: stretch; }
.apiforms .apiform { padding: 24px; align-content: start; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.chk { display: flex !important; align-items: center; gap: 10px; font-weight: 500 !important; cursor: pointer; }
.chk input { width: 18px; height: 18px; accent-color: var(--cyan); }
.stack { display: grid; gap: 16px; align-content: start; }
.big-link { font: 700 1.2rem var(--display); overflow-wrap: anywhere; }

/* walkthroughs */
.tours { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.tour { padding: 24px; display: grid; gap: 14px; }
.tour h2 { margin: 0; }
.slides { position: relative; border-radius: 16px; overflow: hidden; background: #05070d; border: 1px solid var(--line); aspect-ratio: 16 / 10; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .6s ease; display: grid; grid-template-rows: 1fr auto; }
.slide.on { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: contain; background: #05070d; min-height: 0; }
.slide figcaption { padding: 12px 16px; font-size: .92rem; background: rgba(8, 18, 38, .95); border-top: 1px solid var(--line); }
.slide figcaption b { color: var(--cyan); margin-right: 6px; }
.tour-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dots { display: flex; gap: 8px; } .dot { width: 10px; height: 10px; border-radius: 50%; border: 0; background: var(--line-2); cursor: pointer; padding: 0; }
.dot.on { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

/* downloads, updates */
.dlcard { display: flex; gap: 20px; padding: 28px; margin-bottom: 18px; } .dl-body { min-width: 0; flex: 1; } .dl-body h2 { margin-top: 0; }
.three-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.timeline { display: grid; gap: 16px; border-left: 2px solid var(--line-2); padding-left: 22px; }
.logitem { padding: 22px 24px; position: relative; }
.logitem::before { content: ""; position: absolute; left: -31px; top: 28px; width: 14px; height: 14px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.logitem header { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; } .logitem h3 { margin: 0 0 10px; font: 700 1.2rem var(--display); }
.logitem time { color: var(--dim); font-size: .9rem; }

/* legal */
.legal-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
.toc { padding: 20px; position: sticky; top: 90px; } .toc ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: .92rem; }
.prose { padding: 34px 38px; } .prose section { scroll-margin-top: 90px; } .prose h2 { font: 700 1.25rem var(--display); margin: 26px 0 8px; } .prose section:first-child h2 { margin-top: 0; }
.prose p, .prose li { color: #cfdcf0; } .prose ul { padding-left: 20px; }
.draft { margin-top: 28px; padding: 14px 16px; border-radius: 12px; color: var(--amber); background: rgba(255, 200, 97, .07); border: 1px solid rgba(255, 200, 97, .35); font-size: .9rem; }

/* windows service functions */
.svcs { display: grid; gap: 30px; }
.svc { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 34px; align-items: center; }
.svc.flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); } .svc.flip .svc-copy { order: 2; }
.svc-fig { margin: 0; display: grid; gap: 10px; justify-items: center; } .svc-fig figcaption { font-size: .85rem; color: var(--amber); text-align: center; max-width: 420px; }
.svc-copy h3 { font: 750 1.5rem var(--display); margin: 14px 0 8px; }
.svc-shot { padding: 0; border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; background: var(--bg2); cursor: zoom-in; box-shadow: var(--shadow); }
.svc-shot.pdf { max-width: 420px; justify-self: center; background: #fff; }
.svc-shot img { width: 100%; }
.pname { font-size: 1.9rem; }

@media (max-width: 1080px) {
  .relcodes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .mainnav .dd { width: 100%; } .dd-btn { width: 100%; justify-content: space-between; padding: 12px 14px; font-size: 1.05rem; }
  .dd-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 6px 12px; min-width: 0; display: none; }
  .dd.open .dd-menu { display: grid; }
  .mainnav { max-height: calc(100vh - 70px); overflow: auto; align-items: stretch; }
  .kbgrid, .legal-grid, .svc, .hwgroups, .tours { grid-template-columns: minmax(0, 1fr); }
  .svc.flip { grid-template-columns: minmax(0, 1fr); } .svc.flip .svc-copy { order: 0; }
  .kbside, .toc { position: static; }
  .cta-apps { flex-direction: column; align-items: flex-start; }
  .stats.four { grid-template-columns: repeat(2, 1fr); } .stats.four .stat:nth-child(2) { border-right: 0; }
}
@media (max-width: 640px) {
  .kbcols, .frow, .relcodes { grid-template-columns: minmax(0, 1fr); }
  .kbtable th, .kbtable td { padding: 9px 10px; font-size: .9rem; }
  .kbtable tbody th { white-space: normal; }
  .prose { padding: 24px 20px; } .dlcard { flex-direction: column; padding: 22px; }
  .h1-md { font-size: clamp(1.8rem, 8vw, 2.3rem); }
  .meta { grid-template-columns: 1fr; } .meta dt { margin-top: 6px; }
}
