/* ── NAV: status-specific btn-nav colour ── */
.btn-nav { background: var(--accent-2); }

/* ── PAGE HEADER ── */
.page-header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem 2rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.page-header-left {
  min-width: min(560px, 100%);
}

.page-header-left h1 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.4rem;
}

.page-header-left p {
  color: var(--muted);
  font-size: 0.9rem;
}

.last-updated {
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.how-it-works {
  margin-top: 0.9rem;
  width: 100%;
  max-width: 560px;
}

.how-it-works summary {
  font-size: 0.82rem;
  color: var(--text);
  cursor: pointer;
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  transition: border-color 0.15s, background 0.15s;
}

.how-it-works summary:hover {
  border-color: var(--muted);
  background: var(--surface-2);
}

.how-it-works summary::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.how-it-works[open] summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: transparent;
}

.how-it-works[open] summary::after {
  transform: rotate(180deg);
}

.how-it-works p {
  margin-top: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 6px 6px;
  padding: 0.75rem;
  background: var(--surface);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

.page-header-left p.header-sub {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ── SUMMARY STATS ── */
.stats-row {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stat-value.green { color: var(--success); }
.stat-value.warn  { color: var(--warn); }
.stat-value.blue  { color: var(--accent); }

.stat-sub {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* ── SECTION WRAPPER ── */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem 3.5rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.section-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-meta {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ── MODEL STATUS TABLE ── */
.model-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.model-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
  align-items: center;
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid var(--border);
  gap: 0.5rem;
  transition: background 0.15s;
}

.model-row:last-child { border-bottom: none; }
.model-row:hover { background: var(--surface-2); }

.model-row.header {
  background: var(--surface-2);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.model-row.header:hover { background: var(--surface-2); }

.model-info { display: flex; align-items: center; gap: 0.75rem; }

.model-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.model-name { font-weight: 600; font-size: 0.9rem; }
.model-org  { font-size: 0.75rem; color: var(--muted); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.status-pill.op   { background: rgba(34,197,94,0.12); color: var(--success); }
.status-pill.deg  { background: rgba(245,158,11,0.12); color: var(--warn); }
.status-pill.down { background: rgba(239,68,68,0.12);  color: var(--danger); }

.status-pill::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.latency-val {
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.latency-val.fast   { color: var(--success); }
.latency-val.medium { color: var(--warn); }
.latency-val.slow   { color: var(--danger); }

.uptime-bar-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.uptime-bar {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
  max-width: 80px;
}

.uptime-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--success);
}

.uptime-bar-fill.warn { background: var(--warn); }

.uptime-pct {
  font-size: 0.8rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  min-width: 42px;
}

/* ── CHART SECTION ── */
.chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

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

.chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.chart-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.chart-canvas-wrap {
  position: relative;
  height: 220px;
}

/* ── REGIONAL LATENCY HEATMAP ── */
.heatmap-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.heatmap-table th {
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.heatmap-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}

.heatmap-table tr:last-child td { border-bottom: none; }

.heatmap-table tr:hover td { background: rgba(255,255,255,0.02); }

.heat-cell {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.78rem;
}

.heat-0  { background: rgba(34,197,94,0.15);  color: var(--success); }
.heat-1  { background: rgba(34,197,94,0.10);  color: #7de0a0; }
.heat-2  { background: rgba(245,158,11,0.12); color: var(--warn); }
.heat-3  { background: rgba(239,68,68,0.12);  color: var(--danger); }
.heat-na { background: rgba(255,255,255,0.05); color: var(--muted); }

/* ── INCIDENT LOG ── */
.incident-list { display: flex; flex-direction: column; gap: 0.75rem; }

.incident-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem 1rem;
  align-items: start;
}

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

.incident-dot.resolved   { background: var(--success); }
.incident-dot.monitoring { background: var(--warn); animation: pulse 2s infinite; }

.incident-title { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.2rem; }
.incident-body  { font-size: 0.8rem; color: var(--muted); }

.incident-time {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.incident-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}

.incident-badge.resolved   { background: rgba(34,197,94,0.12);  color: var(--success); }
.incident-badge.monitoring { background: rgba(245,158,11,0.12); color: var(--warn); }

/* ── PREMIUM CTA ── */
.premium-section {
  max-width: 820px;
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.3);
  color: #a78bfa;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.75rem;
}

.premium-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 2.5rem;
}

.premium-section h2 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.premium-section p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.free-tier-block {
  max-width: 420px;
  margin: 0 auto 2rem;
  text-align: center;
}

.free-tier-heading {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.85rem;
}

.free-tier-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.free-tier-list li::before {
  content: '✓  ';
  color: #4ade80;
  font-weight: 700;
}

.free-tier-transition {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid rgba(124,58,237,0.35);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  max-width: 420px;
  margin: 0 auto 2.5rem;
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.pricing-tier {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a78bfa;
  margin-bottom: 0.75rem;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.pricing-price sup {
  font-size: 1.25rem;
  font-weight: 700;
  vertical-align: super;
  letter-spacing: 0;
}

.pricing-cadence {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pricing-features--roadmap li {
  opacity: 0.55;
}

.pricing-features--roadmap li::before {
  content: '◦';
  color: var(--muted);
}

.why-grid-section {
  max-width: 780px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.why-grid-heading {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

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

.why-grid-item {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.why-grid-icon {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.why-grid-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--fg);
}

.why-grid-body {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.55;
}

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

.why-it-matters--standalone {
  max-width: 420px;
  margin: 0 auto 2rem;
  border-top: none;
  padding-top: 0;
}

.roadmap-teaser {
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 420px;
  margin: -1rem auto 1.5rem;
  text-align: center;
}

.why-it-matters {
  border-top: 1px solid rgba(255,255,255,0.07);
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  margin-bottom: 1.75rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.why-it-matters__heading {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.why-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.why-item__title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--fg);
}

.why-item__body {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.55;
}

.pricing-features li {
  font-size: 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--text);
}

.pricing-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  text-decoration: none;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  width: 100%;
  transition: opacity 0.2s, transform 0.2s;
  text-align: center;
}

.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.trust-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

.pricing-original {
  font-size: 1rem;
  color: var(--muted);
  text-decoration: line-through;
  margin-left: 0.5rem;
  font-weight: 500;
  vertical-align: middle;
}

.pricing-savings {
  display: inline-block;
  background: rgba(34,197,94,0.12);
  color: var(--success);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.seats-wrap {
  margin: 1.25rem 0 1.5rem;
  text-align: left;
}

.seats-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--text);
}

.seats-label span:last-child { color: var(--muted); }

.seats-track {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.seats-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  width: 30%;
}

.seats-note {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

.pre-order-count {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(79,142,247,0.08);
  border: 1px solid rgba(79,142,247,0.2);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 2rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 840px) {
  .model-row { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .model-row > *:nth-child(5),
  .model-row > *:nth-child(6) { display: none; }
}

@media (max-width: 560px) {
  .model-row { grid-template-columns: 2fr 1fr 1fr; }
  .model-row > *:nth-child(4) { display: none; }
}
