:root {
  --bg: #0f1418;
  --bg-soft: #161f24;
  --panel: rgba(20, 28, 34, 0.76);
  --panel-border: rgba(255, 255, 255, 0.13);
  --text: #eef2ed;
  --muted: #bac5bc;
  --grain: #dbad5f;
  --grain-strong: #f1c172;
  --accent: #34b7ff;
  --good: #49d5a5;
  --warn: #ffc95a;
  --danger: #ff7a6d;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(219, 173, 95, 0.16), transparent 70%),
    radial-gradient(900px 420px at -15% 15%, rgba(52, 183, 255, 0.12), transparent 70%),
    linear-gradient(180deg, #10161c 0%, #0c1115 100%);
}

.bg-shape {
  position: fixed;
  border-radius: 999px;
  filter: blur(90px);
  z-index: -2;
  opacity: 0.55;
}

.bg-shape-a {
  width: 360px;
  height: 360px;
  top: 10%;
  right: 3%;
  background: rgba(241, 193, 114, 0.26);
}

.bg-shape-b {
  width: 280px;
  height: 280px;
  left: 4%;
  top: 48%;
  background: rgba(52, 183, 255, 0.2);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 2.8rem);
  backdrop-filter: blur(14px);
  background: linear-gradient(
    to bottom,
    rgba(15, 20, 24, 0.9),
    rgba(15, 20, 24, 0.5)
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.03em;
}

.brand-logo {
  width: auto;
  height: clamp(3.5rem, 6vw, 5rem);
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

.brand-name {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(0.72rem, 1.2vw, 0.95rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.12;
  max-width: 17ch;
  color: #d9e2d8;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--text);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

main {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.2rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(2.2rem, 6vw, 5rem) 0;
}

.hero-copy h1 {
  margin: 0.4rem 0 0;
  font-size: clamp(2rem, 4.4vw, 3.7rem);
  line-height: 1.08;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  max-width: 18ch;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--grain);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.hero-lead {
  margin: 1.1rem 0 0;
  color: var(--muted);
  line-height: 1.72;
  max-width: 60ch;
}

.hero-actions {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.72rem 1.15rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, #f0bd6a 0%, #db9f4b 100%);
  color: #2f1d08;
  box-shadow: 0 12px 28px rgba(219, 159, 75, 0.3);
}

.btn-ghost {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.03);
}

.btn-nav {
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.15);
}

.hero-stats {
  margin-top: 2.1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.hero-stats article {
  padding: 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
}

.hero-stats strong {
  display: block;
  font-size: 1.1rem;
  color: var(--grain-strong);
}

.hero-stats .stat-icon {
  font-size: 1.45rem;
  line-height: 1;
}

.hero-stats .trend-icon {
  width: 1.45rem;
  height: 1.45rem;
  display: block;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-stats span {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  object-fit: cover;
  min-height: 520px;
  display: block;
}

.temp-badge {
  position: absolute;
  padding: 0.6rem 0.8rem;
  border-radius: 0.8rem;
  background: rgba(10, 15, 19, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  animation: pulse 3s ease-in-out infinite;
}

.temp-badge span {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
}

.temp-badge strong {
  font-size: 0.96rem;
  color: var(--grain-strong);
}

.badge-a {
  top: 12%;
  left: 6%;
}

.badge-b {
  top: 48%;
  left: 12%;
  animation-delay: 0.9s;
}

.badge-c {
  right: 8%;
  bottom: 10%;
  animation-delay: 1.5s;
}

section {
  margin-top: clamp(3.2rem, 8vw, 6rem);
}

.features h2,
.flow-section h2,
.app-showcase h2,
.gallery h2,
.contact h2 {
  margin: 0.55rem 0 0;
  font-size: clamp(1.45rem, 3vw, 2.4rem);
  line-height: 1.2;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  max-width: 24ch;
}

.feature-grid {
  margin-top: 1.4rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card {
  padding: 1.2rem;
  border-radius: var(--radius-md);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--panel-border);
}

.feature-card h3 {
  margin: 0;
  font-size: 1.08rem;
}

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

.flow-lead {
  margin: 0.95rem 0 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 72ch;
}

.flow-diagram {
  margin-top: 1.35rem;
  display: grid;
  grid-template-columns:
    minmax(0, 1.05fr)
    minmax(86px, 0.48fr)
    minmax(0, 1.05fr)
    minmax(86px, 0.48fr)
    minmax(0, 1.05fr)
    minmax(86px, 0.48fr)
    minmax(0, 1.05fr)
    minmax(86px, 0.48fr)
    minmax(0, 1.05fr);
  gap: 0.75rem;
  align-items: stretch;
  position: relative;
  padding: clamp(0.9rem, 2.2vw, 1.35rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--panel-border);
  background:
    radial-gradient(420px 220px at 8% 10%, rgba(241, 193, 114, 0.08), transparent 70%),
    radial-gradient(360px 180px at 90% 80%, rgba(52, 183, 255, 0.08), transparent 70%),
    rgba(9, 14, 18, 0.56);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.flow-node {
  padding: 0.35rem 0.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.52rem;
  text-align: center;
  position: relative;
}

.flow-visual {
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: filter 0.22s ease, transform 0.22s ease;
}

.flow-node.is-hit .flow-visual {
  filter:
    drop-shadow(0 0 12px rgba(241, 193, 114, 0.64))
    drop-shadow(0 0 22px rgba(127, 216, 255, 0.32));
  transform: scale(1.035);
}

.flow-node.is-hit h3 {
  color: #ffdba0;
  text-shadow: 0 0 12px rgba(241, 193, 114, 0.34);
}

.flow-visual-probes {
  width: 100%;
  max-width: 180px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  justify-items: center;
}

.probe-item {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  transition: transform 0.22s ease;
}

.probe-id {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(241, 193, 114, 0.14);
  color: var(--grain-strong);
  border: 1px solid rgba(241, 193, 114, 0.45);
  font-size: 0.68rem;
  font-weight: 800;
  transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.probe-svg {
  width: 2.2rem;
  height: 4.2rem;
  display: block;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.probe-item.is-hit {
  transform: translateY(-1px);
}

.probe-item.is-hit .probe-id {
  background: rgba(241, 193, 114, 0.38);
  color: #fff2d7;
  box-shadow: 0 0 0 5px rgba(241, 193, 114, 0.16);
}

.probe-item.is-hit .probe-svg {
  transform: scale(1.04);
  filter:
    drop-shadow(0 0 8px rgba(241, 193, 114, 0.55))
    drop-shadow(0 0 14px rgba(127, 216, 255, 0.24));
}

.probe-head {
  fill: #0d1115;
  stroke: #bcc6d0;
  stroke-width: 1.2;
}

.probe-neck {
  fill: #171d22;
  stroke: #c8d0d7;
  stroke-width: 1;
}

.probe-rod {
  stroke: #d3d8de;
  stroke-width: 1.5;
}

.probe-point {
  fill: #0b0f13;
  stroke: #d0d7de;
  stroke-width: 0.9;
}

.flow-icon {
  width: 3.35rem;
  height: 3.35rem;
  display: block;
  stroke: var(--grain-strong);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flow-icon-hub {
  width: 4.45rem;
  height: 4.45rem;
}

.flow-icon-server {
  stroke: #86d0ff;
}

.flow-icon-app {
  stroke: #9cc7ff;
}

.flow-icon-net {
  stroke: #7be1b3;
}

.flow-node h3 {
  margin: 0;
  font-size: 1.08rem;
}

.flow-link {
  position: relative;
  min-width: 86px;
}

.flow-link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(241, 193, 114, 0.2), rgba(241, 193, 114, 0.9));
}

.flow-link::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -1px;
  transform: translateY(-50%);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid rgba(241, 193, 114, 0.95);
}

.flow-packet {
  position: absolute;
  top: 50%;
  left: 0;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  transform: translateY(-50%);
  background: var(--grain-strong);
  box-shadow: 0 0 0 6px rgba(241, 193, 114, 0.12);
  animation: packetMoveX 3.8s linear infinite;
}

.flow-packet-reverse {
  background: #7fd8ff;
  box-shadow: 0 0 0 6px rgba(127, 216, 255, 0.14);
  animation-name: packetMoveXReverse;
}

.flow-link-probes .flow-packet,
.flow-link-hub-net .flow-packet,
.flow-link-net-server .flow-packet {
  animation-name: packetMoveXStaged;
}

.flow-link-probes .flow-packet.p1 {
  animation-delay: 0.05s;
}

.flow-link-probes .flow-packet-reverse.p3 {
  animation-delay: 1.86s;
}

.flow-link-hub-net .flow-packet.p1 {
  animation-delay: 2.37s;
}

.flow-link-hub-net .flow-packet-reverse.p3 {
  animation-delay: 4.72s;
}

.flow-link-net-server .flow-packet.p1 {
  animation-delay: 0.89s;
}

.flow-link-net-server .flow-packet-reverse.p3 {
  animation-delay: 7.42s;
}

.flow-link-server-app .flow-packet {
  animation-duration: 4.5s;
}

.flow-link-server-app .flow-packet-reverse {
  animation-duration: 5.2s;
}

.flow-link-server-app .flow-packet.p1 {
  animation-delay: 0s;
}

.flow-link-server-app .flow-packet-reverse.p3 {
  animation-delay: 0.64s;
}

@keyframes packetMoveX {
  0%,
  18% {
    left: 0;
    opacity: 0;
  }
  22% {
    opacity: 1;
  }
  52% {
    left: calc(100% - 10px);
    opacity: 0.2;
  }
  100% {
    left: calc(100% - 10px);
    opacity: 0;
  }
}

@keyframes packetMoveXStaged {
  0% {
    left: 0;
    opacity: 1;
  }
  52% {
    left: calc(100% - 10px);
    opacity: 0.24;
  }
  100% {
    left: calc(100% - 10px);
    opacity: 0;
  }
}

@keyframes packetMoveY {
  0%,
  18% {
    top: 0;
    opacity: 0;
  }
  22% {
    opacity: 1;
  }
  52% {
    top: calc(100% - 10px);
    opacity: 0.2;
  }
  100% {
    top: calc(100% - 10px);
    opacity: 0;
  }
}

@keyframes packetMoveYStaged {
  0% {
    top: 0;
    opacity: 1;
  }
  52% {
    top: calc(100% - 10px);
    opacity: 0.24;
  }
  100% {
    top: calc(100% - 10px);
    opacity: 0;
  }
}

@keyframes packetMoveXReverse {
  0%,
  18% {
    left: calc(100% - 10px);
    opacity: 0;
  }
  22% {
    opacity: 1;
  }
  52% {
    left: 0;
    opacity: 0.2;
  }
  100% {
    left: 0;
    opacity: 0;
  }
}

@keyframes packetMoveYReverse {
  0%,
  18% {
    top: calc(100% - 10px);
    opacity: 0;
  }
  22% {
    opacity: 1;
  }
  52% {
    top: 0;
    opacity: 0.2;
  }
  100% {
    top: 0;
    opacity: 0;
  }
}

.preview {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
  gap: 1.2rem;
  align-items: start;
}

.preview-panel,
.preview-side,
.contact-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--panel-border);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.preview-panel {
  padding: 1.3rem;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.avg-temp-box {
  text-align: right;
}

.avg-temp-box span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
}

.avg-temp-box strong {
  font-size: 1.65rem;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  color: var(--grain-strong);
}

.sensor-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.sensor-node {
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.sensor-node h3 {
  margin: 0;
  font-size: 0.87rem;
  color: var(--muted);
}

.sensor-temp {
  margin: 0.4rem 0 0;
  font-size: 1.28rem;
  font-weight: 800;
  font-family: "Space Grotesk", "Manrope", sans-serif;
}

.sensor-status {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
}

.sensor-node.is-good .sensor-temp,
.sensor-node.is-good .sensor-status {
  color: var(--good);
}

.sensor-node.is-warn .sensor-temp,
.sensor-node.is-warn .sensor-status {
  color: var(--warn);
}

.sensor-node.is-danger .sensor-temp,
.sensor-node.is-danger .sensor-status {
  color: var(--danger);
}

.chart-wrap {
  margin-top: 1rem;
  padding: 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(3, 8, 11, 0.45);
}

#tempChart {
  width: 100%;
  height: auto;
  display: block;
}

.preview-side {
  padding: 1.1rem;
}

.preview-side img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: block;
}

.step-list {
  margin-top: 1rem;
  display: grid;
  gap: 0.7rem;
}

.step-list article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
}

.step-list span {
  width: 2rem;
  height: 2rem;
  border-radius: 0.7rem;
  display: grid;
  place-items: center;
  background: rgba(219, 173, 95, 0.16);
  color: var(--grain-strong);
  font-size: 0.75rem;
  font-weight: 800;
}

.step-list h3 {
  margin: 0.1rem 0 0;
  font-size: 1rem;
}

.step-list p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  line-height: 1.54;
}

.app-layout {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.5fr);
  gap: 1.1rem;
  align-items: start;
}

.app-copy,
.app-viewer {
  border-radius: var(--radius-lg);
  border: 1px solid var(--panel-border);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.app-copy {
  padding: 1.3rem;
}

.app-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.app-points {
  margin-top: 1rem;
  display: grid;
  gap: 0.7rem;
}

.app-points article {
  padding: 0.8rem 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.11);
}

.app-points strong {
  display: block;
  font-size: 0.96rem;
}

.app-points span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.app-viewer {
  padding: 1.1rem;
}

.app-monitor {
  position: relative;
  padding-bottom: 3.1rem;
}

.app-screen-frame {
  --app-screen-ratio: 16 / 10;
  position: relative;
  border-radius: 1.15rem;
  border: 1px solid rgba(197, 209, 220, 0.35);
  padding: 0.55rem;
  overflow: hidden;
  background:
    linear-gradient(165deg, rgba(201, 213, 223, 0.33), rgba(96, 111, 123, 0.32)),
    linear-gradient(180deg, rgba(15, 22, 28, 0.95), rgba(11, 17, 23, 0.93));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -10px 18px rgba(0, 0, 0, 0.4),
    0 16px 36px rgba(2, 6, 10, 0.45);
}

.app-screen-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.22), transparent 26%);
  opacity: 0.4;
}

.app-screen-top {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.52rem 0.7rem;
  border: 1px solid rgba(163, 180, 195, 0.22);
  border-bottom: 0;
  border-radius: 0.72rem 0.72rem 0 0;
  background: linear-gradient(180deg, rgba(3, 9, 14, 0.96), rgba(6, 13, 18, 0.9));
}

.app-screen-top .dot {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  background: rgba(202, 212, 220, 0.42);
}

.app-image-open {
  display: block;
  aspect-ratio: var(--app-screen-ratio, 16 / 10);
  width: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  background: #04080c;
  cursor: zoom-in;
  border-left: 1px solid rgba(163, 180, 195, 0.22);
  border-right: 1px solid rgba(163, 180, 195, 0.22);
}

#appMainImage {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  object-fit: contain;
  object-position: center;
  background: linear-gradient(180deg, rgba(2, 5, 8, 0.65), rgba(2, 5, 8, 0.25));
  display: block;
  will-change: transform, opacity;
  transition: transform 0.28s ease, filter 0.28s ease;
}

.app-image-open #appMainImage.is-slide-in {
  animation: appSlideInFromRight 0.42s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@keyframes appSlideInFromRight {
  from {
    transform: translateX(13%);
    opacity: 0.25;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.app-image-open:hover #appMainImage {
  transform: scale(1.01);
  filter: brightness(1.03);
}

.app-screen-label {
  margin: 0;
  padding: 0.56rem 0.8rem;
  border: 1px solid rgba(163, 180, 195, 0.22);
  border-top: 0;
  border-radius: 0 0 0.72rem 0.72rem;
  font-size: 0.87rem;
  color: #b8c4cf;
  background: linear-gradient(180deg, rgba(8, 15, 21, 0.96), rgba(5, 11, 15, 0.94));
}

.app-slider-controls {
  margin-top: 0.2rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.app-monitor-stand {
  position: absolute;
  left: 50%;
  bottom: 1.1rem;
  width: clamp(4.8rem, 14vw, 6.8rem);
  height: 1.9rem;
  transform: translateX(-50%);
  border-radius: 0 0 0.9rem 0.9rem;
  border: 1px solid rgba(177, 191, 204, 0.36);
  border-top: 0;
  background:
    linear-gradient(180deg, rgba(194, 206, 217, 0.44), rgba(112, 126, 139, 0.54)),
    linear-gradient(180deg, rgba(13, 20, 26, 0.95), rgba(7, 12, 16, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 12px 18px rgba(0, 0, 0, 0.34);
}

.app-monitor-stand::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.9rem;
  width: clamp(10rem, 32vw, 14rem);
  height: 0.82rem;
  transform: translateX(-50%);
  border-radius: 999px;
  border: 1px solid rgba(175, 191, 205, 0.32);
  background:
    linear-gradient(180deg, rgba(214, 223, 231, 0.27), rgba(109, 124, 137, 0.38)),
    rgba(11, 17, 22, 0.86);
  box-shadow:
    0 7px 16px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.app-nav-btn {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.app-nav-btn:hover {
  transform: translateY(-1px);
  background: rgba(241, 193, 114, 0.12);
  border-color: rgba(241, 193, 114, 0.6);
}

.app-thumbs {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
}

.app-thumb {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  padding: 0.6rem 0.5rem;
  text-align: center;
  font: inherit;
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.app-thumb:hover {
  color: var(--text);
}

.app-thumb.is-active {
  border-color: rgba(241, 193, 114, 0.8);
  color: #f9d9a4;
  background: rgba(241, 193, 114, 0.12);
}

.gallery-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.9rem;
}

.gallery-item {
  border: 0;
  padding: 0;
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: zoom-in;
  background: transparent;
  transition: transform 0.25s ease;
}

.gallery-item:hover {
  transform: translateY(-3px);
}

.gallery-item:nth-child(1),
.gallery-item:nth-child(2) {
  grid-column: span 4;
}

.gallery-item:nth-child(3),
.gallery-item:nth-child(4) {
  grid-column: span 6;
}

.gallery-item:nth-child(5) {
  grid-column: 4 / span 6;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  display: block;
}

.contact-card {
  padding: clamp(1rem, 4vw, 2rem);
}

.contact-card p {
  color: var(--muted);
  max-width: 62ch;
  line-height: 1.65;
}

.contact-direct {
  margin-top: 0.35rem;
  color: var(--text);
  font-weight: 600;
}

.contact-direct a {
  color: var(--grain-strong);
  text-decoration: none;
  border-bottom: 1px dashed rgba(241, 193, 114, 0.65);
}

.contact-direct a:hover {
  color: #ffd79e;
}

.contact-form {
  margin-top: 1.1rem;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.84rem;
  color: var(--muted);
}

.contact-form-message,
.contact-form-captcha {
  grid-column: 1 / -1;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.contact-form input:not([type="checkbox"]):not([type="hidden"]),
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.8rem;
  padding: 0.74rem 0.8rem;
  font: inherit;
  color: var(--text);
  background: rgba(0, 0, 0, 0.2);
}

.contact-form textarea {
  resize: vertical;
  min-height: 130px;
}

.contact-form-captcha {
  display: grid;
  gap: 0.42rem;
  font-size: 0.84rem;
  color: var(--muted);
}

.contact-form .captcha-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #ebf2fa;
  font-size: 0.95rem;
}

.contact-form .captcha-check input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: #7db8ff;
  flex: 0 0 auto;
}

.contact-form .captcha-check span {
  line-height: 1.35;
}

.contact-form button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.contact-form button {
  width: fit-content;
}

.contact-form-status {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.7rem 0.9rem;
  border-radius: 0.65rem;
  font-size: 0.92rem;
  line-height: 1.45;
  border: 1px solid transparent;
}

.contact-form-status.is-success {
  color: #d6ffe0;
  border-color: rgba(83, 214, 125, 0.38);
  background: rgba(37, 119, 62, 0.28);
}

.contact-form-status.is-error {
  color: #ffdede;
  border-color: rgba(233, 87, 87, 0.44);
  background: rgba(130, 31, 31, 0.28);
}

.site-footer {
  width: min(1200px, 92vw);
  margin: 4rem auto 2rem;
  text-align: center;
  color: #8f9a90;
  font-size: 0.83rem;
}

.visit-counter {
  margin: 0.45rem 0 0;
  color: rgba(156, 169, 160, 0.82);
  font-size: 0.76rem;
  letter-spacing: 0.01em;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(4, 8, 11, 0.86);
  backdrop-filter: blur(8px);
  padding: 1rem;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox-content {
  margin: 0;
  max-width: min(1100px, 94vw);
}

.lightbox-content img {
  width: 100%;
  border-radius: var(--radius-md);
  display: block;
}

.lightbox-content figcaption {
  margin-top: 0.6rem;
  color: #c9d1ca;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 0.7rem;
  right: 0.8rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.4);
  color: var(--text);
  font-size: 1.65rem;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@keyframes pulse {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@media (max-width: 1040px) {
  .site-nav {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

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

  .hero-stats {
    grid-template-columns: 1fr;
  }

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

  .flow-diagram {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    padding: 1rem;
  }

  .flow-link {
    min-height: 72px;
  }

  .flow-link::before {
    top: 0;
    bottom: 0;
    left: 50%;
    right: auto;
    width: 2px;
    height: auto;
    transform: translateX(-50%);
  }

  .flow-link::after {
    top: auto;
    bottom: -1px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 9px solid rgba(241, 193, 114, 0.95);
    border-bottom: none;
  }

  .flow-packet {
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    animation-name: packetMoveY;
  }

  .flow-packet-reverse {
    animation-name: packetMoveYReverse;
  }

  .flow-link-probes .flow-packet,
  .flow-link-hub-net .flow-packet,
  .flow-link-net-server .flow-packet {
    animation-name: packetMoveYStaged;
  }

  .flow-link-multi .flow-packet {
    top: 0;
  }

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

  #appMainImage {
    min-height: 0;
    max-height: none;
  }

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

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

  .gallery-item:nth-child(1),
  .gallery-item:nth-child(2),
  .gallery-item:nth-child(3),
  .gallery-item:nth-child(4) {
    grid-column: span 6;
  }

  .gallery-item:nth-child(5) {
    grid-column: span 6;
  }

  .contact-form {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .site-header {
    flex-wrap: wrap;
    justify-content: center;
  }

  .header-actions {
    justify-content: center;
  }

  main {
    width: min(1200px, 94vw);
  }

  .flow-node {
    padding: 0.2rem 0;
  }

  .flow-node h3 {
    font-size: 0.98rem;
  }

  .flow-visual-probes {
    max-width: 160px;
  }

  .probe-svg {
    width: 2rem;
    height: 3.9rem;
  }

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

  .app-thumbs {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-item:nth-child(1),
  .gallery-item:nth-child(2),
  .gallery-item:nth-child(3),
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(5) {
    grid-column: auto;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  #appMainImage {
    min-height: 0;
  }
}
