/* Heblish landing page — clean, modern, dark by default with light-mode support. */

:root {
    --bg: #0e1422;
    --bg-elev: #161e30;
    --bg-soft: #1f2a44;
    --fg: #e6ebf5;
    --fg-mute: #a7b1c5;
    --accent: #5b8def;
    --accent-soft: rgba(91, 141, 239, 0.18);
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
    --radius: 12px;
    --radius-lg: 18px;
    --maxw: 960px;
}

@media (prefers-color-scheme: light) {
    :root {
        --bg: #f7f9fc;
        --bg-elev: #ffffff;
        --bg-soft: #eef2f9;
        --fg: #0e1422;
        --fg-mute: #525a6e;
        --accent: #2f5fd2;
        --accent-soft: rgba(47, 95, 210, 0.10);
        --border: rgba(15, 22, 40, 0.10);
        --shadow: 0 30px 60px -20px rgba(15, 22, 40, 0.18);
    }
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter",
                 "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--fg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, kbd { font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace; font-size: 0.92em; }
code {
    background: var(--bg-soft);
    padding: 0.1em 0.35em;
    border-radius: 4px;
}
kbd {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    padding: 0.15em 0.5em;
    border-radius: 4px;
    margin: 0 1px;
}

/* ─── topbar ─────────────────────────────────────────────────────────────── */

.topbar {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--fg);
    font-weight: 600;
    font-size: 18px;
    text-decoration: none;
}
.brand img { border-radius: 7px; }
.topbar nav {
    display: flex;
    gap: 24px;
    font-size: 15px;
}
.topbar nav a { color: var(--fg-mute); }
.topbar nav a:hover { color: var(--fg); text-decoration: none; }

/* ─── hero ───────────────────────────────────────────────────────────────── */

main { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.hero {
    text-align: center;
    padding: 40px 0 64px;
}
.hero-icon {
    border-radius: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}
.hero h1 {
    font-size: clamp(28px, 4.5vw, 44px);
    line-height: 1.15;
    margin: 0 0 16px;
    letter-spacing: -0.01em;
}
.lede {
    font-size: clamp(16px, 1.8vw, 19px);
    color: var(--fg-mute);
    max-width: 640px;
    margin: 0 auto 32px;
}

.cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 48px;
}
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 16px;
    transition: transform 0.06s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary {
    background: var(--accent);
    color: #fff;
}
.meta { color: var(--fg-mute); font-size: 13px; }

/* demo strip */

.demos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 8px;
}
.demo {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 20px;
    box-shadow: var(--shadow);
}
.demo-typed, .demo-fixed {
    font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
    font-size: 18px;
    min-width: 4ch;
    text-align: center;
}
.demo-typed { color: var(--fg-mute); }
.demo-fixed { color: var(--fg); font-weight: 600; }
.demo-arrow { color: var(--accent); font-size: 18px; }
.cursor {
    display: inline-block;
    width: 1ch;
    height: 1em;
    background: var(--fg-mute);
    vertical-align: -0.15em;
    margin-left: 1px;
    animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ─── sections ───────────────────────────────────────────────────────────── */

.section {
    padding: 56px 0;
    border-top: 1px solid var(--border);
}
.section h2 {
    font-size: clamp(22px, 3vw, 28px);
    margin: 0 0 24px;
    letter-spacing: -0.01em;
}
.section h3 {
    font-size: 17px;
    margin: 0 0 8px;
    font-weight: 600;
}
.section p {
    color: var(--fg-mute);
    margin: 0 0 12px;
}
.section p:last-child { margin-bottom: 0; }

.cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}

/* hotkey table */
.hotkeys {
    border-collapse: collapse;
    width: 100%;
    max-width: 640px;
}
.hotkeys th {
    text-align: left;
    padding: 14px 16px 14px 0;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.hotkeys td {
    padding: 14px 0;
    color: var(--fg-mute);
    border-bottom: 1px solid var(--border);
}
.hotkeys tr:last-child th,
.hotkeys tr:last-child td { border-bottom: none; }

/* checklist */
.checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}
.checklist li {
    padding: 10px 0 10px 32px;
    color: var(--fg-mute);
    position: relative;
}
.checklist li::before {
    content: "✓";
    color: var(--accent);
    position: absolute;
    left: 0;
    top: 10px;
    font-weight: 700;
}
.checklist li strong {
    color: var(--fg);
    font-weight: 600;
}

/* FAQ details */
details {
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}
details:last-of-type { border-bottom: none; }
summary {
    cursor: pointer;
    font-weight: 500;
    list-style: none;
    padding-right: 28px;
    position: relative;
    color: var(--fg);
}
summary::-webkit-details-marker { display: none; }
summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: -2px;
    color: var(--fg-mute);
    font-size: 22px;
    line-height: 1;
    transition: transform 0.15s ease;
}
details[open] summary::after { transform: rotate(45deg); }
details p {
    padding-top: 10px;
    color: var(--fg-mute);
}

/* changelog */
.release {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
}
.release h3 {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 10px;
    font-size: 18px;
}
.release-date {
    font-weight: 400;
    color: var(--fg-mute);
    font-size: 14px;
}
.release ul {
    margin: 0;
    padding-left: 18px;
    color: var(--fg-mute);
}
.release li { padding: 3px 0; }

/* ─── footer ─────────────────────────────────────────────────────────────── */

footer {
    max-width: var(--maxw);
    margin: 40px auto 60px;
    padding: 28px;
    color: var(--fg-mute);
    font-size: 14px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
}
footer a { color: var(--fg-mute); }
footer a:hover { color: var(--fg); }
.footer-meta { color: var(--fg-mute); opacity: 0.8; }

/* ─── small screens ──────────────────────────────────────────────────────── */

@media (max-width: 640px) {
    .topbar nav { display: none; }
    .demos { flex-direction: column; align-items: stretch; }
    .demo { justify-content: space-between; }
}
