/* ============================================
   Metered Status Page — Design System v2.0
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --bg-cream: #FDFBF7;
  --bg-warm: #F7F4EE;
  --bg-dark: #1A1915;
  --bg-card: #FFFFFF;
  --bg-code: #0f0f0d;
  --text-primary: #1A1915;
  --text-secondary: #5C5A52;
  --text-tertiary: #8A8780;
  --accent: #0D7377;
  --accent-light: #E8F4F4;
  --accent-dark: #095456;
  --accent-warm: #D97B4A;
  --border: #E8E6E1;
  --border-dark: #D4D1C9;
  --success: #22A355;
  --success-glow: rgba(34, 163, 85, 0.2);
  --warning: #D97B4A;
  --error: #D94A4A;
  --info: #0D7377;

  /* Typography */
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: 'Instrument Serif', Georgia, "Times New Roman", serif;
  --font-mono: 'IBM Plex Mono', "SF Mono", Monaco, "Courier New", monospace;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(26, 25, 21, 0.04);
  --shadow-sm: 0 2px 4px rgba(26, 25, 21, 0.06);
  --shadow-md: 0 4px 12px rgba(26, 25, 21, 0.08);
  --shadow-lg: 0 8px 32px rgba(26, 25, 21, 0.08);
  --shadow-xl: 0 20px 40px rgba(26, 25, 21, 0.12);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 350ms ease;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 100px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-cream);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

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

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

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

/* --- Layout Containers --- */
.container-xl {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
}

.container-lg {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
}

.container-md {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 3rem;
}

.container-sm {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 3rem;
}

.container-xs {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 3rem;
}

@media (max-width: 768px) {
  .container-xl,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xs {
    padding: 0 1.5rem;
  }
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 3rem;
  transition: all 0.3s ease;
}

.nav.scrolled {
  background: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-wordmark {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.nav-wordmark-accent {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  position: relative;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

@media (max-width: 768px) {
  .nav {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    display: none;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(13, 115, 119, 0.25);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(13, 115, 119, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-dark);
}

.btn-outline:hover {
  background: var(--text-primary);
  color: var(--bg-cream);
  border-color: var(--text-primary);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* --- Hero Section --- */
.hero {
  padding: 10rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(13, 115, 119, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-overline {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-sans);
  font-size: 3rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.hero-title .serif {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
}

.hero-description {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* --- Status Banner --- */
.status-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.status-banner:hover {
  box-shadow: var(--shadow-lg);
}

.status-banner--operational {
  border-color: rgba(34, 163, 85, 0.3);
}

.status-banner--degraded {
  border-color: rgba(217, 123, 74, 0.3);
}

.status-banner--outage {
  border-color: rgba(217, 74, 74, 0.3);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot--operational {
  background: var(--success);
  box-shadow: 0 0 0 3px var(--success-glow);
  animation: pulse-status 2s infinite;
}

.status-dot--degraded {
  background: var(--warning);
  box-shadow: 0 0 0 3px rgba(217, 123, 74, 0.2);
  animation: pulse-warning 2s infinite;
}

.status-dot--outage {
  background: var(--error);
  box-shadow: 0 0 0 3px rgba(217, 74, 74, 0.2);
  animation: pulse-error 2s infinite;
}

.status-banner-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

@keyframes pulse-status {
  0%, 100% {
    box-shadow: 0 0 0 3px rgba(34, 163, 85, 0.2);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(34, 163, 85, 0.1);
  }
}

@keyframes pulse-warning {
  0%, 100% {
    box-shadow: 0 0 0 3px rgba(217, 123, 74, 0.2);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(217, 123, 74, 0.1);
  }
}

@keyframes pulse-error {
  0%, 100% {
    box-shadow: 0 0 0 3px rgba(217, 74, 74, 0.2);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(217, 74, 74, 0.1);
  }
}

/* --- Section Styles --- */
.section {
  padding: 6rem 0;
}

.section--bordered {
  border-top: 1px solid var(--border);
}

.section--warm {
  background: var(--bg-warm);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  margin-bottom: 3rem;
}

.section-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text-primary);
}

.section-title .serif {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
}

.section-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-top: 1rem;
  max-width: 600px;
}

/* --- Service Status Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.service-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  background: var(--bg-card);
  transition: all 0.3s ease;
}

.service-card:hover {
  background: var(--bg-warm);
}

.service-icon-container {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.service-icon-container svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  stroke-width: 1.5;
  fill: none;
}

.service-info {
  flex: 1;
  min-width: 0;
}

.service-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.service-category {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.125rem;
}

.service-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.service-status-label {
  font-size: 0.8125rem;
  font-weight: 500;
}

.service-status-label--operational {
  color: var(--success);
}

.service-status-label--degraded {
  color: var(--warning);
}

.service-status-label--outage {
  color: var(--error);
}

.service-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.service-status-dot--operational {
  background: var(--success);
  box-shadow: 0 0 0 3px var(--success-glow);
}

.service-status-dot--degraded {
  background: var(--warning);
  box-shadow: 0 0 0 3px rgba(217, 123, 74, 0.2);
}

.service-status-dot--outage {
  background: var(--error);
  box-shadow: 0 0 0 3px rgba(217, 74, 74, 0.2);
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 1.25rem 1.5rem;
  }
}

/* --- Service Group --- */
.service-group {
  margin-bottom: 2.5rem;
}

.service-group:last-child {
  margin-bottom: 0;
}

.service-group-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.service-group-title {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-group-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* --- Stats Section --- */
.stats-section {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-warm);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 0 2rem;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border);
}

.stat-value {
  font-family: var(--font-sans);
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.2;
}

.stat-value .accent {
  color: var(--accent);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-tertiary);
  margin-top: 0.5rem;
}

@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 0;
  }

  .stat-item:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 2rem 0;
  }

  .stat-item::after {
    display: none !important;
  }

  .stat-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
  }

  .stat-item:last-child {
    border-bottom: none;
  }
}

/* --- Incidents / Updates Section --- */
.incidents-section {
  padding: 6rem 0;
}

.incident-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.incident-day {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.incident-day:first-child {
  padding-top: 0;
}

.incident-day:last-child {
  border-bottom: none;
}

.incident-date {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.incident-entry {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
}

.incident-timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 24px;
  flex-shrink: 0;
}

.incident-timeline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.incident-timeline-dot--resolved {
  background: var(--success);
}

.incident-timeline-dot--investigating {
  background: var(--warning);
}

.incident-timeline-dot--identified {
  background: var(--warning);
}

.incident-timeline-dot--monitoring {
  background: var(--accent);
}

.incident-timeline-dot--outage {
  background: var(--error);
}

.incident-timeline-line {
  width: 1px;
  flex: 1;
  background: var(--border);
  margin-top: 0.25rem;
}

.incident-content {
  flex: 1;
}

.incident-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.incident-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.incident-time {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-tertiary);
  margin-top: 0.5rem;
}

.incident-badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-sm);
  margin-left: 0.5rem;
  vertical-align: middle;
}

.incident-badge--resolved {
  background: rgba(34, 163, 85, 0.1);
  color: var(--success);
}

.incident-badge--investigating {
  background: rgba(217, 123, 74, 0.1);
  color: var(--warning);
}

.incident-badge--identified {
  background: rgba(217, 123, 74, 0.1);
  color: var(--warning);
}

.incident-badge--monitoring {
  background: rgba(13, 115, 119, 0.1);
  color: var(--accent);
}

.incident-badge--outage {
  background: rgba(217, 74, 74, 0.1);
  color: var(--error);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.empty-state-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: var(--radius-lg);
}

.empty-state-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
  stroke-width: 1.5;
  fill: none;
}

.empty-state-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.empty-state-text {
  font-size: 0.9375rem;
  color: var(--text-tertiary);
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- Uptime Bars --- */
.uptime-section {
  padding: 6rem 0;
  border-top: 1px solid var(--border);
}

.uptime-service {
  margin-bottom: 2.5rem;
}

.uptime-service:last-child {
  margin-bottom: 0;
}

.uptime-service-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.uptime-service-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.uptime-service-pct {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--success);
}

.uptime-bar {
  display: flex;
  gap: 2px;
  height: 32px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.uptime-bar-segment {
  flex: 1;
  border-radius: 2px;
  transition: all 0.2s ease;
  cursor: default;
  position: relative;
}

.uptime-bar-segment--operational {
  background: var(--success);
  opacity: 0.8;
}

.uptime-bar-segment--operational:hover {
  opacity: 1;
}

.uptime-bar-segment--degraded {
  background: var(--warning);
  opacity: 0.8;
}

.uptime-bar-segment--degraded:hover {
  opacity: 1;
}

.uptime-bar-segment--outage {
  background: var(--error);
  opacity: 0.8;
}

.uptime-bar-segment--outage:hover {
  opacity: 1;
}

.uptime-bar-segment--empty {
  background: var(--border);
  opacity: 0.5;
}

.uptime-bar-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.uptime-bar-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
}

/* --- Footer --- */
.footer {
  background: var(--bg-dark);
  padding: 5rem 3rem 3rem;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 4rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.footer-brand-wordmark {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: -0.03em;
  color: #FDFBF7;
}

.footer-brand-wordmark-accent {
  color: var(--accent);
}

.footer-brand-description {
  color: rgba(253, 251, 247, 0.5);
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-column-title {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: rgba(253, 251, 247, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.5rem;
}

.footer-link {
  display: block;
  color: rgba(253, 251, 247, 0.7);
  font-size: 0.9375rem;
  padding: 0.375rem 0;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #FDFBF7;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  margin-top: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copyright {
  color: rgba(253, 251, 247, 0.4);
  font-size: 0.8125rem;
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(253, 251, 247, 0.7);
  font-size: 0.8125rem;
}

.footer-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 2px rgba(34, 163, 85, 0.2);
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 3rem 1.5rem 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-delay-1 {
  opacity: 0;
  animation-delay: 0.1s;
}

.animate-delay-2 {
  opacity: 0;
  animation-delay: 0.2s;
}

.animate-delay-3 {
  opacity: 0;
  animation-delay: 0.3s;
}

.animate-delay-4 {
  opacity: 0;
  animation-delay: 0.4s;
}

/* --- Utility Classes --- */
.text-center {
  text-align: center;
}

.text-accent {
  color: var(--accent);
}

.text-success {
  color: var(--success);
}

.mt-1 { margin-top: var(--space-4); }
.mt-2 { margin-top: var(--space-8); }
.mt-3 { margin-top: var(--space-12); }
.mb-1 { margin-bottom: var(--space-4); }
.mb-2 { margin-bottom: var(--space-8); }
.mb-3 { margin-bottom: var(--space-12); }

/* --- Responsive Typography --- */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .stat-value {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 8rem 0 4rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1.125rem;
  }

  .section {
    padding: 4rem 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .stat-value {
    font-size: 1.75rem;
  }

  .stats-section {
    padding: 3rem 0;
  }
}

/* --- Subscribe Card --- */
.subscribe-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 3rem;
  transition: all 0.3s ease;
}

.subscribe-card:hover {
  border-color: var(--border-dark);
  box-shadow: var(--shadow-md);
}

.subscribe-info {
  flex: 1;
}

.subscribe-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.subscribe-text {
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

@media (max-width: 768px) {
  .subscribe-card {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
}

/* --- Last Updated --- */
.last-updated {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-align: center;
  margin-top: 3rem;
  letter-spacing: 0.02em;
}

/* --- Page Load Animations --- */
.hero-inner > * {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.hero-inner > *:nth-child(1) { animation-delay: 0s; }
.hero-inner > *:nth-child(2) { animation-delay: 0.1s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.2s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.3s; }

/* --- Maintenance Cards --- */
.maintenance-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.maintenance-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  transition: all 0.3s ease;
}

.maintenance-card:hover {
  border-color: var(--border-dark);
  box-shadow: var(--shadow-sm);
}

.maintenance-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.maintenance-card-time {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
}

.maintenance-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
}

.maintenance-card-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.maintenance-card-services {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-wrap: wrap;
}

/* Maintenance Badges */
.maintenance-badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-sm);
  vertical-align: middle;
}

.maintenance-badge--scheduled {
  background: rgba(13, 115, 119, 0.1);
  color: var(--accent);
}

.maintenance-badge--in_progress {
  background: rgba(217, 123, 74, 0.1);
  color: var(--warning);
}

.maintenance-badge--completed {
  background: rgba(34, 163, 85, 0.1);
  color: var(--success);
}

@media (max-width: 768px) {
  .maintenance-card {
    padding: 1.25rem 1.5rem;
  }
}

/* --- Affected Services ------------------------------------------------- */
/* Names what is wrong directly under the hero, so a degraded banner does not
   send visitors scanning every tile to find the affected service. */

.affected-section {
  padding: 0 var(--space-6) var(--space-4);
}

.affected-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--warning);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  box-shadow: var(--shadow-sm);
}

.affected-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-2);
}

.affected-title {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.affected-link {
  font-size: 0.8125rem;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}

.affected-link:hover { text-decoration: underline; }

.affected-list { list-style: none; }

.affected-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
}

.affected-item:last-child { border-bottom: none; }

.affected-item-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-weight: 500;
  color: var(--text-primary);
}

.affected-item-group {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  font-weight: 400;
}

@media (max-width: 640px) {
  .affected-section { padding: 0 var(--space-4) var(--space-4); }
  .affected-card { padding: var(--space-4) var(--space-5); }
}
