/* Home page — Ollie System marketing.
 * Sections: hero, pillars, app gallery, sovereignty, AI, studio tease,
 * download CTA. */

/* ── Hero: typed headline + mouse-reactive network ───────────────── */
.hero-os {
    position: relative;
    /* hidden clipped descenders on headline + slogan; canvas stays inset:0 */
    overflow: visible;
}
.hero-os > .container {
    position: relative;
    z-index: 1;
}

/* One shared motion: avoid per-line translateY so the subtitle doesn’t “drift” under the headline */
.hero-os .reveal {
    transform: none;
    opacity: 0;
    transition: opacity 0.55s var(--ease);
}
.hero-os .reveal.visible {
    opacity: 1;
    transform: none;
}
.hero-network-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.28;
}

.hero-title-typed {
    margin: 0 0 12px;
    background: none;
    -webkit-text-fill-color: unset;
    color: var(--text);
    /* Base .hero-title uses line-height: 1.0 — too tight for Space Grotesk descenders */
    line-height: 1.12;
}
.hero-title-typed-row {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 0;
    min-width: min(92vw, 15ch);
    /* One line of cap height; width locked in JS to final string so no hollow band under glyphs */
    min-height: 1.15em;
}
.hero-typed-output {
    font-family: var(--font-display);
    font-size: inherit;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.04em;
    background: linear-gradient(180deg, #1d1d1f 0%, #3a3a3c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--text);
    white-space: nowrap;
    display: inline-block;
    min-height: 1.12em;
    vertical-align: baseline;
}
.hero-typed-cursor {
    display: inline-block;
    margin-left: 2px;
    font-weight: 300;
    color: var(--accent);
    font-size: 0.92em;
    animation: heroTypedCursor 0.85s step-end infinite;
}
.hero-typed-cursor--hidden {
    opacity: 0;
    animation: none;
}
@keyframes heroTypedCursor {
    50% { opacity: 0; }
}

.hero-slogan {
    font-family: var(--font-display);
    font-size: clamp(20px, 2.8vw, 28px);
    font-weight: 600;
    letter-spacing: -0.022em;
    color: var(--text-dim);
    margin: 0 auto 20px;
    max-width: 640px;
    line-height: 1.25;
}
/* Fixed-height slot + out-of-flow slogan: stable space between title and subtitle. */
.hero-os-slogan-slot {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    min-height: calc(1.35 * clamp(20px, 2.8vw, 28px) + 18px);
    flex-shrink: 0;
}
.hero-os-slogan-slot .hero-slogan {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    margin: 0 auto;
    line-height: 1.3;
}
.hero-slogan-sequenced {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.18em;
}
.hero-os:not(.hero-intro-done) .hero-slogan-segment {
    opacity: 0;
}
.hero-slogan-segment {
    opacity: 0;
    transition: opacity 0.55s var(--ease);
}
.hero-os.hero-intro-done .hero-slogan-segment-1 {
    opacity: 1;
    transition-delay: 0.06s;
}
.hero-os.hero-intro-done .hero-slogan-segment-2 {
    opacity: 1;
    transition-delay: 0.28s;
}
.hero-os.hero-intro-done .hero-slogan-segment-3 {
    opacity: 1;
    transition-delay: 0.5s;
}

/* One supporting line under the slogan — keep narrow so it doesn’t compete */
.hero-subtitle--home {
    max-width: 34em;
    margin: 8px auto 30px !important;
    font-size: clamp(15px, 1.45vw, 17px);
    line-height: 1.45;
}

.hero-meta--below-shot {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 10px;
    margin: 18px auto 0;
    max-width: 640px;
    color: var(--text-faint);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
    .hero-os .reveal,
    .hero-os .reveal.visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .hero-network-canvas {
        display: none;
    }
    .hero-typed-cursor {
        animation: none;
        opacity: 0;
    }
    .hero-os .hero-slogan.hero-slogan-sequenced {
        visibility: visible;
        height: auto;
        min-height: 0;
        max-height: none;
        margin: 0 auto 16px !important;
        line-height: 1.25;
        opacity: 1;
        overflow: visible;
        pointer-events: auto;
    }
    .hero-slogan-segment {
        opacity: 1;
        transition: none;
    }
    .section-desktop-strip .reveal,
    .section-desktop-strip .reveal.visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.hero-os .hero-actions {
    margin-bottom: 0;
}

/* Hero augmentation specific to OS page */
.hero-os .hero-screenshot {
    margin-top: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}
/* Real hero image (drop static/media/ollie-desktop-hero.{webp,png,jpg}) */
.hero-shot {
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card), var(--shadow-glow);
    background: var(--bg-card);
}
.hero-shot img {
    width: 100%;
    height: auto;
    display: block;
}

.screenshot-placeholder {
    aspect-ratio: 16/10;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background:
        linear-gradient(180deg, rgba(88,166,255,0.04), transparent 40%),
        var(--bg-card);
    box-shadow: var(--shadow-card), var(--shadow-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-faint);
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ── Launchpad + multitask strip (below hero) ─────────────────────── */
.section-desktop-strip {
    padding: 56px 0 48px;
}
.section-desktop-strip .reveal {
    transform: none;
    opacity: 0;
    transition: opacity 0.55s var(--ease);
}
.section-desktop-strip .reveal.visible {
    opacity: 1;
    transform: none;
}
.desktop-strip-label {
    font-family: var(--font-display);
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    letter-spacing: -0.03em;
    text-align: center;
    margin: 0 auto 28px;
    max-width: 720px;
}
.desktop-strip-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}
@media (min-width: 900px) {
    .desktop-strip-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}
.desktop-strip-fig {
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    background: var(--bg-card);
}
.desktop-strip-fig img {
    width: 100%;
    height: auto;
    display: block;
}

/* ── Pillars ─────────────────────────────────────────────────────── */
.pillar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.pillar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 26px;
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.pillar:hover {
    transform: translateY(-3px);
    border-color: rgba(88,166,255,0.3);
}
.pillar-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    background: rgba(88,166,255,0.10);
    color: var(--accent);
    margin-bottom: 16px;
}
.pillar h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}
.pillar p {
    color: var(--text-dim);
    font-size: 15px;
    margin: 0;
    line-height: 1.6;
}
@media (max-width: 900px) { .pillar-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .pillar-grid { grid-template-columns: 1fr; } }

/* ── App gallery ─────────────────────────────────────────────────── */
.section-apps { background: var(--bg-alt); }
.app-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.app-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 20px;
    transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.app-card:hover {
    transform: translateY(-2px);
    border-color: rgba(88,166,255,0.3);
}
.app-icon-frame {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(88,166,255,0.15), rgba(31,111,235,0.05));
    color: var(--accent);
    margin-bottom: 14px;
}
/* Same branded SVGs as Ollie Desktop dock (/icons/<id>.svg) — full-color art */
.app-icon-frame--branded {
    background: transparent;
    padding: 0;
    overflow: hidden;
}
.app-icon-frame--branded .app-icon-img {
    width: 48px;
    height: 48px;
    display: block;
    object-fit: contain;
    border-radius: 12px;
}
.app-card h4 {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}
.app-card p {
    color: var(--text-dim);
    font-size: 13.5px;
    line-height: 1.55;
    margin: 0;
}
.apps-footnote {
    margin-top: 40px;
    text-align: center;
    color: var(--text-dim);
    font-size: 14px;
    max-width: 760px;
    margin-left: auto; margin-right: auto;
}
@media (max-width: 1000px) { .app-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .app-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .app-grid { grid-template-columns: 1fr; } }

/* ── Sovereignty ─────────────────────────────────────────────────── */
.sov-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 56px;
    align-items: start;
}
.sov-list {
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}
.sov-list li {
    padding: 12px 0;
    color: var(--text-dim);
    font-size: 15.5px;
    line-height: 1.55;
    border-bottom: 1px solid var(--border);
    position: relative;
    padding-left: 24px;
}
.sov-list li::before {
    content: "";
    position: absolute;
    left: 0; top: 19px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
}
.sov-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 26px;
    box-shadow: var(--shadow-card);
}
.sov-card h4 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px;
}
.sov-card p {
    color: var(--text-dim);
    font-size: 14.5px;
    margin: 0 0 14px;
    line-height: 1.6;
}
.sov-card code {
    display: block;
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    color: var(--accent);
    font-size: 13px;
    overflow-x: auto;
}
@media (max-width: 900px) {
    .sov-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ── AI section ─────────────────────────────────────────────────── */
.section-ai { background: var(--bg-alt); }
.ai-inner { max-width: 920px; margin: 0 auto; text-align: center; }
.ai-bullets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 40px 0;
    text-align: left;
}
.ai-bullet {
    display: flex;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}
.ai-bullet > .material-symbols-rounded {
    color: var(--accent);
    font-size: 28px;
    flex-shrink: 0;
}
.ai-bullet h4 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px;
}
.ai-bullet p {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.55;
    margin: 0;
}
@media (max-width: 700px) { .ai-bullets { grid-template-columns: 1fr; } }

/* ── Studio tease ─────────────────────────────────────────────────── */
.studio-tease { max-width: 760px; margin: 0 auto; text-align: center; }
/* Match download-cta body → button rhythm (.download-cta p has margin-bottom: 26px). */
.studio-tease .section-subtitle {
    margin-bottom: 26px;
}

/* ── Download CTA ─────────────────────────────────────────────────── */
.section-download-cta {
    background:
        radial-gradient(circle at center, rgba(88,166,255,0.10), transparent 60%),
        var(--bg);
}
.download-cta {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    padding: 56px 32px;
    border: 1px solid rgba(88,166,255,0.25);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(88,166,255,0.04), transparent 60%);
}
.download-cta h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
}
.download-cta p {
    color: var(--text-dim);
    margin: 0 0 26px;
    font-size: 16px;
}
.download-cta-fine {
    margin-top: 18px !important;
    color: var(--text-faint) !important;
    font-size: 13px !important;
}
