:root {
  --ink: #eef8fa;
  --muted: #a7c0c7;
  --line: #294954;
  --panel: #0b232b;
  --accent: #65b9ff;
  --green: #45e47b;
  --dark: #061a20;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: #061a20;
  background-image:
    radial-gradient(circle at 82% 18%, rgba(57, 165, 184, 0.09), transparent 34%),
    linear-gradient(135deg, #061a20 0%, #08232a 58%, #061820 100%);
  color: var(--ink);
}

a {
  color: var(--accent);
}

.site-header {
  background:
    linear-gradient(rgba(6, 26, 32, 0.96), rgba(6, 26, 32, 0.96)),
    linear-gradient(90deg, rgba(101, 185, 255, 0.06) 1px, transparent 1px);
  color: #eef8f6;
  border-bottom: 1px solid #294954;
}

nav {
  max-width: 1240px;
  margin: 0 auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 22px;
}

nav strong {
  margin-right: auto;
}

nav a {
  color: #cfe5e1;
  text-decoration: none;
  font-size: 14px;
}

nav .nav-demo {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(69, 228, 123, 0.45);
  border-radius: 7px;
  background: rgba(69, 228, 123, 0.08);
  padding: 0 10px;
  color: #8af2ad;
  font-weight: 800;
}

.language-button {
  appearance: none;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: #9fb7b2;
  padding: 5px 0;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.language-button:hover,
.language-button:focus-visible,
.language-button.is-active {
  border-bottom-color: var(--accent);
  color: #e7f6f2;
}

.hero {
  max-width: 1240px;
  min-height: 550px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 42px;
  padding: 42px 22px 72px;
}

h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1;
  margin: 0;
  letter-spacing: 0;
}

h2 {
  font-size: 32px;
  margin: 0 0 18px;
}

h3 {
  margin: 0 0 8px;
}

p,
li,
dd {
  line-height: 1.6;
  color: var(--muted);
}

.hero p {
  color: #cfe5e1;
  max-width: 620px;
  font-size: 18px;
}

.eyebrow {
  display: block;
  margin-bottom: 14px;
  color: #75ded4;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border-radius: 8px;
  background: linear-gradient(180deg, #6693ce, #547fb8);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

.button.secondary {
  border: 1px solid #365663;
  background: rgba(18, 48, 58, 0.72);
}

code,
pre {
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}


.hero-demo-preview {
  position: relative;
  overflow: hidden;
  display: block;
  border: 1px solid #385b66;
  border-radius: 14px;
  background: #071b22;
  color: #eaf8fb;
  text-decoration: none;
  box-shadow: 0 28px 85px rgba(0, 0, 0, 0.38);
  transform: perspective(1200px) rotateY(-2deg);
  transition: transform 180ms ease, border-color 180ms ease;
}

.hero-demo-preview:hover,
.hero-demo-preview:focus-visible {
  border-color: rgba(101, 185, 255, 0.72);
  transform: perspective(1200px) rotateY(0deg) translateY(-3px);
}

.hero-demo-preview img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  object-position: top left;
}

.hero-demo-preview > span {
  min-height: 45px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #294954;
  padding: 0 14px;
  background: #0c252e;
  font-size: 12px;
  font-weight: 800;
}

.hero-demo-preview > span i,
.online-chip i {
  width: 9px;
  height: 9px;
  display: inline-block;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(69, 228, 123, 0.75);
}

.hero-demo-preview > span b {
  margin-left: auto;
  color: var(--accent);
  font-size: 18px;
}

main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 22px 70px;
}

.band {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025), 0 12px 30px rgba(0, 0, 0, 0.12);
}

.demo-overview {
  border: 1px solid rgba(101, 185, 255, 0.3);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(31, 91, 113, 0.28), rgba(11, 35, 43, 0.9) 54%);
  padding: 26px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.online-chip {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(69, 228, 123, 0.36);
  border-radius: 999px;
  background: rgba(69, 228, 123, 0.08);
  padding: 0 11px;
  color: #8af2ad;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 800;
}

.demo-access-grid {
  display: grid;
  grid-template-columns: 150px 150px 1fr auto;
  gap: 10px;
  align-items: stretch;
  margin-top: 18px;
}

.credential-card {
  display: grid;
  gap: 6px;
  border: 1px solid #345560;
  border-radius: 8px;
  background: #071c22;
  padding: 11px 13px;
}

.credential-card small {
  color: #7299a3;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.07em;
}

.credential-card code {
  color: #f1fbfd;
  font-size: 18px;
  font-weight: 900;
}

.demo-capabilities {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  gap: 6px;
  border: 1px solid #345560;
  border-radius: 8px;
  background: rgba(7, 28, 34, 0.64);
  padding: 9px;
}

.demo-capabilities span {
  border-radius: 5px;
  background: rgba(101, 185, 255, 0.1);
  padding: 5px 7px;
  color: #bfe0f5;
  font-size: 10px;
  font-weight: 700;
}

.demo-safety-note {
  margin: 13px 0 0;
  border-left: 3px solid #ffb64d;
  padding-left: 10px;
  font-size: 11px;
}

.firmware-prerequisite {
  margin-top: 28px;
  border: 1px solid rgba(255, 182, 77, 0.38);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 182, 77, 0.08), transparent 42%),
    rgba(7, 28, 34, 0.72);
  padding: 28px;
}

.firmware-lead {
  max-width: 940px;
  font-size: 17px;
}

.firmware-release {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px 24px;
  align-items: center;
  margin: 22px 0;
  border: 1px solid rgba(86, 203, 255, 0.38);
  border-radius: 10px;
  background: rgba(86, 203, 255, 0.06);
  padding: 18px;
}

.firmware-release div {
  grid-row: 1 / span 2;
  min-width: 150px;
}

.firmware-release span,
.firmware-release strong {
  display: block;
}

.firmware-release span {
  color: #77d7ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.firmware-release strong {
  margin-top: 4px;
  color: #f4fbfc;
  font-size: 25px;
}

.firmware-release p {
  margin: 0;
}

.firmware-release code {
  overflow-wrap: anywhere;
  color: #b7cbd0;
  font-size: 11px;
}

.firmware-flow {
  counter-reset: firmware-step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.firmware-flow li {
  counter-increment: firmware-step;
  position: relative;
  min-height: 132px;
  border: 1px solid #345560;
  border-radius: 9px;
  background: #081f26;
  padding: 17px 16px 16px 54px;
}

.firmware-flow li::before {
  content: counter(firmware-step);
  position: absolute;
  top: 15px;
  left: 15px;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 182, 77, 0.65);
  border-radius: 50%;
  background: rgba(255, 182, 77, 0.11);
  color: #ffd27e;
  font-size: 12px;
  font-weight: 900;
}

.firmware-flow strong,
.firmware-flow span {
  display: block;
}

.firmware-flow strong {
  margin-bottom: 7px;
  color: #edf8fa;
}

.firmware-flow span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.firmware-warning,
.installation-order-note {
  border-left: 3px solid #ffb64d;
  background: rgba(255, 182, 77, 0.06);
  padding: 11px 13px;
}

.firmware-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.cross-router-compatibility {
  margin-top: 28px;
}

.compatibility-lead {
  max-width: 980px;
  font-size: 17px;
}

.compatibility-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.compatibility-card {
  border: 1px solid #345560;
  border-radius: 9px;
  background: #081f26;
  padding: 18px;
}

.compatibility-card span {
  display: block;
  margin-bottom: 9px;
  color: #77d7ff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.compatibility-card.is-validated {
  border-color: rgba(55, 220, 131, 0.48);
}

.compatibility-card.is-validated span {
  color: #61e596;
}

.compatibility-card.is-conditional {
  border-color: rgba(255, 182, 77, 0.46);
}

.compatibility-card.is-conditional span {
  color: #ffd27e;
}

.compatibility-card h3,
.compatibility-card p {
  margin: 0;
}

.compatibility-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.compatibility-checks {
  margin: 20px 0;
  border: 1px solid #345560;
  border-radius: 9px;
  background: rgba(8, 31, 38, 0.72);
  padding: 18px 20px;
}

.compatibility-checks h3 {
  margin: 0 0 10px;
}

.compatibility-checks ul {
  margin-bottom: 0;
}

.aurelka-band img {
  display: block;
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(8, 34, 40, 0.18);
}

.login-band pre {
  margin-top: 18px;
}

pre {
  border: 1px solid #294954;
  background: #041317;
  color: #d7f8ef;
  padding: 16px;
  border-radius: 8px;
  overflow: auto;
}

dt {
  font-weight: 800;
  margin-top: 12px;
}

@media (max-width: 860px) {
  nav {
    flex-wrap: wrap;
    padding: 16px 22px;
  }

  .hero,
  .feature-grid,
  .firmware-flow,
  .compatibility-grid {
    grid-template-columns: 1fr;
  }

  .firmware-release {
    grid-template-columns: 1fr;
  }

  .firmware-release div {
    grid-row: auto;
  }

  .hero-demo-preview {
    transform: none;
  }

  .demo-access-grid {
    grid-template-columns: 1fr 1fr;
  }

  .demo-capabilities,
  .demo-access-grid > .button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 540px) {
  nav strong {
    width: 100%;
  }

  nav .nav-demo {
    order: 3;
  }

  .hero {
    min-height: auto;
    padding-top: 28px;
  }

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

  .demo-access-grid {
    grid-template-columns: 1fr;
  }

  .demo-capabilities,
  .demo-access-grid > .button {
    grid-column: auto;
  }
}
