/* Night Shift Servers - landing page */

@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/manrope-latin-variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #05111a;
  --bg-lift: #0b2233;
  --navy: #4a6079;
  --teal: #5d9aaa;
  --teal-bright: #7fd0e0;
  --text: #f1eee8;
  --text-soft: #a9bfd3;
  --text-dim: #7d93a8;
  --line: rgba(169, 191, 211, 0.22);
  --mark-size: clamp(170px, min(36vw, 34vh), 400px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  color: var(--text);
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, var(--bg-lift) 0%, transparent 70%),
    radial-gradient(ellipse 120% 90% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.55) 100%),
    var(--bg);
  background-attachment: fixed;
  overflow-x: hidden;
}

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden; /* keeps the rings from causing horizontal scroll */
  padding: clamp(16px, 3.5vh, 44px) 20px clamp(14px, 3vh, 32px);
}

/* ---------- Header ---------- */

.site-header {
  animation: rise 0.9s ease-out both;
}

.site-logo {
  display: block;
  height: clamp(56px, 9vh, 96px);
  width: auto;
}

/* ---------- Hero ---------- */

.hero {
  flex: 1;
  width: 100%;
  max-width: 980px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.mark {
  position: relative;
  width: var(--mark-size);
  height: var(--mark-size);
  margin: clamp(12px, 3vh, 32px) 0 clamp(8px, 2vh, 20px);
  animation: rise 1s ease-out 0.15s both;
}

.mark-img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 18px rgba(93, 154, 170, 0.18));
}

/* Soft light behind the crescent */
.mark-glow {
  position: absolute;
  left: 54%;
  top: 45%;
  width: 62%;
  height: 62%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 208, 224, 0.55) 0%, rgba(93, 154, 170, 0.18) 45%, transparent 70%);
  filter: blur(22px);
  animation: glow 6s ease-in-out infinite;
}

/* Concentric rings */
.ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  border: 1px solid rgba(127, 208, 224, 0.2);
  box-shadow:
    0 0 40px rgba(93, 154, 170, 0.07),
    inset 0 0 40px rgba(93, 154, 170, 0.05);
  transform: translate(-50%, -50%);
  animation: pulse 9s ease-in-out infinite;
  pointer-events: none;
}

.ring-1 {
  width: 170%;
  height: 170%;
}

.ring-2 {
  width: 250%;
  height: 250%;
  animation-delay: -3s;
}

.ring-3 {
  width: 340%;
  height: 340%;
  animation-delay: -6s;
}

/* ---------- Text ---------- */

.title {
  margin: 0;
  font-size: clamp(2rem, 6vw, 4.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  animation: rise 0.9s ease-out 0.35s both;
}

.tagline {
  margin: clamp(8px, 1.5vh, 16px) 0 0;
  font-size: clamp(1.05rem, 2.6vw, 1.9rem);
  font-weight: 400;
  color: var(--text-soft);
  animation: rise 0.9s ease-out 0.5s both;
}

.label {
  margin: clamp(12px, 2vh, 22px) 0 0;
  font-size: clamp(0.72rem, 1.4vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--text-dim);
  animation: rise 0.9s ease-out 0.65s both;
}

/* ---------- Cards ---------- */

.cards {
  list-style: none;
  margin: clamp(20px, 4vh, 40px) 0 0;
  padding: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 3vw, 36px);
  animation: rise 0.9s ease-out 0.8s both;
}

.card {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 30px);
  padding: clamp(16px, 2.6vh, 28px) clamp(18px, 3vw, 44px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(11, 34, 51, 0.55), rgba(5, 17, 26, 0.55));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  border-color: rgba(127, 208, 224, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 0 28px rgba(93, 154, 170, 0.14);
}

.card-icon {
  flex: none;
  width: clamp(34px, 4.5vw, 54px);
  height: clamp(34px, 4.5vw, 54px);
  color: var(--text-soft);
}

.card-divider {
  flex: none;
  align-self: stretch;
  width: 1px;
  background: var(--line);
}

.card-text {
  font-size: clamp(1rem, 1.9vw, 1.45rem);
  font-weight: 500;
  text-align: left;
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  margin-top: clamp(16px, 3vh, 36px);
  font-size: clamp(0.68rem, 1.1vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
  animation: rise 0.9s ease-out 0.95s both;
}

/* ---------- Motion ---------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow {
  0%, 100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.35;
    transform: translate(-50%, -50%) scale(0.97);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.03);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
  .cards {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .label {
    letter-spacing: 0.18em;
  }
}
