:root {
    --bg: #0f1419;
    --bg-alt: #151b23;
    --surface: #1c242e;
    --border: #2a3441;
    --text: #e6edf3;
    --text-muted: #8b949e;
    --accent: #d70a53;       /* Debian red-ish */
    --accent-soft: #ff4d88;
    --accent-contrast: #ffffff;
    --link: #58a6ff;
    --code-bg: #0b1014;
    --radius: 10px;
    --shadow: 0 4px 18px rgba(0,0,0,.35);
    --max: 1100px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

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

code, pre {
    font-family: "JetBrains Mono", Menlo, Consolas, monospace;
    font-size: 0.92em;
}
code {
    background: var(--code-bg);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--border);
}
pre {
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    overflow-x: auto;
}
pre code { background: transparent; border: none; padding: 0; }

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

/* --- Hero --- */
.hero {
    background:
        radial-gradient(900px 400px at 85% -10%, rgba(215, 10, 83, .25), transparent 60%),
        radial-gradient(700px 350px at 10% 120%, rgba(88, 166, 255, .15), transparent 60%),
        linear-gradient(180deg, #0e1319 0%, #0f1419 100%);
    padding: 100px 0 80px;
    border-bottom: 1px solid var(--border);
}
.badge {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid var(--accent);
    color: var(--accent-soft);
    background: rgba(215, 10, 83, .1);
    border-radius: 999px;
    font-size: 0.8rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    margin: 18px 0 12px;
    letter-spacing: -0.02em;
}
.tagline {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 0 28px;
}

.cta { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
    display: inline-block;
    padding: 11px 22px;
    border-radius: var(--radius);
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform .1s ease, background .15s ease;
    cursor: pointer;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary {
    background: var(--accent);
    color: var(--accent-contrast);
}
.btn-primary:hover { background: var(--accent-soft); }
.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface); }

/* --- Sections --- */
.section {
    padding: 72px 0;
    border-bottom: 1px solid var(--border);
}
.section.alt { background: var(--bg-alt); }
.section h2 {
    font-size: 1.9rem;
    margin: 0 0 24px;
    letter-spacing: -0.01em;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: start;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
@media (max-width: 800px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .hero { padding: 70px 0 50px; }
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 24px;
    box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 10px; color: var(--accent-soft); }
.card p  { margin: 0 0 14px; color: var(--text-muted); }
.card ul { margin: 0; padding-left: 18px; }
.card ul li { margin-bottom: 6px; }

.spec { list-style: none; padding: 0; margin: 0; }
.spec li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
    color: var(--text-muted);
}
.spec li strong { color: var(--text); }
.spec li:last-child { border-bottom: none; }

.link { font-weight: 600; }
.muted { color: var(--text-muted); }
.center { text-align: center; }

/* --- Status widget --- */
.status-section {
    background: linear-gradient(180deg, #0c1116 0%, #0f1419 100%);
    padding: 34px 0 50px;
    border-bottom: 1px solid var(--border);
    margin-top: -1px;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
@media (max-width: 800px) {
    .status-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .status-grid { grid-template-columns: 1fr; }
}

.status-tile {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    box-shadow: var(--shadow);
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.tile-label {
    font-size: 0.78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.tile-value {
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.15;
}
.tile-sub {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.pill {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 1.05rem;
    font-weight: 600;
    background: #2a3441;
    color: var(--text-muted);
    border: 1px solid transparent;
}
.pill-ok       { background: rgba(46, 160, 67, .15);  color: #3fb950; border-color: rgba(46, 160, 67, .35); }
.pill-syncing  { background: rgba(88, 166, 255, .15); color: #58a6ff; border-color: rgba(88, 166, 255, .35); animation: pulse 1.6s ease-in-out infinite; }
.pill-stale    { background: rgba(210, 153, 34, .15); color: #e3b341; border-color: rgba(210, 153, 34, .35); }
.pill-never    { background: rgba(139, 148, 158, .12); color: var(--text-muted); border-color: rgba(139, 148, 158, .3); }
.pill-loading  { background: rgba(139, 148, 158, .10); color: var(--text-muted); }
.pill-error    { background: rgba(248, 81, 73, .15);  color: #ff6b63; border-color: rgba(248, 81, 73, .35); }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: .55; }
}

.status-meta {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    font-size: 0.88rem;
    color: var(--text-muted);
}
.status-meta code {
    background: var(--code-bg);
    color: var(--text);
    font-size: 0.82rem;
}

.sub-list {
    margin-top: 6px;
    margin-bottom: 0;
    padding-left: 20px;
}
.sub-list li { margin-bottom: 4px; }
.sub-list small { display: block; margin-top: 4px; }

/* --- Footer --- */
footer {
    padding: 24px 0 40px;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.footer-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
