/* Focus landing page. Palette and layout follow the Rosé Pine design. */

:root {
    --bg: #191724;
    --surface: #1f1d2e;
    --head: #e0def4;
    --text: #c8c5e0;
    --muted: #908caa;
    --border: rgba(224, 222, 244, .09);
    --band: #1c1a29;
    --chrome: #211f30;
    --eb: #c4a7e7;
    --foam: #9ccfd8;
    --iris: #c4a7e7;
    --gold: #f6c177;
    --rose: #eb6f92;
    --pbg: #f6c177;
    --pfg: #2a1e00;

    --display: 'Space Grotesk', system-ui, sans-serif;
    --body: 'Instrument Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--body);
    -webkit-font-smoothing: antialiased;
}

.page {
    max-width: 1180px;
    margin: 0 auto;
    background: var(--bg);
    overflow: hidden;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ---- shared bits ---- */

.mark {
    border-radius: 8px;
    background: radial-gradient(circle at 50% 38%, #221f31, #16141f);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(224, 222, 244, .08);
    flex: none;
}

/* Alpha-release marker on the product name. max() keeps it legible in the
   13px footer and 12px window bars, where a plain em size would collapse. */
.alpha {
    color: var(--gold);
    font-size: max(9px, .5em);
    font-weight: 700;
    line-height: 0;
    margin-left: .12em;
}

.eyebrow {
    font-family: var(--display);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--eb);
}

.section h2 {
    font-family: var(--display);
    font-weight: 600;
    font-size: 38px;
    line-height: 1.1;
    letter-spacing: -.02em;
    color: var(--head);
    margin: 16px 0 0;
}

.section p.lede {
    font-size: 17px;
    line-height: 1.65;
    color: var(--muted);
    margin: 18px 0 0;
}

.points {
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.points li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15.5px;
    color: var(--head);
    font-weight: 500;
}

.points li::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--dot, var(--foam));
    flex: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 15px 26px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    font-family: var(--display);
    white-space: nowrap;
    cursor: pointer;
    transition: transform .12s ease, filter .12s ease, border-color .12s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--pbg); color: var(--pfg); }
.btn-primary:hover { filter: brightness(1.06); }

.btn-secondary {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--head);
}

.btn-secondary:hover { border-color: rgba(224, 222, 244, .22); }

/* ---- window chrome around screenshots ---- */

.window {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 26px 64px rgba(10, 8, 18, .4);
    background: var(--chrome);
}

.window-bar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 11px 15px;
    border-bottom: 1px solid rgba(224, 222, 244, .08);
}

.window-bar i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex: none;
}

.window-bar i:nth-child(1) { background: #ff5f57; }
.window-bar i:nth-child(2) { background: #febc2e; }
.window-bar i:nth-child(3) { background: #28c840; }

.window-bar span {
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
    font-family: var(--display);
    font-size: 12px;
    color: #6e6a86;
    pointer-events: none;
}

.window img { display: block; width: 100%; height: auto; }

/* ---- nav ---- */

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 56px;
    border-bottom: 1px solid var(--border);
}

.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand .mark { width: 32px; height: 32px; }
.nav-brand .mark img { width: 22px; height: 22px; }

.nav-brand b {
    font-family: var(--display);
    font-weight: 600;
    font-size: 20px;
    letter-spacing: -.01em;
    color: var(--head);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 34px;
    font-size: 15px;
    color: var(--muted);
    font-weight: 500;
}

.nav-links a:hover { color: var(--head); }

.nav .btn {
    padding: 11px 20px;
    border-radius: 10px;
    font-size: 14px;
}

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

.hero { padding: 92px 56px 78px; text-align: center; }

.hero .eyebrow { letter-spacing: .22em; }

.hero h1 {
    font-family: var(--display);
    font-weight: 600;
    font-size: 62px;
    line-height: 1.03;
    letter-spacing: -.03em;
    color: var(--head);
    margin: 22px auto 0;
    max-width: 780px;
}

.hero p {
    font-size: 20px;
    line-height: 1.55;
    color: var(--muted);
    max-width: 600px;
    margin: 26px auto 0;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: flex-start;
    margin-top: 38px;
    flex-wrap: wrap;
}

.hero-actions .stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.hero-actions .aside {
    font-size: 14px;
    color: var(--muted);
    white-space: nowrap;
}

.hero-actions .aside:hover { color: var(--head); }

.hero .window {
    max-width: 1010px;
    margin: 56px auto 0;
    border-radius: 16px;
    box-shadow: 0 40px 90px rgba(10, 8, 18, .55);
}

.hero .window-bar { padding: 12px 16px; }
.hero .window-bar i { width: 11px; height: 11px; }

/* ---- feature sections ---- */

.section {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 60px;
    align-items: center;
    padding: 84px 72px;
    border-top: 1px solid var(--border);
}

.section.flip { grid-template-columns: 1.05fr 1fr; }
.section.band { background: var(--band); }
.section.narrow-media { grid-template-columns: .95fr 1fr; }

.insights {
    padding: 84px 72px;
    background: var(--band);
    border-top: 1px solid var(--border);
    text-align: center;
}

.insights h2 {
    font-family: var(--display);
    font-weight: 600;
    font-size: 38px;
    line-height: 1.1;
    letter-spacing: -.02em;
    color: var(--head);
    margin: 16px auto 0;
    max-width: 620px;
}

.insights p {
    font-size: 17px;
    line-height: 1.65;
    color: var(--muted);
    margin: 18px auto 0;
    max-width: 600px;
}

.insights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    margin-top: 44px;
    text-align: left;
}

/* ---- download hub ---- */

.hub {
    padding: 96px 56px;
    text-align: center;
    background: var(--band);
    border-top: 1px solid var(--border);
}

.hub .mark {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    margin: 0 auto;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(224, 222, 244, .08);
}

.hub .mark img { width: 40px; height: 40px; }

.hub h2 {
    font-family: var(--display);
    font-weight: 600;
    font-size: 44px;
    letter-spacing: -.025em;
    color: var(--head);
    margin: 24px 0 0;
}

.hub p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--muted);
    max-width: 520px;
    margin: 16px auto 0;
}

.hub-grid {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: flex-start;
    margin-top: 32px;
    flex-wrap: wrap;
}

.hub-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.hub-item .btn { padding: 16px 26px; }
.hub-item .btn .glyph { font-size: 17px; }

.hub-item small {
    font-size: 12.5px;
    color: var(--muted);
    white-space: nowrap;
}

.hub-empty {
    margin: 28px auto 0;
    font-size: 15px;
    color: var(--muted);
}

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

.footer {
    padding: 26px 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--muted);
    background: var(--bg);
    flex-wrap: wrap;
}

.footer-brand { display: flex; align-items: center; gap: 9px; }
.footer-brand .mark { width: 22px; height: 22px; border-radius: 6px; box-shadow: none; }
.footer-brand .mark img { width: 15px; height: 15px; }

.footer-brand b {
    font-family: var(--display);
    font-weight: 600;
    color: var(--head);
}

.footer-links { display: flex; gap: 22px; }

/* ---- responsive ---- */

@media (max-width: 980px) {
    .nav { padding: 18px 24px; }
    .nav-links { display: none; }

    .hero { padding: 64px 24px 56px; }
    .hero h1 { font-size: 42px; }
    .hero p { font-size: 18px; }

    .section,
    .section.flip,
    .section.narrow-media {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 60px 24px;
    }

    /* Media always follows the prose on narrow screens. */
    .section .media { order: 2; }
    .section .prose { order: 1; }

    .section h2, .insights h2 { font-size: 30px; }

    .insights { padding: 60px 24px; }
    .insights-grid { grid-template-columns: 1fr; }

    .hub { padding: 64px 24px; }
    .hub h2 { font-size: 32px; }

    .footer { padding: 24px; justify-content: center; text-align: center; }
}

@media (max-width: 560px) {
    .hero h1 { font-size: 34px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .btn { width: 100%; justify-content: center; }
    .hub-item { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn { transition: none; }
    .btn:hover { transform: none; }
}
