/* HimoSoft — status page */

:root {
  --bg: #070b14;
  --bg-elevated: rgba(14, 20, 36, 0.72);
  --text: #eef2ff;
  --text-muted: #94a3b8;
  --accent: #38bdf8;
  --accent-2: #818cf8;
  --accent-glow: rgba(56, 189, 248, 0.35);
  --border: rgba(148, 163, 184, 0.14);
  --pill-maintenance: #f59e0b;
  --pill-dev: #38bdf8;
  --radius: 20px;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Instrument Serif", Georgia, serif;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

/* Background */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg__mesh {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 60% 50% at 20% 20%, rgba(56, 189, 248, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 80% 10%, rgba(129, 140, 248, 0.16), transparent 50%),
    radial-gradient(ellipse 45% 35% at 70% 80%, rgba(14, 165, 233, 0.1), transparent 55%);
  animation: mesh-drift 22s ease-in-out infinite alternate;
}

.bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 75%);
}

.bg__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.bg__orb--1 {
  width: 420px;
  height: 420px;
  top: -120px;
  left: -80px;
  background: rgba(56, 189, 248, 0.22);
  animation: float-a 18s ease-in-out infinite;
}

.bg__orb--2 {
  width: 360px;
  height: 360px;
  bottom: -80px;
  right: -60px;
  background: rgba(129, 140, 248, 0.2);
  animation: float-b 24s ease-in-out infinite;
}

.bg__orb--3 {
  width: 280px;
  height: 280px;
  top: 45%;
  left: 55%;
  background: rgba(14, 165, 233, 0.12);
  animation: float-c 20s ease-in-out infinite;
}

@keyframes mesh-drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(2%, 3%) scale(1.04);
  }
}

@keyframes float-a {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(30px, 40px);
  }
}

@keyframes float-b {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-40px, -30px);
  }
}

@keyframes float-c {
  0%,
  100% {
    transform: translate(-50%, -50%);
  }
  50% {
    transform: translate(calc(-50% + 20px), calc(-50% - 25px));
  }
}

/* Layout */
.shell {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 3rem);
  gap: 2rem;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  animation: fade-up 0.8s ease both;
}

.brand__mark,
.brand__logo {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.brand__logo {
  object-fit: contain;
  border-radius: 12px;
}

.brand__mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.mark-bg {
  fill: rgba(56, 189, 248, 0.12);
  stroke: rgba(56, 189, 248, 0.35);
  stroke-width: 1;
}

.mark-icon {
  fill: none;
  stroke: var(--accent);
}

.brand__name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Card */
.card {
  position: relative;
  width: min(100%, 560px);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 24px 80px rgba(0, 0, 0, 0.45);
  animation: fade-up 0.8s ease 0.1s both;
  text-align: center;
}

.card__glow {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent),
    var(--accent-2),
    transparent
  );
  opacity: 0.7;
}

/* Status pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem 0.35rem 0.65rem;
  margin-bottom: 1.25rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.status-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pill-dev);
  box-shadow: 0 0 12px var(--pill-dev);
  animation: pulse 2s ease-in-out infinite;
}

body[data-mode="maintenance"] .status-pill__dot {
  background: var(--pill-maintenance);
  box-shadow: 0 0 12px var(--pill-maintenance);
}

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

.card__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.card__lead {
  margin: 0 0 1.75rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 42ch;
  margin-inline: auto;
}

/* Countdown */
.countdown {
  margin-bottom: 1.75rem;
}

.countdown__label {
  margin: 0 0 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.countdown__grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  min-width: 4.5rem;
}

.countdown__flip {
  position: relative;
  width: 100%;
  padding: 0.65rem 0.5rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.countdown__value {
  display: block;
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.countdown__value.is-tick {
  animation: tick 0.35s ease;
}

@keyframes tick {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  45% {
    transform: translateY(-4px);
    opacity: 0.5;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.countdown__name {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.countdown__sep {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-muted);
  opacity: 0.5;
  padding-bottom: 1.4rem;
  user-select: none;
}

.countdown__target {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.countdown__target a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.countdown__target a:hover {
  color: #7dd3fc;
}

.countdown--ended .countdown__label {
  color: var(--accent);
}

/* Actions */
.actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  color: #0c1222;
  background: linear-gradient(135deg, var(--accent) 0%, #7dd3fc 100%);
  border: none;
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn--primary:hover {
  box-shadow: 0 12px 40px var(--accent-glow);
  transform: translateY(-1px);
}

.btn--ghost {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(148, 163, 184, 0.28);
}

/* Footer */
.footer {
  text-align: center;
  animation: fade-up 0.8s ease 0.2s both;
}

.footer__copy {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer__contact {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer__email {
  display: inline;
  padding: 0;
  margin: 0 0 0 0.25rem;
  font: inherit;
  font-weight: 600;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.footer__email:hover {
  color: #7dd3fc;
}

.footer__powered {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.85;
}

.footer__powered a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer__powered a:hover {
  color: var(--accent);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (min-width: 480px) {
  .actions {
    flex-direction: row;
    justify-content: center;
  }

  .btn {
    flex: 1;
    max-width: 220px;
  }
}
