:root {
  --deep: #151426;
  --deep-2: #1a1930;
  --panel: rgba(26, 25, 48, 0.92);
  --panel-soft: rgba(19, 18, 35, 0.84);
  --text: #f0ece7;
  --text-dim: #908c8a;
  --accent: #00e5ff;
  --accent-soft: rgba(0, 229, 255, 0.08);
  --line: rgba(0, 229, 255, 0.14);
  --line-strong: rgba(0, 229, 255, 0.32);
  --line-lift: rgba(255, 255, 255, 0.08);
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(rgba(0, 229, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.09) 1px, transparent 1px),
    linear-gradient(180deg, #17152c 0%, #121120 100%);
  background-size: 80px 80px, 80px 80px, 100% 100%;
}

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

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  padding-bottom: 88px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(21, 20, 38, 0.94);
  border-bottom: 1px solid var(--line-strong);
  backdrop-filter: blur(10px);
}

.site-header__inner,
.hero__inner,
.footer__inner,
.switcher__inner {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.site-header__inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
  background: rgba(0, 229, 255, 0.04);
}

.brand__copy strong,
.brand__copy span {
  display: block;
}

.brand__copy strong {
  font-size: 1rem;
}

.brand__copy span {
  color: var(--text-dim);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  color: var(--text-dim);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.button:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.14);
}

.button--primary,
.button--line {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.eyebrow,
.panel__label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: var(--accent);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.hero {
  padding: 56px 0 42px;
}

.hero-intro {
  max-width: 780px;
  margin-bottom: 28px;
}

.hero h1,
.hero h2,
.footer__brand h2 {
  margin: 18px 0 0;
  line-height: 1.04;
}

.hero h1 {
  max-width: 860px;
  font-size: clamp(2.7rem, 5vw, 5rem);
}

.hero h2,
.tester-card h2 {
  font-size: clamp(1.5rem, 2.3vw, 2.45rem);
}

.hero p,
.panel__copy p,
.company-note span,
.tester-hero p,
.tester-list li,
.footer__brand p {
  color: var(--text-dim);
  line-height: 1.75;
}

.gateway-grid,
.frames-grid,
.stack-products,
.tester-grid {
  display: grid;
  gap: 20px;
}

.gateway-grid {
  grid-template-columns: 1.02fr 1fr 1fr;
}

.stack-layout {
  display: grid;
  gap: 20px;
}

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

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

.panel,
.tester-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(26, 25, 48, 0.96), rgba(18, 17, 32, 0.98));
  box-shadow: var(--shadow);
}

.panel::before,
.tester-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 229, 255, 0.06) 0, transparent 12%, transparent 88%, rgba(0, 229, 255, 0.06) 100%);
}

.panel {
  min-height: 100%;
}

.panel--company {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
}

.panel--product {
  display: grid;
  grid-template-rows: auto 240px auto;
}

.panel__label {
  padding: 18px 22px 0;
}

.panel__copy {
  position: relative;
  z-index: 1;
  padding: 0 22px 24px;
}

.panel__copy h2 {
  max-width: 18ch;
}

.panel__media {
  position: relative;
  z-index: 1;
  margin: 18px 22px 18px;
  border: 1px solid var(--line-lift);
  overflow: hidden;
}

.panel__media img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  object-position: top center;
}

.meta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.meta-chip {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: rgba(0, 229, 255, 0.04);
  color: var(--text);
  font-size: 0.78rem;
}

.panel__actions {
  margin-top: 20px;
}

.company-note {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.company-note strong,
.company-note span {
  display: block;
}

.company-note strong {
  font-size: 1rem;
}

.company-note span {
  margin-top: 10px;
}

.tester-page {
  padding: 56px 0 0;
}

.tester-hero {
  max-width: 860px;
  margin-bottom: 24px;
}

.route-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
}

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

.tester-card--media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.tester-card--copy {
  padding: 26px;
}

.tester-list {
  margin: 18px 0 0;
  padding-left: 18px;
}

.tester-list li + li {
  margin-top: 12px;
}

.footer {
  padding: 28px 0 110px;
  border-top: 1px solid var(--line-strong);
  background: rgba(17, 16, 31, 0.92);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer__brand p {
  margin: 10px 0 0;
  max-width: 620px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__links a {
  color: var(--text-dim);
}

.footer__links a:hover,
.footer__links a:focus-visible {
  color: var(--accent);
}

.switcher {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 16px;
  z-index: 50;
}

.switcher__inner {
  display: flex;
  justify-content: center;
}

.switcher__bar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(27, 34, 54, 0.94);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.switcher__button,
.switcher__link {
  min-width: 42px;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.switcher__button {
  padding: 0;
}

.switcher__label {
  min-width: 300px;
  padding: 0 16px;
  text-align: center;
}

.switcher__label strong,
.switcher__label span {
  display: block;
}

.switcher__label span {
  margin-top: 2px;
  color: #9ea8bf;
  font-size: 0.82rem;
}

@media (max-width: 1100px) {
  .gateway-grid,
  .frames-grid,
  .stack-products,
  .tester-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .site-header__inner,
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    display: none;
  }

  .header-actions,
  .header-actions .button {
    width: 100%;
  }

  .hero {
    padding-top: 42px;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 12vw, 3.8rem);
  }

  .panel--product {
    grid-template-rows: auto 210px auto;
  }

  .panel__media img {
    min-height: 210px;
  }

  .switcher__bar {
    width: calc(100% - 20px);
    justify-content: space-between;
  }

  .switcher__label {
    min-width: 0;
    flex: 1;
  }

  .switcher__label span {
    display: none;
  }
}
