/*
 * PalimRev v5 — Light theme, Meter-inspired
 * Soft grey base, white surfaces, teal accent, clean open look
 */

:root {
    /* Light palette — Meter-inspired */
    --bg:             #F4F4F8;
    --bg-alt:         #EEEEF2;
    --surface:        #FFFFFF;
    --text:           #1A1A2E;
    --text-secondary: #6B7084;
    --text-muted:     #9CA0B0;
    --border:         rgba(0, 0, 0, 0.08);
    --border-strong:  rgba(0, 0, 0, 0.12);

    /* Accent */
    --teal:           #f43f5e;
    --teal-hover:     #d6354f;
    --teal-dim:       rgba(244, 63, 94, 0.08);
    --teal-glow:      rgba(244, 63, 94, 0.15);
    --teal-text:      #e0364d;

    /* Dark surfaces (for code blocks, modern doc mockup) */
    --ink:            #1A1A2E;
    --ink-raised:     #22223A;
    --ink-surface:    #2A2A44;

    /* Typography */
    --font-display:   'Playfair Display', Georgia, serif;
    --font-body:      'Inter', system-ui, sans-serif;
    --font-mono:      'JetBrains Mono', monospace;

    --nav-height:     64px;
    --ease:           cubic-bezier(0.16, 1, 0.3, 1);
    --transition:     all 0.3s var(--ease);
}

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

html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; background: var(--bg); }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ─── Navbar — light, Meter-style ────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(244, 244, 248, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3rem;
    z-index: 100;
    transition: var(--transition);
}

.navbar.scrolled { background: rgba(244, 244, 248, 0.96); box-shadow: 0 1px 4px rgba(0,0,0,0.04); }

.navbar__logo {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.03em;
    flex-shrink: 0;
}
.navbar__logo span { color: var(--teal); }

.navbar__center {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.navbar__link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.25rem 0;
    position: relative;
}

.navbar__link:hover { color: var(--text); }

.navbar__link.active { color: var(--teal); }

.navbar__link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--teal);
    border-radius: 1px;
}

.navbar__cta {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.5rem 1.4rem;
    background: var(--teal);
    color: #fff;
    border-radius: 100px;
    flex-shrink: 0;
}
.navbar__cta:hover { background: var(--teal-hover); color: #fff; }

@media (max-width: 768px) {
    .navbar { padding: 0 1.25rem; }
    .navbar__center { display: none; }
    .navbar__cta { font-size: 0.7rem; padding: 0.4rem 1rem; }
}

/* ─── Main Content ───────────────────────────────────────── */
.content { padding-top: var(--nav-height); }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border-radius: 100px;
}

.btn--teal { background: var(--teal); color: #fff; }
.btn--teal:hover { background: var(--teal-hover); color: #fff; }

.btn--ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn--ghost:hover { background: var(--bg-alt); border-color: var(--text-muted); }

.btn--full { width: 100%; }

/* ─── Eyebrow ────────────────────────────────────────────── */
.eyebrow {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--teal);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}
.eyebrow::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    width: 1rem; height: 1px;
    background: var(--teal);
}

/* ═══════════════════════════════════════════════════════════
   SECTION 1: THE SPLIT — BEFORE / AFTER
   ═══════════════════════════════════════════════════════════ */
.split {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0;
    padding: 4rem 3rem;
    position: relative;
    overflow: visible;
    background: var(--bg);
}

.split::before {
    content: 'REVISION';
    position: absolute;
    bottom: -5%;
    right: -2%;
    font-family: var(--font-display);
    font-size: clamp(8rem, 16vw, 20rem);
    font-weight: 800;
    color: rgba(0, 0, 0, 0.025);
    pointer-events: none;
    user-select: none;
    line-height: 1;
}

.split__before, .split__after {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.split__divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 0 2rem;
}

.split__divider-line {
    width: 1px;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--teal), transparent);
}

.split__divider-label { text-align: center; }

.split__tagline {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.split__sub {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 280px;
}

.split__actions { display: flex; flex-direction: column; gap: 0.75rem; }

/* Legacy doc */
.split__doc--legacy {
    background: #EAE4D6;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    width: 416px;
    transform: rotate(-1.5deg);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    overflow: hidden;
    animation: heroSlideLeft 1s var(--ease) 0.3s both;
}

/* PDF viewer mockup */
.pdf-viewer {
    background: #f0ede8;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

.pdf-toolbar {
    background: #d8d4cc;
    padding: 0.4rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.12);
}

.pdf-toolbar__icon {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--teal-text);
    background: rgba(244,63,94,0.12);
    padding: 0.15rem 0.4rem;
    border-radius: 2px;
    flex-shrink: 0;
}

.pdf-toolbar__title {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    color: #6B6455;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pdf-toolbar__controls {
    display: flex;
    gap: 0.3rem;
    align-items: center;
}

.pdf-ctrl {
    width: 18px;
    height: 10px;
    background: rgba(0,0,0,0.15);
    border-radius: 2px;
}

.pdf-ctrl--wide { width: 32px; }

.pdf-page {
    background: #ffffff;
    margin: 0.75rem;
    padding: 1.25rem;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: relative;
}

.pdf-page__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.pdf-page__logo-block {
    width: 28px;
    height: 28px;
    background: rgba(0,0,0,0.1);
    border-radius: 3px;
    flex-shrink: 0;
}

.pdf-page__divider {
    height: 1px;
    background: rgba(0,0,0,0.1);
    margin-bottom: 0.75rem;
}

.pdf-page__footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.pdf-page__page-num {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    color: rgba(0,0,0,0.3);
    flex-shrink: 0;
}

/* Modern doc — stays dark (code editor) */
.split__doc--modern {
    background: var(--ink-raised);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    width: 442px;
    transform: rotate(1deg);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: heroSlideRight 1s var(--ease) 0.5s both;
}

/* Docs site mockup */
.docs-mockup {
    background: var(--ink-raised);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
}

.docs-mockup__topbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    background: var(--ink);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}

.docs-mockup__logo {
    width: 16px;
    height: 16px;
    background: var(--teal);
    border-radius: 3px;
    flex-shrink: 0;
    opacity: 0.85;
}

.docs-mockup__nav {
    display: flex;
    gap: 0.35rem;
    flex: 1;
}

.docs-mockup__body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.docs-mockup__sidebar {
    width: 30%;
    padding: 0.6rem 0.5rem;
    border-right: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex-shrink: 0;
}

.docs-mockup__content {
    flex: 1;
    padding: 0.6rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    overflow: hidden;
}

.docs-mockup__code-block {
    min-height: 36px;
    height: auto;
    padding: 0.25rem 0.4rem;
    background: rgba(0,0,0,0.3);
    border-radius: 3px;
    border-left: 2px solid var(--teal);
    margin: 0.2rem 0;
}

/* PDF believable text */
.pdf-page__title-text {
    font-family: var(--font-body);
    font-size: 0.5rem;
    font-weight: 700;
    color: rgba(0,0,0,0.7);
    line-height: 1.3;
}
.pdf-page__title-text span {
    font-weight: 400;
    font-size: 0.38rem;
    color: rgba(0,0,0,0.45);
}
.pdf-page__section-title {
    font-family: var(--font-body);
    font-size: 0.45rem;
    font-weight: 700;
    color: rgba(0,0,0,0.7);
    margin: 0.5rem 0 0.25rem;
    line-height: 1.3;
}
.pdf-page__body-text {
    font-family: var(--font-body);
    font-size: 0.38rem;
    color: rgba(0,0,0,0.5);
    line-height: 1.6;
    margin-bottom: 0.35rem;
}
.pdf-page__table {
    margin: 0.3rem 0;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 2px;
    overflow: hidden;
}
.pdf-table__row {
    display: flex;
    font-family: var(--font-mono);
    font-size: 0.32rem;
    color: rgba(0,0,0,0.5);
    padding: 0.15rem 0.3rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.pdf-table__row span { flex: 1; }
.pdf-table__row--header {
    background: rgba(0,0,0,0.04);
    font-weight: 600;
    color: rgba(0,0,0,0.6);
}
.pdf-page__footer-text {
    font-family: var(--font-mono);
    font-size: 0.32rem;
    color: rgba(0,0,0,0.25);
    flex: 1;
}

/* Docs file tree sidebar */
.docs-tree__section { margin-bottom: 0.3rem; }
.docs-tree__header {
    font-family: var(--font-body);
    font-size: 0.4rem;
    font-weight: 600;
    color: rgba(255,255,255,0.45);
    padding: 0.12rem 0.25rem;
    letter-spacing: 0.02em;
}
.docs-tree__header--expanded { color: rgba(255,255,255,0.6); }
.docs-tree__item {
    font-family: var(--font-body);
    font-size: 0.38rem;
    color: rgba(255,255,255,0.3);
    padding: 0.1rem 0.25rem 0.1rem 0.5rem;
    border-radius: 3px;
    line-height: 1.4;
}
.docs-tree__item--active {
    background: var(--teal);
    color: #fff;
    opacity: 0.8;
}
.docs-tree__item--nested { padding-left: 0.75rem; }

/* Docs content text */
.docs-mockup__breadcrumb-text {
    font-family: var(--font-mono);
    font-size: 0.3rem;
    color: rgba(255,255,255,0.25);
    margin-bottom: 0.25rem;
}
.docs-mockup__h1-text {
    font-family: var(--font-body);
    font-size: 0.55rem;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    margin-bottom: 0.3rem;
    line-height: 1.2;
}
.docs-mockup__h2-text {
    font-family: var(--font-body);
    font-size: 0.42rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    margin: 0.4rem 0 0.15rem;
    line-height: 1.3;
}
.docs-mockup__body-text {
    font-family: var(--font-body);
    font-size: 0.35rem;
    color: rgba(255,255,255,0.4);
    line-height: 1.65;
    margin-bottom: 0.2rem;
}
.docs-code__line {
    font-family: var(--font-mono);
    font-size: 0.32rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
}
.docs-code__comment { color: rgba(255,255,255,0.25); }
.docs-code__kw { color: var(--teal); }

/* Docs topbar text */
.docs-mockup__navtext {
    font-family: var(--font-body);
    font-size: 0.35rem;
    color: rgba(255,255,255,0.4);
}
.docs-mockup__navtext--active { color: rgba(255,255,255,0.8); }
.docs-mockup__search-text {
    font-family: var(--font-mono);
    font-size: 0.3rem;
    color: rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.06);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}

/* Tab panel system */
.docs-tabs {
    flex: 1;
    display: grid;
}

.docs-tabs__panel {
    grid-area: 1 / 1;
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    pointer-events: none;
    display: flex;
    flex-direction: column;
}

.docs-tabs__panel--active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

/* Hero entrance animations */
@keyframes heroSlideLeft {
    from { opacity: 0; transform: rotate(-1.5deg) scale(1.7) translateX(-30px); }
    to { opacity: 1; transform: rotate(-1.5deg) scale(1.7) translateX(0); }
}
@keyframes heroSlideRight {
    from { opacity: 0; transform: rotate(1deg) scale(1.7) translateX(30px); }
    to { opacity: 1; transform: rotate(1deg) scale(1.7) translateX(0); }
}

/* ═══════════════════════════════════════════════════════════
   SECTION 2: SERVICES GALLERY
   ═══════════════════════════════════════════════════════════ */
.services {
    padding: 5rem 3rem 4rem;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.services__header { margin-bottom: 3rem; max-width: 500px; }

.services__header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3vw, 2rem);
    color: var(--text);
}

.services__track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1.5rem;
    cursor: grab;
}

.services__track::-webkit-scrollbar { height: 4px; }
.services__track::-webkit-scrollbar-track { background: var(--bg); border-radius: 4px; }
.services__track::-webkit-scrollbar-thumb { background: var(--teal-dim); border-radius: 4px; }
.services__track::-webkit-scrollbar-thumb:hover { background: var(--teal); }

.svc-card {
    min-width: 340px;
    max-width: 380px;
    flex-shrink: 0;
    scroll-snap-align: start;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.svc-card:hover {
    border-color: var(--teal);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.06), 0 0 0 1px var(--teal-dim);
}

.svc-card__type {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 0.6rem 1.25rem;
    color: var(--teal);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.svc-card__preview { padding: 1.5rem 1.25rem; }

.svc-preview-bar {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.svc-card__preview h4 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 0.5rem; }
.svc-card__preview p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.65; }

.services__scroll-hint {
    margin-top: 1rem;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

/* ═══════════════════════════════════════════════════════════
   SECTION 3: PROCESS — ZIGZAG SNAKE
   ═══════════════════════════════════════════════════════════ */
.process {
    border-top: 1px solid var(--border);
    background: var(--bg);
}

.process__step {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 55vh;
    align-items: center;
    border-bottom: 1px solid var(--border);
    gap: 0;
    /* Reveal animation start state */
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.process__step.revealed {
    opacity: 1;
    transform: translateY(0);
}

.process__text {
    padding: 3rem 4rem 3rem 3rem;
    max-width: 520px;
}

.process__badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 0.75rem;
}

.process__text h3 {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.15;
}

.process__text p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* Mini docs mockup */
.process__mockup {
    display: flex;
    flex-direction: column;
    background: var(--ink-raised);
    border-radius: 8px;
    overflow: hidden;
    width: 380px;
    height: 280px;
    margin: 2rem auto;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    /* Staggered reveal */
    opacity: 0;
    transform: scale(1.615);
    transition: opacity 0.7s var(--ease) 0.2s, transform 0.7s var(--ease) 0.2s;
}

.process__step.revealed .process__mockup {
    opacity: 1;
    transform: scale(1.7);
}

/* Stagger inner elements on reveal */
.process__step.revealed .pmock__sidebar {
    animation: pmockFadeIn 0.6s var(--ease) 0.3s both;
}
.process__step.revealed .pmock__content {
    animation: pmockFadeIn 0.6s var(--ease) 0.5s both;
}
.process__step.revealed .pmock__bar {
    animation: pmockFadeIn 0.4s var(--ease) 0.15s both;
}

@keyframes pmockFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mockup top bar */
.pmock__bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.6rem;
    background: var(--ink);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}

.pmock__dots {
    display: flex;
    gap: 3px;
    flex-shrink: 0;
}

.pmock__dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: block;
}

.pmock__filename {
    font-family: var(--font-mono);
    font-size: 0.45rem;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.05em;
}

/* Mockup body */
.pmock__body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.pmock__sidebar {
    width: 32%;
    padding: 0.4rem 0.35rem;
    border-right: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex-shrink: 0;
}

/* Process mockup file tree */
.pmock__tree-header {
    font-family: var(--font-body);
    font-size: 0.38rem;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    padding: 0.1rem 0.2rem;
    letter-spacing: 0.02em;
}
.pmock__tree-item {
    font-family: var(--font-body);
    font-size: 0.35rem;
    color: rgba(255,255,255,0.28);
    padding: 0.08rem 0.2rem 0.08rem 0.45rem;
    border-radius: 2px;
    line-height: 1.4;
}
.pmock__tree-item--active {
    background: var(--teal);
    color: #fff;
    opacity: 0.8;
}
.pmock__tree-item--nested { padding-left: 0.65rem; }

.pmock__content {
    flex: 1;
    padding: 0.5rem 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    overflow: hidden;
}

/* Process mockup content text */
.pmock__content-h1 {
    font-family: var(--font-body);
    font-size: 0.48rem;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.2rem;
    line-height: 1.2;
}
.pmock__content-h2 {
    font-family: var(--font-body);
    font-size: 0.38rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    margin: 0.3rem 0 0.12rem;
    line-height: 1.3;
}
.pmock__content-text {
    font-family: var(--font-body);
    font-size: 0.32rem;
    color: rgba(255,255,255,0.35);
    line-height: 1.6;
    margin-bottom: 0.15rem;
}

/* Audit: status rows */
.pmock__status-rows { display: flex; flex-direction: column; gap: 0.12rem; margin-top: 0.15rem; }
.pmock__status-row {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    font-family: var(--font-mono);
    font-size: 0.3rem;
    color: rgba(255,255,255,0.4);
}
.pmock__status-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    flex-shrink: 0;
}
.pmock__status-dot--green { background: #10b981; }
.pmock__status-dot--yellow { background: #f59e0b; }
.pmock__status-dot--red { background: var(--teal); }

/* Scope: text checklist */
.pmock__checklist-text { display: flex; flex-direction: column; gap: 0.1rem; margin: 0.15rem 0; }
.pmock__check-item {
    font-family: var(--font-mono);
    font-size: 0.3rem;
    color: rgba(255,255,255,0.35);
    line-height: 1.5;
}
.pmock__check-item--done { color: rgba(255,255,255,0.55); }

/* Migrate: mini code block */
.pmock__mini-code {
    background: rgba(0,0,0,0.3);
    border-radius: 3px;
    border-left: 2px solid var(--teal);
    padding: 0.25rem 0.35rem;
    margin: 0.15rem 0;
}
.pmock__code-text {
    font-family: var(--font-mono);
    font-size: 0.3rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
}
.pmock__code-kw { color: var(--teal); }
.pmock__code-comment { color: rgba(255,255,255,0.2); }

/* Handoff: link cards */
.pmock__link-cards {
    display: flex;
    gap: 0.2rem;
    margin-top: 0.12rem;
}
.pmock__link-card {
    font-family: var(--font-body);
    font-size: 0.28rem;
    color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 3px;
    padding: 0.2rem 0.3rem;
    flex: 1;
    text-align: center;
}

/* ── Process Animations ── */

/* AUDIT: status row cascade scan */
@keyframes auditRowHighlight {
    0%, 100% { opacity: 0.4; color: rgba(255,255,255,0.4); }
    12.5%, 25% { opacity: 0.9; color: rgba(255,255,255,0.85); }
}

.process__step.revealed .process__mockup--audit .pmock__status-row:nth-child(1) {
    animation: auditRowHighlight 8s ease-in-out infinite;
    animation-delay: 0s;
}
.process__step.revealed .process__mockup--audit .pmock__status-row:nth-child(2) {
    animation: auditRowHighlight 8s ease-in-out infinite;
    animation-delay: 2s;
}
.process__step.revealed .process__mockup--audit .pmock__status-row:nth-child(3) {
    animation: auditRowHighlight 8s ease-in-out infinite;
    animation-delay: 4s;
}
.process__step.revealed .process__mockup--audit .pmock__status-row:nth-child(4) {
    animation: auditRowHighlight 8s ease-in-out infinite;
    animation-delay: 6s;
}

/* AUDIT: sidebar item scan */
@keyframes auditSidebarScan {
    0%, 100% { color: rgba(255,255,255,0.28); }
    12.5%, 25% { color: rgba(255,255,255,0.7); }
}

.process__step.revealed .process__mockup--audit .pmock__sidebar .pmock__tree-item:nth-child(2) {
    animation: auditSidebarScan 8s ease-in-out infinite;
    animation-delay: 0s;
}
.process__step.revealed .process__mockup--audit .pmock__sidebar .pmock__tree-item:nth-child(3) {
    animation: auditSidebarScan 8s ease-in-out infinite;
    animation-delay: 2s;
}
.process__step.revealed .process__mockup--audit .pmock__sidebar .pmock__tree-item:nth-child(4) {
    animation: auditSidebarScan 8s ease-in-out infinite;
    animation-delay: 4s;
}

/* SCOPE: checklist tick sequence */
@keyframes scopeTickItem {
    0%, 100% { opacity: 0.35; color: rgba(255,255,255,0.35); }
    10%, 90% { opacity: 0.75; color: rgba(255,255,255,0.75); }
}

.process__step.revealed .process__mockup--scope .pmock__check-item:nth-child(1) {
    animation: scopeTickItem 10s ease-in-out infinite;
    animation-delay: 0s;
}
.process__step.revealed .process__mockup--scope .pmock__check-item:nth-child(2) {
    animation: scopeTickItem 10s ease-in-out infinite;
    animation-delay: 1.8s;
}
.process__step.revealed .process__mockup--scope .pmock__check-item:nth-child(3) {
    animation: scopeTickItem 10s ease-in-out infinite;
    animation-delay: 3.6s;
}
.process__step.revealed .process__mockup--scope .pmock__check-item:nth-child(4) {
    animation: scopeTickItem 10s ease-in-out infinite;
    animation-delay: 5.4s;
}
.process__step.revealed .process__mockup--scope .pmock__check-item:nth-child(5) {
    animation: scopeTickItem 10s ease-in-out infinite;
    animation-delay: 7.2s;
}

/* MIGRATE: code line typing reveal */
@keyframes migrateTypeLine {
    0%, 100% { clip-path: inset(0 100% 0 0); opacity: 0; }
    5% { clip-path: inset(0 100% 0 0); opacity: 1; }
    25%, 75% { clip-path: inset(0 0% 0 0); opacity: 1; }
    90% { clip-path: inset(0 0% 0 0); opacity: 0; }
}

.process__step.revealed .process__mockup--migrate .pmock__code-text {
    white-space: nowrap;
    overflow: hidden;
}

.process__step.revealed .process__mockup--migrate .pmock__code-text:nth-child(1) {
    animation: migrateTypeLine 8s ease-in-out infinite;
    animation-delay: 0s;
}
.process__step.revealed .process__mockup--migrate .pmock__code-text:nth-child(2) {
    animation: migrateTypeLine 8s ease-in-out infinite;
    animation-delay: 2s;
}
.process__step.revealed .process__mockup--migrate .pmock__code-text:nth-child(3) {
    animation: migrateTypeLine 8s ease-in-out infinite;
    animation-delay: 4s;
}

/* HANDOFF: link cards reveal sequence */
@keyframes handoffCardReveal {
    0%, 100% { opacity: 0; transform: translateY(4px); }
    10%, 80% { opacity: 1; transform: translateY(0); }
    90% { opacity: 0; transform: translateY(4px); }
}

.process__step.revealed .process__mockup--handoff .pmock__link-card:nth-child(1) {
    animation: handoffCardReveal 8s ease-in-out infinite;
    animation-delay: 0s;
}
.process__step.revealed .process__mockup--handoff .pmock__link-card:nth-child(2) {
    animation: handoffCardReveal 8s ease-in-out infinite;
    animation-delay: 2s;
}
.process__step.revealed .process__mockup--handoff .pmock__link-card:nth-child(3) {
    animation: handoffCardReveal 8s ease-in-out infinite;
    animation-delay: 4s;
}

/* HANDOFF: sidebar browse highlight */
@keyframes handoffSidebarBrowse {
    0%, 100% { background: transparent; color: rgba(255,255,255,0.28); opacity: 1; }
    10%, 30% { background: var(--teal); color: #fff; opacity: 0.8; }
}

.process__step.revealed .process__mockup--handoff .pmock__sidebar .pmock__tree-item:nth-child(2) {
    animation: handoffSidebarBrowse 8s ease-in-out infinite;
    animation-delay: 0s;
}
.process__step.revealed .process__mockup--handoff .pmock__sidebar .pmock__tree-item:nth-child(3) {
    animation: handoffSidebarBrowse 8s ease-in-out infinite;
    animation-delay: 4s;
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .process__step,
    .process__mockup {
        transition: none;
        opacity: 1;
        transform: none;
    }
    .process__step.revealed .pmock__sidebar,
    .process__step.revealed .pmock__content,
    .process__step.revealed .pmock__bar {
        animation: none;
    }
    /* Process looping animations */
    .process__step.revealed .process__mockup--audit .pmock__status-row,
    .process__step.revealed .process__mockup--audit .pmock__sidebar .pmock__tree-item,
    .process__step.revealed .process__mockup--scope .pmock__check-item,
    .process__step.revealed .process__mockup--migrate .pmock__code-text,
    .process__step.revealed .process__mockup--handoff .pmock__link-card,
    .process__step.revealed .process__mockup--handoff .pmock__sidebar .pmock__tree-item {
        animation: none;
    }
    .split__doc--legacy, .split__doc--modern { animation: none; }
    .docs-tabs__panel { transition: none; }
}

/* ═══════════════════════════════════════════════════════════
   SECTION 4: PROOF — POSTER STATS
   ═══════════════════════════════════════════════════════════ */
.proof {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 6rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.proof__stat {
    display: flex;
    align-items: baseline;
    gap: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 3rem;
}
.proof__stat:last-child { border-bottom: none; padding-bottom: 0; }

.proof__number {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    color: var(--teal);
    line-height: 1;
    letter-spacing: -0.03em;
    flex-shrink: 0;
}
.proof__number strong { color: var(--teal); }

.proof__label {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 400px;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   SECTION 5: INDUSTRIES — HOVER REVEAL GRID
   ═══════════════════════════════════════════════════════════ */
.industries {
    border-top: 1px solid var(--border);
    padding: 5rem 3rem 2rem;
    background: var(--bg);
}

.industries__header { margin-bottom: 2rem; }

.industries__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border);
}

.ind-panel {
    background: var(--bg);
    padding: 3rem 2.5rem;
    cursor: pointer;
    transition: var(--transition);
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    outline: none;
}

.ind-panel__icon { font-size: 1.5rem; margin-bottom: 1rem; transition: var(--transition); }

.ind-panel__name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--text);
    transition: var(--transition);
}

.ind-panel__detail {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    transition: max-height 0.4s var(--ease), opacity 0.3s ease, margin-top 0.3s ease;
}

.ind-panel:hover, .ind-panel:focus { background: var(--surface); }
.ind-panel:hover .ind-panel__name, .ind-panel:focus .ind-panel__name { color: var(--teal); }
.ind-panel:hover .ind-panel__detail, .ind-panel:focus .ind-panel__detail { max-height: 200px; opacity: 1; margin-top: 1rem; }

/* ═══════════════════════════════════════════════════════════
   SECTION 6: ABOUT
   ═══════════════════════════════════════════════════════════ */
.about {
    border-top: 1px solid var(--border);
    padding: 5rem 3rem;
    background: var(--surface);
}

.about__inner { max-width: 640px; }

.about__inner h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.about__inner p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1rem;
}

/* ═══════════════════════════════════════════════════════════
   SECTION 7: FAQ
   ═══════════════════════════════════════════════════════════ */
.faq {
    border-top: 1px solid var(--border);
    padding: 5rem 3rem;
    background: var(--bg);
}

.faq__inner { max-width: 640px; }

.faq__inner h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 2.5rem;
}

.faq__item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}
.faq__item:first-of-type { border-top: 1px solid var(--border); }

.faq__item h3 {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.faq__item p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ═══════════════════════════════════════════════════════════
   SECTION 8: CONTACT
   ═══════════════════════════════════════════════════════════ */
.contact {
    min-height: 100vh;
    display: flex;
    align-items: center;
    border-top: 1px solid var(--border);
    background: var(--surface);
    padding: 4rem 3rem;
}

.contact__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    width: 100%;
    max-width: 1000px;
}

.contact__left h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    color: var(--text);
    margin-bottom: 1rem;
}

.contact__left p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.contact__direct-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    display: block;
}

.contact__direct a { color: var(--teal); font-weight: 600; font-size: 0.95rem; }
.contact__direct a:hover { color: var(--teal-hover); }

.form-group { margin-bottom: 1.25rem; }

.form-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.form-input, .form-textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border-strong);
    padding: 0.8rem 0.9rem;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition);
    border-radius: 8px;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px var(--teal-dim);
}

.form-textarea { height: 120px; resize: none; }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 2rem 3rem;
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.footer__brand { font-weight: 600; color: var(--text); margin-right: 1rem; }
.footer__desc { font-size: 0.8rem; color: var(--text-secondary); }
.footer__links { display: flex; gap: 2rem; }
.footer__links a { font-size: 0.8rem; color: var(--text-secondary); }
.footer__links a:hover { color: var(--teal); }
.footer__copy { font-size: 0.7rem; color: var(--text-muted); }

/* ─── Scroll Reveal ──────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .split {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 5rem 1.5rem 3rem;
        gap: 2rem;
    }
    .split__before, .split__after { padding: 0; }
    .pdf-viewer, .docs-mockup { width: 300px; transform: none; }
    .split__divider { padding: 0; }
    .split__divider-line { height: 60px; }
    .split__before { order: 1; }
    .split__divider { order: 3; }
    .split__after { order: 2; }

    .services { padding: 3rem 1.5rem; }
    .svc-card { min-width: 280px; }

    .process__step { grid-template-columns: 1fr; min-height: auto; }
    .process__text { padding: 2rem 1.5rem 1rem; max-width: 100%; }
    .process__mockup { width: 100%; max-width: 380px; height: 240px; margin: 0 auto 2rem; transform: scale(1); }
    .process__step.revealed .process__mockup { transform: scale(1); }
    /* Ensure text always comes first on mobile regardless of DOM order */
    .process__step .process__mockup { order: 2; }
    .process__step .process__text { order: 1; }

    .proof { padding: 3rem 1.5rem; }
    .proof__stat { flex-direction: column; gap: 0.5rem; }
    .proof__number { font-size: clamp(2.5rem, 10vw, 4rem); }

    .industries { padding: 3rem 1.5rem; }
    .industries__grid { grid-template-columns: 1fr; }
    .ind-panel { min-height: auto; padding: 2rem 1.5rem; }
    .ind-panel__detail { max-height: 200px; opacity: 1; margin-top: 0.75rem; }

    .about { padding: 3rem 1.5rem; }
    .faq { padding: 3rem 1.5rem; }

    .contact { min-height: auto; padding: 3rem 1.5rem; }
    .contact__inner { grid-template-columns: 1fr; gap: 2.5rem; }

    .footer { padding: 2rem 1.5rem; }
    .footer__inner { flex-direction: column; gap: 1rem; align-items: flex-start; }
}
