:root {
  color-scheme: dark;
  --bg: #05050d;
  --bg-soft: #090a15;
  --surface: #080913;
  --surface-raised: #0c0e1b;
  --panel: rgba(9, 10, 19, 0.82);
  --panel-strong: rgba(10, 12, 23, 0.94);
  --line: rgba(126, 77, 207, 0.24);
  --line-bright: rgba(153, 86, 255, 0.48);
  --text: #ebe7f8;
  --muted: #a7a0bb;
  --dim: #6f6881;
  --purple: #8b4dff;
  --purple-bright: #b982ff;
  --violet-deep: #3b157e;
  --green: #62d45b;
  --cyan: #49d0ea;
  --gold: #f0b72f;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 0%, rgba(122, 62, 255, 0.24), transparent 27rem),
    radial-gradient(circle at 84% 12%, rgba(98, 212, 91, 0.06), transparent 24rem),
    radial-gradient(circle at 58% 54%, rgba(73, 208, 234, 0.05), transparent 30rem),
    linear-gradient(180deg, #05050d 0%, #070812 48%, #04040a 100%);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(5, 5, 13, 0.98), rgba(5, 5, 13, 0.72) 48%, rgba(5, 5, 13, 0.98)),
    linear-gradient(180deg, rgba(5, 5, 13, 0.28), rgba(5, 5, 13, 0.96) 58%, #04040a),
    radial-gradient(ellipse at 50% 16%, rgba(139, 77, 255, 0.26), transparent 36%),
    radial-gradient(ellipse at 48% 30%, rgba(67, 23, 130, 0.22), transparent 44%),
    radial-gradient(circle, rgba(255, 255, 255, 0.22) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(185, 130, 255, 0.2) 0 1px, transparent 1.5px);
  background-position:
    center top,
    center top,
    center top,
    center top,
    0 0,
    37px 59px;
  background-size:
    auto,
    auto,
    auto,
    auto,
    140px 140px,
    210px 210px;
  opacity: 0.22;
  mask-image: linear-gradient(to bottom, black 0%, black 48%, transparent 92%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(185, 130, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185, 130, 255, 0.026) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 8%, black, transparent 70%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.hero-actions,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 750;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 24px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand-mark img {
  width: 30px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(139, 77, 255, 0.65));
}

.site-nav {
  gap: 6px;
  padding: 5px;
  color: var(--muted);
  background: rgba(13, 15, 30, 0.58);
  border: 1px solid rgba(187, 164, 255, 0.12);
  border-radius: 999px;
}

.site-nav a {
  min-height: 34px;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 0.88rem;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(198, 164, 255, 0.1);
}

.hero {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  min-height: calc(100vh - 70px);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 118px) 0 74px;
}

.hero::before {
  position: absolute;
  inset: -130px 50% auto auto;
  width: min(72vw, 860px);
  height: min(88vw, 980px);
  pointer-events: none;
  content: "";
  background:
    radial-gradient(ellipse at 50% 20%, rgba(139, 77, 255, 0.28), transparent 34%),
    radial-gradient(ellipse at 42% 48%, rgba(64, 24, 150, 0.3), transparent 42%),
    radial-gradient(ellipse at 60% 60%, rgba(73, 208, 234, 0.08), transparent 36%);
  opacity: 0.74;
  filter: blur(18px);
  transform: translateX(50%);
  mask-image: radial-gradient(ellipse at 50% 28%, black 0%, rgba(0, 0, 0, 0.78) 30%, transparent 68%);
}

.hero-atmosphere {
  position: absolute;
  inset: -8% -14% auto;
  height: 56%;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 46%, rgba(139, 77, 255, 0.2), transparent 42%),
    radial-gradient(ellipse at 34% 52%, rgba(73, 208, 234, 0.07), transparent 28%),
    radial-gradient(ellipse at 64% 18%, rgba(185, 130, 255, 0.1), transparent 26%);
  filter: blur(12px);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.hero-emblem {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(210px, 31vw, 340px);
  height: clamp(150px, 22vw, 245px);
  margin: 0 auto 20px;
  overflow: visible;
  border-radius: 999px;
  isolation: isolate;
}

.hero-emblem::before {
  position: absolute;
  inset: -12%;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 50% 44%, rgba(185, 130, 255, 0.38), transparent 44%),
    radial-gradient(circle at 50% 52%, rgba(139, 77, 255, 0.26), transparent 72%);
  filter: blur(18px);
}

.hero-emblem::after {
  content: none;
}

.hero-emblem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 0 8px rgba(185, 130, 255, 0.8))
    drop-shadow(0 0 22px rgba(139, 77, 255, 0.58));
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--purple-bright);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(4.2rem, 13vw, 9rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-shadow:
    0 0 42px rgba(139, 77, 255, 0.34),
    0 0 100px rgba(73, 208, 234, 0.08);
}

.hero-subheadline {
  max-width: 780px;
  margin: 0 auto 18px;
  font-size: clamp(1.45rem, 3vw, 2.3rem);
  line-height: 1.13;
  font-weight: 720;
}

.hero-copy {
  max-width: 700px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.16rem);
  line-height: 1.7;
}

.hero-actions {
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 760;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

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

.button-primary {
  color: #070817;
  background: linear-gradient(135deg, #dbc8ff, #8b4dff 58%, #49d0ea);
  box-shadow: 0 14px 40px rgba(139, 77, 255, 0.3);
}

.button-secondary {
  color: var(--text);
  background: rgba(15, 18, 34, 0.68);
  border: 1px solid var(--line-bright);
}

.client-preview {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 66px auto 0;
}

.client-preview + .client-preview {
  margin-top: 52px;
}

.client-preview-trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  color: inherit;
  cursor: zoom-in;
  background: transparent;
  border: 0;
  border-radius: var(--radius);
}

.client-preview-trigger::after {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  content: "";
  background:
    linear-gradient(#f7f2ff, #f7f2ff) 22px 24px / 12px 2px no-repeat,
    linear-gradient(#f7f2ff, #f7f2ff) 27px 19px / 2px 12px no-repeat,
    radial-gradient(circle at 19px 18px, transparent 0 8px, #f7f2ff 8.5px 10.5px, transparent 11px),
    linear-gradient(45deg, transparent 0 27px, #f7f2ff 27px 30px, transparent 30px),
    rgba(8, 9, 19, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
  opacity: 0.86;
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    border-color 160ms ease;
}

.client-preview-trigger:hover::after,
.client-preview-trigger:focus-visible::after {
  opacity: 1;
  transform: scale(1.06);
  border-color: rgba(185, 130, 255, 0.7);
}

.client-preview-trigger:focus-visible {
  outline: 3px solid rgba(185, 130, 255, 0.8);
  outline-offset: 5px;
}

.client-preview img,
.lightbox-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.client-preview figcaption {
  margin-bottom: 12px;
  color: rgba(167, 160, 187, 0.72);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.88rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  text-align: center;
}

.image-lightbox {
  width: min(var(--lightbox-image-width, 1120px), calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  color: var(--text);
  background: #05050d;
  border: 1px solid rgba(185, 130, 255, 0.42);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.network-manager-lightbox {
  --lightbox-image-width: 1032px;
}

.interface-lightbox {
  --lightbox-image-width: 1725px;
}

.image-lightbox::backdrop {
  background: rgba(2, 2, 8, 0.86);
  backdrop-filter: blur(10px);
}

.image-lightbox form {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  margin: 0;
}

.lightbox-close {
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  cursor: pointer;
  background: rgba(8, 9, 19, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}

.lightbox-close::before,
.lightbox-close::after {
  position: absolute;
  top: 19px;
  left: 11px;
  width: 18px;
  height: 2px;
  content: "";
  background: #f7f2ff;
  border-radius: 999px;
}

.lightbox-close::before {
  transform: rotate(45deg);
}

.lightbox-close::after {
  transform: rotate(-45deg);
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  border-color: rgba(185, 130, 255, 0.74);
}

.lightbox-close:focus-visible {
  outline: 3px solid rgba(185, 130, 255, 0.76);
  outline-offset: 3px;
}

.lightbox-frame {
  width: 100%;
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.lightbox-frame img {
  width: var(--lightbox-image-width, 1120px);
  max-width: none;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0;
}

.section-heading {
  max-width: 690px;
  margin-bottom: 32px;
}

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

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-heading p,
.why-panel p,
.status-panel p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

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

.feature-card,
.why-panel,
.status-panel {
  background:
    radial-gradient(circle at 84% -12%, rgba(139, 77, 255, 0.11), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 46%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.feature-card {
  min-height: 190px;
  padding: 20px;
}

.feature-card h3 {
  min-height: 48px;
  margin-bottom: 14px;
  font-size: 1.03rem;
  line-height: 1.25;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.feature-card:hover {
  border-color: var(--line-bright);
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.22),
    0 0 34px rgba(139, 77, 255, 0.12);
}

.ircv3-section {
  padding-top: 60px;
}

.compat-panel {
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 0%, rgba(98, 212, 91, 0.07), transparent 30%),
    radial-gradient(circle at 10% 0%, rgba(139, 77, 255, 0.12), transparent 34%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.compat-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 18px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
}

.compat-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.status-dot,
.compat-status span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.status-supported,
.compat-status.supported span {
  background: #55ef70;
  box-shadow: 0 0 12px rgba(85, 239, 112, 0.7);
}

.status-partial,
.compat-status.partial span {
  background: #f2c230;
  box-shadow: 0 0 12px rgba(242, 194, 48, 0.55);
}

.status-missing,
.compat-status.missing span {
  background: #ff5f76;
  box-shadow: 0 0 12px rgba(255, 95, 118, 0.55);
}

.compat-table-wrap {
  overflow-x: auto;
}

.compat-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

.compat-table th,
.compat-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(126, 77, 207, 0.18);
  text-align: left;
  vertical-align: top;
}

.compat-table th {
  color: var(--purple-bright);
  background: rgba(5, 5, 13, 0.32);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compat-table td {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.compat-table tr:last-child td {
  border-bottom: 0;
}

.compat-table code {
  color: #ded6ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.88em;
}

.compat-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 132px;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: start;
}

.why-panel {
  padding: clamp(24px, 4vw, 38px);
}

.why-panel p:last-child,
.status-panel p {
  margin-bottom: 0;
}

.status-section {
  padding-top: 72px;
}

.status-panel {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 36px;
  padding: clamp(24px, 5vw, 44px);
  background:
    radial-gradient(circle at 88% 14%, rgba(73, 208, 234, 0.06), transparent 28%),
    linear-gradient(145deg, rgba(139, 77, 255, 0.12), transparent 42%),
    var(--panel-strong);
}

.status-list {
  display: grid;
  gap: 12px;
  align-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.status-list li {
  position: relative;
  padding: 13px 14px 13px 38px;
  color: #dfdaef;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
}

.status-list li::before {
  position: absolute;
  top: 17px;
  left: 15px;
  width: 9px;
  height: 9px;
  content: "";
  background: var(--purple-bright);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(185, 130, 255, 0.8);
}

.site-footer {
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 46px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer strong {
  color: var(--text);
}

.site-footer img {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 0 8px rgba(139, 77, 255, 0.7));
}

.site-footer a {
  color: var(--purple-bright);
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    gap: 14px;
  }

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

  .split-section,
  .status-panel {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 900px), (max-height: 560px) {
  .image-lightbox {
    width: calc(100vw - 20px);
    height: calc(100vh - 20px);
    max-height: none;
  }

  .image-lightbox form {
    top: 10px;
    right: 10px;
  }

  .lightbox-close {
    width: 38px;
    height: 38px;
  }

  .lightbox-close::before,
  .lightbox-close::after {
    top: 17px;
    left: 10px;
  }

  .lightbox-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    max-height: none;
    overflow: hidden;
  }

  .lightbox-frame img {
    width: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: relative;
    flex-direction: column;
    padding-top: 16px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .site-nav a {
    flex: 1;
    text-align: center;
  }

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

@media (max-width: 560px) {
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

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

  .feature-card {
    min-height: auto;
  }

  .feature-card h3 {
    min-height: 0;
  }

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