:root {
  --ink: #06172c;
  --ink-soft: #425268;
  --blue: #0879c9;
  --blue-deep: #07549e;
  --cyan: #03a9e6;
  --ice: #eef8ff;
  --line: #dbe6ef;
  --white: #ffffff;
  --green: #19b978;
  --red: #e65353;
  --amber: #f2a93b;
  --shadow: 0 24px 70px rgba(6, 41, 75, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f8fbfd;
  font-family: "DM Sans", sans-serif;
  min-width: 320px;
  overflow-x: hidden;
}

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

button {
  font: inherit;
}

.page-glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(8px);
  pointer-events: none;
}

.page-glow--one {
  width: 540px;
  height: 540px;
  top: -260px;
  right: -180px;
  background: rgba(1, 163, 224, 0.1);
}

.page-glow--two {
  width: 400px;
  height: 400px;
  top: 560px;
  left: -280px;
  background: rgba(15, 94, 177, 0.08);
}

.site-header,
main,
.site-footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

main {
  display: flex;
  flex-direction: column;
}

.site-header {
  height: 116px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(135, 158, 178, 0.26);
}

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

.brand__logo-wrap {
  display: block;
  width: 200px;
  height: 75px;
  overflow: hidden;
}

.brand__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand__divider {
  width: 1px;
  height: 32px;
  background: var(--line);
}

.brand__label {
  color: #617083;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #526276;
  font-size: 0.78rem;
  font-weight: 600;
  transition: border-color 180ms ease, transform 180ms ease;
}

.header-status:hover {
  border-color: #a8c5db;
  transform: translateY(-1px);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(25, 185, 120, 0.12);
}

.status-dot--checking {
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(242, 169, 59, 0.12);
  animation: blink 1.4s ease-in-out infinite;
}

.status-dot--offline {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(230, 83, 83, 0.12);
}

.hero {
  order: 2;
  min-height: 570px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
  padding-block: 70px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 24px;
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.eyebrow__line {
  width: 38px;
  height: 2px;
  background: var(--cyan);
}

.hero h1 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.8rem, 5.2vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.hero h1 span {
  color: transparent;
  background: linear-gradient(100deg, var(--blue-deep), var(--cyan));
  background-clip: text;
  -webkit-background-clip: text;
}

.hero__description {
  max-width: 560px;
  margin: 28px 0 34px;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero__action {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.hero__action svg {
  width: 30px;
  height: 30px;
  padding: 7px;
  border: 1px solid #bad6e9;
  border-radius: 50%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 180ms ease, background 180ms ease;
}

.hero__action:hover svg {
  background: var(--white);
  transform: translateY(3px);
}

.hero__visual {
  position: relative;
  height: 430px;
  display: grid;
  place-items: center;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(0, 139, 207, 0.18);
  border-radius: 50%;
}

.orbit--outer {
  width: 420px;
  height: 420px;
  border-style: dashed;
  animation: rotate 35s linear infinite;
}

.orbit--inner {
  width: 335px;
  height: 335px;
  background: radial-gradient(circle, rgba(12, 148, 212, 0.08), transparent 68%);
}

.visual-card {
  position: relative;
  z-index: 1;
  width: 275px;
  aspect-ratio: 0.72;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 24px;
  color: var(--white);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.14), transparent 45%),
    linear-gradient(145deg, #08315d, #087fc5 72%, #06a7dd);
  box-shadow: 0 36px 70px rgba(5, 70, 120, 0.28);
  transform: rotate(5deg);
}

.visual-card::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
}

.visual-card__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 800 1rem/1 "Manrope", sans-serif;
}

.visual-card__signal {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.52rem;
  letter-spacing: 0.12em;
}

.visual-card__signal i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #5cf2ad;
  box-shadow: 0 0 8px #5cf2ad;
}

.visual-card__mark {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  font: 800 2.2rem/1 "Manrope", sans-serif;
  letter-spacing: 0.08em;
  transform: translate(-50%, -50%) rotate(-90deg);
}

.visual-card__bottom {
  position: absolute;
  z-index: 1;
  right: 24px;
  bottom: 24px;
  left: 24px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.54rem;
  letter-spacing: 0.17em;
}

.orbit-node {
  position: absolute;
  width: 11px;
  height: 11px;
  border: 3px solid #dff5ff;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan);
}

.orbit-node--one {
  top: 31px;
  left: 46%;
}

.orbit-node--two {
  right: 24px;
  bottom: 122px;
}

.orbit-node--three {
  bottom: 72px;
  left: 50px;
}

.apps-section {
  order: 1;
  padding: 56px 0 90px;
}

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

.section-heading > div {
  display: flex;
  align-items: baseline;
  gap: 18px;
}

.section-number {
  color: var(--cyan);
  font: 700 0.73rem/1 "Manrope", sans-serif;
  letter-spacing: 0.14em;
}

.section-heading h2,
.server-intro h2 {
  margin: 0;
  font: 800 clamp(2rem, 3.6vw, 3.2rem)/1.1 "Manrope", sans-serif;
  letter-spacing: -0.045em;
}

.section-heading p,
.server-intro p {
  margin: 0;
  color: #627186;
  line-height: 1.6;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.app-card {
  position: relative;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  padding: 28px 30px 30px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  color: var(--white);
  background: linear-gradient(145deg, #07396b, #087fc5);
  transition: color 240ms ease, transform 240ms ease, box-shadow 240ms ease;
}

.app-card:last-child {
  border-right: 0;
}

.app-card--fuec {
  background: linear-gradient(145deg, #092d55, #126a9f);
}

.app-card--mail {
  background: linear-gradient(145deg, #064a6c, #069db3);
}

.app-card::before {
  content: "";
  position: absolute;
  inset: 100% 0 0;
  z-index: -1;
  background: linear-gradient(145deg, #052f5b, #0786cb);
  transition: inset 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.app-card--fuec::before {
  background: linear-gradient(145deg, #073b67, #106da9);
}

.app-card--mail::before {
  background: linear-gradient(145deg, #092f58, #00a0c9);
}

.app-card:hover,
.app-card:focus-visible {
  z-index: 2;
  transform: translateY(-7px);
  box-shadow: var(--shadow);
  outline: none;
}

.app-card:hover::before,
.app-card:focus-visible::before {
  inset: 0;
}

.app-card__number {
  color: rgba(255, 255, 255, 0.65);
  font: 600 0.66rem/1 "Manrope", sans-serif;
  letter-spacing: 0.15em;
}

.app-card__icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin: 48px 0 38px;
  border: 1px solid #cbe0ed;
  border-radius: 18px;
  color: var(--blue);
  background: var(--white);
  box-shadow: 0 12px 30px rgba(9, 88, 142, 0.08);
}

.app-card__icon svg,
.app-card__open svg,
.server-icon svg,
.refresh-button svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.app-card__icon svg {
  width: 28px;
  height: 28px;
}

.app-card__content {
  display: flex;
  flex-direction: column;
}

.app-card__tag {
  margin-bottom: 8px;
  color: #8de3ff;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.app-card__content strong {
  margin-bottom: 10px;
  font: 700 1.55rem/1.2 "Manrope", sans-serif;
  letter-spacing: -0.025em;
}

.app-card__content > span:last-child {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
  line-height: 1.55;
}

.app-card__open {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.app-card__open svg {
  width: 21px;
  height: 21px;
  transition: transform 180ms ease;
}

.app-card:hover .app-card__number,
.app-card:hover .app-card__tag,
.app-card:hover .app-card__content > span:last-child,
.app-card:focus-visible .app-card__number,
.app-card:focus-visible .app-card__tag,
.app-card:focus-visible .app-card__content > span:last-child {
  color: rgba(255, 255, 255, 0.73);
}

.app-card:hover .app-card__open,
.app-card:focus-visible .app-card__open {
  border-color: rgba(255, 255, 255, 0.22);
}

.app-card:hover .app-card__open svg,
.app-card:focus-visible .app-card__open svg {
  transform: translateX(5px);
}

.server-section {
  order: 3;
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 70px;
  align-items: center;
  padding: 100px 0;
}

.server-intro .section-number {
  display: block;
  margin-bottom: 18px;
}

.server-intro p {
  max-width: 360px;
  margin-top: 20px;
}

.server-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  padding: 34px;
  border: 1px solid #d7e5ee;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 60px rgba(9, 57, 96, 0.08);
  backdrop-filter: blur(14px);
}

.server-card::before {
  content: "";
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: 0;
  width: 5px;
  background: var(--amber);
  transition: background 200ms ease;
}

.server-card.is-online::before {
  background: var(--green);
}

.server-card.is-offline::before {
  background: var(--red);
}

.server-card__main {
  display: flex;
  align-items: center;
  gap: 18px;
}

.server-icon {
  position: relative;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--blue);
  background: var(--ice);
}

.server-icon svg {
  width: 27px;
  height: 27px;
}

.server-icon__pulse {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--green);
  box-sizing: content-box;
}

.server-card__main > div:last-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.server-card__label {
  margin-bottom: 7px;
  color: #8391a1;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.server-card__main strong {
  overflow: hidden;
  font: 700 1.15rem/1.3 "Manrope", sans-serif;
  text-overflow: ellipsis;
}

.server-card__message {
  margin-top: 5px;
  color: #728094;
  font-size: 0.76rem;
}

.server-metrics {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
}

.server-metrics > div {
  padding: 0 24px;
  border-right: 1px solid var(--line);
}

.server-metrics > div:first-child {
  padding-left: 0;
}

.server-metrics > div:last-child {
  border: 0;
}

.server-metrics dt {
  margin-bottom: 7px;
  color: #8895a4;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.server-metrics dd {
  margin: 0;
  font: 700 0.9rem/1.2 "Manrope", sans-serif;
}

.refresh-button {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #56667a;
  background: var(--white);
  cursor: pointer;
  font-size: 0.71rem;
  font-weight: 700;
  transition: border-color 180ms ease, color 180ms ease;
}

.refresh-button:hover {
  border-color: #a9cbdf;
  color: var(--blue);
}

.refresh-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.refresh-button svg {
  width: 15px;
  height: 15px;
}

.refresh-button.is-loading svg {
  animation: rotate 900ms linear infinite;
}

.site-footer {
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--line);
  color: #738194;
  font-size: 0.76rem;
}

.site-footer > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-footer strong {
  color: var(--ink);
  font: 700 0.86rem/1.2 "Manrope", sans-serif;
}

.site-footer p {
  margin: 0;
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes blink {
  50% {
    opacity: 0.5;
  }
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 90px;
  }

  .hero__visual {
    display: none;
  }

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

  .app-card {
    min-height: 330px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .app-card:last-child {
    border-bottom: 0;
  }

  .app-card__icon {
    margin: 34px 0 28px;
  }

  .server-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 32px, 1180px);
  }

  .site-header {
    height: 94px;
  }

  .brand {
    gap: 10px;
  }

  .brand__logo-wrap {
    width: 145px;
    height: 60px;
  }

  .brand__divider,
  .brand__label,
  .header-status span:last-child {
    display: none;
  }

  .header-status {
    padding: 11px;
  }

  .hero {
    min-height: 520px;
    padding: 74px 0 60px;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 13vw, 4rem);
  }

  .hero__description {
    font-size: 1rem;
  }

  .apps-section {
    padding: 65px 0 80px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 14px;
  }

  .section-heading > div {
    gap: 12px;
  }

  .app-card {
    min-height: 350px;
    padding-inline: 24px;
  }

  .server-section {
    padding: 75px 0;
  }

  .server-card {
    display: flex;
    flex-direction: column;
    padding: 26px 22px;
  }

  .server-card__main {
    align-items: flex-start;
  }

  .server-icon {
    width: 48px;
    height: 48px;
  }

  .server-card__main strong {
    max-width: 190px;
    font-size: 0.94rem;
  }

  .server-metrics {
    width: 100%;
    grid-template-columns: 1fr;
    padding-top: 10px;
  }

  .server-metrics > div,
  .server-metrics > div:first-child {
    display: flex;
    justify-content: space-between;
    padding: 13px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .server-metrics dt {
    margin: 0;
  }

  .refresh-button {
    align-self: stretch;
    justify-content: center;
  }

  .site-footer {
    min-height: 150px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
