/* ─── Reset & Variables ─────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #F8F9FA;
    --text-primary: #0A0A0A;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    --brand-dark: #13352A;
    --brand-green: #1E795E;
    --brand-light: #E8F5F0;
    --border: #E2E8F0;
    --white: #FFFFFF;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 4px rgba(0,0,0,0.02);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    --max-width: 1080px;
    --section-padding: 100px 24px;
}

html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

/* ─── WebGL Canvas ─────────────────────────────────────────────────── */
canvas#grid {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ─── Font Face ────────────────────────────────────────────────────── */
@font-face {
    font-family: 'Monument Extended';
    src: url('/fonts/PPMonumentExtended-Black.woff2') format('woff2'),
         url('/fonts/PPMonumentExtended-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ─── Typography ───────────────────────────────────────────────────── */
h1, h2 { font-family: 'Monument Extended', 'Space Grotesk', sans-serif; line-height: 1.15; letter-spacing: -0.02em; text-transform: uppercase; }
h2 { font-size: 2.5rem; font-weight: 900; }
h3, h4 { font-family: 'Space Grotesk', sans-serif; line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: 700; }
.eyebrow {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brand-green);
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 16px auto 0;
    text-align: center;
}

/* ─── Navbar ───────────────────────────────────────────────────────── */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 32px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(248, 249, 250, 0.85);
    border-bottom: 1px solid rgba(0,0,0,0.04);
    transition: box-shadow 0.3s ease;
}
.site-nav.scrolled { box-shadow: 0 1px 8px rgba(0,0,0,0.06); }
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    flex-shrink: 0;
}
.nav-logo svg { width: 28px; height: 28px; }
.nav-logo span {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}
.nav-wordmark { height: 28px; width: auto; }
.footer-wordmark { height: 24px; width: auto; }
/* Nav links row */
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}
.nav-link {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s;
    cursor: pointer;
    background: none;
    border: none;
    white-space: nowrap;
}
.nav-link:hover { color: var(--text-primary); background: rgba(0,0,0,0.03); }
.nav-cta { margin-left: auto; flex-shrink: 0; }
/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.dropdown-chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.2s;
    color: var(--text-muted);
}
.nav-dropdown.open .dropdown-chevron { transform: rotate(180deg); }
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 240px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    z-index: 200;
}
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-dropdown-menu a {
    display: block;
    padding: 10px 14px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: background 0.15s, color 0.15s;
}
.nav-dropdown-menu a:hover { background: var(--brand-light); color: var(--brand-dark); }
.nav-dropdown-menu a.active { color: var(--brand-green); font-weight: 600; }
/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 201;
}
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* Mobile menu overlay */
.nav-mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    top: 56px;
    background: var(--white);
    z-index: 199;
    padding: 24px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}
.nav-mobile-menu.open { transform: translateX(0); }
.mobile-nav-section { border-bottom: 1px solid var(--border); padding: 8px 0; }
.mobile-accordion-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 0;
    background: none;
    border: none;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
}
.mobile-accordion-trigger .dropdown-chevron { transition: transform 0.2s; }
.mobile-nav-section.open .mobile-accordion-trigger .dropdown-chevron { transform: rotate(180deg); }
.mobile-nav-links {
    display: none;
    padding: 0 0 12px 8px;
}
.mobile-nav-section.open .mobile-nav-links { display: block; }
.mobile-nav-links a {
    display: block;
    padding: 10px 12px;
    font-size: 0.92rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
}
.mobile-nav-links a:hover, .mobile-nav-links a.active { color: var(--brand-green); background: var(--brand-light); }
.mobile-nav-cta {
    margin-top: 24px;
    text-align: center;
}

/* ─── Buttons ──────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 13px 28px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-green) 100%);
    box-shadow: 0 2px 8px rgba(30, 121, 94, 0.2);
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(30, 121, 94, 0.25); }
.btn-primary:active { transform: translateY(0); filter: brightness(0.95); }
.btn-secondary {
    color: var(--brand-green);
    background: transparent;
    border: 1.5px solid var(--border);
    padding: 12px 27px;
}
.btn-secondary:hover { border-color: var(--brand-green); background: var(--brand-light); }
.btn-text {
    color: var(--brand-green);
    background: none;
    border: none;
    padding: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-text:hover { gap: 10px; }
.btn-text .arrow { transition: transform 0.2s ease; }
.btn-text:hover .arrow { transform: translateX(3px); }
.btn-lg { padding: 16px 36px; font-size: 1rem; border-radius: 14px; }

/* ─── Sections ─────────────────────────────────────────────────────── */
.section {
    position: relative;
    z-index: 1;
    padding: var(--section-padding);
}
.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}
.section-header {
    text-align: center;
    margin-bottom: 56px;
}

/* ─── Hero ─────────────────────────────────────────────────────────── */
.hero-section {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.5fr;
    gap: 40px;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    padding: 0 40px;
}
.hero-content {
    text-align: left;
}
.hero-content h1 {
    font-size: 3.25rem;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-top: 20px;
}
.hero-content .subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 24px 0 0;
    line-height: 1.7;
}
.hero-ctas {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.hero-proof {
    margin-top: 48px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: 'Space Mono', monospace;
    letter-spacing: 0.02em;
}
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: visible;
}
.hero-image {
    width: 140%;
    min-width: 520px;
    max-width: none;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

/* Hero animations */
.hero-content .eyebrow { animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }
.hero-content h1 { animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both; }
.hero-content .subtitle { animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both; }
.hero-ctas { animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both; }
.hero-proof { animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.65s both; }
.hero-visual { animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both; }

/* ─── Pain Cards ───────────────────────────────────────────────────── */
.pain-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.pain-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pain-card::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 0;
    width: 3px;
    height: 24px;
    background: var(--brand-green);
    border-radius: 0 3px 3px 0;
}
.pain-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.pain-card .icon {
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
    color: var(--brand-green);
}
.pain-card h3 { margin-bottom: 8px; }
.pain-card p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.6; }

/* ─── Mechanism: Horizontal Scroll Journey ────────────────────────── */
.mechanism-section {
    position: relative;
    z-index: 1;
    height: 300vh;
    padding: 0;
    background: var(--brand-dark) url('/images/sectionbg.png') no-repeat center center / cover;
    background-attachment: fixed;
}
.mechanism-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    background: transparent;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.mechanism-header {
    text-align: center;
    padding: 0 24px 24px;
    flex-shrink: 0;
}
.mechanism-header .eyebrow { color: rgba(30, 121, 94, 0.9); }
.mechanism-header h2 { color: var(--white); font-size: 2rem; }
.mechanism-viewport {
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.mechanism-track {
    display: flex;
    align-items: center;
    gap: 0;
    will-change: transform;
    padding: 0 max(40px, calc((100vw - 900px) / 2));
}
.mechanism-panel {
    flex: 0 0 50vw;
    max-width: 500px;
    padding: 32px;
    text-align: center;
}
.mechanism-panel h3 {
    color: var(--white);
    font-size: 1.35rem;
    margin-bottom: 12px;
}
.mechanism-panel p {
    color: rgba(255,255,255,0.6);
    font-size: 0.92rem;
    line-height: 1.6;
    max-width: 420px;
    margin: 0 auto;
}
/* Panel: Chaos (Where You Are Now) */
.panel-chaos h3 { color: #F59E0B; }
.panel-chaos .chaos-icons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.panel-chaos .chaos-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F59E0B;
}
.panel-chaos .chaos-icon svg { width: 24px; height: 24px; }
/* Converging / Diverging lines */
.mechanism-lines {
    flex: 0 0 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
}
.mechanism-lines svg {
    width: 100%;
    height: 200px;
    overflow: visible;
}
.flow-line {
    fill: none;
    stroke: rgba(30, 121, 94, 0.3);
    stroke-width: 2;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 0.1s linear;
}
.flow-line.animated {
    stroke: var(--brand-green);
    stroke-width: 2.5;
    filter: drop-shadow(0 0 4px rgba(30, 121, 94, 0.5));
}
.flow-dot {
    fill: var(--brand-green);
    opacity: 0;
    transition: opacity 0.3s ease;
    filter: drop-shadow(0 0 8px rgba(30, 121, 94, 0.8));
}
.flow-dot.visible {
    opacity: 1;
}
/* Panel: Manej (center) */
.panel-manej {
    position: relative;
    flex: 0 0 45vw;
    max-width: 420px;
}
.panel-manej h3 {
    color: #fff;
    font-size: 1.5rem;
}
.manej-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30, 121, 94, 0.2) 0%, transparent 70%);
    pointer-events: none;
}
.manej-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(30, 121, 94, 0.15);
    border: 2px solid rgba(30, 121, 94, 0.4);
    color: var(--brand-green);
    margin-bottom: 20px;
}
/* Panel: Outcomes */
.panel-outcomes {
    flex: 0 0 55vw;
    max-width: 560px;
}
.outcome-cards {
    display: flex;
    gap: 24px;
    justify-content: center;
}
.outcome-card {
    flex: 1;
    max-width: 240px;
    padding: 28px 20px;
    background: rgba(30, 121, 94, 0.08);
    border: 1px solid rgba(30, 121, 94, 0.2);
    border-radius: var(--radius);
    text-align: center;
}
.outcome-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(30, 121, 94, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--brand-green);
}
.outcome-icon svg { width: 24px; height: 24px; }
.outcome-card h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
}
.outcome-card p {
    color: rgba(255,255,255,0.55);
    font-size: 0.85rem;
    line-height: 1.5;
}
/* Progress dots */
.mechanism-progress {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px 0;
    flex-shrink: 0;
}
.mechanism-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    transition: background 0.3s ease, transform 0.3s ease;
}
.mechanism-dot.active {
    background: var(--brand-green);
    transform: scale(1.3);
}

/* Legacy stack layers (keep for backwards compat) */
.stack-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.stack-layer {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stack-layer:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stack-layer .layer-num {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--brand-green);
    margin-bottom: 16px;
}
.stack-layer .icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    color: var(--brand-green);
}
.stack-layer h3 { margin-bottom: 12px; }
.stack-layer p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.6; }
.stack-layer .example {
    margin-top: 20px;
    padding: 14px 16px;
    background: var(--brand-light);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: var(--brand-dark);
    line-height: 1.5;
    font-style: italic;
}

/* ─── Comparison Table ─────────────────────────────────────────────── */
.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--white);
}
.comparison-table th {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 18px 24px;
    text-align: left;
}
.comparison-table th:first-child { background: #F1F5F9; color: var(--text-secondary); }
.comparison-table th:last-child { background: var(--brand-light); color: var(--brand-dark); }
.comparison-table td {
    padding: 16px 24px;
    font-size: 0.92rem;
    border-top: 1px solid var(--border);
    vertical-align: top;
    line-height: 1.5;
}
.comparison-table td:first-child { color: var(--text-secondary); background: rgba(241,245,249,0.5); }
.comparison-table td:last-child { color: var(--text-primary); }
.comparison-table .icon-x { color: #DC2626; margin-right: 8px; }
.comparison-table .icon-check { color: var(--brand-green); margin-right: 8px; }

/* ─── Task Cards (Homepage) ────────────────────────────────────────── */
.task-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.task-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
}
.task-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.task-card-link::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}
.task-card .task-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--brand-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--brand-green);
    flex-shrink: 0;
}
.task-card .task-icon svg { width: 20px; height: 20px; }
.task-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.task-card p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.6; flex: 1; }
.task-metric {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.task-metric .from { color: var(--text-muted); text-decoration: line-through; }
.task-metric .to { color: var(--brand-green); font-weight: 600; }
.task-metric .arrow-icon { color: var(--text-muted); }
.task-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--brand-green);
    text-decoration: none;
}
.task-card-link:hover { gap: 10px; }
.task-card-link .arrow { transition: transform 0.2s; display: inline-block; }
.task-card-link:hover .arrow { transform: translateX(3px); }

/* ─── Task & Industry Page Styles ──────────────────────────────────── */
.page-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}
.page-hero .section-inner {
    text-align: center;
    max-width: 720px;
}
.page-hero h1 {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-top: 16px;
}
.page-hero .subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 20px auto 0;
    max-width: 600px;
    line-height: 1.7;
}
.page-hero .hero-ctas {
    justify-content: center;
    margin-top: 36px;
}
.page-hero .hero-image {
    margin-top: 48px;
    max-width: 640px;
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
/* Solution steps on task pages */
.solution-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    position: relative;
}
.solution-step {
    text-align: center;
    padding: 0 28px;
    position: relative;
}
.solution-step::after {
    content: '';
    position: absolute;
    top: 28px;
    right: 0;
    width: 100%;
    height: 1px;
    background: var(--border);
}
.solution-step:last-child::after { display: none; }
.solution-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--brand-light);
    color: var(--brand-green);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}
.solution-step h3 { font-size: 1.15rem; margin-bottom: 10px; }
.solution-step p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.6; }
/* Related tasks grid */
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
/* Metrics grid on industry pages */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.metric-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
}
.metric-card .metric-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-green);
    line-height: 1.2;
}
.metric-card .metric-label {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-top: 8px;
    line-height: 1.5;
}
/* Relevant tasks on industry pages */
.relevant-tasks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.relevant-task-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}
.relevant-task-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.relevant-task-card .task-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--brand-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-green);
    flex-shrink: 0;
}
.relevant-task-card .task-icon svg { width: 20px; height: 20px; }
.relevant-task-card h3 { font-size: 1rem; margin-bottom: 4px; }
.relevant-task-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }

/* ─── Industry Cards ───────────────────────────────────────────────── */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.industry-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.industry-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.industry-card-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.industry-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.industry-card:hover .industry-card-image img {
    transform: scale(1.03);
}
.industry-card-body {
    padding: 28px;
}
.industry-tag {
    display: inline-block;
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 100px;
    margin-bottom: 18px;
}
.industry-tag.therapy { background: #EDE9FE; color: #6D28D9; }
.industry-tag.cleaning { background: #FEF3C7; color: #B45309; }
.industry-tag.service { background: #DBEAFE; color: #1D4ED8; }
.industry-card p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.6; margin-bottom: 18px; }
.industry-metric {
    padding: 14px 0 0;
    border-top: 1px solid var(--border);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
}
.industry-metric .from { color: var(--text-muted); text-decoration: line-through; }
.industry-metric .to { color: var(--brand-green); font-weight: 600; }
.industry-metric .arrow-icon { margin: 0 8px; color: var(--text-muted); }

/* ─── Process Steps ────────────────────────────────────────────────── */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    position: relative;
}
.process-step {
    text-align: center;
    padding: 0 32px;
    position: relative;
}
.process-step::after {
    content: '';
    position: absolute;
    top: 24px;
    right: 0;
    width: 100%;
    height: 1px;
    background: var(--border);
    z-index: 0;
}
.process-step:last-child::after { display: none; }
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand-light);
    color: var(--brand-green);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}
.process-step h3 { margin-bottom: 10px; }
.process-step p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.6; }

/* ─── CTA Section ──────────────────────────────────────────────────── */
.cta-section {
    background: var(--brand-light);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-section h2 { max-width: 560px; margin: 0 auto; position: relative; }
.cta-section .section-subtitle { margin-bottom: 36px; position: relative; }
.cta-section .section-inner { position: relative; z-index: 1; }
.cta-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.12;
    pointer-events: none;
}
.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.cta-disclaimer {
    margin-top: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
    position: relative;
}

/* ─── Book a Call Section ──────────────────────────────────────────── */
.book-call-section {
    text-align: center;
}
.book-call-section h2 { max-width: 560px; margin: 0 auto; }
.roam-embed-wrapper {
    max-width: 700px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
}

/* ─── Footer ───────────────────────────────────────────────────────── */
.site-footer {
    position: relative;
    z-index: 1;
    padding: 56px 24px 32px;
    border-top: 1px solid var(--border);
    background: var(--bg);
}
.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 0.8fr;
    gap: 40px;
}
.footer-brand-col {}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.footer-brand svg { width: 20px; height: 20px; }
.footer-brand span {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.footer-tagline {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.footer-col h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a {
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s;
}
.footer-col ul a:hover { color: var(--brand-green); }
.footer-bottom {
    max-width: var(--max-width);
    margin: 32px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
}
.footer-copy {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ─── Scroll Animations ────────────────────────────────────────────── */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Keyframes ────────────────────────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes drawCheck {
    to { stroke-dashoffset: 0; }
}

/* ─── Success State ────────────────────────────────────────────────── */
.success-message {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: fadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.success-message.visible { display: flex; }
.success-check {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand-green));
    display: flex; align-items: center; justify-content: center;
    animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}
.success-check svg { width: 20px; height: 20px; stroke: white; stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.success-check svg path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: drawCheck 0.4s ease 0.35s forwards; }
.success-title { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1.1rem; }
.success-sub { font-size: 0.875rem; color: var(--text-secondary); }

/* ─── Inline Waitlist Form (Hero) ──────────────────────────────────── */
.waitlist-form {
    display: flex;
    gap: 0;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.06), var(--shadow-sm);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    background: var(--white);
}
.waitlist-form:focus-within {
    box-shadow: 0 0 0 1px rgba(30, 121, 94, 0.2), 0 0 0 4px rgba(30, 121, 94, 0.06), 0 4px 16px rgba(0,0,0,0.06);
    transform: translateY(-1px);
}
.waitlist-form input[type="email"] {
    flex: 1; padding: 14px 18px; border: none; outline: none;
    font-family: 'Inter', sans-serif; font-size: 0.9rem;
    color: var(--text-primary); background: transparent; min-width: 0;
}
.waitlist-form input[type="email"]::placeholder { color: #B0B8C4; }
.waitlist-form button {
    padding: 14px 24px; border: none; outline: none;
    font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 0.85rem;
    color: white; background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-green) 100%);
    cursor: pointer; transition: all 0.25s ease; white-space: nowrap;
}
.waitlist-form button:hover { filter: brightness(1.1); }
.waitlist-form button .btn-text { display: flex; align-items: center; gap: 6px; }
.waitlist-form button .arrow { transition: transform 0.25s ease; display: inline-block; }
.waitlist-form button:hover .arrow { transform: translateX(3px); }

/* ─── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 860px) {
    h2 { font-size: 2rem; }
    /* Nav: show hamburger, hide links */
    .nav-links { display: none; }
    .nav-hamburger { display: flex; margin-left: auto; }
    .nav-mobile-menu { display: block; }
    .nav-cta { display: none; }
    .hero-section { overflow: hidden; }
    .hero-grid { grid-template-columns: 1fr; gap: 32px; text-align: center; padding: 0 20px; }
    .hero-content { text-align: center; max-width: 680px; margin: 0 auto; }
    .hero-content .subtitle { margin: 24px auto 0; }
    .hero-ctas { justify-content: center; flex-wrap: wrap; }
    .hero-ctas .btn { white-space: nowrap; }
    .hero-visual { order: -1; overflow: hidden; justify-content: center; }
    .hero-image { width: 100%; min-width: 0; max-width: 480px; max-height: 320px; object-fit: contain; }
    .hero-content h1 { font-size: 2.5rem; }
    .pain-grid { grid-template-columns: 1fr; }
    .task-grid { grid-template-columns: 1fr; }
    .stack-grid { grid-template-columns: 1fr; }
    .industry-grid { grid-template-columns: 1fr; }
    .industry-card-image { aspect-ratio: 16 / 9; }
    .process-grid { grid-template-columns: 1fr; gap: 40px; }
    .process-step::after { display: none; }
    .process-step { padding: 0; }
    .solution-grid { grid-template-columns: 1fr; gap: 40px; }
    .solution-step::after { display: none; }
    .solution-step { padding: 0; }
    .related-grid { grid-template-columns: 1fr; }
    .metrics-grid { grid-template-columns: 1fr; }
    .relevant-tasks-grid { grid-template-columns: 1fr; }
    .comparison-table { font-size: 0.85rem; }
    .comparison-table td, .comparison-table th { padding: 12px 16px; }
    :root { --section-padding: 72px 20px; }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
    .page-hero h1 { font-size: 2.25rem; }
    .page-hero { min-height: 50vh; }

    /* Mechanism: vertical stack on mobile */
    .mechanism-section {
        height: auto;
        padding: 72px 20px;
        background: var(--brand-dark) url('/images/sectionbg.png') no-repeat center center / cover;
        background-attachment: scroll;
    }
    .mechanism-sticky {
        position: static;
        height: auto;
        background: transparent;
        border: none;
    }
    .mechanism-header { margin-bottom: 32px; padding-top: 0; }
    .mechanism-viewport { overflow: visible; }
    .mechanism-track {
        flex-direction: column;
        gap: 0;
        padding: 0;
        transform: none !important;
    }
    .mechanism-panel {
        flex: none;
        width: 100%;
        max-width: 100%;
        padding: 24px 0;
    }
    .mechanism-panel.panel-manej,
    .mechanism-panel.panel-outcomes {
        flex: none;
        max-width: 100%;
    }
    .mechanism-lines {
        flex: none;
        width: 100%;
        height: 60px;
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .mechanism-lines svg {
        width: 60px;
        height: 120px;
        transform: rotate(90deg);
    }
    .outcome-cards {
        flex-direction: column;
        align-items: center;
    }
    .outcome-card {
        max-width: 100%;
        width: 100%;
    }
    .mechanism-progress { display: none; }
}

@media (max-width: 520px) {
    .hero-grid { padding: 0 16px; }
    .hero-content h1 { font-size: 2rem; }
    .hero-content .subtitle { font-size: 1rem; }
    .hero-ctas { flex-direction: column; width: 100%; }
    .hero-ctas .btn { width: 100%; justify-content: center; box-sizing: border-box; }
    .hero-image { max-width: 100%; min-width: 0; border-radius: var(--radius-sm); }
    .waitlist-form { flex-direction: column; }
    .waitlist-form input[type="email"] { text-align: center; padding: 16px; }
    .waitlist-form button { border-radius: 0; padding: 16px 24px; justify-content: center; }
    .waitlist-form button .btn-text { justify-content: center; }
    .site-nav { padding: 12px 16px; }
    .nav-logo span { font-size: 1.1rem; }
    .footer-inner { grid-template-columns: 1fr; gap: 24px; text-align: center; }
    .footer-brand { justify-content: center; }
    .page-hero h1 { font-size: 1.85rem; }
}
