/*
 * Titan Corp /status fallback page styling.
 * Arctic Aurora theme matches the marketing site so the failover
 * doesn't feel like a different company. No external assets — fully
 * self-contained so the page survives even if every CDN we use is
 * broken simultaneously.
 */

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: #0a1628;
  color: #e6f1ff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
}

.aurora-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 20%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, #0a1628 0%, #0f2744 50%, #0a1628 100%);
  z-index: 0;
}

.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  background: rgba(14, 30, 52, 0.55);
  border: 1px solid rgba(6, 182, 212, 0.18);
  border-radius: 24px;
  padding: 40px 32px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}

.logo-wrap { display: flex; justify-content: center; margin-bottom: 24px; }
.logo {
  width: 56px; height: 56px;
  color: #06b6d4;
  filter: drop-shadow(0 0 12px rgba(6, 182, 212, 0.4));
}

h1 {
  margin: 0 0 12px;
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.lede {
  margin: 0 0 28px;
  text-align: center;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(230, 241, 255, 0.65);
}

.counter-frame {
  text-align: center;
  padding: 24px 16px;
  margin-bottom: 28px;
  background: rgba(6, 182, 212, 0.06);
  border: 1px solid rgba(6, 182, 212, 0.15);
  border-radius: 16px;
}
.counter-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(103, 232, 249, 0.7);
  margin-bottom: 6px;
}
.counter {
  font-size: 38px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
  letter-spacing: -0.01em;
}
.counter-sub {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(230, 241, 255, 0.45);
}

.subscribe-form { margin-bottom: 24px; }
.subscribe-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(230, 241, 255, 0.75);
}
.subscribe-row { display: flex; gap: 8px; }
.subscribe-row input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  background: rgba(10, 22, 40, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #e6f1ff;
  font-size: 14px;
  outline: none;
  transition: border-color 120ms;
}
.subscribe-row input[type="email"]::placeholder { color: rgba(230, 241, 255, 0.3); }
.subscribe-row input[type="email"]:focus { border-color: rgba(6, 182, 212, 0.5); }
.subscribe-row button {
  padding: 10px 18px;
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 50%, #0e7490 100%);
  border: none;
  border-radius: 10px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 120ms;
  white-space: nowrap;
}
.subscribe-row button:hover { opacity: 0.92; }
.subscribe-row button:disabled { opacity: 0.5; cursor: not-allowed; }
.subscribe-msg {
  margin-top: 10px;
  min-height: 18px;
  font-size: 13px;
  line-height: 1.4;
}
.subscribe-msg.success { color: #34d399; }
.subscribe-msg.error { color: #f87171; }

.recovered {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 14px;
}
/*
 * The HTML5 `hidden` attribute is `display: none` from the UA
 * stylesheet, but our explicit `display: flex` above wins on
 * specificity. This override re-establishes the contract.
 * Without it, the recovered banner shows always — the JS toggling
 * .hidden was technically correct but visually moot.
 */
[hidden] { display: none !important; }
.recovered strong { color: #34d399; }
.recovered button {
  margin-left: auto;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}
.recovered button:hover { background: rgba(16, 185, 129, 0.28); }

.footer {
  margin: 24px 0 0;
  text-align: center;
  font-size: 12px;
  color: rgba(230, 241, 255, 0.4);
  line-height: 1.6;
}
.footer a { color: #67e8f9; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.last-seen { display: inline-block; margin-top: 4px; }

@media (max-width: 480px) {
  .card { padding: 28px 22px; }
  h1 { font-size: 26px; }
  .counter { font-size: 30px; }
  .subscribe-row { flex-direction: column; }
  .subscribe-row button { width: 100%; }
}
