:root {
  color-scheme: dark;
  --bg: #071014;
  --bg-soft: #0b171c;
  --text: #f2fbfb;
  --muted: #98aeb1;
  --line: rgba(166, 234, 236, 0.17);
  --cyan: #5ce7ec;
  --teal: #22b7aa;
  --amber: #e2b56b;
  --shadow: rgba(1, 9, 12, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 22%, rgba(92, 231, 236, 0.17), transparent 32rem),
    radial-gradient(circle at 20% 80%, rgba(226, 181, 107, 0.1), transparent 26rem),
    linear-gradient(135deg, #050b0e 0%, #081216 46%, #0b171a 100%);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  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: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 82%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, transparent 0%, rgba(7, 16, 20, 0.74) 86%);
}

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

.page-shell {
  width: min(1180px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
}

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

.brand,
.header-link,
.status-line {
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
}

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

.brand-mark {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(92, 231, 236, 0.5);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(92, 231, 236, 0.9), rgba(34, 183, 170, 0.2)),
    #0d2025;
  box-shadow: 0 0 28px rgba(92, 231, 236, 0.24);
}

.header-link {
  color: var(--muted);
  transition: color 180ms ease;
}

.header-link:hover {
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.82fr);
  align-items: center;
  gap: clamp(36px, 7vw, 92px);
  min-height: calc(100vh - 226px);
  padding: 32px 0 74px;
}

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

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 11ch;
  font-size: clamp(58px, 9.2vw, 128px);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: 0;
}

.hero-lead {
  margin-top: 34px;
  color: #d7eeee;
  font-size: clamp(23px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.15;
}

.hero-text {
  max-width: 590px;
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(17px, 1.55vw, 20px);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 24px;
  margin-top: 38px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid rgba(92, 231, 236, 0.7);
  border-radius: 6px;
  color: #041012;
  background: linear-gradient(135deg, var(--cyan), #7ff7dd);
  box-shadow: 0 18px 54px rgba(28, 196, 194, 0.22);
  font-size: 15px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 70px rgba(28, 196, 194, 0.28);
}

.status-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #c3d7d9;
}

.status-line span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 0 20px rgba(226, 181, 107, 0.72);
}

.network-stage {
  position: relative;
  min-height: 520px;
  isolation: isolate;
}

.network-stage::before {
  position: absolute;
  inset: 7% 2% 4% 4%;
  z-index: -2;
  content: "";
  border: 1px solid rgba(92, 231, 236, 0.13);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), transparent 42%),
    rgba(7, 18, 22, 0.34);
  box-shadow: 0 34px 90px var(--shadow), inset 0 0 90px rgba(92, 231, 236, 0.05);
  transform: perspective(900px) rotateY(-12deg) rotateX(5deg);
}

.network-stage::after {
  position: absolute;
  inset: 18% 16% 12%;
  z-index: -1;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(92, 231, 236, 0.19), transparent 68%);
  filter: blur(20px);
}

.server-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(68%, 350px);
  transform: translate(-50%, -50%) perspective(760px) rotateY(-17deg) rotateX(7deg);
}

.server-core span {
  display: block;
  height: 62px;
  margin: 12px 0;
  border: 1px solid rgba(166, 234, 236, 0.22);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(92, 231, 236, 0.24), transparent 22%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02)),
    rgba(9, 24, 29, 0.88);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.38);
}

.server-core span::before {
  display: block;
  width: 42%;
  height: 6px;
  margin: 27px 0 0 24px;
  border-radius: 999px;
  content: "";
  background: linear-gradient(90deg, var(--cyan), rgba(92, 231, 236, 0.05));
}

.route,
.node {
  position: absolute;
}

.route {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(92, 231, 236, 0.72), transparent);
  transform-origin: left center;
  animation: routePulse 4.5s ease-in-out infinite;
}

.route-a {
  top: 24%;
  left: 15%;
  width: 74%;
  transform: rotate(13deg);
}

.route-b {
  top: 61%;
  left: 5%;
  width: 82%;
  transform: rotate(-16deg);
  animation-delay: 700ms;
}

.route-c {
  top: 78%;
  left: 31%;
  width: 54%;
  transform: rotate(9deg);
  animation-delay: 1.3s;
}

.node {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #dfffff;
  box-shadow: 0 0 26px rgba(92, 231, 236, 0.85);
}

.node-a {
  top: 20%;
  right: 12%;
}

.node-b {
  top: 62%;
  left: 9%;
}

.node-c {
  right: 20%;
  bottom: 11%;
  background: var(--amber);
  box-shadow: 0 0 26px rgba(226, 181, 107, 0.78);
}

.node-d {
  top: 34%;
  left: 23%;
}

.status-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  margin: 0 0 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.2);
}

.status-panel article {
  min-height: 174px;
  padding: 30px;
  background: rgba(8, 20, 24, 0.82);
}

.status-icon {
  display: block;
  width: 32px;
  height: 3px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
}

.status-panel h2 {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.status-panel p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

@keyframes routePulse {
  0%,
  100% {
    opacity: 0.35;
  }

  50% {
    opacity: 1;
  }
}

@media (max-width: 880px) {
  .page-shell {
    width: min(100% - 28px, 620px);
  }

  .site-header {
    min-height: 74px;
  }

  .header-link {
    display: none;
  }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    min-height: auto;
    padding: 38px 0 50px;
  }

  h1 {
    max-width: 9.5ch;
    font-size: clamp(52px, 16vw, 78px);
  }

  .hero-lead {
    margin-top: 28px;
  }

  .network-stage {
    min-height: 360px;
    order: -1;
  }

  .network-stage::before {
    inset: 0;
    transform: perspective(900px) rotateY(-8deg) rotateX(4deg);
  }

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

  .status-panel article {
    min-height: auto;
    padding: 26px;
  }
}

@media (max-width: 520px) {
  .page-shell {
    width: min(100% - 24px, 430px);
  }

  .brand {
    font-size: 13px;
  }

  h1 {
    font-size: clamp(44px, 14vw, 60px);
  }

  .hero-text {
    font-size: 16px;
  }

  .primary-button {
    width: 100%;
  }

  .network-stage {
    min-height: 286px;
  }

  .server-core span {
    height: 46px;
    margin: 9px 0;
  }

  .server-core span::before {
    margin-top: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
