:root {
    --bg: #000000;
    --fg: #ffffff;
    --muted: #888888;
    --border: #30363d;
    --grid: rgba(255, 255, 255, 0.03);
    --accent: #3fb950;
    --font-mono: 'JetBrains Mono', monospace;
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Lora', serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 50px 50px;
    background-attachment: fixed;
    color: var(--fg);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

header {
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

nav {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-weight: bold;
    font-size: 1.35rem;
    letter-spacing: -1px;
    color: var(--fg);
    text-decoration: none;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--accent);
    border-radius: 4px;
    color: var(--accent);
    font-size: 0.8rem;
    letter-spacing: 0;
    box-shadow: 0 0 18px rgba(63, 185, 80, 0.25);
}

.links {
    display: flex;
    gap: 1.75rem;
    flex-wrap: wrap;
}

.links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.hero {
    padding: 7rem 0 6rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.crooked {
    transform: rotate(-1.5deg);
}

h1 {
    font-family: var(--font-mono);
    font-size: clamp(2.5rem, 7vw, 4.25rem);
    line-height: 1.05;
    letter-spacing: -3px;
    margin-bottom: 1rem;
}

.hero-tagline {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.4rem;
    color: var(--fg);
    margin-bottom: 1.5rem;
}

.hero-sub {
    color: var(--muted);
    max-width: 600px;
    font-size: 1rem;
    margin-bottom: 3rem;
}

/* ---------- hero install button ---------- */
.install-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.9rem 1.9rem;
    border: 1px solid var(--accent);
    border-radius: 999px;
    background: var(--accent);
    color: #000000;
    text-decoration: none;
    box-shadow: 0 0 30px rgba(63, 185, 80, 0.25);
    transition: all 0.2s ease;
}

.install-cta:hover {
    background: rgba(63, 185, 80, 0.12);
    color: var(--accent);
    box-shadow: 0 0 40px rgba(63, 185, 80, 0.35);
    transform: translateY(-1px);
}

.install-icon {
    display: flex;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.install-icon svg {
    display: none;
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.install-icon svg.is-on {
    display: block;
}

.section-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.hero-points {
    list-style: none;
    max-width: 620px;
    margin: 0 auto 2rem;
    text-align: left;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.hero-points li {
    padding-left: 1.4rem;
    position: relative;
}

.hero-points li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.hero-points strong {
    color: var(--fg);
}

.hero-points span {
    color: var(--muted);
}

/* ---------- product sections ---------- */

.product {
    padding: 5rem 0;
    border-top: 1px solid var(--border);
}

.product h2 {
    font-family: var(--font-mono);
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    letter-spacing: -1.5px;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.lede {
    color: var(--muted);
    max-width: 640px;
    margin-bottom: 1.75rem;
    font-size: 1.02rem;
}

.product .hero-points {
    margin-left: 0;
    margin-bottom: 3rem;
}

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

.shot {
    position: relative;
    background: #0d1117;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    margin-bottom: 3rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.shot:hover {
    transform: translateY(-3px);
    border-color: rgba(63, 185, 80, 0.5);
}

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

.shot-placeholder[hidden] {
    display: none;
}

.shot-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--muted);
    background-image:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0 10px, transparent 10px 20px);
}

/* ---------- downloads ---------- */

/* Every product now leads with its download block, so give it room to breathe
   before whatever follows. */
.product .downloads {
    margin-bottom: 2.75rem;
}

.cta-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.cta-label-sub {
    margin: 0.25rem 0 0.75rem;
    letter-spacing: 1.5px;
    opacity: 0.8;
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.btn {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    padding: 0.7rem 1.25rem;
    color: var(--fg);
    background: #0d1117;
    border: 1px solid var(--border);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(63, 185, 80, 0.06);
}

.btn-primary {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 20px rgba(63, 185, 80, 0.15);
}

.btn-primary:hover {
    background: var(--accent);
    color: #000;
}

.cta-note {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.cta-note strong {
    color: var(--fg);
}

.cta-note a {
    color: var(--muted);
    text-decoration: underline;
}

.cta-note a:hover {
    color: var(--accent);
}

code {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    background: var(--border);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    word-break: break-all;
}

/* ---------- platform download grid ---------- */

.platform-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.platform {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.15rem;
    background: rgba(13, 17, 23, 0.55);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.platform-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}

.platform-badge {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    border: 1px solid rgba(63, 185, 80, 0.4);
    border-radius: 3px;
    padding: 0.22rem 0.55rem;
    background: rgba(63, 185, 80, 0.08);
}

.platform .btn {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 0.78rem;
    padding: 0.55rem 0.75rem;
    width: 100%;
}

.arch {
    font-size: 0.65rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.platform .btn:hover .arch {
    color: var(--accent);
}

.install-link {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--border);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.install-link:hover {
    color: var(--accent);
}

.install-strip {
    margin: 0 0 1.25rem;
    padding: 1.15rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(13, 17, 23, 0.55);
}

.install-cmds {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.install-os {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.install-label {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    margin-bottom: 0.4rem;
}

.install-pre {
    background: #000;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.55rem 0.65rem;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

.install-pre code {
    background: none;
    padding: 0;
    font-size: 0.72rem;
    line-height: 1.5;
    color: #9fd8a3;
}

/* ---------- the three phantoms ---------- */

.fam {
    padding: 0 0 1rem;
}

.fam-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.fam-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.35rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(13, 17, 23, 0.55);
    text-decoration: none;
    color: var(--fg);
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.fam-card:hover {
    border-color: rgba(63, 185, 80, 0.55);
    transform: translateY(-3px);
    background: rgba(63, 185, 80, 0.05);
}

.fam-num {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 1px;
}

.fam-name {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: -0.5px;
}

.fam-role {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.fam-text {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.55;
}

/* ---------- request flow ---------- */

.flow {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.flow-node {
    flex: 1 1 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    background: rgba(13, 17, 23, 0.55);
}

.flow-core {
    border-color: rgba(63, 185, 80, 0.5);
    background: rgba(63, 185, 80, 0.07);
    box-shadow: 0 0 26px rgba(63, 185, 80, 0.12);
}

.flow-title {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--fg);
    margin-bottom: 0.3rem;
}

.flow-core .flow-title {
    color: var(--accent);
}

.flow-sub {
    font-size: 0.76rem;
    color: var(--muted);
    line-height: 1.45;
}

.flow-arrow {
    display: flex;
    align-items: center;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 1rem;
}

@media (max-width: 860px) {
    .fam-grid {
        grid-template-columns: 1fr;
    }

    .flow {
        flex-direction: column;
    }

    .flow-arrow {
        justify-content: center;
        transform: rotate(90deg);
    }
}

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

footer {
    border-top: 1px solid var(--border);
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-inner .logo {
    margin-bottom: 0.5rem;
}

.muted {
    color: var(--muted);
    font-size: 0.85rem;
}

.footer-legal-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid var(--border);
}

.footer-legal-link:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.footer-cols {
    display: flex;
    gap: 3.5rem;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-width: 9rem;
}

.footer-head {
    color: var(--fg);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.7rem;
    margin-bottom: 0.25rem;
}

.footer-col a {
    color: var(--muted);
    text-decoration: none;
}

.footer-col a:hover {
    color: var(--accent);
}

@media (max-width: 860px) {
    .platform-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    header {
        padding: 1rem;
    }

    main {
        padding: 0 1.25rem;
    }

    .hero {
        padding: 4rem 0;
    }

    .links {
        gap: 1rem;
    }

    .links a {
        font-size: 0.65rem;
    }

    .product {
        padding: 3rem 0;
    }

    .footer-cols {
        gap: 1.75rem 2.5rem;
    }

    .footer-col {
        min-width: 7.5rem;
    }
}
