/* CORVEX Design System — Status Page */

@import url('https://fonts.googleapis.com/css2?family=Anek+Latin:wght@400;500;700;800;900&display=swap');

:root {
  --cx-prime: #8758F0;
  --cx-soft: #C8B1FF;
  --cx-deep: #33196F;
  --cx-core: #140731;
  --cx-lime: #B9F42E;
  --cx-white: #F5F6FC;

  --cx-ink: #140731;
  --cx-ink-2: #3B2F5C;
  --cx-ink-3: #6B6485;
  --cx-line: #E8E6F1;
  --cx-line-2: #D8D4E8;
  --cx-surface: #FAF9FD;
  --cx-tint: #F1EDFF;

  --cx-success: #2D8C42;
  --cx-success-bg: #E6F9E8;
  --cx-error: #C23B3B;
  --cx-error-bg: #FDE8E8;
  --cx-warning: #B58100;
  --cx-warning-bg: #FFF4D6;

  --ease-cx: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Anek Latin', ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--cx-ink);
  background: #FFFFFF;
  min-height: 100vh;
  font-feature-settings: "ss01", "ss02", "cv11", "kern";
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Surfaces */
.cx-surface-base { background: #FFFFFF; }
.cx-surface-alt  { background: var(--cx-white); }

/* Layout */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
.wordmark {
  font-size: 1.125rem;
  font-weight: 900;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  color: var(--cx-core);
  text-decoration: none;
  line-height: 0.92;
}

.wordmark-sub {
  font-weight: 800;
  color: var(--cx-prime);
  letter-spacing: 0.08em;
  font-size: 0.6875rem;
  text-transform: uppercase;
  display: block;
  margin-top: 2px;
}

.eyebrow-dash {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cx-prime);
  margin-bottom: 16px;
}

.eyebrow-dash::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  opacity: 0.9;
}

.section-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cx-prime);
  margin-bottom: 8px;
}

.section-heading {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--cx-core);
  margin-bottom: 8px;
}

.section-desc {
  font-size: 17px;
  color: var(--cx-ink-2);
  max-width: 52ch;
  line-height: 1.55;
}

.section-head {
  margin-bottom: 24px;
}

.section-head-compact .section-heading {
  font-size: clamp(22px, 2.6vw, 28px);
  margin-bottom: 0;
}

.text-muted { color: var(--cx-ink-3); font-size: 14px; }
.text-small { font-size: 14px; font-weight: 500; }

/* Stack */
.cx-stack {
  position: relative;
  display: block;
}

.cx-stack-base {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid var(--cx-core);
  transform: translate(6px, 6px);
  transition: transform 220ms var(--ease-cx);
  z-index: 0;
}

.cx-stack-base-lime   { background: var(--cx-lime); }
.cx-stack-base-violet { background: var(--cx-soft); }
.cx-stack-base-core   { background: var(--cx-core); }

.cx-stack-face {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border: 2px solid var(--cx-core);
  border-radius: inherit;
  transition: transform 220ms var(--ease-cx);
}

.cx-stack-face-core {
  background: var(--cx-core);
  color: #ffffff;
}

.cx-stack:hover  .cx-stack-face { transform: translate(-2px, -2px); }
.cx-stack:hover  .cx-stack-base { transform: translate(9px, 9px); }

/* Functional card */
.cx-card {
  background: #ffffff;
  border: 1px solid var(--cx-line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 180ms var(--ease-cx);
}

.cx-card:hover { border-color: var(--cx-ink-3); }

/* Badges */
.cx-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid var(--cx-core);
  white-space: nowrap;
}

.cx-badge-lime   { background: var(--cx-lime); color: var(--cx-core); }
.cx-badge-violet { background: var(--cx-soft); color: var(--cx-core); }
.cx-badge-core   { background: var(--cx-core); color: var(--cx-lime); border-color: var(--cx-core); }

.cx-badge-success { background: var(--cx-success-bg); color: var(--cx-success); border-color: var(--cx-success); }
.cx-badge-warning { background: var(--cx-warning-bg); color: var(--cx-warning); border-color: var(--cx-warning); }
.cx-badge-error   { background: var(--cx-error-bg); color: var(--cx-error); border-color: var(--cx-error); }

/* Stack button */
.cx-btn-stack {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  user-select: none;
  font-family: inherit;
}

.cx-btn-stack-base {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid var(--cx-core);
  transform: translate(5px, 5px);
  transition: transform 180ms var(--ease-cx);
  z-index: 0;
}

.cx-btn-stack-base-lime   { background: var(--cx-lime); }
.cx-btn-stack-base-violet { background: var(--cx-soft); }

.cx-btn-stack-face {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 2px solid var(--cx-core);
  border-radius: 999px;
  color: var(--cx-core);
  font-weight: 700;
  white-space: nowrap;
  transition: transform 180ms var(--ease-cx);
}

.cx-btn-stack-face-core {
  background: var(--cx-core);
  color: #ffffff;
}

.cx-btn-stack:hover  .cx-btn-stack-face { transform: translate(-2px, -2px); }
.cx-btn-stack:hover  .cx-btn-stack-base { transform: translate(7px, 7px); }
.cx-btn-stack:active .cx-btn-stack-face { transform: translate(3px, 3px); }
.cx-btn-stack:active .cx-btn-stack-base { transform: translate(3px, 3px); }

/* Header */
.site-header {
  padding: 20px 0;
  border-bottom: 2px solid var(--cx-core);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.header-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.header-nav a {
  font-size: 13px;
  font-weight: 700;
  color: var(--cx-ink-2);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 180ms var(--ease-cx);
}

.header-nav a:hover { color: var(--cx-prime); }

.header-meta-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.header-meta {
  font-size: 13px;
  font-weight: 500;
  color: var(--cx-ink-3);
  text-align: right;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 2px solid var(--cx-core);
  background: var(--cx-core);
  color: var(--cx-lime);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.live-pill.is-alert {
  background: var(--cx-error-bg);
  color: var(--cx-error);
  border-color: var(--cx-error);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: live-pulse 2s var(--ease-cx) infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
}

.header-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--cx-prime);
  text-decoration: none;
}

.header-link:hover { text-decoration: underline; }

/* Hero status */
.hero {
  padding: 48px 0 40px;
}

.hero-layout {
  display: grid;
  gap: 28px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(0, 2fr);
  gap: 12px;
}

.metric-tile {
  padding: 18px 16px;
  border: 1px solid var(--cx-line);
  border-radius: 12px;
  background: #ffffff;
  transition: border-color 180ms var(--ease-cx);
}

.metric-tile:hover { border-color: var(--cx-line-2); }

.metric-tile-highlight {
  border: 2px solid var(--cx-core);
  background: var(--cx-lime);
}

.metric-tile-detail {
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}

.metric-value {
  display: block;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--cx-core);
  line-height: 1.1;
}

.metric-label {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cx-ink-3);
}

.metric-tile-highlight .metric-label { color: var(--cx-ink-2); }

.metric-detail-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--cx-core);
  line-height: 1.2;
}

.metric-detail-list {
  font-size: 15px;
  font-weight: 600;
  color: var(--cx-ink-2);
  line-height: 1.4;
}

.metric-detail-meta {
  font-size: 12px;
  font-weight: 600;
  color: var(--cx-ink-3);
  letter-spacing: 0.02em;
}

.status-hero-stack {
  border-radius: 18px;
  max-width: 100%;
}

.status-hero-face {
  border-radius: 18px;
  padding: 28px 32px;
}

.status-hero-face h1 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-top: 14px;
  color: var(--cx-core);
}

.status-hero-face p {
  font-size: 17px;
  color: var(--cx-ink-2);
  margin-top: 8px;
}

.status-hero-face-core h1,
.status-hero-face-core p { color: #ffffff; }

.status-hero-face-core .text-muted { color: rgba(255,255,255,0.75); }

/* Sections */
.page-section {
  padding: 48px 0;
}

/* Icon tile (design system §7) */
.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 2px solid var(--cx-core);
  background: var(--cx-lime);
  color: var(--cx-core);
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
}

.icon-tile-sm {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 14px;
}

.icon-tile-status.status-operational { background: var(--cx-success-bg); color: var(--cx-success); border-color: var(--cx-success); }
.icon-tile-status.status-degraded { background: var(--cx-warning-bg); color: var(--cx-warning); border-color: var(--cx-warning); }
.icon-tile-status.status-outage { background: var(--cx-error-bg); color: var(--cx-error); border-color: var(--cx-error); }
.icon-tile-status.status-unknown { background: var(--cx-surface); color: var(--cx-ink-3); }

/* Products grid — stack cards */
.products-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-stack-face {
  overflow: hidden;
  padding: 0 !important;
}

.product-status-pill {
  margin-left: auto;
  flex-shrink: 0;
}

.product-stack.is-expanded-group .service-group-body {
  display: block;
}

.product-stack.is-expanded-group .service-group-chevron {
  transform: rotate(45deg);
  margin-top: -4px;
}

/* Service groups — accordion por produto */
.service-group-header {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 20px 24px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: background 180ms var(--ease-cx);
}

.service-group-header:hover {
  background: rgba(20, 7, 49, 0.04);
}

.service-group-chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--cx-ink-3);
  border-bottom: 2px solid var(--cx-ink-3);
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-right: 2px;
}

.is-expanded-group .service-group-chevron,
.service-group.is-expanded .service-group-chevron {
  transform: rotate(45deg);
  margin-top: -4px;
}

.service-group-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.service-group-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--cx-core);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.service-group-status {
  font-size: 14px;
  font-weight: 600;
  color: var(--cx-ink-2);
}

.service-group-body {
  display: none;
  padding: 0 24px 16px 24px;
  border-top: 1px solid var(--cx-line);
}

.is-expanded-group .service-group-body,
.service-group.is-expanded .service-group-body {
  display: block;
}

.service-group-child {
  padding: 16px 0;
  border-top: 1px solid var(--cx-line);
}

.service-group-child:first-child {
  border-top: none;
  padding-top: 4px;
}

.service-group-child-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.service-group-child-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--cx-core);
  line-height: 1.3;
}

/* Service list — timeline por componente (fallback) */
.services-timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--cx-line);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cx-ink-3);
}

.service-component {
  padding: 20px;
  border-bottom: 1px solid var(--cx-line);
}

.service-component:last-child { border-bottom: none; }

.service-component-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.service-component-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.status-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--cx-core);
  flex-shrink: 0;
  margin-top: 2px;
}

.status-icon.operational { background: var(--cx-success); }
.status-icon.degraded { background: var(--cx-warning); }
.status-icon.outage { background: var(--cx-error); }
.status-icon.unknown { background: var(--cx-ink-3); }
.status-icon.none { background: var(--cx-line); }

.service-component-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--cx-core);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.service-component-status {
  font-size: 14px;
  font-weight: 600;
  color: var(--cx-ink-2);
  margin-top: 4px;
}

.service-uptime-pct {
  font-size: 15px;
  font-weight: 800;
  color: var(--cx-ink-2);
  white-space: nowrap;
}

.uptime-bar {
  display: flex;
  gap: 2px;
  height: 36px;
  align-items: stretch;
  width: 100%;
}

.uptime-segment {
  flex: 1;
  min-width: 1px;
  border-radius: 2px;
  border: none;
  padding: 0;
  cursor: default;
}

.uptime-segment[data-status="operational"] { background: var(--cx-success); }
.uptime-segment[data-status="degraded"] { background: var(--cx-warning); }
.uptime-segment[data-status="outage"] { background: var(--cx-error); }
.uptime-segment[data-status="unknown"] { background: var(--cx-ink-3); }
.uptime-segment[data-status="maintenance"] { background: #2563eb; }
.uptime-segment[data-status="none"] { background: #e8eaed; }

.uptime-segment:hover { filter: brightness(0.92); }

.uptime-bar-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--cx-ink-3);
}

.uptime-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--cx-ink-3);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}

.legend-swatch.operational { background: var(--cx-success); }
.legend-swatch.degraded { background: var(--cx-warning); }
.legend-swatch.outage { background: var(--cx-error); }
.legend-swatch.maintenance { background: #2563eb; }
.legend-swatch.none { background: #e8eaed; }

.group-uptime-metric {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--cx-ink-2);
  margin-top: 2px;
}

.maintenance-wrap { padding-top: 8px; }

.maintenance-stack-face {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px !important;
  background: #fffbeb !important;
}

.maintenance-stack.is-active .maintenance-stack-face {
  background: var(--cx-warning-bg) !important;
}

.maintenance-title {
  margin: 4px 0 0;
  font-weight: 700;
  color: var(--cx-core);
}

.maintenance-when {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--cx-ink-3);
  margin-top: 4px;
}

.maintenance-msg {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--cx-ink-2);
}

.subscribe-card { padding: 24px 20px; }
.subscribe-desc { margin: 0 0 16px; color: var(--cx-ink-2); font-size: 15px; }
.subscribe-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: stretch;
}
.subscribe-form .cx-input { flex: 1; min-width: 220px; }
.subscribe-form-stacked { flex-direction: column; align-items: stretch; }
.subscribe-form-stacked .cx-btn-stack { align-self: flex-start; }
.subscribe-hint { margin: 12px 0 0; }
.subscribe-hint code { font-size: 12px; background: #f4f4f5; padding: 2px 6px; border-radius: 4px; }

.latency-chart-card { padding: 20px; }
.latency-chart-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.latency-chart-toolbar .cx-input { min-width: 260px; max-width: 360px; }
.latency-chart-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: #fafafa;
  border: 1px solid var(--cx-line);
}
.latency-chart-svg { width: 100%; height: 220px; display: block; }
.latency-chart-legend { margin: 12px 0 0; display: flex; gap: 20px; align-items: center; }
.legend-line {
  display: inline-block;
  width: 24px;
  height: 3px;
  margin-right: 6px;
  vertical-align: middle;
  border-radius: 2px;
}
.legend-line.threshold { background: #f59e0b; }
.legend-line.sample { background: #7c3aed; }
.subscribe-feedback { margin: 12px 0 0; font-size: 14px; font-weight: 600; }
.subscribe-feedback.is-success { color: var(--cx-success); }
.subscribe-feedback.is-error { color: var(--cx-error); }

.admin-form-card { padding: 20px; }
.admin-form-title { margin: 0 0 16px; font-size: 16px; }
.admin-form-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}
.admin-btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.admin-btn .cx-btn-stack-face { height: 40px; padding: 0 20px; font-size: 13px; }
.admin-feedback { margin-top: 12px; font-size: 14px; color: var(--cx-ink-2); }
.admin-list { margin-top: 20px; }
.admin-list-item {
  padding: 12px 0;
  border-top: 1px solid var(--cx-line);
}

.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--cx-line);
  gap: 16px;
}

.service-row:last-child { border-bottom: none; }

.service-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--cx-core);
  letter-spacing: -0.01em;
}

/* Incidents */
.incident-stack-face {
  padding: 24px 28px !important;
}

.incident-title {
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--cx-core);
  margin-bottom: 12px;
  line-height: 1.2;
}

.empty-incident-face {
  padding: 36px 32px !important;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.empty-incident-face h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--cx-core);
}

.empty-incident-face p {
  font-size: 16px;
  color: var(--cx-ink-2);
  max-width: 36ch;
}

.incident {
  padding: 20px;
  border-bottom: 1px solid var(--cx-line);
}

.incident:last-child { border-bottom: none; }

.incident-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.incident-update {
  font-size: 15px;
  color: var(--cx-ink-2);
  padding: 12px 0;
  border-top: 1px solid var(--cx-line);
}

.incident-update:first-of-type { border-top: none; padding-top: 0; }

.incident-update time {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cx-ink-3);
  margin-bottom: 4px;
}

.history-card { border-radius: 14px; }

.resolved-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--cx-line);
}

.resolved-item:last-child { border-bottom: none; }

.resolved-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cx-success);
  border: 2px solid var(--cx-core);
  flex-shrink: 0;
  margin-top: 6px;
}

.resolved-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--cx-core);
}

.resolved-date {
  font-size: 13px;
  color: var(--cx-ink-3);
  margin-top: 4px;
}

.empty-state {
  padding: 40px 24px;
  text-align: center;
  color: var(--cx-ink-3);
  font-size: 16px;
  font-weight: 500;
}

/* CTA dark section (design system §6) */
.cta-section {
  background: var(--cx-core);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  padding: 56px 0 0;
}

.cta-section.page-section {
  padding-bottom: 0;
}

.cta-wordmark {
  bottom: -40px;
  right: -20px;
  opacity: 0.6;
}

.cta-grid {
  display: grid;
  gap: 36px;
  align-items: start;
  position: relative;
  z-index: 1;
  padding-bottom: 48px;
}

.cta-form-stack {
  margin-bottom: 10px;
}

@media (min-width: 720px) {
  .cta-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
  }
}

.cta-eyebrow { color: var(--cx-lime) !important; }
.cta-eyebrow::before { background: var(--cx-lime); }

.cta-heading {
  font-size: clamp(28px, 3.8vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #ffffff;
  margin-bottom: 12px;
}

.cta-desc {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
  margin-bottom: 20px;
}

.cta-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cta-features li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.feature-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  border: 2px solid var(--cx-lime);
  background: transparent;
  color: var(--cx-lime);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.cta-form-face {
  padding: 28px !important;
  background: #ffffff !important;
}

.cta-form-face .form-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cx-prime);
  margin-bottom: 6px;
}

.cta-form-face .form-label + .cx-input { margin-bottom: 14px; }

.cta-submit-btn {
  width: 100%;
  margin-top: 8px;
}

.cta-form-face .subscribe-hint {
  margin-top: 14px;
  color: var(--cx-ink-3);
}

.cta-form-face .subscribe-hint code {
  background: var(--cx-surface);
  border: 1px solid var(--cx-line);
}

/* Error alert */
.cx-alert-error {
  background: var(--cx-error-bg);
  border: 2px solid var(--cx-error);
  color: var(--cx-error);
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 24px;
  display: none;
}

.cx-alert-error.visible { display: block; }

/* Footer — colado na CTA, sem gap branco */
.site-footer {
  background: var(--cx-core);
  color: #ffffff;
  padding: 28px 0 36px;
  margin-top: 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(245, 246, 252, 0.12);
}

.site-footer-inset {
  margin-top: 0;
  padding-bottom: 40px;
}

.site-footer-inset .footer-wordmark {
  display: none;
}

.site-footer-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.site-footer p {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
}

.footer-links span { color: rgba(255,255,255,0.35); }

.site-footer a {
  color: var(--cx-lime);
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover { text-decoration: underline; }

.footer-wordmark {
  position: absolute;
  bottom: -24px;
  right: 0;
  font-weight: 900;
  font-size: clamp(80px, 18vw, 200px);
  letter-spacing: -0.05em;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 2px rgba(245, 246, 252, 0.08);
  pointer-events: none;
  user-select: none;
}

/* Skeleton loading */
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton {
  background: linear-gradient(
    90deg,
    var(--cx-line) 0%,
    #f4f3f8 40%,
    var(--cx-line) 80%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  .skeleton { animation: none; background: var(--cx-line); }
}

.skeleton-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
}

.skeleton-line {
  height: 14px;
  border-radius: 6px;
}

.skeleton-line.lg { height: 22px; border-radius: 8px; }
.skeleton-line.sm { height: 11px; }
.skeleton-line.badge { width: 88px; height: 24px; border-radius: 999px; }
.skeleton-line.pct { width: 96px; height: 16px; }

.skeleton-uptime-bar {
  display: flex;
  gap: 2px;
  height: 36px;
  width: 100%;
}

.skeleton-uptime-seg {
  flex: 1;
  min-width: 1px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    var(--cx-line) 0%,
    #f4f3f8 40%,
    var(--cx-line) 80%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

.skeleton-service {
  padding: 20px;
  border-bottom: 1px solid var(--cx-line);
}

.skeleton-service:last-child { border-bottom: none; }

.skeleton-service-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.skeleton-service-left {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex: 1;
}

.skeleton-service-text { flex: 1; max-width: 220px; }

.skeleton-incident {
  padding: 20px;
  border-bottom: 1px solid var(--cx-line);
}

.skeleton-incident:last-child { border-bottom: none; }

.skeleton-table-row td {
  padding: 16px;
  border-bottom: 1px solid var(--cx-line);
}

.skeleton-table-row:last-child td { border-bottom: none; }

.is-refreshing .cx-card.is-loading-zone,
.is-refreshing .products-grid.is-loading-zone {
  position: relative;
  pointer-events: none;
}

.is-refreshing .cx-card.is-loading-zone::after,
.is-refreshing .products-grid.is-loading-zone::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.55);
  border-radius: inherit;
  z-index: 2;
}

.hero-skeleton .status-hero-face {
  pointer-events: none;
}

.hero-skeleton #status-badge,
.hero-skeleton #banner-title,
.hero-skeleton #banner-sub {
  visibility: hidden;
}

.hero-skeleton .hero-skeleton-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-skeleton-inner { display: none; }
.hero-skeleton .hero-skeleton-inner { display: flex; }

.header-meta.is-loading {
  color: transparent;
  position: relative;
  min-width: 140px;
}

.header-meta.is-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: var(--cx-line);
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
  background-size: 200% 100%;
}

/* Dashboard (internal) */
.dashboard-header {
  background: var(--cx-core);
  color: #ffffff;
  padding: 20px 0;
  border-bottom: none;
}

.dashboard-header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.dashboard-eyebrow {
  color: var(--cx-lime) !important;
  margin-bottom: 8px !important;
}

.dashboard-eyebrow::before { background: var(--cx-lime); }

.dashboard-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.dashboard-sub {
  margin-top: 6px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
}

.dashboard-back {
  color: var(--cx-lime);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 16px;
  border: 2px solid rgba(185, 244, 46, 0.35);
  border-radius: 999px;
  transition: border-color 180ms var(--ease-cx), background 180ms var(--ease-cx);
}

.dashboard-back:hover {
  text-decoration: none;
  border-color: var(--cx-lime);
  background: rgba(185, 244, 46, 0.08);
}

.auth-card {
  padding: 24px;
}

.auth-card label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cx-prime);
  margin-bottom: 10px;
}

.auth-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: stretch;
}

.cx-input {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  border: 1.5px solid var(--cx-line-2);
  border-radius: 10px;
  font-size: 15px;
  font-family: ui-monospace, monospace;
  color: var(--cx-core);
  background: #ffffff;
  transition: border-color 180ms var(--ease-cx);
}

.cx-input:focus {
  outline: none;
  border-color: var(--cx-core);
  border-width: 2px;
  padding: 11px 15px;
}

.auth-hint {
  font-size: 13px;
  color: var(--cx-ink-3);
  margin-top: 10px;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--cx-ink-2);
  cursor: pointer;
}

.auth-remember input { accent-color: var(--cx-prime); }

.dashboard-logout {
  border: none;
  cursor: pointer;
  font-family: inherit;
  background: transparent;
}

/* Table */
.cx-table-wrap { overflow-x: auto; }

.cx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.cx-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cx-ink-3);
  background: var(--cx-surface);
  border-bottom: 2px solid var(--cx-core);
}

.cx-table td {
  padding: 16px;
  border-bottom: 1px solid var(--cx-line);
  color: var(--cx-ink-2);
}

.cx-table tr:hover td { background: var(--cx-surface); }
.cx-table tr:last-child td { border-bottom: none; }

.mono {
  font-family: ui-monospace, monospace;
  font-size: 13px;
}

.latency-fast { color: var(--cx-success); font-weight: 700; }
.latency-slow { color: var(--cx-warning); font-weight: 700; }
.latency-bad  { color: var(--cx-error); font-weight: 700; }

.error-msg {
  color: var(--cx-error);
  font-size: 13px;
  max-width: 280px;
  word-break: break-word;
}

.meta-line {
  font-size: 14px;
  color: var(--cx-ink-3);
  margin-bottom: 24px;
}

.incident-block {
  padding: 20px;
  border-bottom: 1px solid var(--cx-line);
}

.incident-block:last-child { border-bottom: none; }

.incident-block h3 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--cx-core);
  margin-bottom: 10px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.overall-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.overall-label {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--cx-core);
}

/* Tilt accent (1-2 per viewport) */
.cx-tilt-l-1 { transform: rotate(-1.5deg); }
.cx-tilt-l-2 { transform: rotate(-3deg); }
.cx-tilt-r-1 { transform: rotate(1.5deg); }
.cx-tilt-r-2 { transform: rotate(3deg); }

/* Page reveal */
.status-page main > section {
  animation: section-reveal 0.7s var(--ease-cx) both;
}

.status-page main > section:nth-child(1) { animation-delay: 0.05s; }
.status-page main > section:nth-child(2) { animation-delay: 0.12s; }
.status-page main > section:nth-child(3) { animation-delay: 0.18s; }
.status-page main > section:nth-child(4) { animation-delay: 0.24s; }

@keyframes section-reveal {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .status-page main > section { animation: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .status-hero-face { padding: 24px 20px; }
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .header-nav { order: 3; width: 100%; }
  .header-meta-wrap { align-items: flex-start; }
  .header-meta { text-align: left; }
  .hero-metrics { grid-template-columns: 1fr; }
  .metric-tile-highlight { order: -1; }
  .product-status-pill { display: none; }
  .service-group-header { flex-wrap: wrap; }

  .cx-table thead { display: none; }
  .cx-table tr {
    display: block;
    border-bottom: 1px solid var(--cx-line);
    padding: 8px 0;
  }
  .cx-table td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border: none;
    padding: 6px 16px;
  }
  .cx-table td::before {
    content: attr(data-label);
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cx-ink-3);
    flex-shrink: 0;
  }
}
