/* ============================================================
   GhostLap marketing site: single stylesheet
   ------------------------------------------------------------
   This file is the ONLY stylesheet for the pages in this folder.
   There is no build step: edit, save, refresh.

   Design tokens live in :root below. The display font (Shader
   Bold) is self-hosted in assets/fonts; body text is IBM Plex
   Sans from Google Fonts (linked in each page's <head>).
   ============================================================ */

:root {
    --purple: #A85FED;
    --purple-deep: #8A4CD1;
    --gradient: linear-gradient(135deg, #A85FED 0%, #8A4CD1 100%);
    --black: #000000;
    --white: #ffffff;
    --gray-bg: #f9fafb;       /* light section background */
    --gray-line: #e5e7eb;     /* light section borders */
    --green: #22c55e;
    --yellow: #facc15;
    --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
    --font-display: "Shader Bold", "Arial Black", sans-serif;
}

@font-face {
    font-family: "Shader Bold";
    src: url("fonts/Shader-Bold.woff2") format("woff2"),
         url("fonts/Shader-Bold.woff") format("woff");
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background-color: var(--black);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: inherit; text-decoration: none; }

/* Shader has no italic cut; keep display type upright everywhere. */
.font-display, h1, h2, h3 {
    font-family: var(--font-display);
    font-style: normal;
}

/* ---------- Layout helpers ---------- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 896px; margin: 0 auto; padding: 0 1.5rem; }

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}
@media (min-width: 1024px) {
    .grid-2 { grid-template-columns: 1fr 1fr; gap: 5rem; }
}

/* ---------- Type ---------- */
.eyebrow-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--purple);
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 0.95;
    margin: 1.5rem 0;
}

h2.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin: 0 0 1rem;
}

.text-purple { color: var(--purple); }
.text-glow { text-shadow: 0 0 20px rgba(168, 95, 237, 0.4); }
.text-dim { color: rgba(255, 255, 255, 0.6); }

.section-kicker {
    text-transform: uppercase;
    letter-spacing: 0.5em;
    font-weight: bold;
    font-family: var(--font-display);
    font-size: 0.85rem;
}

/* ---------- Buttons ---------- */
.btn-cta {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    background: var(--gradient);
    color: var(--white);
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(168, 95, 237, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-cta:hover { transform: scale(1.05); }
.btn-cta:active { transform: scale(0.95); }
.btn-cta svg { width: 16px; height: 16px; }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 0.6rem 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    color: var(--white);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.btn-ghost:hover { border-color: var(--purple); color: var(--purple); }

/* ---------- Header ---------- */
/* White toolbar so the black wordmark stays legible (matches the app header). */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--gray-line);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.site-header .brand img { height: 28px; display: block; }
.site-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.site-nav a.nav-link {
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(0, 0, 0, 0.65);
    white-space: nowrap;
    transition: color 0.2s ease;
}
.site-nav a.nav-link:hover,
.site-nav a.nav-link.active { color: var(--purple); }

/* Header variant of the outline button (sits on white). */
.site-nav .btn-ghost {
    color: var(--black);
    border-color: rgba(0, 0, 0, 0.3);
}
.site-nav .btn-ghost:hover { border-color: var(--purple); color: var(--purple); }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--black);
    cursor: pointer;
    padding: 0.25rem;
}
.menu-toggle svg { width: 26px; height: 26px; }

@media (max-width: 1000px) {
    .menu-toggle { display: block; }
    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--white);
        border-bottom: 1px solid var(--gray-line);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
        display: none;
        padding: 0.5rem 1.5rem 1.25rem;
    }
    .site-nav.open { display: flex; }
    .site-nav a.nav-link { padding: 0.85rem 0; }
    .site-nav .btn-cta, .site-nav .btn-ghost { margin-top: 0.75rem; justify-content: center; }
}

/* ---------- Sections ---------- */
section { overflow: hidden; }
.section-dark { background: var(--black); color: var(--white); padding: 8rem 0; }
.section-light { background: var(--white); color: var(--black); padding: 8rem 0; }
.section-gray { background: var(--gray-bg); color: var(--black); padding: 6rem 0; }
.section-purple { background: var(--purple); color: var(--white); padding: 8rem 0; position: relative; }

.section-light .text-dim, .section-gray .text-dim { color: rgba(0, 0, 0, 0.6); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 3rem 0 5rem;
    background: var(--black);
}
.hero-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: rgba(168, 95, 237, 0.1);
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-sub {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    max-width: 32rem;
    margin: 0 0 2.5rem;
}

/* ---------- Video cards ---------- */
.video-card {
    position: relative;
    aspect-ratio: 16 / 9;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
}
.video-card .thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 10; }
.video-card .play-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
}
.video-card .play-button {
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: transform 0.3s ease;
}
.video-card:hover .play-button { transform: scale(1.1); }
.video-card .play-button svg { width: 32px; height: 32px; margin-left: 4px; color: var(--white); }
.video-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-card.rounded-3 { border-radius: 1.5rem; }

/* ---------- Stats row ---------- */
.stats-row {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2.5rem;
    text-align: center;
}
@media (min-width: 768px) { .stats-row { grid-template-columns: repeat(4, 1fr); } }
.stat-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--purple);
    margin-bottom: 0.25rem;
}
.stat-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.4);
    font-weight: bold;
}

/* ---------- Logo marquee ---------- */
.marquee-heading {
    color: var(--black);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-weight: 900;
    text-align: center;
    margin-bottom: 4rem;
}
.marquee { position: relative; overflow: hidden; }
.marquee-track {
    display: flex;
    gap: 5rem;
    align-items: center;
    animation: marquee-scroll 30s linear infinite;
    width: max-content;
}
.marquee-track img { height: 48px; flex-shrink: 0; }
@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; }
}

/* ---------- Feature list (icon + text rows) ---------- */
.icon-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.5rem; }
.icon-list li { display: flex; gap: 1rem; }
.icon-list .icon { color: var(--purple); flex-shrink: 0; margin-top: 0.2rem; }
.icon-list .icon svg { width: 24px; height: 24px; }
.icon-list h4 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.25rem;
}
.icon-list p { margin: 0; font-size: 0.9rem; color: rgba(255, 255, 255, 0.5); }

/* ---------- Track visualization ---------- */
.track-viz {
    position: relative;
    aspect-ratio: 1 / 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    overflow: hidden;
}
.track-viz-inner { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 3rem; }
.track-viz svg.track-base { width: 100%; height: 100%; opacity: 0.4; }
.track-viz svg.track-lines { position: absolute; inset: 0; width: 100%; height: 100%; padding: 3rem; }

.track-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: track-dash 8s linear infinite;
}
.current-path { animation-duration: 8.2s; }
.car-dot { offset-rotate: auto; animation: car-drive 8s linear infinite; }
.ghost-dot { offset-path: path("M340,280 Q360,280 360,260 L360,140 Q360,120 340,120 L60,120 Q40,120 40,140 L40,260 Q40,280 60,280 L340,280"); }
.current-dot {
    offset-path: path("M335,275 Q355,275 355,255 L355,145 Q355,125 335,125 L65,125 Q45,125 45,145 L45,255 Q45,275 65,275 L335,275");
    animation-duration: 8.2s;
}
@keyframes track-dash { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }
@keyframes car-drive { from { offset-distance: 0%; } to { offset-distance: 100%; } }

.sector-marker {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.sector-marker.green { background: var(--green); box-shadow: 0 0 15px rgba(34, 197, 94, 0.8); }
.sector-marker.yellow { background: var(--yellow); box-shadow: 0 0 15px rgba(250, 204, 21, 0.8); }
.sector-marker.purple { background: var(--purple); box-shadow: 0 0 15px rgba(168, 95, 237, 0.8); }

.data-overlay {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: 0.5rem;
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
    font-size: 10px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.data-overlay .row { display: flex; justify-content: space-between; gap: 2rem; }
.data-overlay .green { color: var(--green); }
.data-overlay .yellow { color: var(--yellow); }
.data-overlay .purple { color: var(--purple); }
.data-overlay .label { text-transform: uppercase; font-weight: bold; }

/* ---------- Sector comparison bar ---------- */
.sector-compare { position: relative; padding: 5rem 0 3rem; }
.sector-bar { display: flex; width: 100%; height: 8rem; align-items: center; position: relative; }
.sector-seg {
    position: relative;
    flex: 1;
    height: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sector-seg.green { background: var(--green); }
.sector-seg.yellow { background: var(--yellow); }
.sector-seg.purple { background: var(--purple); box-shadow: 0 0 30px rgba(168, 95, 237, 0.4); }
.sector-seg .divider { position: absolute; right: 0; height: 3rem; width: 1px; background: rgba(0, 0, 0, 0.1); }
.sector-seg .above { position: absolute; top: -4rem; text-align: center; }
.sector-seg .below { position: absolute; bottom: -3rem; text-align: center; }
.sector-seg .sector-name {
    display: block;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(0, 0, 0, 0.4);
    margin-bottom: 0.25rem;
}
.sector-seg .sector-time {
    font-family: var(--font-display);
    font-size: clamp(0.85rem, 3vw, 1.5rem);
    font-weight: 900;
    white-space: nowrap;
}
.sector-seg .sector-verdict {
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}
.sector-seg.green .sector-time, .sector-seg.green .sector-verdict { color: var(--green); }
.sector-seg.yellow .sector-time, .sector-seg.yellow .sector-verdict { color: var(--yellow); }
.sector-seg.purple .sector-time, .sector-seg.purple .sector-verdict { color: var(--purple); }

.go-purple {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--purple);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    margin: 0;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ---------- Feature cards grid ---------- */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .card-grid { grid-template-columns: 1fr 1fr; } }
.feature-card {
    min-width: 0;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    transition: border-color 0.3s ease;
}
.feature-card:hover { border-color: rgba(168, 95, 237, 0.5); }
.feature-card h3 {
    font-size: 1.4rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin: 0 0 1rem;
}
.feature-card p { margin: 0; color: rgba(255, 255, 255, 0.6); }

/* Light variant (features page) */
.section-light .feature-card, .section-gray .feature-card {
    background: var(--white);
    border-color: var(--gray-line);
}
.section-light .feature-card p, .section-gray .feature-card p { color: rgba(0, 0, 0, 0.6); }

/* ---------- Image panel (about) ---------- */
.image-panel {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid var(--gray-line);
    background: var(--white);
}
.image-panel img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }
.image-panel .fade { position: absolute; inset: 0; background: linear-gradient(to top, var(--white), transparent 50%); }
.image-panel .caption { position: absolute; bottom: 2rem; left: 2rem; }
.image-panel .caption-kicker {
    color: var(--purple);
    font-family: ui-monospace, Consolas, monospace;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
}
.image-panel .caption-text {
    font-family: var(--font-display);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: var(--black);
}

/* ---------- News cards ---------- */
.news-card {
    padding: 2rem;
    background: var(--gray-bg);
    border: 1px solid var(--gray-line);
    border-radius: 1.5rem;
    transition: border-color 0.3s ease;
}
.news-card:hover { border-color: rgba(168, 95, 237, 0.5); }
.news-card .news-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.news-card .news-date {
    color: var(--purple);
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}
.news-card h3 {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin: 0 0 1rem;
    color: var(--black);
    transition: color 0.3s ease;
}
.news-card:hover h3 { color: var(--purple); }
.news-card p { color: rgba(0, 0, 0, 0.6); margin: 0 0 2rem; }
.news-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--purple);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 12px;
    transition: gap 0.3s ease;
}
.news-link:hover { gap: 1rem; }
.news-link svg { width: 16px; height: 16px; }
.news-link.muted { color: rgba(0, 0, 0, 0.4); }
.news-link.muted:hover { color: var(--black); }

/* ---------- Demo form ---------- */
.demo-panel {
    background: var(--black);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}
.demo-panel h3 {
    font-size: 1.4rem;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0 0 2rem;
    color: var(--white);
}
.demo-form { display: flex; flex-direction: column; gap: 1rem; }
.demo-form .field-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .demo-form .field-row { grid-template-columns: 1fr 1fr; } }
.demo-form input, .demo-form textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-family: var(--font-body);
    color: var(--white);
    outline: none;
    transition: border-color 0.2s ease;
}
.demo-form input::placeholder, .demo-form textarea::placeholder { color: rgba(255, 255, 255, 0.4); }
.demo-form input:focus, .demo-form textarea:focus { border-color: var(--purple); }
.demo-form textarea { resize: none; }
.demo-form .honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.demo-form button[type="submit"] {
    width: 100%;
    padding: 1rem;
    background: var(--gradient);
    color: var(--white);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 12px;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: box-shadow 0.2s ease, opacity 0.2s ease;
}
.demo-form button[type="submit"]:hover { box-shadow: 0 10px 25px rgba(168, 95, 237, 0.4); }
.demo-form button[type="submit"]:disabled { opacity: 0.6; cursor: not-allowed; }
.form-status { margin: 0.5rem 0 0; font-size: 0.9rem; display: none; }
.form-status.success { display: block; color: #86efac; }
.form-status.error { display: block; color: #fca5a5; }

.section-purple .demo-lede { color: rgba(255, 255, 255, 0.8); font-size: 1.25rem; font-weight: 500; margin-bottom: 3rem; }

/* ---------- Social cards ---------- */
.social-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .social-grid { grid-template-columns: repeat(3, 1fr); } }
.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    border-radius: 1.5rem;
    border: 1px solid var(--gray-line);
    color: rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease, color 0.3s ease;
}
.social-card svg { width: 32px; height: 32px; margin-bottom: 1.5rem; transition: transform 0.3s ease; }
.social-card:hover svg { transform: scale(1.1); }
.social-card span {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--black);
}
.social-card.linkedin:hover { background: rgba(0, 119, 181, 0.1); color: #0077B5; }
.social-card.youtube:hover { background: rgba(255, 0, 0, 0.1); color: #FF0000; }
.social-card.instagram:hover { background: rgba(228, 64, 95, 0.1); color: #E4405F; }
.social-card:hover span { color: inherit; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--black);
    color: var(--white);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand-name {
    font-family: var(--font-display);
    font-weight: bold;
    font-size: 1.2rem;
    text-transform: uppercase;
    margin: 0 0 1rem;
}
.footer-brand-name .light { font-weight: 300; }
.site-footer p { color: rgba(255, 255, 255, 0.6); margin: 0; max-width: 28rem; }
.footer-col h6 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0 1rem;
    font-weight: bold;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--purple); }
.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* ---------- Scroll reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.active { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Page hero (subpages) ---------- */
.page-hero { background: var(--black); padding: 6rem 0 4rem; text-align: center; }
.page-hero p { color: rgba(255, 255, 255, 0.6); max-width: 40rem; margin: 0 auto; font-size: 1.1rem; }

/* ---------- Blog ---------- */
.post-tags { display: inline-flex; flex-wrap: wrap; gap: 0.4rem; vertical-align: middle; }
.post-tag {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: rgba(168, 95, 237, 0.12);
    color: var(--purple-deep);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.news-card h3 a { color: inherit; }

/* Article body: rendered from markdown, so style the bare elements. */
.post-body {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.5rem;
    color: rgba(0, 0, 0, 0.75);
    font-size: 1.05rem;
    line-height: 1.75;
}
.post-body h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: var(--black);
    margin: 2.5rem 0 1rem;
}
.post-body h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--black);
    margin: 2rem 0 0.75rem;
}
.post-body p { margin: 0 0 1.25rem; }
.post-body a { color: var(--purple-deep); text-decoration: underline; }
.post-body a:hover { color: var(--purple); }
.post-body ul, .post-body ol { margin: 0 0 1.25rem; padding-left: 1.5rem; }
.post-body li { margin-bottom: 0.5rem; }
.post-body img { border-radius: 0.75rem; margin: 1.5rem 0; }
.post-body blockquote {
    margin: 1.5rem 0;
    padding: 0.5rem 1.25rem;
    border-left: 3px solid var(--purple);
    background: rgba(168, 95, 237, 0.06);
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
}
.post-body blockquote p { margin: 0.5rem 0; }
.post-body code {
    background: rgba(0, 0, 0, 0.06);
    border-radius: 4px;
    padding: 0.1em 0.35em;
    font-size: 0.9em;
}
.post-body pre {
    background: #111;
    color: #eee;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    overflow-x: auto;
}
.post-body pre code { background: none; padding: 0; }
.post-body table { border-collapse: collapse; width: 100%; margin: 1.5rem 0; }
.post-body th, .post-body td { border: 1px solid var(--gray-line); padding: 0.5rem 0.75rem; text-align: left; }
.post-body th { background: var(--gray-bg); }
.post-body hr { border: none; border-top: 1px solid var(--gray-line); margin: 2.5rem 0; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-3 { margin-top: 3rem; }
.mb-5 { margin-bottom: 5rem; }
.section-header-flex {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 4rem;
}
@media (min-width: 768px) {
    .section-header-flex { flex-direction: row; justify-content: space-between; align-items: flex-end; }
}
.section-header-flex .side-note {
    color: rgba(255, 255, 255, 0.4);
    max-width: 24rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: bold;
    line-height: 1.6;
    margin: 0;
}
