/* PingStat — landing styles. Dark tech-minimalism, no external deps. */

:root {
    --bg: #0b0f17;
    --bg-elev: #121826;
    --bg-elev-2: #18202f;
    --border: #1f2a3d;
    --border-strong: #2a3a56;
    --text: #e6ecf5;
    --text-dim: #9aa7bd;
    --text-mute: #6b7890;
    --accent: #4cc9f0;
    --accent-2: #7ee8a2;
    --up: #34d399;
    --warn: #fbbf24;
    --down: #f87171;
    --radius: 14px;
    --radius-sm: 8px;
    --maxw: 1120px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Subtle background grid */
body {
    background-image:
        radial-gradient(circle at 20% -10%, rgba(76, 201, 240, 0.10), transparent 50%),
        radial-gradient(circle at 85% 5%, rgba(126, 232, 162, 0.08), transparent 45%),
        linear-gradient(var(--bg), var(--bg));
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--text); letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.5rem); line-height: 1.1; margin: 0 0 1rem; font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.1rem; margin: 0 0 0.5rem; }
h4 { font-size: 0.85rem; margin: 0 0 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-mute); }
p { margin: 0 0 1rem; color: var(--text-dim); }

.mono { font-family: var(--mono); font-size: 0.92em; }

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0;
    margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

.skip {
    position: absolute; left: -9999px; top: 0;
    background: var(--accent); color: var(--bg); padding: 8px 14px;
}
.skip:focus { left: 16px; top: 16px; z-index: 1000; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(11, 15, 23, 0.82);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 64px;
}
.logo {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--text); text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo-mark { color: var(--accent); }
.logo-text { font-weight: 700; font-size: 1.1rem; }
.logo-tld { color: var(--text-mute); font-weight: 500; }

.main-nav {
    display: flex; align-items: center; gap: 22px;
}
.main-nav a {
    color: var(--text-dim); font-size: 0.95rem;
}
.main-nav a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
    padding: 8px 14px; border: 1px solid var(--border-strong);
    border-radius: 999px; color: var(--text) !important;
}
.nav-cta:hover { border-color: var(--accent); }

@media (max-width: 640px) {
    .main-nav a:not(.nav-cta) { display: none; }
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 20px; border-radius: 10px; font-weight: 600;
    text-decoration: none; border: 1px solid transparent;
    transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease;
    font-size: 0.98rem; cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #062233;
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost {
    background: transparent; color: var(--text);
    border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--accent); }

/* Hero */
.hero {
    padding: 80px 0 60px;
    position: relative;
}
.hero h1 { max-width: 18ch; }
.lede {
    max-width: 62ch; font-size: 1.1rem; color: var(--text-dim);
}

.pre-alpha-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border: 1px solid var(--border-strong);
    border-radius: 999px; font-size: 0.85rem; color: var(--text-dim);
    margin-bottom: 28px; background: rgba(18, 24, 38, 0.6);
}

.hero-actions {
    display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px;
}

.counters {
    margin-top: 56px;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.counter {
    background: var(--bg-elev);
    padding: 22px 20px;
}
.counter-value {
    font-family: var(--mono);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}
.counter-label {
    color: var(--text-mute); font-size: 0.85rem; margin-top: 4px;
}
@media (max-width: 800px) {
    .counters { grid-template-columns: repeat(2, 1fr); }
}

/* Dots / status indicators */
.dot {
    display: inline-block; width: 9px; height: 9px; border-radius: 50%;
    background: var(--text-mute); flex: 0 0 9px;
}
.dot-up { background: var(--up); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); }
.dot-warn { background: var(--warn); }
.dot-down { background: var(--down); }

.dot-pulse { background: var(--accent-2); animation: pulse 2s infinite; }
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(126, 232, 162, 0.55); }
    70%  { box-shadow: 0 0 0 8px rgba(126, 232, 162, 0); }
    100% { box-shadow: 0 0 0 0 rgba(126, 232, 162, 0); }
}

/* Features */
.features { padding: 70px 0; border-top: 1px solid var(--border); }
.section-title { margin-bottom: 8px; }
.section-sub { max-width: 60ch; color: var(--text-dim); margin-bottom: 36px; }

.feature-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 20px;
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.feature-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.feature-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: rgba(76, 201, 240, 0.12);
    color: var(--accent);
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
}
.feature-card p { margin: 0; font-size: 0.93rem; }

/* Status dashboard */
.status { padding: 70px 0; border-top: 1px solid var(--border); }
.section-head {
    display: flex; justify-content: space-between; align-items: flex-end;
    gap: 24px; margin-bottom: 32px; flex-wrap: wrap;
}
.status-legend {
    display: flex; gap: 18px; color: var(--text-dim); font-size: 0.88rem;
}
.status-legend span { display: inline-flex; align-items: center; gap: 6px; }

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 14px;
}

.status-card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 18px 16px;
    display: flex; flex-direction: column; gap: 12px;
    transition: border-color 0.15s ease;
}
.status-card:hover { border-color: var(--border-strong); }

.status-card header {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.status-card h3 {
    font-size: 0.98rem; margin: 0;
    font-family: var(--mono);
    font-weight: 600;
    color: var(--text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.badge {
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em;
    padding: 3px 8px; border-radius: 999px; text-transform: uppercase;
    flex-shrink: 0;
}
.badge-up   { background: rgba(52, 211, 153, 0.14); color: var(--up); border: 1px solid rgba(52, 211, 153, 0.3); }
.badge-warn { background: rgba(251, 191, 36, 0.12); color: var(--warn); border: 1px solid rgba(251, 191, 36, 0.3); }
.badge-down { background: rgba(248, 113, 113, 0.14); color: var(--down); border: 1px solid rgba(248, 113, 113, 0.3); }

/* Uptime bar (last 30 probes) */
.uptime-bar {
    display: grid;
    grid-template-columns: repeat(30, 1fr);
    gap: 2px;
    height: 28px;
}
.uptime-bar span {
    background: var(--up); border-radius: 2px; opacity: 0.85;
}
.uptime-bar span.warn { background: var(--warn); }
.uptime-bar span.down { background: var(--down); }

.status-meta {
    display: flex; justify-content: space-between; gap: 8px;
    font-size: 0.82rem; color: var(--text-mute); margin: 0;
    font-family: var(--mono);
}

.status-footnote {
    margin-top: 24px; font-size: 0.85rem; color: var(--text-mute);
}

/* Roadmap */
.roadmap { padding: 70px 0; border-top: 1px solid var(--border); }
.timeline {
    list-style: none; padding: 0; margin: 0;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
    counter-reset: step;
}
@media (max-width: 900px) { .timeline { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .timeline { grid-template-columns: 1fr; } }

.timeline li {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    position: relative;
}
.timeline li.done { opacity: 0.75; }
.timeline li.done::after {
    content: "✓"; position: absolute; top: 16px; right: 18px;
    color: var(--up); font-weight: 700;
}
.timeline li.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(76, 201, 240, 0.25), var(--shadow);
}
.timeline li.active::after {
    content: ""; position: absolute; top: 18px; right: 18px;
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--accent-2); animation: pulse 2s infinite;
}
.milestone {
    font-family: var(--mono); font-size: 0.78rem;
    color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.08em;
}
.timeline h3 { margin: 8px 0 6px; }
.timeline p { margin: 0; font-size: 0.9rem; }

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 56px 0 24px;
    background: var(--bg-elev);
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 40px;
}
@media (max-width: 800px) { .footer-inner { grid-template-columns: 1fr; } }

.footer-brand p { margin: 8px 0 0; color: var(--text-mute); font-size: 0.9rem; }
.footer-nav {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 540px) { .footer-nav { grid-template-columns: repeat(2, 1fr); } }

.footer-nav a {
    display: block; color: var(--text-dim); font-size: 0.9rem; padding: 4px 0;
}
.footer-nav a:hover { color: var(--text); text-decoration: none; }

.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border);
    color: var(--text-mute); font-size: 0.82rem; flex-wrap: wrap; gap: 12px;
}
