/* RUIZHI — maintenance / coming soon */

:root {
  --color-accent: #f26522;
  --color-accent-soft: rgba(242, 101, 34, 0.18);
  --color-accent-glow: rgba(242, 101, 34, 0.45);
  --color-slate: #1a1a1a;
  --color-slate-muted: #2d2d2d;
  --color-bg: #f8f9fa;
  --color-white: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #5c6370;
  --color-success: #22c55e;
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --radius-lg: 16px;
  --radius-md: 10px;
  --shadow-card: 0 24px 48px rgba(26, 26, 26, 0.08), 0 4px 12px rgba(26, 26, 26, 0.04);
  --transition: 0.25s ease;
  --container: min(1120px, 92vw);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--color-slate);
  color: var(--color-white);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* Background */

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.page-bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 26, 26, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 26, 26, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 70%);
}

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

.page-bg__glow--orange {
  width: 420px;
  height: 420px;
  top: -120px;
  right: -80px;
  background: var(--color-accent-soft);
}

.page-bg__glow--slate {
  width: 360px;
  height: 360px;
  bottom: 10%;
  left: -100px;
  background: rgba(26, 26, 26, 0.06);
}

/* Header */

.site-header {
  padding: 2rem 0 1rem;
}

.site-header__inner {
  display: flex;
  justify-content: center;
}

.brand-logo {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

@media (min-width: 640px) {
  .brand-logo {
    max-width: 320px;
  }
}

/* Main */

.site-main {
  flex: 1;
  padding-bottom: 3rem;
}

.hero {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 2.5rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0 0 1.25rem;
  padding: 0.5rem 1rem 0.5rem 0.75rem;
  background: var(--color-white);
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-slate-muted);
  box-shadow: 0 2px 8px rgba(26, 26, 26, 0.04);
}

.status-badge__dot {
  position: relative;
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 0 var(--color-accent-glow);
  animation: pulse-dot 2s ease-in-out infinite;
}

.status-badge__dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(34, 197, 94, 0.35);
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(242, 101, 34, 0.35);
    background: var(--color-success);
  }
  50% {
    box-shadow: 0 0 12px 4px rgba(242, 101, 34, 0.25);
    background: var(--color-accent);
  }
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.85);
    opacity: 1;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.hero__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-slate);
  letter-spacing: -0.02em;
}

.hero__lead {
  margin: 0;
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: var(--color-text-muted);
}

/* Countdown */

.countdown {
  margin-bottom: 2.5rem;
}

.countdown__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.25rem;
  padding: 1.5rem 1rem;
  background: var(--color-slate);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 4.5rem;
  padding: 0.5rem 0.75rem;
}

.countdown__value {
  font-variant-numeric: tabular-nums;
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 700;
  line-height: 1;
  color: var(--color-white);
  text-shadow: 0 0 24px var(--color-accent-glow);
  animation: subtle-glow 3s ease-in-out infinite;
}

@keyframes subtle-glow {
  0%,
  100% {
    text-shadow: 0 0 20px rgba(242, 101, 34, 0.2);
  }
  50% {
    text-shadow: 0 0 28px rgba(242, 101, 34, 0.45);
  }
}

.countdown__label {
  margin-top: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.countdown__separator {
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--color-accent);
  opacity: 0.85;
  user-select: none;
  padding-bottom: 1.25rem;
}

.countdown__caption {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* Notify */

.notify__card {
  max-width: 36rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(26, 26, 26, 0.06);
  box-shadow: var(--shadow-card);
}

.notify__title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-slate);
}

.notify__hint {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.notify-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .notify-form__field {
    flex-direction: row;
  }
}

.notify-form__input {
  flex: 1;
  min-width: 0;
  padding: 0.875rem 1rem;
  font: inherit;
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid rgba(26, 26, 26, 0.12);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.notify-form__input::placeholder {
  color: #9ca3af;
}

.notify-form__input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.notify-form__input:invalid:not(:placeholder-shown) {
  border-color: #ef4444;
}

.notify-form__submit {
  padding: 0.875rem 1.5rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-white);
  background: var(--color-accent);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), transform 0.15s ease, box-shadow var(--transition);
  box-shadow: 0 4px 14px rgba(242, 101, 34, 0.35);
}

.notify-form__submit:hover {
  background: #e05a1c;
  box-shadow: 0 6px 20px rgba(242, 101, 34, 0.4);
}

.notify-form__submit:active {
  transform: scale(0.98);
}

.notify-form__submit:focus-visible {
  outline: 2px solid var(--color-slate);
  outline-offset: 2px;
}

.notify-form__message {
  min-height: 1.5rem;
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  font-weight: 500;
}

.notify-form__message--success {
  color: #15803d;
}

.notify-form__message--error {
  color: #b91c1c;
}

.notify__support {
  margin: 1.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(26, 26, 26, 0.08);
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.notify__support a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.notify__support a:hover {
  border-bottom-color: var(--color-accent);
}

.notify__support a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Footer */

.site-footer {
  padding: 1.5rem 0 2rem;
  text-align: center;
}

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

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

  html {
    scroll-behavior: auto;
  }
}
