:root {
  color-scheme: dark;
  --bg: #05090a;
  --text: #f7fbf8;
  --muted: rgba(247, 251, 248, 0.66);
  --hairline: rgba(255, 255, 255, 0.13);
  --cyan: #00dcff;
  --green: #73ff3e;
  --white: #f7f3ea;
  --card-bg: rgba(4, 13, 15, 0.78);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.62);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    radial-gradient(circle at 22% 82%, rgba(0, 220, 255, 0.16), transparent 28%),
    radial-gradient(circle at 51% 84%, rgba(115, 255, 62, 0.13), transparent 25%),
    linear-gradient(180deg, #101415 0%, #040708 54%, #060908 100%);
  background-size:
    112px 112px,
    112px 112px,
    auto,
    auto,
    auto;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, transparent 58%, rgba(255, 255, 255, 0.06) 58.2%, transparent 58.5%),
    linear-gradient(112deg, transparent 0 62%, rgba(255, 255, 255, 0.08) 62.1%, transparent 62.35%),
    radial-gradient(ellipse at center bottom, rgba(255, 255, 255, 0.09), transparent 42%);
  opacity: 0.55;
}

a {
  color: inherit;
}

.shell {
  width: min(100%, 1500px);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(34px, 5.6vw, 84px) clamp(18px, 4.6vw, 72px) 30px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(34px, 6vw, 78px);
}

.site-header {
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: clamp(12px, 1.8vw, 22px);
  text-decoration: none;
  letter-spacing: 0;
  line-height: 0.95;
  text-shadow: 0 0 32px rgba(255, 255, 255, 0.2);
}

.brand span:first-child {
  font-size: clamp(2.8rem, 5vw, 4.9rem);
  font-weight: 760;
}

.brand span:last-child {
  color: rgba(247, 251, 248, 0.72);
  font-size: clamp(2.35rem, 4.5vw, 4.45rem);
  font-weight: 300;
}

.hub-grid {
  align-self: center;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 34px);
}

.hub-card {
  --accent: var(--cyan);
  --accent-soft: rgba(0, 220, 255, 0.22);
  min-height: clamp(460px, 46vw, 572px);
  display: grid;
  grid-template-rows: minmax(245px, 1fr) auto;
  overflow: hidden;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(12, 20, 22, 0.86), rgba(1, 7, 8, 0.94));
  border: 1px solid color-mix(in srgb, var(--accent) 86%, white 14%);
  border-radius: 14px;
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 0 36px var(--accent-soft);
  transform: translateY(0);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.hub-card:hover,
.hub-card:focus-visible {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow:
    0 34px 100px rgba(0, 0, 0, 0.68),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 54px var(--accent-soft);
  outline: none;
}

.hub-card-green {
  --accent: var(--green);
  --accent-soft: rgba(115, 255, 62, 0.2);
}

.hub-card-white {
  --accent: var(--white);
  --accent-soft: rgba(247, 243, 234, 0.16);
}

.media-frame {
  position: relative;
  min-height: 0;
  display: block;
  background: #020607;
}

.media-frame::after {
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(1, 7, 8, 0.94));
}

.media-frame img {
  width: 100%;
  height: 100%;
  min-height: 245px;
  display: block;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.03);
  transition: transform 240ms ease;
}

.hub-card:hover img,
.hub-card:focus-visible img {
  transform: scale(1.035);
}

.card-body {
  display: grid;
  gap: clamp(20px, 2.5vw, 28px);
  padding: clamp(24px, 3vw, 34px) clamp(20px, 2.8vw, 28px) clamp(22px, 3vw, 30px);
}

.card-body > span:first-child {
  display: grid;
  gap: 10px;
  text-align: center;
}

.card-body strong {
  font-size: clamp(1.82rem, 2.18vw, 2.22rem);
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.card-body span span {
  color: var(--accent);
  font-size: clamp(1.15rem, 1.55vw, 1.55rem);
  font-weight: 430;
  line-height: 1.2;
}

.card-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.92;
}

.card-action {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--text);
  font-size: clamp(1rem, 1.18vw, 1.22rem);
  font-weight: 620;
}

.card-action svg {
  width: 34px;
  height: 34px;
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hub-card-white .card-action svg {
  color: var(--white);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  color: rgba(247, 251, 248, 0.54);
}

.site-footer span {
  height: 1px;
  background: rgba(247, 251, 248, 0.32);
}

.site-footer p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 1060px) {
  .hub-grid {
    grid-template-columns: 1fr;
    width: min(100%, 620px);
    justify-self: center;
  }

  .hub-card {
    min-height: 420px;
    grid-template-rows: 245px auto;
  }
}

@media (max-width: 640px) {
  .shell {
    padding: 30px 16px 24px;
    gap: 30px;
  }

  .brand {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 6px;
  }

  .brand span:first-child {
    font-size: 2.5rem;
  }

  .brand span:last-child {
    font-size: 2.15rem;
  }

  .hub-grid {
    gap: 18px;
  }

  .hub-card {
    min-height: 365px;
    grid-template-rows: 190px auto;
    border-radius: 12px;
  }

  .media-frame img {
    min-height: 190px;
  }

  .card-body {
    padding: 22px 18px 20px;
    gap: 18px;
  }

  .card-body strong {
    font-size: clamp(1.78rem, 9.5vw, 2.25rem);
    white-space: normal;
  }

  .card-body span span {
    font-size: 1.08rem;
  }

  .site-footer {
    gap: 12px;
  }
}

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