:root {
  --bg0: #000000;
  --bg1: #05080c;
  --ink: #eaf6ff;
  --muted: #7f93a3;
  --cyan: #00e5ff;
  --lime: #c8ff00;
  --line: rgba(0, 229, 255, 0.14);
  --glow-c: rgba(0, 229, 255, 0.35);
  --glow-l: rgba(200, 255, 0, 0.28);
  --font-display: "Orbitron", system-ui, sans-serif;
  --font-body: "Rajdhani", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.45;
  background: var(--bg0);
  letter-spacing: 0.01em;
}

body { position: relative; overflow-x: hidden; }

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 55% 40% at 20% 15%, rgba(0, 229, 255, 0.14), transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 75%, rgba(200, 255, 0, 0.10), transparent 55%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(0, 40, 50, 0.55), transparent 50%),
    linear-gradient(180deg, #000 0%, #04070a 50%, #000 100%);
}

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--lime); }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 40;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.brand img,
.brand-mark {
  width: 42px;
  height: 28px;
  display: block;
  flex-shrink: 0;
}

.top nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.top nav a:not(.btn),
.top nav .nav-dropdown > summary {
  font-family: var(--font-body);
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
}

.top nav a:not(.btn):hover,
.top nav .nav-dropdown > summary:hover,
.top nav .nav-dropdown[open] > summary {
  color: var(--cyan);
}

.nav-dropdown {
  position: relative;
  z-index: 30;
}

.nav-dropdown > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  appearance: none;
}

.nav-dropdown > summary::-webkit-details-marker { display: none; }

.nav-dropdown > summary::after {
  content: "";
  display: block;
  width: 0.38em;
  height: 0.38em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.12em) rotate(45deg);
  flex-shrink: 0;
}

.nav-dropdown[open] > summary::after {
  transform: translateY(0.08em) rotate(225deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 15rem;
  padding: 0.7rem 0.45rem 0.45rem;
  background: transparent;
  border: 0;
  box-shadow: none;
  z-index: 100;
}

.nav-dropdown-panel {
  position: relative;
  padding: 0.45rem;
  background: #05080c;
  border: 1px solid rgba(0, 229, 255, 0.28);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 18px 48px rgba(0, 0, 0, 0.72),
    0 0 28px rgba(0, 229, 255, 0.12);
}

.nav-dropdown-panel::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 1.35rem;
  width: 10px;
  height: 10px;
  background: #05080c;
  border-left: 1px solid rgba(0, 229, 255, 0.28);
  border-top: 1px solid rgba(0, 229, 255, 0.28);
  transform: rotate(45deg);
}

.nav-dropdown-menu a {
  display: block;
  position: relative;
  z-index: 1;
  padding: 0.7rem 0.85rem;
  color: var(--ink) !important;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
}

.nav-dropdown-menu a:hover {
  color: var(--cyan) !important;
  background: rgba(0, 229, 255, 0.08);
}

.page-kicker {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.page-body {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin: 0 0 1.75rem;
}

.page-body p {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.page-body .ink,
.ink {
  color: var(--ink);
  font-weight: 700;
}

.feature-list {
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding: 1rem 0 1rem 1.4rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.feature-list li:last-child { border-bottom: none; }

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35rem;
  width: 0.55rem;
  height: 0.55rem;
  background: linear-gradient(135deg, var(--cyan), var(--lime));
  box-shadow: 0 0 10px var(--glow-c);
}

.feature-list strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.btn[hidden],
a.btn[hidden],
.js-auth-slot[hidden] {
  display: none !important;
}

.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.88rem; }

.btn-primary {
  background: linear-gradient(105deg, var(--cyan) 0%, #5cff9a 48%, var(--lime) 100%);
  color: #041018;
  box-shadow: 0 0 24px var(--glow-c);
}
.btn-primary:hover {
  color: #000;
  box-shadow: 0 0 32px var(--glow-l);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(0, 229, 255, 0.35);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.banner {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 1rem;
}

.banner-authed {
  margin: 1rem clamp(1.25rem, 4vw, 3rem) 0;
}

.banner-warn {
  border-color: rgba(0, 229, 255, 0.35);
  background: rgba(0, 229, 255, 0.06);
}

.auth-hint {
  margin-top: 1.25rem;
}

.auth-hint code {
  font-family: ui-monospace, Consolas, monospace;
  color: var(--lime);
  font-size: 0.95em;
}

.code-block {
  margin: 0 0 1.5rem;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.55);
  color: var(--cyan);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: pre;
}

.page-legal h2 {
  margin: 1.75rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
}

.page-legal p,
.page-legal li {
  color: var(--muted);
  font-size: 1.05rem;
}

.page-legal ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--muted);
}

.consent-box {
  margin-top: 0.5rem;
  padding: 1.25rem 1.15rem;
  border: 1px solid rgba(0, 229, 255, 0.28);
  background: rgba(5, 8, 12, 0.85);
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.08);
}

.consent-text {
  margin: 0 0 1rem;
  color: var(--muted);
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0 0 1.25rem;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}

.consent-check input {
  margin-top: 0.3rem;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--cyan);
  flex-shrink: 0;
}

.consent-actions {
  margin-top: 0.25rem;
}

.consent-actions .btn:disabled {
  opacity: 0.45;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(82vh, 760px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(2.5rem, 8vh, 5rem) clamp(1.25rem, 4vw, 3rem) 3rem;
}

.hero-shot {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 960px;
  height: auto;
  max-width: none;
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

.hero > *:not(.hero-shot) {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 34em;
}

.brand-hero {
  margin: 0 0 1.4rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 5vw, 3rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  background: linear-gradient(100deg, var(--cyan), var(--lime));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px var(--glow-c));
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  letter-spacing: 0.04em;
  line-height: 1.35;
  max-width: 22em;
  color: var(--ink);
}

.lede {
  margin: 0 0 1.75rem;
  max-width: 34em;
  color: var(--muted);
  font-size: 1.2rem;
  font-weight: 500;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.strip-item {
  padding: 2rem clamp(1.25rem, 3vw, 2rem);
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.04), transparent 70%);
}
.strip-item:last-child { border-right: none; }
.strip-item:nth-child(2) {
  background: linear-gradient(180deg, rgba(200, 255, 0, 0.04), transparent 70%);
}

.strip-item h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}
.strip-item:nth-child(2) h2 { color: var(--lime); }
.strip-item:nth-child(3) h2 {
  background: linear-gradient(90deg, var(--cyan), var(--lime));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.strip-item p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.demo {
  padding: 3rem clamp(1.25rem, 4vw, 3rem) 4.5rem;
  scroll-margin-top: 5.5rem;
}

.demo-head {
  max-width: 980px;
  margin: 0 auto 1.5rem;
}

.demo-head h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(100deg, var(--cyan), var(--lime));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.demo-head p:not(.page-kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 36em;
}

.demo-player {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  border: 1px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  background:
    linear-gradient(#05080c, #05080c) padding-box,
    linear-gradient(105deg, var(--cyan), transparent 45%, var(--lime)) border-box;
  box-shadow: 0 0 48px rgba(0, 229, 255, 0.12);
}

.demo-player + .demo-player {
  margin-top: 1.1rem;
}

.demo-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
  vertical-align: middle;
}

.demo-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.38);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.demo-player.is-playing .demo-play {
  display: none;
}

.demo-play:hover {
  background: rgba(0, 8, 12, 0.5);
  color: var(--cyan);
}

.demo-play-icon {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--lime);
  filter: drop-shadow(0 0 10px var(--glow-l));
}

.demo-gallery {
  list-style: none;
  margin: 1.35rem auto 0;
  padding: 0;
  max-width: 980px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.demo-gallery figure {
  margin: 0;
}

.demo-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: #05080c;
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.08);
}

.demo-gallery figcaption {
  margin-top: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.product-features {
  padding: 0 clamp(1.25rem, 4vw, 3rem) 4.5rem;
  scroll-margin-top: 5.5rem;
}

.product-features-head {
  max-width: 980px;
  margin: 0 auto 2rem;
}

.product-features-head h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(100deg, var(--cyan), var(--lime));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.product-features-lede {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.55;
  max-width: 48em;
}

.product-features-note {
  color: var(--muted);
  font-style: normal;
  font-size: 0.98rem;
}

.product-features-body {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.product-features-block h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
}

.product-features-block h4 {
  margin: 1.1rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
}

.product-features-block p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.product-features-block p:last-child {
  margin-bottom: 0;
}

.product-features-list,
.product-features-steps {
  margin: 0 0 0.85rem;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.product-features-list li + li,
.product-features-steps li + li {
  margin-top: 0.45rem;
}

.product-features-cta {
  margin: 1.25rem 0 0 !important;
}

.product-features-summary h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
}

.features-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: rgba(0, 229, 255, 0.03);
}

.features-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.features-table th,
.features-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.features-table th {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.22);
}

.features-table td {
  color: var(--muted);
}

.features-table tbody tr:last-child td {
  border-bottom: none;
}

.features-table td:first-child {
  color: var(--ink);
  font-weight: 600;
  width: 42%;
}

.page .demo-inline {
  padding: 2rem 0 2.5rem;
}

.page .demo-inline .demo-head {
  margin-bottom: 1.1rem;
}

.page .demo-inline .demo-player {
  max-width: none;
}

.page {
  max-width: 720px;
  padding: 3rem clamp(1.25rem, 4vw, 3rem) 4rem;
}

.page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
  background: linear-gradient(100deg, var(--cyan), var(--lime));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.steps {
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps > li {
  counter-increment: step;
  padding: 1.25rem 0 1.25rem 3.2rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1.25rem;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid var(--cyan);
  color: var(--lime);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px var(--glow-c);
}

.steps-sub {
  margin: 0.45rem 0 0;
  padding: 0 0 0 1.15rem;
  color: var(--muted);
}

.steps-sub li {
  padding: 0.2rem 0;
}

.steps strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  color: var(--ink);
}

.steps span { color: var(--muted); }

.install-section {
  margin: 2rem 0 1.5rem;
}

.install-section h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cyan);
}

.install-connect {
  margin-top: 0.85rem;
}

.install-connect-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.install-progress {
  margin-top: 0.9rem;
}

.install-progress-track {
  height: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 229, 255, 0.08);
}

.install-progress-fill {
  height: 100%;
  width: 0;
  background: var(--lime);
  transition: width 0.2s linear;
}

.install-progress-label {
  margin: 0.55rem 0 0;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.4;
  word-break: break-word;
}

.install-progress-detail {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
  word-break: break-word;
}

.install-connect-status {
  margin: 0.7rem 0 0;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--muted);
}

.install-connect-status.is-ok {
  color: var(--lime);
}

.install-connect-status.is-err {
  color: #ff8b8b;
}

.install-compat-summary {
  margin: 0.85rem 0 0;
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--ink);
}

.install-compat-summary.is-ok {
  color: var(--lime);
}

.install-compat-summary.is-err {
  color: #ff8b8b;
}

.install-checks {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.install-checks li {
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
}

.install-checks li strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
}

.install-checks li span {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
}

.install-checks li.is-ok {
  border-color: rgba(200, 255, 0, 0.35);
}

.install-checks li.is-ok strong::before {
  content: "Готово · ";
  color: var(--lime);
}

.install-checks li.is-fail {
  border-color: rgba(255, 139, 139, 0.45);
}

.install-checks li.is-fail strong::before {
  content: "Нет · ";
  color: #ff8b8b;
}

.install-checks li.is-warn {
  border-color: rgba(255, 196, 72, 0.4);
}

.install-checks li.is-warn strong::before {
  content: "Замечание · ";
  color: #ffc448;
}

.install-checks li.is-skip {
  border-color: var(--line);
}

.install-checks li.is-skip strong::before {
  content: "Пропуск · ";
  color: var(--cyan);
}

.note {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
}

.foot-nav a {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.9rem;
  text-decoration: none;
}
.foot-nav a:hover { color: var(--cyan); }

@media (max-width: 800px) {
  html, body { font-size: 17px; }

  .top {
    flex-wrap: wrap;
    row-gap: 0.85rem;
    padding: 0.85rem 1rem;
  }

  .brand {
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    min-width: 0;
  }

  .brand img,
  .brand-mark {
    width: 36px;
    height: 24px;
  }

  .top nav {
    width: 100%;
    justify-content: flex-start;
    gap: 0.75rem 1rem;
  }

  .top nav a:not(.btn),
  .top nav .nav-dropdown > summary {
    font-size: 0.88rem;
  }

  .nav-dropdown-menu {
    left: 0;
    right: auto;
    min-width: 14rem;
  }

  .hero {
    min-height: auto;
    padding: 0.75rem 1rem 2.25rem;
  }

  .hero-shot {
    position: static;
    transform: none;
    right: auto;
    top: auto;
    width: 100%;
    max-width: 100%;
    height: auto;
    opacity: 1;
    display: block;
    margin: 0 0 1.25rem;
  }

  .hero-copy {
    max-width: 100%;
  }

  .brand-hero {
    margin-bottom: 1rem;
    font-size: clamp(1.35rem, 7.5vw, 1.9rem);
    letter-spacing: 0.05em;
    max-width: 100%;
  }

  .hero h1 {
    font-size: clamp(1.05rem, 4.2vw, 1.3rem);
    max-width: none;
  }

  .lede {
    font-size: 1.05rem;
    margin-bottom: 1.35rem;
  }

  .cta-row {
    flex-direction: column;
    width: 100%;
  }

  .cta-row .btn {
    width: 100%;
    min-height: 48px;
  }

  .btn {
    min-height: 44px;
    padding: 0.7rem 1.1rem;
  }

  .strip { grid-template-columns: 1fr; }

  .strip-item {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 1.35rem 1rem;
  }

  .strip-item:last-child { border-bottom: none; }

  .strip-item p { font-size: 1rem; }

  .demo {
    padding: 1.75rem 1rem 2.5rem;
  }

  .demo-gallery {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .page {
    padding: 2rem 1rem 3rem;
  }

  .steps > li {
    padding: 1.1rem 0 1.1rem 2.85rem;
  }

  .steps > li::before {
    top: 1.1rem;
    width: 1.9rem;
    height: 1.9rem;
    font-size: 0.8rem;
  }

  .page .btn-primary {
    width: 100%;
    min-height: 48px;
  }

  .foot {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1rem 1.75rem;
  }
}

@media (max-width: 480px) {
  .top nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
  }

  .top nav .btn-sm {
    width: 100%;
    padding: 0.55rem 0.7rem;
    font-size: 0.85rem;
    min-height: 44px;
  }

  .nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
    width: max-content;
    max-width: min(18rem, calc(100vw - 2rem));
  }

  .brand-hero {
    font-size: 1.35rem;
  }
}

@supports (padding: max(0px)) {
  @media (max-width: 800px) {
    .top,
    .hero,
    .page,
    .demo,
    .product-features,
    .strip-item,
    .foot {
      padding-left: max(1rem, env(safe-area-inset-left));
      padding-right: max(1rem, env(safe-area-inset-right));
    }
    .foot {
      padding-bottom: max(1.75rem, env(safe-area-inset-bottom));
    }
  }
}

/* Purchase confirmation modal */
.std-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.std-modal[hidden] { display: none !important; }
.std-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}
.std-modal-card {
  position: relative;
  z-index: 1;
  width: min(24rem, 100%);
  padding: 1.5rem 1.35rem 1.25rem;
  background: #05080c;
  border: 1px solid rgba(0, 229, 255, 0.28);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.72);
  text-align: center;
}
.std-modal-title {
  margin: 0 0 1.15rem;
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  white-space: pre-line;
}
.std-modal-ok {
  min-width: 7rem;
}
.std-buy-form {
  text-align: left;
}
.std-buy-label {
  display: block;
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
}
.std-buy-input {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(0, 229, 255, 0.22);
  background: #0a1014;
  color: var(--ink);
  font: inherit;
  border-radius: 0;
}
.std-buy-input:focus {
  outline: 1px solid var(--accent);
}
.std-buy-err {
  margin: 0 0 0.75rem;
  color: #ff8f8f;
  font-size: 0.9rem;
}
.std-buy-actions {
  display: flex;
  gap: 0.65rem;
  justify-content: flex-end;
  margin-top: 0.35rem;
}
.std-buy-done-text {
  margin-bottom: 1.15rem;
}
