/* ===========================================
   Dev Downtime — Premium Design System v3
   Atmospheric depth, layered surfaces, soft edges
   =========================================== */

:root {
    /* Backgrounds — warm-shifted darks for depth */
    --bg-primary: #050507;
    --bg-surface: #0a0a0d;
    --bg-card: #0e0e12;
    --bg-elevated: #141418;
    --bg-hover: #19191e;

    /* Borders — nearly invisible, depth does the work */
    --border-subtle: rgba(255, 255, 255, 0.04);
    --border-default: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.1);
    --border-focus: rgba(255, 255, 255, 0.18);

    /* Text */
    --text-primary: #ededef;
    --text-secondary: #9898a0;
    --text-tertiary: #65656d;
    --text-muted: #3e3e47;

    /* Status */
    --color-operational: #34d399;
    --color-degraded: #fbbf24;
    --color-outage: #f87171;
    --color-maintenance: #a78bfa;
    --color-unknown: #52525b;

    /* Accent */
    --accent: #f0f0f2;
    --accent-hover: #d4d4d8;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Monaco, monospace;

    /* Radii — large and soft like the inspiration */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-2xl: 28px;

    /* Transitions */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --fast: 150ms;
    --normal: 350ms;
}

/* ===========================================
   Reset
   =========================================== */

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    /* Atmospheric gradient — soft spotlights on the background */
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(120, 119, 140, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 75% 60%, rgba(80, 80, 100, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 20% 80%, rgba(80, 80, 100, 0.03) 0%, transparent 50%);
}

/* ===========================================
   Decorative Overlays
   =========================================== */

.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.018;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 256px;
}

.grid-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, black 0%, transparent 70%);
}

/* ===========================================
   Layout
   =========================================== */

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ===========================================
   Shared Card Surface — the core premium feel
   Glass-like gradient surfaces with inner glow
   =========================================== */

.card-surface {
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.04) 0%,
            rgba(255, 255, 255, 0.01) 40%,
            rgba(255, 255, 255, 0.0) 100%
        ),
        var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 0 1px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.15),
        0 12px 40px rgba(0, 0, 0, 0.12);
}

/* ===========================================
   Header
   =========================================== */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5, 5, 7, 0.7);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--text-primary);
    transition: opacity var(--fast);
}

.logo:hover { opacity: 0.7; }
.logo-mark { color: var(--text-primary); }

.logo-text {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.header-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color var(--fast);
}

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

/* ===========================================
   Buttons
   =========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--normal) var(--ease);
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-primary);
    box-shadow: 0 1px 2px rgba(0,0,0,0.2), 0 0 16px rgba(255,255,255,0.04);
}

.btn-primary:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3), 0 0 40px rgba(255,255,255,0.08);
    transform: translateY(-1px);
}

.btn-primary:active { transform: translateY(0) scale(0.98); }

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 13px 22px;
    font-size: 15px;
}

/* ===========================================
   Hero Section — Uptime Chart
   =========================================== */

.hero {
    position: relative;
    padding: 40px 0 24px;
    overflow: hidden;
}

/* Radial glow behind the hero content */
.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1100px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(140, 140, 170, 0.06) 0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 1;
}

.hero-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.hero-chart-header-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px 7px 12px;
    border-radius: 100px;
    border: 1px solid var(--border-default);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%),
        rgba(14, 14, 18, 0.6);
    backdrop-filter: blur(12px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.06),
        0 2px 8px rgba(0,0,0,0.2);
    width: fit-content;
}

/* Hero Top (intro + sponsor side-by-side) */
.hero-top {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 50px;
}

/* Hero Intro */
.hero-intro {
    flex: 1 1 50%;
    min-width: 0;
}

.hero-intro-title {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.hero-intro-text {
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-tertiary);
    max-width: 560px;
}

.hero-badge-text {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.03em;
}

.hero-headline {
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--text-primary);
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
}

.hero-meta-sep { color: rgba(255,255,255,0.08); }

.hero-badge .status-indicator {
    width: 8px;
    height: 8px;
}

/* Uptime Chart */
.hero-chart-wrap {
    position: relative;
    height: 340px;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.03) 0%,
            rgba(255, 255, 255, 0.005) 40%,
            rgba(255, 255, 255, 0.0) 100%
        ),
        var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 0 0 1px rgba(0, 0, 0, 0.25),
        0 2px 4px rgba(0, 0, 0, 0.1),
        0 8px 24px rgba(0, 0, 0, 0.08);
}

#uptime-chart {
    display: block;
    width: 100%;
    height: 100%;
}

/* Chart Tooltip */
.chart-tooltip {
    position: absolute;
    display: none;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%),
        rgba(14, 14, 18, 0.95);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    pointer-events: none;
    z-index: 10;
    min-width: 200px;
    backdrop-filter: blur(16px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.06),
        0 8px 32px rgba(0,0,0,0.4);
}

.tooltip-date {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.tooltip-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 0;
    font-size: 13px;
}

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

.tooltip-name {
    flex: 1;
    color: var(--text-secondary);
    white-space: nowrap;
}

.tooltip-val {
    font-family: var(--font-mono);
    font-weight: 500;
    color: var(--text-primary);
    font-size: 12px;
}

/* Chart Legend */
.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 14px;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 8px;
    border-radius: 100px;
    border: 1px solid var(--border-subtle);
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all 150ms;
    line-height: 1;
}

.legend-item:hover {
    border-color: var(--border-hover);
    background: rgba(255,255,255,0.02);
}

.legend-item:not(.active) {
    opacity: 0.3;
}

.legend-color {
    width: 12px;
    height: 3px;
    border-radius: 2px;
    flex-shrink: 0;
}

.legend-name {
    font-weight: 500;
    font-size: 11px;
}

.legend-value {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 10px;
}

/* Mobile Status List — replaces chart on small screens */
.hero-mobile-status {
    display: none;
}

.mobile-status-card {
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.03) 0%,
            rgba(255, 255, 255, 0.005) 40%,
            rgba(255, 255, 255, 0.0) 100%
        ),
        var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 0 0 1px rgba(0, 0, 0, 0.25),
        0 2px 4px rgba(0, 0, 0, 0.1),
        0 8px 24px rgba(0, 0, 0, 0.08);
}

.mobile-status-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.mobile-status-row:last-child {
    border-bottom: none;
}

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

.mobile-status-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.mobile-status-uptime {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.mobile-status-trend {
    font-size: 13px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

/* ===========================================
   Sections
   =========================================== */

.section {
    padding: 0 0 72px;
    position: relative;
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
    margin-bottom: 48px;
}

.section-header {
    margin-bottom: 48px;
}

.section-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.section-title {
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    line-height: 1.15;
}

/* ===========================================
   Status Indicators
   =========================================== */

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}

.status-indicator::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    opacity: 0.2;
}

.status-indicator.status-operational {
    background: var(--color-operational);
    color: var(--color-operational);
    box-shadow: 0 0 14px rgba(52, 211, 153, 0.45);
}

.status-indicator.status-degraded {
    background: var(--color-degraded);
    color: var(--color-degraded);
    box-shadow: 0 0 14px rgba(251, 191, 36, 0.4);
}

.status-indicator.status-outage {
    background: var(--color-outage);
    color: var(--color-outage);
    box-shadow: 0 0 14px rgba(248, 113, 113, 0.4);
}

.status-indicator.status-maintenance {
    background: var(--color-maintenance);
    color: var(--color-maintenance);
    box-shadow: 0 0 14px rgba(167, 139, 250, 0.4);
}

.status-indicator.status-unknown {
    background: var(--color-unknown);
    color: var(--color-unknown);
}

/* ===========================================
   Services Grid
   =========================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(370px, 1fr));
    gap: 18px;
}

/* Service Card — layered, atmospheric */
.service-card {
    display: flex;
    flex-direction: column;
    background:
        linear-gradient(
            170deg,
            rgba(255, 255, 255, 0.045) 0%,
            rgba(255, 255, 255, 0.01) 35%,
            rgba(255, 255, 255, 0.0) 60%,
            rgba(255, 255, 255, 0.008) 100%
        ),
        var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 30px 30px 26px;
    transition: all var(--normal) var(--ease);
    cursor: pointer;
    position: relative;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 0 1px rgba(0, 0, 0, 0.25),
        0 2px 4px rgba(0, 0, 0, 0.1),
        0 8px 24px rgba(0, 0, 0, 0.08);
}

.service-card:hover {
    border-color: var(--border-hover);
    background:
        linear-gradient(
            170deg,
            rgba(255, 255, 255, 0.065) 0%,
            rgba(255, 255, 255, 0.02) 35%,
            rgba(255, 255, 255, 0.005) 60%,
            rgba(255, 255, 255, 0.015) 100%
        ),
        var(--bg-hover);
    transform: translateY(-3px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 0 0 1px rgba(255, 255, 255, 0.06),
        0 4px 12px rgba(0, 0, 0, 0.2),
        0 16px 48px rgba(0, 0, 0, 0.18);
}

.service-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
}

.service-info {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.service-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.0) 100%),
        var(--bg-elevated);
    border: 1px solid rgba(255,255,255,0.06);
    object-fit: contain;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    padding: 2px;
}

.service-name {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.service-description {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-top: 3px;
}

.service-url {
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-top: 3px;
}

/* Service Status Badge — soft glass pill */
.service-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: var(--font-mono);
    white-space: nowrap;
    backdrop-filter: blur(8px);
}

.service-status .status-indicator {
    width: 7px;
    height: 7px;
}

.service-status .status-indicator::after { display: none; }

.service-status.operational {
    background: rgba(52, 211, 153, 0.06);
    color: var(--color-operational);
    border: 1px solid rgba(52, 211, 153, 0.1);
    box-shadow: inset 0 1px 0 rgba(52, 211, 153, 0.06);
}

.service-status.degraded {
    background: rgba(251, 191, 36, 0.06);
    color: var(--color-degraded);
    border: 1px solid rgba(251, 191, 36, 0.1);
    box-shadow: inset 0 1px 0 rgba(251, 191, 36, 0.06);
}

.service-status.outage {
    background: rgba(248, 113, 113, 0.06);
    color: var(--color-outage);
    border: 1px solid rgba(248, 113, 113, 0.1);
    box-shadow: inset 0 1px 0 rgba(248, 113, 113, 0.06);
}

.service-status.maintenance {
    background: rgba(167, 139, 250, 0.06);
    color: var(--color-maintenance);
    border: 1px solid rgba(167, 139, 250, 0.1);
    box-shadow: inset 0 1px 0 rgba(167, 139, 250, 0.06);
}

.service-status.unknown {
    background: rgba(82, 82, 91, 0.08);
    color: var(--color-unknown);
    border: 1px solid rgba(82, 82, 91, 0.12);
}

/* Service Components */
.service-components {
    border-top: 1px solid rgba(255,255,255,0.04);
    padding-top: 16px;
    margin-top: 4px;
    flex: 1;
}

.component-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
}

.component-name {
    color: var(--text-secondary);
    font-size: 14px;
}

.component-status {
    display: flex;
    align-items: center;
    gap: 6px;
}

.component-status .status-indicator { width: 7px; height: 7px; }
.component-status .status-indicator::after { display: none; }

/* Service Uptime Bar */
.service-uptime { margin-top: auto; padding-top: 20px; }

.uptime-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-bottom: 10px;
}

.uptime-bar {
    height: 5px;
    background: rgba(255,255,255,0.04);
    border-radius: 3px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
}

.uptime-fill {
    height: 100%;
    background: var(--color-operational);
    border-radius: 3px;
    transition: width 1s var(--ease);
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.2);
}

.uptime-fill.degraded {
    background: var(--color-degraded);
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.2);
}

.uptime-fill.poor {
    background: var(--color-outage);
    box-shadow: 0 0 8px rgba(248, 113, 113, 0.2);
}

/* ===========================================
   Incidents Section
   =========================================== */

.incidents-list {
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.03) 0%,
            rgba(255, 255, 255, 0.005) 30%,
            rgba(255, 255, 255, 0.0) 100%
        ),
        var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 0 0 1px rgba(0, 0, 0, 0.25),
        0 2px 4px rgba(0, 0, 0, 0.1),
        0 8px 24px rgba(0, 0, 0, 0.08);
}

.incident-item {
    padding: 26px 30px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: background var(--fast);
}

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

.incident-item:hover {
    background: rgba(255, 255, 255, 0.015);
}

.incident-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.incident-title {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.incident-service {
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 4px 12px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.0) 100%),
        var(--bg-elevated);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 100px;
    color: var(--text-tertiary);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.incident-time {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
}

.incident-description {
    font-size: 14px;
    color: var(--text-tertiary);
    line-height: 1.6;
}

.incident-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 12px;
    padding: 5px 14px;
    border-radius: 100px;
}

.incident-status .status-indicator { width: 6px; height: 6px; }
.incident-status .status-indicator::after { display: none; }

.incident-status.resolved {
    background: rgba(52, 211, 153, 0.05);
    color: var(--color-operational);
    border: 1px solid rgba(52, 211, 153, 0.08);
}

.incident-status.investigating {
    background: rgba(251, 191, 36, 0.05);
    color: var(--color-degraded);
    border: 1px solid rgba(251, 191, 36, 0.08);
}

.no-incidents {
    padding: 80px 30px;
    text-align: center;
}

.no-incidents-icon {
    font-size: 32px;
    margin-bottom: 16px;
    opacity: 0.25;
}

.no-incidents p {
    color: var(--text-muted);
    font-size: 15px;
}

/* ===========================================
   Reliability Section
   =========================================== */

.reliability-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.reliability-card {
    background:
        linear-gradient(
            170deg,
            rgba(255, 255, 255, 0.04) 0%,
            rgba(255, 255, 255, 0.005) 50%,
            rgba(255, 255, 255, 0.01) 100%
        ),
        var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 34px 28px;
    text-align: center;
    cursor: pointer;
    transition: all var(--normal) var(--ease);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 0 1px rgba(0, 0, 0, 0.25),
        0 2px 4px rgba(0, 0, 0, 0.1),
        0 8px 24px rgba(0, 0, 0, 0.08);
}

.reliability-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 0 0 1px rgba(255, 255, 255, 0.06),
        0 4px 12px rgba(0, 0, 0, 0.2),
        0 16px 48px rgba(0, 0, 0, 0.18);
}

.reliability-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.rank-badge {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--bg-elevated);
    color: var(--text-muted);
}

.rank-badge.rank-1 {
    background: rgba(250, 204, 21, 0.1);
    color: #facc15;
    border: 1px solid rgba(250, 204, 21, 0.15);
}

.rank-badge.rank-2 {
    background: rgba(161, 161, 170, 0.08);
    color: #a1a1aa;
    border: 1px solid rgba(161, 161, 170, 0.1);
}

.rank-badge.rank-3 {
    background: rgba(205, 127, 50, 0.08);
    color: #cd7f32;
    border: 1px solid rgba(205, 127, 50, 0.1);
}

.reliability-service {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
}

.reliability-header + .reliability-label { margin-top: 0; }

.reliability-label {
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
    line-height: 1.2;
}

.reliability-label.tier-excellent { color: #10b981; }
.reliability-label.tier-good { color: #38bdf8; }
.reliability-label.tier-fair { color: #fbbf24; }
.reliability-label.tier-poor { color: #ef4444; }

.reliability-uptime {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-tertiary);
}

.reliability-stats {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 10px;
}

.reliability-heatmap {
    display: grid;
    grid-template-columns: repeat(18, 10px);
    justify-content: center;
    gap: 3px;
    margin-top: 14px;
}

.day-cell {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.day-cell.day-operational {
    background: rgba(52, 211, 153, 0.35);
}

.day-cell.day-degraded {
    background: rgba(251, 191, 36, 0.5);
}

.day-cell.day-outage {
    background: rgba(248, 113, 113, 0.55);
}

.day-cell.day-no_data {
    background: rgba(255, 255, 255, 0.04);
}

/* ===========================================
   Modal — glass panel
   =========================================== */

.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--normal) var(--ease);
}

.modal.active { opacity: 1; visibility: visible; }

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 2, 4, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.modal-content {
    position: relative;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.04) 0%,
            rgba(255, 255, 255, 0.0) 50%
        ),
        var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-2xl);
    padding: 44px;
    max-width: 480px;
    width: calc(100% - 48px);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    transform: translateY(24px) scale(0.96);
    transition: transform var(--normal) var(--ease);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 0 1px rgba(0, 0, 0, 0.4),
        0 24px 80px rgba(0, 0, 0, 0.5);
}

.modal.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 22px;
    right: 22px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 10px;
    border-radius: var(--radius-sm);
    transition: all var(--fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--text-primary);
    background: var(--bg-elevated);
}

.modal-header { margin-bottom: 36px; }

.modal-header h2 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
}

.modal-header p {
    font-size: 15px;
    color: var(--text-tertiary);
    line-height: 1.6;
}

/* ===========================================
   Forms
   =========================================== */

.form-group { margin-bottom: 26px; }

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.form-group input[type="email"],
.form-group input[type="text"] {
    width: 100%;
    padding: 13px 18px;
    font-family: var(--font-sans);
    font-size: 15px;
    background: var(--bg-primary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: all var(--fast);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

.form-group input:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow:
        inset 0 1px 3px rgba(0,0,0,0.2),
        0 0 0 3px rgba(255, 255, 255, 0.04);
}

.form-group input::placeholder { color: var(--text-muted); }

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-default);
    transition: all var(--fast);
    line-height: 1;
}

.checkbox-label:hover {
    background: var(--bg-elevated);
    border-color: var(--border-hover);
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    accent-color: var(--text-primary);
    margin: 0;
    cursor: pointer;
}

.checkbox-label span {
    user-select: none;
}

.form-note {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 22px;
    font-family: var(--font-mono);
}

/* ===========================================
   Sponsor
   =========================================== */

.sponsor-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 22px 24px;
    flex: 1 1 50%;
    max-width: 50%;
    box-sizing: border-box;
    background:
        linear-gradient(
            170deg,
            rgba(255, 255, 255, 0.03) 0%,
            rgba(255, 255, 255, 0.005) 100%
        ),
        var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    text-decoration: none;
    transition: all var(--normal) var(--ease);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 0 0 1px rgba(0, 0, 0, 0.25),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

.sponsor-card:hover {
    border-color: var(--border-hover);
    background:
        linear-gradient(
            170deg,
            rgba(255, 255, 255, 0.05) 0%,
            rgba(255, 255, 255, 0.01) 100%
        ),
        var(--bg-hover);
}

.sponsor-badge {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid var(--border-default);
    white-space: nowrap;
}

.sponsor-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.sponsor-logo {
    opacity: 0.85;
}

.sponsor-text {
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-tertiary);
}

.sponsor-cta {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: color var(--fast);
}

.sponsor-card:hover .sponsor-cta {
    color: var(--text-primary);
}

/* ===========================================
   Disclaimer
   =========================================== */

.disclaimer {
    padding: 0 0 40px;
}

.disclaimer-text {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-muted);
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

/* ===========================================
   Footer
   =========================================== */

.footer {
    border-top: 1px solid rgba(255,255,255,0.03);
    padding: 36px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    color: var(--text-muted);
}

.footer-left svg { color: var(--text-muted); }

.footer-right {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 14px;
}

.footer-meta {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 13px;
}

.footer-sep { color: rgba(255,255,255,0.06); }

.footer-right a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color var(--fast);
}

.footer-right a:hover { color: var(--text-primary); }

/* ===========================================
   Loading States
   =========================================== */

.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0.03) 0%,
        rgba(255,255,255,0.06) 50%,
        rgba(255,255,255,0.03) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 2s infinite ease-in-out;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.status-indicator.loading {
    animation: pulse-glow 2s infinite ease-in-out;
}

/* ===========================================
   Entrance Animations
   =========================================== */

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-inner {
    animation: fade-up 0.7s var(--ease) both;
    animation-delay: 0.1s;
}

.service-card,
.reliability-card {
    animation: fade-up 0.6s var(--ease) both;
}

.service-card:nth-child(1) { animation-delay: 0.06s; }
.service-card:nth-child(2) { animation-delay: 0.12s; }
.service-card:nth-child(3) { animation-delay: 0.18s; }
.service-card:nth-child(4) { animation-delay: 0.24s; }
.service-card:nth-child(5) { animation-delay: 0.3s; }
.service-card:nth-child(6) { animation-delay: 0.36s; }
.service-card:nth-child(7) { animation-delay: 0.42s; }
.service-card:nth-child(8) { animation-delay: 0.48s; }
.service-card:nth-child(9) { animation-delay: 0.54s; }

.reliability-card:nth-child(1) { animation-delay: 0.06s; }
.reliability-card:nth-child(2) { animation-delay: 0.12s; }
.reliability-card:nth-child(3) { animation-delay: 0.18s; }
.reliability-card:nth-child(4) { animation-delay: 0.24s; }
.reliability-card:nth-child(5) { animation-delay: 0.3s; }
.reliability-card:nth-child(6) { animation-delay: 0.36s; }

.section-header {
    animation: fade-up 0.5s var(--ease) both;
}

.incidents-list {
    animation: fade-up 0.6s var(--ease) both;
    animation-delay: 0.1s;
}

/* ===========================================
   Responsive
   =========================================== */

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

@media (max-width: 768px) {
    .header .container { height: 60px; }
    .header-link { display: none; }

    .hero { padding: 36px 0 28px; }
    .hero-top {
        flex-direction: column;
        align-items: center;
        gap: 24px;
        margin-bottom: 28px;
    }
    .hero-intro { text-align: center; }
    .hero-intro-text { margin: 0 auto; }
    .sponsor-card {
        width: 100%;
        flex-direction: row;
        align-items: center;
        gap: 16px;
        padding: 16px 20px;
    }
    .sponsor-text { display: none; }
    .hero-chart-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 14px;
    }
    .hero-chart-header-left { align-items: center; }
    .hero-chart-wrap { display: none; }
    .chart-legend { display: none; }
    .hero-mobile-status { display: block; margin-top: 20px; }
    .hero-meta { justify-content: center; }

    .section { padding-bottom: 56px; }
    .section-divider { margin-bottom: 36px; }
    .section-header { margin-bottom: 28px; }

    .services-grid { grid-template-columns: 1fr; }
    .reliability-grid { grid-template-columns: repeat(2, 1fr); }
    .checkbox-group { grid-template-columns: 1fr; }

    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 20px; }

    .hero { padding: 28px 0 22px; }
    .hero-intro-title { font-size: 26px; }
    .hero-intro-text { font-size: 15px; }
    .hero-headline { font-size: 22px; }
    .section-title { font-size: 22px; }
    .mobile-status-row { padding: 12px 16px; gap: 10px; }
    .mobile-status-name { font-size: 13px; }
    .mobile-status-uptime { font-size: 12px; }
    .mobile-status-card { border-radius: var(--radius-lg); }

    .section { padding-bottom: 40px; }
    .section-divider { margin-bottom: 28px; }
    .section-title { font-size: 24px; }

    .service-card { padding: 24px 22px 20px; border-radius: var(--radius-lg); }
    .reliability-grid { grid-template-columns: 1fr; }
    .reliability-card { border-radius: var(--radius-lg); }
    .reliability-label { font-size: 20px; }
    .incidents-list { border-radius: var(--radius-lg); }
}

/* ===========================================
   Scrollbar & Selection
   =========================================== */

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.1); }

::selection {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
}

/* ===========================================
   Service Detail Pages (sp-*)
   =========================================== */

.sp-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Sponsor Banner (service pages) */
.sp-sponsor-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
    padding: 14px 24px;
    background:
        linear-gradient(170deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.005) 100%),
        var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--normal) var(--ease);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 0 0 1px rgba(0,0,0,0.25),
        0 2px 4px rgba(0,0,0,0.1);
}

.sp-sponsor-banner:hover {
    border-color: var(--border-hover);
    background:
        linear-gradient(170deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%),
        var(--bg-hover);
}

.sp-sponsor-left {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

.sp-sponsor-left .sponsor-logo { opacity: 0.85; flex-shrink: 0; }

.sp-sponsor-text {
    font-size: 13px;
    color: var(--text-tertiary);
    line-height: 1.4;
    white-space: nowrap;
}

.sp-sponsor-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .sp-sponsor-text { display: none; }
    .sp-sponsor-banner { padding: 12px 18px; }
}

.sp-hero {
    position: relative;
    padding: 40px 0 12px;
}

.sp-hero::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(140,140,170,0.06) 0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
}

.sp-hero-inner {
    position: relative;
    z-index: 1;
    animation: fade-up 0.7s var(--ease) both;
    animation-delay: 0.1s;
}

.sp-service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.sp-service-identity {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sp-service-identity .service-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.sp-name {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.2;
}

.sp-tagline-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 2px;
    flex-wrap: wrap;
}

.sp-tagline {
    font-size: 14px;
    color: var(--text-tertiary);
}

.sp-official-link {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
    padding-left: 12px;
    border-left: 1px solid rgba(255,255,255,0.1);
    transition: color var(--fast);
}

.sp-official-link:hover { color: var(--text-secondary); }

/* Stats Cards */
.sp-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 28px;
}

.sp-stat-card {
    background:
        linear-gradient(170deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.005) 100%),
        var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 22px 20px;
    text-align: center;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 0 0 1px rgba(0,0,0,0.2),
        0 2px 6px rgba(0,0,0,0.08);
    animation: fade-up 0.5s var(--ease) both;
}

.sp-stat-card:nth-child(1) { animation-delay: 0.1s; }
.sp-stat-card:nth-child(2) { animation-delay: 0.15s; }
.sp-stat-card:nth-child(3) { animation-delay: 0.2s; }
.sp-stat-card:nth-child(4) { animation-delay: 0.25s; }

.sp-stat-value {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.2;
}

.sp-stat-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.sp-tier-excellent { color: #10b981; }
.sp-tier-good { color: #38bdf8; }
.sp-tier-fair { color: #fbbf24; }
.sp-tier-poor { color: #ef4444; }

/* Chart Controls */
.sp-section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.sp-chart-controls {
    display: flex;
    gap: 4px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 3px;
}

.sp-range-btn {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    padding: 6px 14px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--fast);
}

.sp-range-btn:hover { color: var(--text-secondary); }

.sp-range-btn.active {
    background: var(--bg-elevated);
    color: var(--text-primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.sp-chart-wrap {
    position: relative;
    height: 280px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.005) 40%, transparent 100%),
        var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 0 0 1px rgba(0,0,0,0.25),
        0 2px 4px rgba(0,0,0,0.1),
        0 8px 24px rgba(0,0,0,0.08);
}

.sp-chart-wrap canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Components */
.sp-components {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.005) 30%, transparent 100%),
        var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 0 0 1px rgba(0,0,0,0.25),
        0 2px 4px rgba(0,0,0,0.1),
        0 8px 24px rgba(0,0,0,0.08);
}

.sp-component-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background var(--fast);
}

.sp-component-row:last-child { border-bottom: none; }
.sp-component-row:hover { background: rgba(255,255,255,0.015); }

.sp-component-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
}

.sp-component-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sp-component-status .status-indicator { width: 7px; height: 7px; }
.sp-component-status .status-indicator::after { display: none; }

.sp-component-label {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-tertiary);
}

/* Heatmap */
.sp-heatmap-wrap {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.005) 30%, transparent 100%),
        var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 28px;
    overflow-x: auto;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 0 0 1px rgba(0,0,0,0.25),
        0 2px 4px rgba(0,0,0,0.1),
        0 8px 24px rgba(0,0,0,0.08);
}

.sp-section-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
}

.sp-heatmap {
    min-width: 340px;
}

.sp-heatmap-empty {
    background: transparent;
    cursor: default;
    pointer-events: none;
}

.sp-heatmap-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}

.sp-heatmap-header-row {
    margin-bottom: 6px;
}

.sp-heatmap-day-label {
    width: 40px;
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    text-align: right;
    padding-right: 8px;
}

.sp-heatmap-hour-label {
    flex: 1;
    min-width: 0;
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-muted);
    text-align: center;
    overflow: hidden;
}

.sp-heatmap-cell {
    flex: 1;
    min-width: 0;
    height: 28px;
    border-radius: 4px;
    transition: transform var(--fast), box-shadow var(--fast);
    cursor: default;
}

.sp-heatmap-cell:hover {
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(255,255,255,0.1);
    z-index: 1;
    position: relative;
}

.sp-heatmap-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.sp-heatmap-legend-label {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.sp-heatmap-legend-scale {
    display: flex;
    gap: 3px;
}

.sp-heatmap-legend-block {
    width: 14px;
    height: 14px;
    border-radius: 3px;
}

/* Summary */
.sp-summary-card {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.005) 30%, transparent 100%),
        var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 32px 36px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 0 0 1px rgba(0,0,0,0.25),
        0 2px 4px rgba(0,0,0,0.1),
        0 8px 24px rgba(0,0,0,0.08);
}

.sp-summary-card strong {
    color: var(--text-primary);
    font-weight: 600;
}

.sp-summary-lead p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.sp-summary-divider {
    height: 1px;
    background: linear-gradient(90deg, var(--border-default), transparent 80%);
    margin: 20px 0;
}

.sp-summary-details {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sp-summary-row {
    display: flex;
    align-items: baseline;
    gap: 14px;
}

.sp-summary-marker {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 8px;
    opacity: 0.6;
}

.sp-summary-row p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-tertiary);
    margin: 0;
}

.sp-summary-row p strong {
    color: var(--text-secondary);
}

.sp-summary-trend {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.sp-trend-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 100px;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.sp-trend-badge.sp-trend-stable {
    background: rgba(52, 211, 153, 0.08);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.12);
}

.sp-trend-badge.sp-trend-up {
    background: rgba(56, 189, 248, 0.08);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.12);
}

.sp-trend-badge.sp-trend-down {
    background: rgba(251, 191, 36, 0.08);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.12);
}

.sp-trend-note {
    font-size: 13px;
    color: var(--text-muted);
}

.sp-summary-empty {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-tertiary);
}

/* Status bg helper for chart tooltip */
.status-bg-operational { background: var(--color-operational); }
.status-bg-degraded { background: var(--color-degraded); }
.status-bg-outage { background: var(--color-outage); }
.status-bg-unknown { background: var(--color-unknown); }

/* Service Page Responsive */
@media (max-width: 768px) {
    .sp-hero { padding: 28px 0 8px; }
    .sp-name { font-size: 24px; }
    .sp-stats { grid-template-columns: repeat(2, 1fr); }
    .sp-stat-value { font-size: 20px; }
    .sp-chart-wrap { height: 220px; }
    .sp-section-header-row { flex-direction: column; align-items: flex-start; }
    .sp-heatmap-wrap { padding: 20px 16px; }
}

@media (max-width: 480px) {
    .sp-service-header { flex-direction: column; align-items: flex-start; gap: 14px; }
    .sp-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .sp-stat-card { padding: 18px 14px; }
    .sp-stat-value { font-size: 18px; }
    .sp-chart-wrap { height: 200px; }
}
