/*
 * DockerHub — site styles
 *
 * Self-hosted on purpose. No CDN, no external font, no build step: every
 * external <script>/<link> would need an SRI hash to be safe, and the
 * simplest way to have no CDN risk is to have no CDN.
 *
 * The palette is taken from the app's own dark theme so the site and the
 * product look like the same thing.
 */

:root {
    --bg: #0a0b0e;
    --bg-raised: #12141a;
    --surface: #171a21;
    --surface-raised: #1d212a;
    --stroke: #262b36;
    --stroke-strong: #333a48;

    --text: #f2f4f8;
    --text-secondary: #a8b0c0;
    --text-tertiary: #6f7889;

    --accent: #3d7dfb;
    --accent-soft: rgba(61, 125, 251, 0.14);
    --success: #2fa563;
    --warning: #c98a13;
    --danger: #e0424f;

    --radius: 14px;
    --radius-lg: 22px;
    --maxw: 1080px;

    --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

img { max-width: 100%; height: auto; display: block; }

.wrap {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: 24px;
}

/* ---------------------------------------------------------------- header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(10, 11, 14, 0.82);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--stroke);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 64px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-weight: 650;
    letter-spacing: -0.01em;
}

.brand:hover { text-decoration: none; }

.brand img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--stroke);
}

.site-nav {
    margin-left: auto;
    display: flex;
    gap: 8px;
    align-items: center;
}

.site-nav a {
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 15px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.site-nav a:hover {
    color: var(--text);
    background: var(--surface);
    text-decoration: none;
}

/* ------------------------------------------------------------------ hero */

.hero {
    padding: 88px 0 64px;
    text-align: center;
    background:
        radial-gradient(900px 420px at 50% -10%, rgba(61, 125, 251, 0.18), transparent 70%),
        var(--bg);
}

.hero-icon {
    width: 104px;
    height: 104px;
    border-radius: 24px;
    margin: 0 auto 28px;
    border: 1px solid var(--stroke);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
}

.hero h1 {
    font-size: clamp(2.1rem, 6vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 0 0 18px;
}

.hero .lede {
    max-width: 62ch;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: clamp(1rem, 2.4vw, 1.18rem);
}

.eyebrow {
    display: inline-block;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid rgba(61, 125, 251, 0.28);
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 22px;
}

/* --------------------------------------------------------------- section */

section { padding: 72px 0; }
section + section { border-top: 1px solid var(--stroke); }

.section-head { max-width: 64ch; margin-bottom: 40px; }

.section-head h2 {
    font-size: clamp(1.5rem, 3.6vw, 2.1rem);
    letter-spacing: -0.02em;
    margin: 0 0 12px;
}

.section-head p { margin: 0; color: var(--text-secondary); }

/* ----------------------------------------------------------------- cards */

.grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
}

.card {
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    padding: 24px;
}

.card h3 {
    margin: 0 0 10px;
    font-size: 1.06rem;
    letter-spacing: -0.01em;
}

.card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.97rem;
}

.card .glyph {
    /* `display` matters: this is a <span>, and width/height are ignored on an
       inline box — the inline SVG then sized itself to the card and rendered
       a 500px icon that pushed the heading out of view. */
    display: block;
    width: 38px;
    height: 38px;
    margin-bottom: 16px;
    color: var(--accent);
}

.card .glyph svg { display: block; width: 100%; height: 100%; }

/* --------------------------------------------------------- promise cards */

.promise {
    border-left: 3px solid var(--accent);
    background: linear-gradient(90deg, var(--accent-soft), transparent 60%), var(--surface);
}

/* ----------------------------------------------------------- screenshots */

.shots {
    display: grid;
    gap: 26px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.shot figure {
    margin: 0;
    background: var(--bg-raised);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-lg);
    padding: 12px;
}

.shot img {
    border-radius: 16px;
    border: 1px solid var(--stroke);
}

.shot figcaption { padding: 16px 6px 4px; }

.shot h3 {
    margin: 0 0 6px;
    font-size: 1rem;
}

.shot p {
    margin: 0;
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

/* ------------------------------------------------------------------ note */

.note {
    margin-top: 32px;
    padding: 18px 20px;
    border: 1px solid var(--stroke);
    border-left: 3px solid var(--warning);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text-secondary);
    font-size: 0.93rem;
}

/* ------------------------------------------------------------------ prose */

.prose { max-width: 72ch; }

.prose h1 {
    font-size: clamp(1.9rem, 5vw, 2.6rem);
    letter-spacing: -0.025em;
    margin: 0 0 10px;
}

.prose .updated {
    color: var(--text-tertiary);
    font-family: var(--mono);
    font-size: 13px;
    margin: 0 0 32px;
}

.prose .summary {
    font-size: 1.1rem;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    padding: 22px 24px;
    margin: 0 0 44px;
}

.prose h2 {
    font-size: 1.22rem;
    letter-spacing: -0.01em;
    margin: 44px 0 14px;
    padding-top: 22px;
    border-top: 1px solid var(--stroke);
}

.prose h2:first-of-type { border-top: 0; padding-top: 0; }

.prose p { color: var(--text-secondary); }

.prose ul { padding-left: 22px; color: var(--text-secondary); }
.prose li { margin-bottom: 8px; }

/* --------------------------------------------------------------- contact */

.contact {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--mono);
    font-size: 15px;
    background: var(--surface);
    border: 1px solid var(--stroke-strong);
    border-radius: 999px;
    padding: 14px 22px;
    min-height: 44px;
}

/* ---------------------------------------------------------------- footer */

.site-footer {
    border-top: 1px solid var(--stroke);
    padding: 44px 0 60px;
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

.site-footer .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 28px;
    align-items: center;
}

/* Referential-use notice. Its own block above the footer row rather than a
   flex child, so it wraps as a paragraph instead of fighting the nav. */
.site-footer .trademark {
    display: block;
    margin-bottom: 16px;
}

.site-footer .trademark p {
    margin: 0;
    max-width: 72ch;
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

.site-footer nav { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--text-secondary); }

/* --------------------------------------------------------- light scheme */
/*
 * The app can be pinned light, so the site respects the same preference
 * rather than forcing dark on someone who asked their OS for light.
 */
@media (prefers-color-scheme: light) {
    :root {
        --bg: #f7f8fb;
        --bg-raised: #ffffff;
        --surface: #ffffff;
        --surface-raised: #f2f4f8;
        --stroke: #e2e6ee;
        --stroke-strong: #cfd5e1;

        --text: #10131a;
        --text-secondary: #4d5566;
        --text-tertiary: #78818f;
    }

    .site-header { background: rgba(247, 248, 251, 0.86); }

    .hero {
        background:
            radial-gradient(900px 420px at 50% -10%, rgba(61, 125, 251, 0.12), transparent 70%),
            var(--bg);
    }

    .hero-icon { box-shadow: 0 18px 44px rgba(16, 19, 26, 0.18); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
