/* 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-wordmark {
    margin: 0 0 14px;
    background: none;
    -webkit-text-fill-color: unset;
    color: var(--text);
    line-height: 1.08;
}
.hero-wordmark {
    font-family: var(--font-display);
    font-size: inherit;
    font-weight: 800;
    line-height: 1.08;
    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);
    display: inline-block;
    /* Gentle fade-up on load — calm, not a gimmick */
    opacity: 0;
    transform: translateY(12px);
    animation: heroWordmarkIn 0.9s var(--ease) 0.05s forwards;
}
@keyframes heroWordmarkIn {
    to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-wordmark { animation: none; opacity: 1; transform: none; }
}

.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-slogan-segment { opacity: 1; }
.hero-os .hero-slogan { opacity: 1; }

/* 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;
    gap: 14px;
}
/* Bigger, more confident hero CTAs */
.hero-os .hero-actions .btn {
    padding: 15px 30px;
    font-size: 16px;
}
.hero-os .hero-actions .btn-primary {
    box-shadow: 0 10px 26px -8px rgba(20, 124, 229, 0.5);
}

/* Hero augmentation specific to OS page. Big, floating product shot — wider
   than the text column, no border, deep soft shadow so it reads as a real
   object hovering over the page (Apple hero rhythm). */
.hero-os .hero-screenshot {
    margin-top: 56px;
    max-width: min(1240px, 94vw);
    margin-left: auto;
    margin-right: auto;
}
/* Real hero image (drop static/media/ollie-desktop-hero.{webp,png,jpg}) */
.hero-shot {
    margin: 0;
    border-radius: clamp(14px, 1.6vw, 22px);
    overflow: hidden;
    border: none;
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.06),
        0 30px 70px -20px rgba(20, 30, 60, 0.32),
        0 12px 28px -16px rgba(0, 0, 0, 0.22);
    background: var(--bg-card);
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.hero-shot:hover {
    transform: translateY(-4px);
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.06),
        0 44px 90px -24px rgba(20, 30, 60, 0.38),
        0 16px 34px -18px rgba(0, 0, 0, 0.24);
}
.hero-shot img {
    width: 100%;
    height: auto;
    display: block;
}

/* ── Laptop device frame ──────────────────────────────────────────
   Puts a screenshot inside a real-looking machine so it reads as a
   product, not a flat image. Pure CSS: aluminum screen bezel + a
   slightly wider base with a centered notch. */
.laptop {
    max-width: min(1080px, 92vw);
    margin: 0 auto;
}
.laptop__screen {
    margin: 0;
    background: linear-gradient(180deg, #2a2a2e, #161618);
    padding: clamp(9px, 1vw, 14px);
    border-radius: clamp(14px, 1.6vw, 22px) clamp(14px, 1.6vw, 22px) 8px 8px;
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.10),
        0 36px 80px -28px rgba(20, 30, 60, 0.40),
        inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    position: relative;
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
/* camera dot */
.laptop__screen::before {
    content: "";
    position: absolute;
    top: clamp(4px, 0.5vw, 7px);
    left: 50%;
    transform: translateX(-50%);
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #3a3a3e;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.4);
}
.laptop__screen img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}
/* base / keyboard deck — wider than the screen, with a lid notch */
.laptop__base {
    position: relative;
    width: 116%;
    left: -8%;
    height: clamp(12px, 1.4vw, 18px);
    margin-top: -1px;
    background: linear-gradient(180deg, #d4d7dd 0%, #aeb2ba 55%, #888c94 100%);
    border-radius: 0 0 10px 10px / 0 0 16px 16px;
    box-shadow:
        inset 0 2px 2px rgba(255, 255, 255, 0.6),
        0 14px 24px -12px rgba(20, 30, 60, 0.30);
}
.laptop__base::after {
    content: "";
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 16%; height: clamp(5px, 0.7vw, 8px);
    background: linear-gradient(180deg, #9a9ea6, #c2c6cd);
    border-radius: 0 0 7px 7px;
}
.laptop:hover .laptop__screen {
    transform: translateY(-4px);
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.10),
        0 48px 96px -30px rgba(20, 30, 60, 0.46),
        inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.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: clamp(12px, 1.4vw, 18px);
    overflow: hidden;
    border: none;
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.05),
        0 24px 54px -22px rgba(20, 30, 60, 0.30);
    background: var(--bg-card);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.desktop-strip-fig:hover {
    transform: translateY(-4px);
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.05),
        0 34px 70px -24px rgba(20, 30, 60, 0.36);
}
.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: 32px 30px;
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
                box-shadow 0.3s var(--ease);
}
.pillar:hover {
    transform: translateY(-4px);
    border-color: rgba(20, 124, 229, 0.28);
    box-shadow: 0 18px 40px -22px rgba(20, 30, 60, 0.28);
}
.pillar-icon {
    width: 54px; height: 54px;
    border-radius: 15px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(145deg, var(--accent), var(--accent-deep));
    color: #fff;
    box-shadow: 0 8px 18px -8px rgba(20, 124, 229, 0.55);
    margin-bottom: 20px;
}
.pillar-icon .material-symbols-rounded { font-size: 28px; }
.pillar h3 {
    font-family: var(--font-display);
    font-size: 21px;
    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-lg);
    padding: 26px 24px;
    transition: transform 0.25s var(--ease), border-color 0.25s var(--ease),
                box-shadow 0.25s var(--ease);
}
.app-card:hover {
    transform: translateY(-4px);
    border-color: rgba(20, 124, 229, 0.28);
    box-shadow: 0 18px 40px -22px rgba(20, 30, 60, 0.28);
}
.app-icon-frame {
    width: 56px; height: 56px;
    border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(20,124,229,0.15), rgba(9,86,179,0.05));
    color: var(--accent);
    margin-bottom: 16px;
}
/* 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: 56px;
    height: 56px;
    display: block;
    object-fit: contain;
    border-radius: 13px;
    filter: drop-shadow(0 6px 12px rgba(20, 30, 60, 0.18));
}
.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;
}

/* ══════════════════════════════════════════════════════════════════
   Premium restructure — device frames, colored panels, Cosmos,
   revive-PC, FAQ. (Zorin-inspired rhythm; Ollie's own content.)
   ══════════════════════════════════════════════════════════════════ */

/* Two-tone headline: gray lead-in + dark emphasis (the confident look). */
.t-dim { color: var(--text-faint); }

/* ── Monitor/display device frame (for the trio strip) ───────────── */
.desktop-strip-fig {
    background: linear-gradient(180deg, #2a2a2e, #161618);
    padding: clamp(7px, 0.8vw, 11px);
    border: none;
    border-radius: clamp(12px, 1.3vw, 16px);
}
.desktop-strip-fig img { border-radius: 5px; }

/* ── Art-directed feature row (text + device, alternating) ───────── */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
    max-width: var(--container);
    margin: 0 auto;
}
.feature-row.reverse .feature-row__media { order: -1; }
.feature-row__title {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.6vw, 44px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.025em;
    margin: 14px 0 18px;
}
.feature-row__body {
    color: var(--text-dim);
    font-size: clamp(16px, 1.5vw, 18px);
    line-height: 1.6;
    margin: 0 0 24px;
    max-width: 30em;
}
.feature-row__media .laptop,
.feature-row__media .desktop-strip-fig { margin: 0; }
@media (max-width: 860px) {
    .feature-row { grid-template-columns: 1fr; gap: 32px; }
    .feature-row.reverse .feature-row__media { order: 0; }
}

/* ── Colored panel pair (private / reliable), Zorin blue/green ───── */
.panel-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: var(--container);
    margin: 0 auto;
}
.cpanel {
    border-radius: var(--radius-lg);
    padding: clamp(32px, 4vw, 52px);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.cpanel--blue  { background: linear-gradient(150deg, #1f8bff, #0a5bd0); }
.cpanel--green { background: linear-gradient(150deg, #21b86a, #0f8a52); }
.cpanel__icon {
    font-size: 40px;
    margin-bottom: 18px;
    opacity: 0.95;
}
.cpanel h3 {
    font-family: var(--font-display);
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
}
.cpanel p {
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.6;
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
}
.cpanel strong { color: #fff; font-weight: 700; }
@media (max-width: 760px) { .panel-pair { grid-template-columns: 1fr; } }

/* ── Cosmos — the "wow" moment, deep-space band ──────────────────── */
.section-cosmos {
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124, 92, 255, 0.25), transparent 60%),
        linear-gradient(180deg, #0c0a1f 0%, #08081a 100%);
    color: #fff;
    text-align: center;
    overflow: hidden;
}
.cosmos-inner { max-width: 820px; margin: 0 auto; position: relative; z-index: 1; }
.cosmos-icon {
    width: 92px; height: 92px;
    margin: 0 auto 26px;
    filter: drop-shadow(0 10px 30px rgba(124, 92, 255, 0.55));
}
.section-cosmos .section-label { color: #b9a8ff; }
.section-cosmos h2 {
    font-family: var(--font-display);
    font-size: clamp(30px, 4.4vw, 52px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin: 0 0 18px;
}
.section-cosmos .cosmos-sub {
    color: rgba(255, 255, 255, 0.72);
    font-size: clamp(16px, 1.6vw, 19px);
    line-height: 1.6;
    margin: 0 auto 30px;
    max-width: 40em;
}
.section-cosmos .btn-secondary {
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.22);
}
.section-cosmos .btn-secondary:hover { background: rgba(255, 255, 255, 0.18); }
.cosmos-stars {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image:
        radial-gradient(1px 1px at 20% 30%, #fff, transparent),
        radial-gradient(1px 1px at 80% 20%, rgba(255,255,255,0.8), transparent),
        radial-gradient(1.5px 1.5px at 65% 70%, #fff, transparent),
        radial-gradient(1px 1px at 35% 80%, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 90% 60%, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 10% 65%, rgba(255,255,255,0.7), transparent);
}

/* ── Logo wall (runs real software) ──────────────────────────────── */
.logo-wall {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 34px 24px;
    max-width: 880px;
    margin: 52px auto 0;
    align-items: center;
    justify-items: center;
}
.logo-wall img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    opacity: 0.40;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.logo-wall img:hover { opacity: 1; transform: translateY(-3px); }
@media (max-width: 700px) { .logo-wall { grid-template-columns: repeat(4, 1fr); gap: 28px 18px; } }

/* ── FAQ ─────────────────────────────────────────────────────────── */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 48px;
    max-width: 980px;
    margin: 0 auto;
}
.faq-item {
    padding: 22px 0;
    border-bottom: 1px solid var(--border);
}
.faq-item h3 {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}
.faq-item p {
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}
@media (max-width: 760px) { .faq-grid { grid-template-columns: 1fr; } }
