:root {
  color-scheme: dark;
  --bg: #050914;
  --panel: rgba(10, 20, 38, .86);
  --panel-strong: rgba(6, 13, 28, .95);
  --text: #f7fbff;
  --muted: #9fb2c9;
  --line: rgba(121, 199, 255, .22);
  --blue: #0094ff;
  --blue-hot: #00b8ff;
  --yellow: #ffe52c;
  --green: #24f05a;
  --red: #ff2c21;
  --accent: #00a8ff;
  --danger: #ff453a;
  --shadow-blue: 0 18px 55px rgba(0, 148, 255, .28);
  --font-display: "Rajdhani", "Orbitron", "Exo 2", "Arial Black", system-ui, sans-serif;
  --font-body: "Inter", "Manrope", "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 10%, rgba(0, 184, 255, .28), transparent 32%),
    radial-gradient(circle at 82% 8%, rgba(255, 229, 44, .12), transparent 24%),
    linear-gradient(135deg, #030712 0%, #07162f 48%, #02040b 100%);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(121, 199, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(121, 199, 255, .055) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), rgba(0,0,0,.12));
}

a {
  color: #7dd3fc;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(3, 7, 18, .78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  min-width: 0;
}

.brand img {
  display: block;
  width: clamp(150px, 22vw, 210px);
  height: auto;
  filter: drop-shadow(0 0 10px rgba(0, 184, 255, .35));
}

.brand span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-left: 1px solid var(--line);
  padding-left: 10px;
  color: #b9e8ff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}

.nav a:hover {
  border-color: rgba(0, 184, 255, .45);
  background: rgba(0, 148, 255, .14);
}

.wrap {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  margin: 32px auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.panel,
.hero-panel {
  background: linear-gradient(145deg, rgba(9, 23, 45, .92), rgba(5, 12, 28, .86));
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-blue), inset 0 1px 0 rgba(255, 255, 255, .06);
}

.panel {
  padding: 20px;
}

.hero-panel {
  padding: clamp(22px, 4vw, 38px);
  margin-bottom: 18px;
}

.portal-hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(320px, 1.1fr);
  gap: 28px;
  align-items: center;
  overflow: hidden;
}

.compact-hero {
  grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr);
}

.hero-copy h1,
h1,
h2,
h3,
.price {
  font-family: var(--font-display);
  letter-spacing: .03em;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4.8vw, 58px);
  line-height: 1.02;
  text-transform: uppercase;
}

h2 {
  margin: 0 0 10px;
  font-size: clamp(23px, 3vw, 34px);
}

.hero-copy p {
  max-width: 620px;
  color: #c7d9eb;
  font-size: clamp(17px, 2vw, 22px);
}

.panel > h1,
.panel .card-title {
  font-size: clamp(30px, 3.7vw, 48px);
  line-height: 1.05;
}

.hero-device {
  display: block;
  width: 100%;
  border-radius: 24px;
  filter: drop-shadow(0 24px 34px rgba(0, 0, 0, .45)) drop-shadow(0 0 28px rgba(0, 184, 255, .3));
  transform: rotate(-1deg);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--yellow);
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

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

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

input {
  width: 100%;
  border: 1px solid rgba(121, 199, 255, .32);
  border-radius: 12px;
  padding: 12px 13px;
  font: inherit;
  background: rgba(2, 6, 15, .72);
  color: var(--text);
  outline: none;
}

input:focus {
  border-color: var(--blue-hot);
  box-shadow: 0 0 0 3px rgba(0, 184, 255, .18);
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 184, 255, .68);
  border-radius: 14px;
  padding: 11px 15px;
  background: linear-gradient(180deg, #18b8ff, #006ee8);
  box-shadow: 0 12px 28px rgba(0, 148, 255, .28), inset 0 1px 0 rgba(255,255,255,.38);
  color: #fff;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

button:hover,
.button:hover {
  transform: translateY(-1px);
  border-color: #fff;
  box-shadow: 0 16px 34px rgba(0, 184, 255, .36), 0 0 18px rgba(0, 184, 255, .26);
}

.button.secondary {
  background: rgba(255, 255, 255, .06);
  color: #dff4ff;
}

.race-button {
  border-color: rgba(255, 229, 44, .8);
  background: linear-gradient(180deg, #ffef4d, #ff9f00);
  color: #1a1200;
  box-shadow: 0 14px 30px rgba(255, 183, 0, .28), inset 0 1px 0 rgba(255,255,255,.48);
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.message {
  margin-top: 12px;
  color: var(--muted);
}

.error {
  color: var(--danger);
}

code {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  border: 1px solid rgba(121, 199, 255, .26);
  border-radius: 8px;
  padding: 4px 7px;
  background: rgba(1, 7, 18, .62);
  color: #dff4ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92em;
}

.led-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.led-row span,
.status-pill,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(121, 199, 255, .24);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(3, 7, 18, .54);
  color: #dff4ff;
  font-size: 13px;
  font-weight: 900;
}

.led {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 14px currentColor, inset 0 0 4px rgba(255,255,255,.85);
}

.led-green { color: var(--green); }
.led-yellow { color: var(--yellow); }
.led-red { color: var(--red); }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.steps div {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: start;
  border: 1px solid rgba(121, 199, 255, .22);
  border-radius: 14px;
  padding: 12px;
  background: rgba(2, 9, 22, .54);
}

.steps strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 0 14px rgba(0, 184, 255, .55);
}

.badge.ok {
  border-color: rgba(36, 240, 90, .5);
  background: rgba(36, 240, 90, .12);
  color: #baffc9;
}

.badge.ok::before,
.badge.pending::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.badge.pending {
  border-color: rgba(255, 229, 44, .5);
  background: rgba(255, 229, 44, .12);
  color: #fff1a3;
}

.license-counters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.license-counters div {
  border: 1px solid rgba(121, 199, 255, .22);
  border-radius: 14px;
  padding: 12px;
  background: rgba(2, 9, 22, .54);
}

.license-counters .label {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.license-counters strong {
  font-family: var(--font-display);
  font-size: 32px;
}

.product-card {
  display: grid;
  gap: 16px;
  border-color: rgba(0, 184, 255, .36);
}

.product-card h2 {
  margin: 8px 0;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.02;
}

.product-card ul {
  margin: 0;
  padding-left: 20px;
  color: #d8e7f5;
}

.price {
  color: var(--yellow);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 900;
  text-shadow: 0 0 20px rgba(255, 229, 44, .25);
}

.product-hero h1 {
  max-width: 760px;
}

.product-section {
  margin-top: 16px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-head h2 {
  margin-bottom: 0;
}

.system-flow-panel {
  margin-top: 16px;
  overflow: hidden;
}

.system-flow {
  display: grid;
  grid-template-columns: minmax(210px, .9fr) minmax(120px, .42fr) minmax(210px, .9fr) minmax(120px, .42fr) minmax(210px, .9fr);
  align-items: stretch;
  gap: 12px;
}

.flow-node,
.flow-endpoints article {
  border: 1px solid rgba(121, 199, 255, .22);
  border-radius: 16px;
  background: rgba(2, 9, 22, .56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.flow-node {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.flow-node-primary {
  border-color: rgba(0, 184, 255, .38);
  background:
    linear-gradient(145deg, rgba(0, 148, 255, .16), transparent 62%),
    rgba(2, 9, 22, .62);
}

.flow-node h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.flow-node ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: #d8e7f5;
}

.flow-node li::marker {
  color: var(--yellow);
}

.flow-link {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 132px;
  padding: 12px 8px;
  color: #dff4ff;
  text-align: center;
}

.flow-link::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 2px dotted rgba(0, 184, 255, .72);
}

.flow-link-lan::before {
  border-top-style: solid;
  border-color: rgba(36, 240, 90, .72);
}

.flow-link span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  padding: 8px 10px;
  border: 1px solid rgba(0, 184, 255, .36);
  border-radius: 999px;
  background: rgba(5, 12, 28, .96);
  color: var(--blue-hot);
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.flow-link-lan span {
  border-color: rgba(36, 240, 90, .36);
  color: var(--green);
}

.flow-link small {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 8px;
  max-width: 130px;
  color: var(--muted);
}

.flow-endpoints {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-top: 10px;
  border-top: 2px dotted rgba(0, 184, 255, .44);
}

.flow-endpoints article {
  display: grid;
  gap: 6px;
  padding: 14px;
}

.flow-endpoints strong {
  font-family: var(--font-display);
  letter-spacing: .06em;
  text-transform: uppercase;
}

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

.spec-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
}

.spec-list div {
  display: grid;
  grid-template-columns: minmax(120px, .45fr) 1fr;
  gap: 12px;
  border: 1px solid rgba(121, 199, 255, .18);
  border-radius: 12px;
  padding: 11px 12px;
  background: rgba(2, 9, 22, .48);
}

.spec-list dt {
  color: var(--yellow);
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.spec-list dd {
  margin: 0;
  color: #d8e7f5;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: #d8e7f5;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
}

.faq-grid {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

details {
  border: 1px solid rgba(121, 199, 255, .2);
  border-radius: 14px;
  background: rgba(2, 9, 22, .5);
  padding: 12px 14px;
}

summary {
  cursor: pointer;
  color: #f7fbff;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
}

details p {
  margin: 10px 0 0;
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, minmax(180px, .8fr));
  gap: 12px;
  margin-top: 14px;
}

.gallery-card {
  min-height: 180px;
  margin: 0;
  border: 1px solid rgba(121, 199, 255, .22);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(2, 9, 22, .55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.gallery-card-large {
  grid-row: span 2;
}

.gallery-card img {
  display: block;
  width: 100%;
  height: calc(100% - 46px);
  min-height: 240px;
  object-fit: cover;
}

.gallery-card figcaption {
  padding: 12px;
  color: #d8e7f5;
  font-weight: 800;
}

.placeholder-card {
  display: grid;
  align-content: end;
  min-height: 190px;
  background:
    radial-gradient(circle at 50% 35%, rgba(0, 184, 255, .2), transparent 38%),
    linear-gradient(145deg, rgba(2, 9, 22, .7), rgba(1, 5, 14, .92));
}

.placeholder-card span {
  align-self: center;
  justify-self: center;
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.data-sheet {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 16px;
}

.dense-spec-list div {
  grid-template-columns: minmax(100px, .38fr) 1fr;
  padding: 9px 10px;
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.note-grid div {
  display: grid;
  gap: 5px;
  border: 1px dashed rgba(121, 199, 255, .3);
  border-radius: 14px;
  padding: 12px;
  background: rgba(2, 9, 22, .42);
}

.note-grid strong {
  color: var(--yellow);
  font-family: var(--font-display);
  letter-spacing: .06em;
  text-transform: uppercase;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
}

th,
td {
  padding: 11px 9px;
  border-bottom: 1px solid rgba(121, 199, 255, .18);
  text-align: left;
  vertical-align: middle;
}

th {
  color: #b9e8ff;
  font-family: var(--font-display);
  letter-spacing: .06em;
  text-transform: uppercase;
}

@media (max-width: 780px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .portal-hero,
  .compact-hero {
    grid-template-columns: 1fr;
  }

  .hero-device {
    transform: none;
  }

  .license-counters {
    grid-template-columns: 1fr;
  }

  .spec-list div {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .system-flow {
    grid-template-columns: 1fr;
  }

  .flow-link {
    min-height: 76px;
  }

  .flow-link::before {
    top: 0;
    bottom: 0;
    left: 50%;
    right: auto;
    border-top: 0;
    border-left: 2px dotted rgba(0, 184, 255, .72);
  }

  .flow-link-lan::before {
    border-left-style: solid;
    border-left-color: rgba(36, 240, 90, .72);
  }

  .flow-endpoints {
    grid-template-columns: 1fr;
  }

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

  .gallery-card-large {
    grid-row: auto;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(100% - 20px, 1120px);
    margin-top: 18px;
  }

  .brand img {
    width: 150px;
  }

  .brand span {
    display: none;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  thead {
    display: none;
  }

  tr {
    border: 1px solid rgba(121, 199, 255, .2);
    border-radius: 14px;
    margin-bottom: 10px;
    padding: 8px;
  }

  td {
    border: 0;
    padding: 7px 4px;
  }
}
