@font-face { font-family: "Konexy"; src: url("./assets/Konexy.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "Sprintura"; src: url("./assets/Sprintura.otf") format("opentype"); font-display: swap; }

:root {
  --bg: #050508;
  --surface: #0b0b0e;
  --gold: #df9101;
  --gold-bright: #f0b429;
  --text: #e6f1ff;
  --muted: rgba(230, 241, 255, 0.52);
  --dim: rgba(230, 241, 255, 0.28);
  --line: rgba(230, 241, 255, 0.09);
}

* {
  box-sizing: border-box;
}

html, body { width: 100%; height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Montserrat, Inter, ui-sans-serif, system-ui, sans-serif;
  overflow: hidden;
}

body::selection {
  background: rgba(223, 145, 1, 0.35);
}

.maintenance-shell {
  position: relative;
  height: 100svh;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 3.2vw, 46px) clamp(20px, 6vw, 112px);
  overflow: hidden;
  isolation: isolate;
}

.backdrop {
  position: absolute;
  inset: -4%;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(5, 5, 8, 0.96) 0%, rgba(5, 5, 8, 0.72) 58%, rgba(5, 5, 8, 0.9) 100%),
    linear-gradient(118deg, transparent 0 61%, rgba(223, 145, 1, 0.07) 61.1% 61.35%, transparent 61.45%),
    linear-gradient(118deg, transparent 0 73%, rgba(240, 180, 41, 0.04) 73.1% 73.25%, transparent 73.35%),
    linear-gradient(135deg, #08080b 0%, #050508 56%, #100b03 100%);
}

.texture {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(223, 145, 1, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(223, 145, 1, 0.025) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(90deg, black, transparent 82%);
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 0 0 auto;
  padding-bottom: clamp(14px, 2vh, 24px);
  border-bottom: 1px solid var(--line);
}

.header-logo {
  width: clamp(132px, 13vw, 210px);
  height: auto;
  display: block;
  filter: drop-shadow(0 0 18px rgba(223, 145, 1, 0.18));
}

.system-state {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: rgba(230, 241, 255, 0.5);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(223, 145, 1, 0.9);
  animation: pulse 1.8s ease-in-out infinite;
}

.hero {
  position: relative;
  width: min(920px, 75vw);
  margin: auto 0;
  padding: 2vh 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 clamp(12px, 2vh, 22px);
  color: var(--dim);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.eyebrow span { color: var(--gold-bright); }
.eyebrow i { width: 36px; height: 1px; background: rgba(223, 145, 1, 0.5); }

h1 {
  margin: 0;
  color: var(--text);
  font-family: "Konexy", Montserrat, sans-serif;
  font-size: clamp(38px, 6.7vw, 104px);
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 span { color: var(--gold-bright); text-shadow: 0 0 45px rgba(223, 145, 1, 0.2); }

.lead {
  max-width: 650px;
  margin: clamp(14px, 2.5vh, 28px) 0 0;
  color: var(--muted);
  font-size: clamp(12px, 1.15vw, 17px);
  line-height: 1.65;
}

.notice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(14px, 2.5vh, 26px);
  color: var(--dim);
  font-size: 11px;
}

.notice p { margin: 0; }
.notice-icon { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid rgba(223, 145, 1, 0.35); border-radius: 50%; color: var(--gold-bright); font-weight: 800; }

.status-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr)) minmax(180px, 1.2fr);
  flex: 0 0 auto;
  border-top: 1px solid var(--line);
  background: rgba(5, 5, 8, 0.5);
  backdrop-filter: blur(10px);
}

.service, .status-time {
  min-width: 0;
  min-height: clamp(56px, 8vh, 82px);
  padding: 12px clamp(12px, 1.8vw, 26px);
  border-right: 1px solid var(--line);
}

.service {
  display: flex;
  align-items: center;
  gap: 13px;
}

.service > span { color: rgba(223, 145, 1, 0.55); font-family: "Konexy", sans-serif; font-size: 11px; }
.service strong, .service small, .status-time span, .status-time small { display: block; text-transform: uppercase; }
.service strong { color: rgba(230, 241, 255, 0.72); font-size: 11px; letter-spacing: 0.13em; }
.service small { margin-top: 5px; color: var(--gold-bright); font-size: 8px; font-weight: 800; letter-spacing: 0.2em; }
.status-time { display: flex; flex-direction: column; justify-content: center; align-items: flex-end; border-right: 0; }
.status-time span { color: rgba(230, 241, 255, 0.38); font-size: 9px; font-weight: 700; letter-spacing: 0.12em; }
.status-time small { margin-top: 5px; color: rgba(230, 241, 255, 0.18); font-size: 8px; letter-spacing: 0.18em; }

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.72);
  }
}

@media (max-width: 760px) {
  .maintenance-shell {
    min-height: 500px;
    padding: 18px;
  }

  .header-logo { width: 138px; }
  .system-state { max-width: 120px; line-height: 1.5; text-align: right; font-size: 8px; }
  .hero { width: 100%; }
  h1 { font-size: clamp(30px, 9vw, 44px); }
  .lead { max-width: 530px; }
  .notice { font-size: 9px; }
  .status-rail { grid-template-columns: repeat(3, 1fr); }
  .service { min-height: 58px; padding: 10px 8px; border-right: 1px solid var(--line); gap: 8px; }
  .service > span { display: none; }
  .service strong { font-size: 9px; }
  .service small { font-size: 7px; }
  .status-time { display: none; }
}

@media (max-height: 620px) {
  .maintenance-shell { padding-top: 14px; padding-bottom: 14px; }
  .header-logo { width: 130px; }
  .hero { padding: 8px 0; }
  .eyebrow { margin-bottom: 10px; }
  h1 { font-size: clamp(34px, 7.5vh, 60px); }
  .lead { margin-top: 12px; line-height: 1.45; }
  .notice { margin-top: 10px; }
  .service, .status-time { min-height: 52px; }
}

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