@font-face {
  font-family: "Good Times Local";
  src: url("assets/good times rg.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --orange: #ff6a13;
  --orange-deep: #ef4f00;
  --cyan: #22bfd8;
  --bg-0: #05070a;
  --bg-1: #0c1015;
  --bg-2: #14191f;
  --panel: rgba(16, 19, 24, 0.9);
  --panel-2: rgba(25, 22, 20, 0.92);
  --text: #fff7ef;
  --text-soft: rgba(255, 247, 239, 0.72);
  --text-mute: rgba(255, 247, 239, 0.52);
  --line: rgba(255, 106, 19, 0.2);
  --line-soft: rgba(255, 255, 255, 0.08);
  --radius: 8px;
  --radius-panel: 24px;
  --header-h: 78px;
  --container: min(1180px, calc(100% - 2rem));
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  background:
    repeating-linear-gradient(
      120deg,
      rgba(255, 106, 19, 0.07) 0 1px,
      transparent 1px 56px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.035) 0 1px,
      transparent 1px 120px
    ),
    linear-gradient(180deg, var(--bg-1), var(--bg-0) 34%, #020304 100%);
  line-height: 1.55;
  overflow-x: clip;
}

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

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

h1,
h2,
h3 {
  margin: 0;
  font-family: "Sora", "Manrope", sans-serif;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 13ch;
  font-size: clamp(2rem, 4.1vw, 3.75rem);
  font-weight: 800;
}

.hero h1 {
  max-width: 18ch;
  font-size: clamp(1.55rem, 2.7vw, 2.45rem);
}

h2 {
  max-width: 17ch;
  font-size: clamp(1.85rem, 3.4vw, 3rem);
  font-weight: 800;
}

h3 {
  font-size: 1.05rem;
  font-weight: 800;
}

p {
  margin: 0;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-h);
  border-bottom: 1px solid rgba(255, 106, 19, 0.18);
  background: rgba(5, 7, 10, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
}

.nav-wrap {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
}

.brand {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

body.hero-brand-visible .site-header .brand {
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px);
}

.brand-mark,
.hero-logo,
.product-wordmark span {
  font-family: "Good Times Local", "Sora", sans-serif;
  font-weight: 400;
}

.brand-mark {
  color: var(--orange);
  font-size: 1.55rem;
  line-height: 1;
}

.brand-sub {
  color: var(--text-soft);
  font-family: "Sora", sans-serif;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.72rem 1.18rem;
  font-family: "Sora", sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  color: #1a0901;
  background: linear-gradient(135deg, var(--orange), #ff9c3b);
  box-shadow: 0 13px 30px rgba(255, 106, 19, 0.28);
}

.btn-secondary {
  color: #ffffff;
  border-color: rgba(255, 106, 19, 0.42);
  background: rgba(255, 106, 19, 0.08);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: rgba(255, 106, 19, 0.7);
  background: rgba(255, 106, 19, 0.13);
}

.header-cta {
  padding: 0.62rem 1rem;
}

main {
  width: var(--container);
  margin: 0 auto;
  padding: 1.15rem 0 1.4rem;
}

.section-card {
  position: relative;
  margin-top: 1rem;
  padding: clamp(1.35rem, 3vw, 2.45rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background:
    repeating-linear-gradient(
      120deg,
      rgba(255, 106, 19, 0.045) 0 1px,
      transparent 1px 52px
    ),
    linear-gradient(145deg, rgba(24, 20, 18, 0.94), rgba(10, 13, 18, 0.92));
  box-shadow: var(--shadow);
}

.hero {
  min-height: 0;
  display: grid;
  align-items: center;
  padding-block: clamp(1rem, 2.2vw, 1.8rem);
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(1.8rem, 4vw, 4rem);
}

.hero-copy {
  max-width: 560px;
}

.hero-logo {
  margin: 0 0 0.75rem;
  color: var(--orange);
  font-size: clamp(3.2rem, 8.8vw, 6rem);
  line-height: 0.92;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--orange);
  font-family: "Sora", sans-serif;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lede,
.section-heading p,
.info-card p,
.control-card p,
.layer-card p,
.compare-card li,
.contact-card p,
.footer-wrap p {
  color: var(--text-soft);
}

.lede {
  max-width: 56ch;
  margin-top: 1rem;
  font-size: 1.02rem;
  line-height: 1.68;
}

.market-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.market-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 36px;
  border: 1px solid rgba(255, 106, 19, 0.26);
  border-radius: 999px;
  padding: 0.42rem 0.7rem;
  background: rgba(255, 106, 19, 0.08);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
}

.market-row i {
  color: var(--orange);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.7rem;
}

.hero-diagram {
  position: relative;
  aspect-ratio: 680 / 560;
  min-height: 430px;
}

.diagram-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
  filter: drop-shadow(0 0 8px rgba(255, 106, 19, 0.5));
  pointer-events: none;
}

.diagram-grid {
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  align-items: center;
}

.node-card {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.68rem;
  padding: 0.78rem;
  border: 1px solid rgba(255, 106, 19, 0.24);
  border-radius: var(--radius);
  background: rgba(10, 13, 18, 0.82);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.node-card h3 {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.node-card p {
  margin-top: 0.24rem;
  color: var(--text-mute);
  font-size: 0.72rem;
  line-height: 1.35;
}

.node-icon,
.card-icon {
  display: grid;
  place-items: center;
  color: var(--orange);
  background: rgba(255, 106, 19, 0.13);
}

.node-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
}

.node-tl {
  grid-column: 1;
  grid-row: 1;
}

.node-tc {
  grid-column: 2;
  grid-row: 1;
}

.node-tr {
  grid-column: 3;
  grid-row: 1;
}

.node-ml {
  grid-column: 1;
  grid-row: 2;
}

.node-mr {
  grid-column: 3;
  grid-row: 2;
}

.node-bl {
  grid-column: 1;
  grid-row: 3;
}

.node-bc {
  grid-column: 2;
  grid-row: 3;
}

.node-br {
  grid-column: 3;
  grid-row: 3;
}

.node-core {
  grid-column: 2;
  grid-row: 2;
  justify-self: center;
  align-self: center;
  display: grid;
  place-items: center;
  width: clamp(148px, 20vw, 190px);
  aspect-ratio: 1;
  border: 2px solid rgba(255, 106, 19, 0.82);
  border-radius: 18px;
  background:
    repeating-linear-gradient(
      120deg,
      rgba(255, 255, 255, 0.08) 0 1px,
      transparent 1px 18px
    ),
    linear-gradient(135deg, #080a0e, #2a170d 58%, #ff6a13 170%);
  box-shadow:
    0 0 44px rgba(255, 106, 19, 0.32),
    0 24px 60px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  text-align: center;
}

.node-core img {
  width: 82%;
  max-height: 82%;
  object-fit: contain;
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.42));
}

.section-heading {
  max-width: 820px;
  margin-bottom: 1.45rem;
}

.section-heading h2 + p,
.section-heading p + h2 {
  margin-top: 0.75rem;
}

.section-heading.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading.centered h2,
.section-heading.centered p {
  margin-left: auto;
  margin-right: auto;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(1.1rem, 3vw, 2rem);
  align-items: end;
  max-width: none;
}

.split-heading p:last-child {
  max-width: 66ch;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.stats-grid,
.compare-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.info-card,
.stat-card,
.compare-card,
.contact-grid article,
.contact-grid a {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.info-card {
  position: relative;
  padding: 1.2rem;
  border-color: rgba(255, 106, 19, 0.18);
  background:
    linear-gradient(
      165deg,
      rgba(255, 255, 255, 0.07),
      rgba(255, 255, 255, 0.032)
    ),
    rgba(10, 13, 18, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  margin-bottom: 0.9rem;
}

.info-card p {
  margin-top: 0.7rem;
}

.foundation-section {
  background:
    radial-gradient(
      circle at 88% 12%,
      rgba(255, 106, 19, 0.13),
      transparent 34%
    ),
    radial-gradient(
      circle at 12% 92%,
      rgba(255, 106, 19, 0.08),
      transparent 32%
    ),
    repeating-linear-gradient(
      120deg,
      rgba(255, 106, 19, 0.05) 0 1px,
      transparent 1px 52px
    ),
    linear-gradient(145deg, rgba(26, 18, 14, 0.96), rgba(8, 11, 16, 0.94));
}

.foundation-section .info-card h3 {
  color: #ffffff;
}

.proof-card {
  background:
    repeating-linear-gradient(
      120deg,
      rgba(255, 106, 19, 0.05) 0 1px,
      transparent 1px 52px
    ),
    linear-gradient(140deg, rgba(18, 14, 12, 0.95), rgba(8, 11, 16, 0.94));
}

.stat-card {
  min-height: 158px;
  padding: 1.2rem;
  display: grid;
  align-content: space-between;
  border-color: rgba(255, 106, 19, 0.28);
}

.stat-card strong {
  color: var(--orange);
  font-family: "Sora", sans-serif;
  font-size: clamp(2.25rem, 4.1vw, 3.55rem);
  line-height: 1;
}

.stat-card span {
  max-width: 24ch;
  color: var(--text);
  font-weight: 800;
}

.control-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
}

.control-card {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.control-card:hover,
.control-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(255, 106, 19, 0.44);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.3);
}

.control-card figure {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0c1015;
}

.control-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  filter: saturate(0.95) contrast(1.02);
}

.control-shot {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  font: inherit;
}

.control-shot img {
  transition: transform 220ms ease;
}

.control-shot:hover img,
.control-shot:focus-visible img {
  transform: scale(1.025);
}

.control-shot:focus-visible {
  outline: 2px solid rgba(255, 106, 19, 0.75);
  outline-offset: -2px;
}

.control-card div {
  padding: 1rem;
}

.control-card span {
  color: var(--orange);
  font-family: "Sora", sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.control-card h3 {
  margin-top: 0.35rem;
}

.control-card p {
  margin-top: 0.5rem;
  font-size: 0.92rem;
}

.software-section {
  background:
    repeating-linear-gradient(
      120deg,
      rgba(255, 106, 19, 0.05) 0 1px,
      transparent 1px 52px
    ),
    linear-gradient(160deg, rgba(16, 12, 10, 0.96), rgba(6, 8, 12, 0.96));
}

.software-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.software-card {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 370px;
  overflow: hidden;
  border: 1px solid rgba(255, 106, 19, 0.18);
  border-radius: var(--radius);
  color: #ffffff;
  background: #17120f;
  font-family: "Montserrat", "Manrope", sans-serif;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.software-card:hover,
.software-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255, 106, 19, 0.58);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.32);
}

.software-card figure {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  background: #17120f;
}

.software-card figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(18, 14, 11, 0.22) 0%,
      rgba(18, 14, 11, 0.84) 72%
    ),
    linear-gradient(90deg, rgba(255, 106, 19, 0.22), transparent 46%);
}

.software-card figure > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(0.92) brightness(1.04);
  transition:
    transform 240ms ease,
    filter 240ms ease;
}

.software-card:hover figure > img,
.software-card:focus-visible figure > img {
  transform: scale(1.03);
  filter: saturate(0.9) contrast(0.98) brightness(1.08);
}

.product-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 100%;
  height: 224px;
  padding: 1.35rem;
}

.software-card h3 {
  font-family: "Montserrat", "Manrope", sans-serif;
  font-size: 1.16rem;
  text-transform: uppercase;
}

.software-card p {
  margin: 0.65rem 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
}

.product-more {
  display: inline-flex;
  align-self: end;
  margin-top: 1rem;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-mark {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  width: 96px;
  height: 72px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  pointer-events: none;
}

.product-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left top;
  filter: drop-shadow(0 9px 12px rgba(0, 0, 0, 0.35))
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.8));
}

.product-mark-pack .product-logo {
  width: 78px;
  height: 88px;
  transform: translate(-12px, -12px);
}

.product-mark-nemo .product-logo {
  width: 88px;
  height: 88px;
  transform: translate(-11px, -27px);
}

.product-mark-mestra .product-logo {
  width: 84px;
  height: 70px;
  transform: translate(-10px, -9px);
}

.product-wordmark {
  position: relative;
  display: inline-flex;
  gap: 0.22rem;
  margin: 0;
  color: #ffffff;
  font-size: 1.55rem;
  font-weight: 400;
  text-transform: uppercase;
  text-shadow:
    0 1px 1px rgba(0, 0, 0, 0.42),
    0 8px 12px rgba(0, 0, 0, 0.25),
    0 0 7px rgba(255, 255, 255, 0.72),
    0 0 18px rgba(255, 255, 255, 0.3);
}

.product-wordmark span,
.product-wordmark strong {
  display: inline;
  margin: 0;
  color: inherit;
  font-weight: 400;
}

.product-wordmark strong {
  color: var(--orange);
  font-family: "Montserrat", "Manrope", sans-serif;
  font-weight: 700;
  text-shadow:
    0 1px 1px rgba(0, 0, 0, 0.42),
    0 0 7px rgba(255, 106, 19, 0.82),
    0 0 16px rgba(255, 106, 19, 0.46);
}

.architecture-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: start;
}

.layer-stack {
  display: grid;
  gap: 0.7rem;
}

.layer-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.95rem;
  padding: 1rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.layer-card span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: rgba(34, 191, 216, 0.12);
  color: var(--cyan);
  font-family: "Sora", sans-serif;
  font-weight: 800;
}

.layer-card p {
  margin-top: 0.4rem;
}

.layer-foundation {
  border-color: rgba(255, 106, 19, 0.42);
  background:
    repeating-linear-gradient(
      120deg,
      rgba(255, 255, 255, 0.08) 0 1px,
      transparent 1px 32px
    ),
    linear-gradient(135deg, #1d2026, #2a170d);
}

.layer-foundation span {
  color: #1a0901;
  background: linear-gradient(135deg, var(--orange), #ff9c3b);
}

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

.compare-card {
  padding: 1.25rem;
}

.compare-card h3 {
  text-transform: uppercase;
}

.compare-card ul {
  display: grid;
  gap: 0.72rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.compare-card li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
}

.compare-card i {
  margin-top: 0.28rem;
  color: #c15a39;
}

.compare-pack {
  border-color: rgba(255, 106, 19, 0.38);
  background: rgba(255, 106, 19, 0.08);
}

.compare-pack h3,
.compare-pack i {
  color: var(--orange);
}

.compare-pack li {
  color: var(--text);
}

.contact-card {
  background:
    repeating-linear-gradient(
      120deg,
      rgba(255, 106, 19, 0.06) 0 1px,
      transparent 1px 52px
    ),
    linear-gradient(135deg, #171b21, #20252b 58%, #2a170d);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(1.3rem, 3vw, 2rem);
  align-items: start;
}

.contact-card p {
  margin-top: 1rem;
  max-width: 60ch;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.contact-grid article,
.contact-grid a {
  min-height: 132px;
  padding: 1rem;
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.055);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.contact-grid a:hover,
.contact-grid a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 106, 19, 0.62);
  background: rgba(255, 255, 255, 0.09);
}

.contact-grid h3 {
  color: #ff9a3d;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-grid p {
  margin-top: 0.72rem;
}

.socials {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.3rem;
}

.socials span {
  color: var(--text-soft);
  font-weight: 800;
}

.socials a {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  color: #ffffff;
  font-size: 1.2rem;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.socials a:hover,
.socials a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 106, 19, 0.68);
  background: rgba(255, 106, 19, 0.14);
}

.site-footer {
  padding: 0 0 1.2rem;
}

.footer-wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: 84px;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: rgba(9, 12, 17, 0.86);
  box-shadow: var(--shadow);
}

.footer-wrap p {
  font-size: 0.85rem;
  text-align: right;
}

.lightbox {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  width: fit-content;
  max-width: 94vw;
  outline: none;
  box-shadow: none;
  overflow: visible;
  position: relative;
}

.lightbox[open] {
  position: fixed;
  inset: 0;
  margin: auto;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: 92vw;
  max-height: 82vh;
  object-fit: contain;
  border: 1px solid rgba(255, 106, 19, 0.34);
  border-radius: 12px;
  background: #07090d;
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 28px rgba(255, 106, 19, 0.12);
}

.lightbox-close {
  position: fixed;
  right: 18px;
  top: 18px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 0.2rem 0.45rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  font-family: inherit;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  color: var(--orange);
  outline: none;
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  height: var(--lightbox-nav-height, 40vh);
  width: clamp(72px, 16vw, 180px);
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.lightbox-nav-prev {
  left: 16px;
  justify-content: flex-start;
  padding-left: 0.35rem;
}

.lightbox-nav-next {
  right: 16px;
  justify-content: flex-end;
  padding-right: 0.35rem;
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  color: var(--orange);
  outline: none;
}

.lightbox-nav.is-edge {
  color: transparent;
}

.lightbox-nav[hidden] {
  display: none;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 1120px) {
  .hero-layout,
  .architecture-layout,
  .contact-layout,
  .split-heading {
    grid-template-columns: 1fr;
  }

  .hero-diagram {
    max-width: 720px;
    width: 100%;
    justify-self: center;
  }

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

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

  .footer-wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
  }

  .footer-wrap p {
    text-align: center;
  }
}

@media (max-width: 720px) {
  :root {
    --container: min(1180px, calc(100% - 1.25rem));
    --header-h: 70px;
  }

  main {
    padding-top: 0.8rem;
  }

  .section-card {
    padding: 1.15rem;
    border-radius: 18px;
  }

  .brand-sub {
    display: none;
  }

  .header-cta {
    padding-inline: 0.92rem;
  }

  h1 {
    font-size: clamp(1.9rem, 10vw, 2.75rem);
  }

  h2 {
    font-size: clamp(1.65rem, 8vw, 2.3rem);
  }

  .hero {
    min-height: auto;
  }

  .hero-logo {
    font-size: clamp(2.85rem, 18vw, 4.3rem);
  }

  .hero-diagram {
    min-height: 0;
    aspect-ratio: auto;
  }

  .diagram-lines {
    display: none;
  }

  .diagram-grid,
  .feature-grid,
  .stats-grid,
  .control-grid,
  .software-grid,
  .compare-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .diagram-grid {
    grid-template-rows: auto;
  }

  .node-card,
  .node-core {
    grid-column: auto;
    grid-row: auto;
  }

  .node-core {
    width: 100%;
    aspect-ratio: auto;
    min-height: 116px;
  }

  .software-card {
    min-height: 320px;
  }

  .control-card figure {
    aspect-ratio: 4 / 3;
  }

  .hero-actions .btn {
    flex: 1 1 220px;
  }

  .socials {
    justify-content: center;
  }
}
