/* ==========================================================================
   AUSTIN — Maintenance Page
   Design tokens (đồng bộ với website chính)
   ========================================================================== */
:root {
  --bg: #0a0a0a;
  --bg-elevated: #111113;
  --bg-elevated-hover: #17171a;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --fg: #ededed;
  --fg-muted: #8b8b93;
  --fg-dim: #56565d;
  --accent: #00e5a0;
  --accent-dim: rgba(0, 229, 160, 0.12);
  --accent-strong: #35ffc0;
  --violet: #8b7cff;
  --violet-dim: rgba(139, 124, 255, 0.12);
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;
  --font-display: "Space Grotesk", "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --max-w: 1180px;
  --nav-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image:
    radial-gradient(ellipse 900px 560px at 50% -10%, rgba(0, 229, 160, 0.10), transparent 60%),
    radial-gradient(ellipse 700px 420px at 100% 100%, rgba(139, 124, 255, 0.06), transparent 60%);
  background-repeat: no-repeat;
}

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

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

::selection { background: var(--accent-dim); color: var(--accent-strong); }

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

/* ==========================================================================
   Eyebrow
   ========================================================================== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
.eyebrow::before { content: "›"; color: var(--fg-dim); }
.eyebrow.center { justify-content: center; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-left { display: flex; align-items: center; }
.brand { display: flex; align-items: center; height: 100%; }
.brand img { height: 22px; width: auto; display: block; }

.status-badge {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(139,124,255,0.3);
  color: var(--violet);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pulse-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 0 rgba(139,124,255,0.6);
  animation: pulse-dot 1.8s ease-out infinite;
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(139,124,255,0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(139,124,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(139,124,255,0); }
}

.btn {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--fg);
  color: #0a0a0a;
}
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-1px); }

/* ==========================================================================
   Maintenance card
   ========================================================================== */
.maintenance-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.maintenance-card {
  width: 100%;
  max-width: 560px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 48px 48px;
  text-align: center;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  animation: card-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

.mc-icon-wrap {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mc-icon {
  position: relative;
  z-index: 2;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: wrench-turn 3.2s ease-in-out infinite;
}
@keyframes wrench-turn {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-16deg); }
  40% { transform: rotate(10deg); }
  60% { transform: rotate(-6deg); }
  80% { transform: rotate(0deg); }
}
.mc-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  animation: ring-pulse 2.4s ease-out infinite;
}
.mc-ring-2 { animation-delay: 1.2s; }
@keyframes ring-pulse {
  0%   { transform: scale(0.8); opacity: 0.9; }
  100% { transform: scale(1.7); opacity: 0; }
}

.maintenance-card h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.maintenance-card h1 .hl { color: var(--accent); }

.maintenance-card .lead {
  font-size: 15.5px;
  color: var(--fg-muted);
  max-width: 420px;
  margin: 0 auto 32px;
}

/* Terminal block */
.mc-terminal {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
  margin-bottom: 28px;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.terminal-dot { width: 9px; height: 9px; border-radius: 50%; background: #333; }
.terminal-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fg-dim);
  margin-left: 6px;
}
.terminal-body {
  padding: 16px 18px 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.terminal-body { min-height: 118px; }
.terminal-line {
  margin-bottom: 8px;
  color: var(--fg-muted);
  min-height: 1.4em;
}
.terminal-line:last-child { margin-bottom: 0; }
.terminal-line .prompt { color: var(--accent); margin-right: 8px; }
.terminal-line.out { color: var(--fg-dim); padding-left: 16px; }
.terminal-line .ok { color: var(--accent); margin-right: 8px; }
.cursor {
  display: inline-block;
  color: var(--accent);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Progress bar */
.mc-progress {
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: var(--border);
  overflow: hidden;
  margin-bottom: 24px;
  position: relative;
}
.mc-progress-bar {
  position: absolute;
  top: 0; left: -40%;
  width: 40%;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: progress-slide 1.8s ease-in-out infinite;
}
@keyframes progress-slide {
  0%   { left: -40%; }
  100% { left: 100%; }
}

.mc-note {
  font-size: 13.5px;
  color: var(--fg-dim);
  margin-bottom: 30px;
}

.mc-ctas { display: flex; justify-content: center; }

/* ==========================================================================
   Footer
   ========================================================================== */
.mc-footer {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  flex-shrink: 0;
}
.mc-footer .wrap {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--fg-dim);
  font-family: var(--font-mono);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 640px) {
  .maintenance-card { padding: 40px 26px 34px; }
  .mc-ctas .btn { width: 100%; justify-content: center; }
  .mc-footer .wrap { flex-direction: column; gap: 8px; text-align: center; }
}
