:root {
  color-scheme: dark;
  --bg: #071018;
  --bg-soft: #0d1b2a;
  --panel: rgba(11, 21, 33, 0.82);
  --panel-strong: rgba(17, 32, 49, 0.96);
  --line: rgba(148, 163, 184, 0.2);
  --text: #edf6ff;
  --muted: #b8c7d6;
  --soft: #7a90a6;
  --blue: #1d7ef2;
  --cyan: #1ed0d6;
  --green: #57e39d;
  --yellow: #f2c94c;
  --shadow: 0 28px 80px rgba(2, 8, 17, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, rgba(30, 208, 214, 0.18), transparent 28rem),
    radial-gradient(circle at 92% 8%, rgba(29, 126, 242, 0.22), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

img {
  max-width: 100%;
}

.section-shell {
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 clamp(18px, 4vw, 54px);
}

.topbar-strip {
  background: rgba(9, 17, 28, 0.92);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: space-between;
  min-height: 42px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.topbar-inner span {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.site-header {
  padding: 18px 0 8px;
}

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

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: min(220px, 52vw);
  height: auto;
}

.nav-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-links a {
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  padding: 10px 14px;
  transition: 0.2s ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--text);
}

.nav-links .nav-cta {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 18px 38px rgba(29, 126, 242, 0.24);
}

.hero-section {
  align-items: center;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  margin: 52px auto 0;
  max-width: 1180px;
  padding: 0 clamp(18px, 4vw, 54px);
}

.eyebrow {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 0.96;
  margin: 14px 0 18px;
}

.hero-text {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.22rem);
  max-width: 700px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 46px;
  padding: 11px 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary,
.btn.card-btn {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  box-shadow: 0 18px 35px rgba(29, 126, 242, 0.2);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--text);
}

.hero-panel {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.status-card {
  align-items: center;
  display: grid;
  gap: 2px 10px;
  grid-template-columns: auto 1fr;
  margin-bottom: 18px;
}

.status-card strong {
  grid-column: 2;
}

.status-dot {
  background: var(--green);
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(87, 227, 157, 0.14);
  display: inline-block;
  height: 11px;
  width: 11px;
}

.router-preview {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  padding: 14px;
}

.router-preview img,
.card img,
.device-image,
.step img {
  aspect-ratio: 16 / 11;
  background: #fff;
  border-radius: 12px;
  display: block;
  object-fit: contain;
  width: 100%;
}

.container {
  margin: 0 auto;
  max-width: 1180px;
  padding: 18px clamp(18px, 4vw, 54px) 0;
}

.search-section,
.catalog-section,
.popular,
.help-section {
  margin-top: 46px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2,
.help-section h2 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.15;
  margin-top: 5px;
}

.searchbox {
  max-width: 760px;
}

.searchbox input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  outline: none;
  padding: 17px 18px;
  width: 100%;
}

.searchbox input:focus {
  border-color: rgba(30, 208, 214, 0.8);
  box-shadow: 0 0 0 4px rgba(30, 208, 214, 0.1);
}

.results {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: none;
  margin-top: 12px;
  max-width: 760px;
  overflow: hidden;
}

.result-item {
  border-bottom: 1px solid var(--line);
}

.result-item:last-child {
  border-bottom: 0;
}

.result-item a,
.result-item span {
  display: block;
  padding: 14px 16px;
}

.result-item a:hover {
  background: var(--panel-strong);
}

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

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.card.muted {
  opacity: 0.72;
}

.card img {
  aspect-ratio: 4 / 3;
  background: #fff;
  padding: 14px;
}

.content {
  padding: 17px;
}

.content h3,
.content h2 {
  font-size: 1.38rem;
  margin: 12px 0 4px;
}

.content p,
.help-section p,
.guide-card p,
.summary-card p,
.step p {
  color: var(--muted);
}

.card-btn {
  margin-top: 18px;
  width: 100%;
}

.pill {
  background: rgba(87, 227, 157, 0.14);
  border-radius: 999px;
  color: #a7f7c7;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 5px 10px;
}

.popular-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-weight: 700;
  padding: 10px 14px;
}

.tag:hover {
  background: rgba(255, 255, 255, 0.08);
}

.help-section {
  align-items: center;
  background: linear-gradient(135deg, rgba(29, 126, 242, 0.14), rgba(30, 208, 214, 0.12));
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: clamp(20px, 4vw, 34px);
}

.help-section p {
  max-width: 720px;
}

.guide-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 320px;
  margin-top: 46px;
}

.guide-card,
.summary-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(18px, 3vw, 28px);
}

.summary-card {
  align-self: start;
  position: sticky;
  top: 18px;
}

.guide-card h2,
.summary-card h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.2;
  margin-bottom: 12px;
}

.device-image {
  margin-top: 18px;
  padding: 14px;
}

.step-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.step {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}

.step h3 {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

.step-number {
  align-items: center;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.9rem;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.step img {
  margin-top: 14px;
  max-height: 520px;
  padding: 10px;
}

.info-grid {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.info-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}

.info-box span {
  color: var(--soft);
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.site-footer {
  align-items: center;
  background: rgba(5, 11, 17, 0.78);
  border-top: 1px solid var(--line);
  display: flex;
  gap: 22px;
  justify-content: space-between;
  margin-top: 58px;
  padding: 26px clamp(18px, 4vw, 64px);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer img {
  width: min(210px, 52vw);
}

.site-footer p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.footer-links a {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
}

.footer {
  border-top: 1px solid var(--line);
  color: var(--soft);
  margin-top: 58px;
  padding: 28px 18px 34px;
  text-align: center;
}

@media (max-width: 980px) {
  .hero-section {
    grid-template-columns: 1fr;
  }

  .guide-layout {
    grid-template-columns: 1fr;
  }

  .summary-card {
    position: static;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .topbar-inner,
  .header-inner,
  .help-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    overflow-x: auto;
    padding-bottom: 4px;
    width: 100%;
  }

  .hero-section {
    margin-top: 38px;
  }

  .hero-copy h1 {
    font-size: clamp(2.8rem, 16vw, 4.6rem);
  }

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

  .hero-actions,
  .hero-actions .btn,
  .help-section .btn {
    width: 100%;
  }
}
