:root {
  color-scheme: dark;
  --bg: #080a0d;
  --panel: #111720;
  --panel-strong: #17202b;
  --text: #f5f7fb;
  --muted: #aeb8c6;
  --line: rgba(255, 255, 255, 0.14);
  --frost: #bfe9ff;
  --signal: #75ff9b;
  --amber: #ffbc5e;
  --danger: #ff6b6b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 12%, rgba(117, 255, 155, 0.13), transparent 28rem),
    radial-gradient(circle at 88% 10%, rgba(191, 233, 255, 0.16), transparent 25rem),
    linear-gradient(180deg, #0b1118 0%, var(--bg) 48%, #0d0b08 100%);
  color: var(--text);
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, 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;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 10, 13, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 800;
  font-size: 1rem;
}

.brand-logo-badge {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 18px rgba(191, 233, 255, 0.34);
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 28px);
  color: var(--muted);
  font-size: 0.94rem;
}

.nav a {
  transition: color 180ms ease;
}

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

main {
  overflow: hidden;
}

.hero,
.stats,
.infra,
.manifest {
  padding: clamp(56px, 8vw, 112px) clamp(18px, 4vw, 56px);
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.82fr);
  align-items: center;
  gap: clamp(34px, 7vw, 96px);
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  left: clamp(18px, 4vw, 56px);
  right: clamp(18px, 4vw, 56px);
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--signal);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 0.95;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(4.8rem, 15vw, 12.6rem);
}

h2 {
  max-width: 820px;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
}

.lead {
  max-width: 680px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.12rem, 2vw, 1.48rem);
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.95rem;
}

.button.primary {
  background: var(--text);
  color: #08100d;
  border-color: transparent;
}

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

.hero-visual {
  display: grid;
  gap: 18px;
  justify-items: center;
}

.logo-stage {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(191, 233, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 34%),
    rgba(9, 14, 19, 0.74);
  box-shadow: var(--shadow);
}

.logo-stage::before {
  content: "";
  position: absolute;
  inset: 10%;
  border: 1px dashed rgba(117, 255, 155, 0.32);
  border-radius: 8px;
}

.logo-stage img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  filter:
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.9))
    drop-shadow(0 0 24px rgba(191, 233, 255, 0.25));
}

.packet {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--signal);
  box-shadow: 0 0 20px var(--signal);
}

.packet-one {
  top: 21%;
  left: 26%;
}

.packet-two {
  right: 18%;
  top: 47%;
  background: var(--amber);
  box-shadow: 0 0 20px var(--amber);
}

.packet-three {
  bottom: 20%;
  left: 46%;
  background: var(--frost);
  box-shadow: 0 0 20px var(--frost);
}

.terminal {
  width: min(100%, 460px);
  display: grid;
  gap: 7px;
  padding: 16px;
  border: 1px solid rgba(117, 255, 155, 0.25);
  border-radius: 8px;
  background: rgba(6, 9, 7, 0.82);
  color: var(--signal);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(0.76rem, 1.8vw, 0.92rem);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.section-heading {
  max-width: 900px;
  margin-bottom: 34px;
}

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

.stat-card {
  min-height: 190px;
  display: grid;
  align-content: space-between;
  gap: 30px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--panel-strong), rgba(17, 23, 32, 0.72));
}

.stat-card strong {
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.9;
}

.stat-card span {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.infra {
  background:
    linear-gradient(180deg, rgba(191, 233, 255, 0.08), transparent),
    rgba(255, 255, 255, 0.02);
}

.infra-layout {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 760px);
  align-items: center;
  gap: clamp(28px, 6vw, 84px);
}

.rack {
  position: relative;
  min-height: 360px;
  border: 1px solid rgba(191, 233, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, #151d27, #0c1016);
  background-size: 22px 100%, auto;
  box-shadow: var(--shadow);
  padding: 28px;
}

.rack::after {
  content: "PORTABLE LAN INFRA";
  position: absolute;
  left: 28px;
  bottom: 22px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.rack-row {
  height: 54px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background:
    linear-gradient(90deg, var(--line) 12px, transparent 12px 22px) left 16px top 50% / 120px 8px no-repeat,
    #0b0f14;
}

.rack-row.active {
  box-shadow: inset 0 0 0 1px rgba(117, 255, 155, 0.28);
}

.rack-row.active::after {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  margin: 21px 0 0 auto;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 18px var(--signal);
}

.cable {
  position: absolute;
  border: 3px solid var(--amber);
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 20px 0 0;
}

.cable-a {
  right: 38px;
  top: 102px;
  width: 86px;
  height: 96px;
}

.cable-b {
  right: 88px;
  top: 176px;
  width: 118px;
  height: 78px;
  border-color: var(--frost);
}

.infra-copy {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.72;
}

.infra-copy p {
  margin: 0 0 20px;
}

.manifest {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.65fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
}

.manifest-copy p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.72;
}

.principles {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.principles li {
  padding: 18px 18px 18px 44px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 750;
  line-height: 1.35;
}

.principles li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 24px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 16px rgba(117, 255, 155, 0.75);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer span:first-child {
  color: var(--text);
  font-weight: 900;
}

@media (max-width: 920px) {
  .hero,
  .infra-layout,
  .manifest {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 48px;
  }

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

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.86rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

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

  .stat-card {
    min-height: 150px;
  }

  .rack {
    min-height: 320px;
    padding: 20px;
  }

  .footer {
    flex-direction: column;
  }
}
