/* =========================================
   NELSON — Minimal Marketing Site
   ========================================= */

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

:root {
    --fg: #141414;
    --bg: #fff;
    --fg-muted: #555;
    --border: 1px solid #d0d0d0;
    --border-dark: 1px solid rgba(255, 255, 255, 0.2);
    --logo: "Bitcount Grid Double", monospace;
    --mono: "Space Mono", "Courier New", monospace;
}

html {
    font-size: 16px;
}

body {
    font-family: var(--mono);
    background: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--fg);
    color: var(--bg);
}

.inverted ::selection {
    background: var(--bg);
    color: var(--fg);
}

a, button { cursor: pointer; }

.inverted {
    background: var(--fg);
    color: var(--bg);
}

/* =========================================
   HERO
   ========================================= */

.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-bottom: var(--border);
    position: relative;
    padding: 2rem;
    text-align: center;
}

.logo {
    font-family: var(--logo);
    font-size: clamp(5rem, 18vw, 20rem);
    font-weight: 400;
    letter-spacing: 0.06em;
    line-height: 0.85;
    margin-bottom: 2.5rem;
}

.tagline {
    font-family: var(--mono);
    font-size: clamp(0.85rem, 1.8vw, 1.25rem);
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 0.04em;
    color: var(--fg-muted);
}

.hero-bottom {
    position: absolute;
    bottom: 2rem;
}

.scroll-hint {
    font-size: 1.25rem;
    display: block;
    color: var(--fg-muted);
    animation: bounce 2.5s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* =========================================
   MARQUEE
   ========================================= */

.marquee {
    background: var(--fg);
    color: var(--bg);
    overflow: hidden;
    padding: 0.75rem 0;
    border-bottom: var(--border);
    white-space: nowrap;
}

.marquee-track {
    display: inline-flex;
    animation: scroll 30s linear infinite;
}

.marquee-track span {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    padding-right: 2rem;
    flex-shrink: 0;
}

@keyframes scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* =========================================
   SECTIONS
   ========================================= */

.section {
    padding: clamp(4rem, 10vw, 9rem) clamp(1.5rem, 5vw, 6rem);
    border-bottom: var(--border);
}

.section-label {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
    color: var(--fg-muted);
}

.inverted .section-label {
    color: rgba(255, 255, 255, 0.4);
}

.prose {
    font-size: clamp(0.85rem, 1.1vw, 1.05rem);
    max-width: 580px;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.prose strong { font-weight: 700; }

.rule {
    width: 40px;
    height: 1px;
    background: currentColor;
    margin: 2rem 0;
    opacity: 0.3;
}

/* =========================================
   01 — PROBLEM
   ========================================= */

.stat {
    font-family: var(--mono);
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

.stat-desc {
    font-size: clamp(0.85rem, 1.2vw, 1.05rem);
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 0;
    color: var(--fg-muted);
}

/* =========================================
   02 — HOW IT WORKS
   ========================================= */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.12);
}

.step {
    background: var(--fg);
    padding: clamp(2rem, 3vw, 3rem);
}

.step-num {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1;
    opacity: 0.15;
    margin-bottom: 1.2rem;
}

.step-title {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}

.step p {
    font-size: clamp(0.78rem, 0.95vw, 0.88rem);
    line-height: 1.7;
    opacity: 0.6;
}

/* =========================================
   03 — FEATURES
   ========================================= */

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #d0d0d0;
    border: var(--border);
}

.feature {
    background: var(--bg);
    padding: clamp(1.8rem, 3vw, 3rem);
    transition: background 0.2s, color 0.2s;
}

.feature:hover {
    background: var(--fg);
    color: var(--bg);
}

.feature h3 {
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}

.feature p {
    font-size: clamp(0.78rem, 0.95vw, 0.88rem);
    line-height: 1.7;
}

/* =========================================
   04 — FAMILIES
   ========================================= */

.section--families .prose {
    margin-bottom: 0;
}

.family-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.12);
    margin-top: clamp(2.5rem, 4vw, 4rem);
}

.family-item {
    background: var(--fg);
    padding: clamp(1.8rem, 3vw, 3rem);
}

.family-item h3 {
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}

.family-item p {
    font-size: clamp(0.78rem, 0.95vw, 0.88rem);
    line-height: 1.7;
    opacity: 0.6;
}

/* =========================================
   FOOTER
   ========================================= */

.footer {
    padding: clamp(4rem, 10vw, 9rem) clamp(1.5rem, 5vw, 6rem);
    text-align: center;
}

.footer-tagline {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 3rem;
}

.footer-built-by {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.built-by-label {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    color: var(--fg-muted);
}

.dim-logo {
    width: 160px;
    display: block;
}

.footer-meta {
    display: flex;
    justify-content: center;
    gap: 3rem;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    color: var(--fg-muted);
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 800px) {

    .steps {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .family-grid {
        grid-template-columns: 1fr;
    }

    .footer-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}