/* ===========================================
   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 Intro */
.hero-intro {
    margin-bottom: 50px;
}

.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: 240px;
    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: 6px;
    margin-top: 14px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    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: 12px;
}

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

/* 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-score { margin-top: 0; }

.reliability-score {
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -0.05em;
    margin-bottom: 4px;
    line-height: 1.1;
}

.reliability-score.grade-a { color: var(--color-operational); }
.reliability-score.grade-b { color: #6ee7b7; }
.reliability-score.grade-c { color: var(--color-degraded); }
.reliability-score.grade-d { color: #fb923c; }
.reliability-score.grade-f { color: var(--color-outage); }

.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-trend {
    font-family: var(--font-mono);
    font-size: 13px;
    margin-top: 10px;
}

.trend-up { color: var(--color-operational); }
.trend-down { color: var(--color-outage); }
.trend-stable { color: var(--text-muted); }

/* ===========================================
   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-bar {
    padding: 28px 0 0 0;
}

.sponsor-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px 30px;
    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;
    flex-shrink: 0;
}

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

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

.sponsor-text {
    font-size: 14px;
    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;
    flex-shrink: 0;
    transition: color var(--fast);
}

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

@media (max-width: 768px) {
    .sponsor-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 22px 24px;
    }

    .sponsor-body {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ===========================================
   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; }

.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-intro { text-align: center; margin-bottom: 28px; }
    .hero-intro-text { margin: 0 auto; }
    .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-score { font-size: 40px; }
    .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);
}
