:root {
  --blue-950: #071226;
  --blue-900: #0a1b35;
  --blue-700: #0b55d9;
  --blue-500: #1685ff;
  --cyan-400: #22d3ee;
  --silver-100: #f5f8fc;
  --silver-200: #e8eef6;
  --silver-400: #9aa8b7;
  --text: #0d1628;
  --muted: #546278;
  --white: #ffffff;
  --line: rgba(13, 35, 70, 0.14);
  --shadow: 0 24px 70px rgba(8, 31, 70, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(22, 133, 255, 0.12), transparent 34%),
    linear-gradient(180deg, var(--white) 0%, var(--silver-100) 58%, var(--white) 100%);
}

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

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

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

.brand {
  gap: 12px;
  font-size: 15px;
  font-weight: 800;
  color: var(--blue-950);
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(145deg, var(--blue-700), var(--cyan-400));
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(11, 85, 217, 0.24);
}

.nav {
  gap: 6px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.nav a {
  padding: 9px 13px;
  border-radius: 7px;
  color: #22314a;
  font-size: 13px;
  font-weight: 700;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--blue-700);
  background: rgba(22, 133, 255, 0.08);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  gap: 64px;
  align-items: center;
  width: min(1160px, calc(100% - 40px));
  min-height: min(720px, calc(100vh - 78px));
  margin: 0 auto;
  padding: 46px 0 58px;
}

.hero::before {
  position: absolute;
  inset: 30px -36px 18px auto;
  width: min(47vw, 640px);
  content: "";
  background-image:
    linear-gradient(rgba(13, 35, 70, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 35, 70, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, transparent, #000 24%, #000 78%, transparent);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  color: var(--blue-950);
  font-size: clamp(56px, 7vw, 104px);
  line-height: 0.94;
  font-weight: 800;
}

.hero-copy p {
  max-width: 620px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
}

.hero-actions {
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

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

.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  box-shadow: 0 16px 32px rgba(11, 85, 217, 0.28);
}

.secondary {
  color: var(--blue-950);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
}

.network-panel {
  position: relative;
  z-index: 1;
  min-height: 440px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(220, 231, 246, 0.78)),
    radial-gradient(circle at 76% 20%, rgba(34, 211, 238, 0.34), transparent 30%);
  box-shadow: var(--shadow);
}

.panel-top {
  display: flex;
  gap: 7px;
  padding: 18px;
  border-bottom: 1px solid rgba(13, 35, 70, 0.1);
}

.panel-top span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--silver-400);
}

.hero-logo-frame {
  display: grid;
  place-items: center;
  position: relative;
  height: 292px;
  margin: 18px;
  border: 1px solid rgba(13, 35, 70, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(rgba(11, 85, 217, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 85, 217, 0.08) 1px, transparent 1px),
    linear-gradient(145deg, rgba(7, 18, 38, 0.96), rgba(10, 27, 53, 0.9));
  background-size: 34px 34px, 34px 34px, auto;
}

.hero-logo-frame img {
  display: block;
  width: min(96%, 500px);
  height: min(96%, 284px);
  object-fit: contain;
  filter: drop-shadow(0 28px 38px rgba(34, 211, 238, 0.22));
}

.panel-metrics {
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px 20px;
}

.panel-metrics div {
  flex: 1;
  padding: 14px;
  border: 1px solid rgba(13, 35, 70, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
}

.panel-metrics strong,
.panel-metrics span {
  display: block;
}

.panel-metrics strong {
  color: var(--blue-700);
  font-size: 22px;
}

.panel-metrics span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.sites-section,
.network-section,
.site-footer {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.sites-section {
  padding: 26px 0 88px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

h2 {
  margin-bottom: 0;
  color: var(--blue-950);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
}

.section-heading p {
  max-width: 420px;
  margin-bottom: 4px;
  color: var(--muted);
  line-height: 1.55;
}

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

.site-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  padding: 20px;
  border: 1px solid rgba(13, 35, 70, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(235, 242, 250, 0.94)),
    linear-gradient(135deg, rgba(22, 133, 255, 0.12), transparent);
  box-shadow: 0 18px 48px rgba(8, 31, 70, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.site-card:hover,
.site-card:focus-visible {
  border-color: rgba(22, 133, 255, 0.46);
  box-shadow: 0 26px 60px rgba(8, 31, 70, 0.14);
}

.card-index {
  color: var(--blue-500);
  font-size: 12px;
  font-weight: 800;
}

.site-icon {
  display: block;
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin: 22px auto 18px;
  filter: drop-shadow(0 14px 18px rgba(11, 85, 217, 0.16));
}

.site-card h3 {
  margin: 0 0 12px;
  color: var(--blue-950);
  font-size: 21px;
  line-height: 1.12;
  text-align: center;
}

.site-card p {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
}

.domain {
  margin-top: auto;
  overflow-wrap: anywhere;
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.network-section {
  justify-content: space-between;
  gap: 30px;
  padding: 42px;
  border: 1px solid rgba(13, 35, 70, 0.12);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue-950), var(--blue-900));
  color: var(--white);
}

.network-section h2 {
  color: var(--white);
}

.network-section p {
  max-width: 680px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}

.network-section .secondary {
  flex: 0 0 auto;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.site-footer {
  justify-content: space-between;
  gap: 16px;
  padding: 36px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    min-height: auto;
  }

  .network-panel {
    min-height: 390px;
  }

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

@media (max-width: 680px) {
  .site-header,
  .section-heading,
  .network-section,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header,
  .hero,
  .sites-section,
  .network-section,
  .site-footer {
    width: min(100% - 28px, 1160px);
  }

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

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

  .hero {
    padding-top: 34px;
  }

  h1 {
    font-size: 54px;
  }

  .hero-copy p {
    font-size: 18px;
  }

  .button {
    width: 100%;
  }

  .network-panel {
    min-height: 340px;
  }

  .hero-logo-frame {
    height: 220px;
  }

  .panel-metrics {
    flex-direction: column;
  }

  .panel-metrics div {
    width: 100%;
  }

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

  .site-card {
    min-height: 220px;
  }

  .network-section {
    padding: 28px;
  }
}
