﻿/* ============================================================
   PEAK ENGAGE V2 — Fog Gradients · Dramatic Typography · Dynamic
   ============================================================ */

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

/* ---------- Tokens ---------- */
:root {
    --bg: #000000;
    --bg-subtle: #050507;
    --bg-card: rgba(255, 255, 255, 0.025);
    --bg-card-hover: rgba(255, 255, 255, 0.055);

    --text: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.55);
    --text-muted: rgba(255, 255, 255, 0.3);
    --text-dim: rgba(255, 255, 255, 0.12);

    --accent: #B8A9FF;
    --accent-2: #8B7FFF;
    --accent-3: #6C63FF;
    --accent-glow: rgba(184, 169, 255, 0.12);
    --accent-glow-strong: rgba(139, 127, 255, 0.25);
    --accent-gradient: linear-gradient(135deg, #B8A9FF, #8B7FFF, #6C63FF);

    --green: #4ADE80;
    --green-dim: rgba(74, 222, 128, 0.1);
    --red: #FF6B6B;
    --red-dim: rgba(255, 107, 107, 0.06);

    --border: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);
    --border-accent: rgba(184, 169, 255, 0.25);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --section-py: clamp(100px, 12vw, 200px);
    --container: 1200px;
    --container-px: clamp(20px, 4vw, 48px);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --r-sm: 6px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 24px;
    --r-pill: 100px;
}

/* ---------- Base ---------- */
html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scrollbar-width: none;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    color: inherit;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--container-px);
}

/* ---------- Loading Screen ---------- */
.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s var(--ease), visibility 0.8s;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-logo {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 700;
    letter-spacing: -0.04em;
    animation: pulse-load 1.5s ease-in-out infinite;
}

.loading-logo span {
    color: var(--accent);
}

@keyframes pulse-load {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

/* ---------- Noise Overlay ---------- */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 128px 128px;
}

/* ==========================================================
   FOG / AMBIENT BACKGROUND EFFECT
   Animated gradient blobs — atmospheric, TenbinLabs-style
   ========================================================== */
.fog-container {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.fog-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    mix-blend-mode: screen;
    opacity: 0;
    animation: fog-drift 20s ease-in-out infinite alternate;
    will-change: transform, opacity;
}

.fog-blob:nth-child(1) {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 127, 255, 0.18) 0%, transparent 70%);
    top: -10%;
    left: 20%;
    animation-duration: 25s;
    animation-delay: 0s;
    opacity: 0.7;
}

.fog-blob:nth-child(2) {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(184, 169, 255, 0.12) 0%, transparent 70%);
    top: 30%;
    right: -5%;
    animation-duration: 30s;
    animation-delay: -5s;
    opacity: 0.5;
}

.fog-blob:nth-child(3) {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.1) 0%, transparent 70%);
    bottom: -15%;
    left: -10%;
    animation-duration: 35s;
    animation-delay: -10s;
    opacity: 0.6;
}

.fog-blob:nth-child(4) {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
    top: 60%;
    left: 50%;
    animation-duration: 22s;
    animation-delay: -8s;
    opacity: 0.4;
}

@keyframes fog-drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -20px) scale(1.05);
    }

    /* ---- Content z-index: above fixed 3D canvas ---- */
    .nav,
    .pain,
    .services,
    .comparison,
    .results,
    .process,
    .workflows,
    .faq,
    .final-cta,
    .footer,
    .trust-bar,
    .firm-hero,
    .firm-section,
    .blog-hero,
    .blog-grid-section,
    .article {
        position: relative;
        z-index: 1;
    }

    50% {
        transform: translate(-20px, 30px) scale(0.95);
    }

    75% {
        transform: translate(15px, 15px) scale(1.08);
    }

    100% {
        transform: translate(-25px, -15px) scale(1);
    }
}


/* ==========================================================
   NAVIGATION
   ========================================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px var(--container-px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.4s, backdrop-filter 0.4s, padding 0.4s;
}

.nav.scrolled {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 14px var(--container-px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.04em;
    z-index: 1001;
}

.nav-logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--text-secondary);
    transition: color 0.3s;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-cta {
    background: var(--accent-gradient) !important;
    color: #000 !important;
    padding: 10px 24px !important;
    border-radius: var(--r-pill) !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    transition: transform 0.3s var(--ease), box-shadow 0.3s !important;
}

.nav-cta:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 30px var(--accent-glow-strong) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    z-index: 1002;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text);
    transition: all 0.3s;
}

/* ---------- Mobile Nav ---------- */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1001;
        background: rgba(6, 4, 15, 0.97);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 28px;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s, visibility 0.4s;
        overflow-y: auto;
        padding: 80px 20px 40px;
        height: 100vh;
        height: 100dvh;
        max-height: -webkit-fill-available;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        font-size: 18px;
        text-transform: none;
        letter-spacing: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
    }
}


/* ==========================================================
   HERO
   ========================================================== */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px var(--container-px) 80px;
    overflow: hidden;
}

/* Radial light / spotlight effect behind hero text */
.hero::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(139, 127, 255, 0.08) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.eyebrow {
    font-size: clamp(11px, 1.2vw, 13px);
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.04em;
    margin-bottom: 28px;
    color: var(--text);
}

.hero h1 em {
    font-style: italic;
    font-weight: 300;
    color: var(--text-secondary);
}

/* Split text words — for JS animation */
.hero h1 .word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
}

.hero h1 .word .char {
    display: inline-block;
    transform: translateY(120%);
    transition: transform 0.8s var(--ease-out);
}

.hero h1.revealed .word .char {
    transform: translateY(0);
}

.hero-sub {
    font-size: clamp(15px, 1.6vw, 18px);
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 40px;
    font-weight: 300;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 16px 36px;
    border-radius: var(--r-pill);
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
    min-height: 48px;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #000;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px var(--accent-glow-strong);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    border-color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-2px);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: clamp(40px, 6vw, 80px);
    padding-top: 48px;
    border-top: 1px solid var(--border);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ==========================================================
   SECTION GLOBAL
   ========================================================== */
section {
    position: relative;
    z-index: 1;
    padding: var(--section-py) 0;
}

.section-title {
    font-size: clamp(32px, 5vw, 60px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 20px;
}

.section-title em {
    font-style: italic;
    font-weight: 300;
    color: var(--text-secondary);
}

.section-sub {
    font-size: clamp(15px, 1.5vw, 18px);
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 600px;
    margin-bottom: 56px;
    font-weight: 300;
}

/* ==========================================================
   REVEAL ANIMATIONS
   ========================================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), filter 0.9s;
    filter: blur(8px);
    will-change: opacity, transform, filter;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out), filter 0.8s;
    filter: blur(6px);
}

.reveal-text.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Stagger children */
.stagger-children .reveal:nth-child(1) {
    transition-delay: 0s;
}

.stagger-children .reveal:nth-child(2) {
    transition-delay: 0.1s;
}

.stagger-children .reveal:nth-child(3) {
    transition-delay: 0.2s;
}

.stagger-children .reveal:nth-child(4) {
    transition-delay: 0.3s;
}

.stagger-children .reveal:nth-child(5) {
    transition-delay: 0.4s;
}

.stagger-children .reveal:nth-child(6) {
    transition-delay: 0.5s;
}

/* Parallax utility — controlled by JS */
.parallax {
    will-change: transform;
}


/* ==========================================================
   TRUST BAR
   ========================================================== */
.trust-bar {
    padding: 60px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.trust-bar .container {
    display: flex;
    align-items: center;
    gap: clamp(16px, 3vw, 40px);
    flex-wrap: wrap;
    justify-content: center;
}

.trust-label {
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}

.trust-logos {
    display: flex;
    gap: clamp(24px, 4vw, 48px);
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.trust-logo {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dim);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.3s;
}

.trust-logo:hover {
    color: var(--text-secondary);
}


/* ==========================================================
   PAIN POINTS
   ========================================================== */
.pain {
    overflow: hidden;
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    margin-top: 48px;
}

.pain-card {
    background: var(--bg-subtle);
    padding: clamp(32px, 4vw, 56px);
    transition: background 0.4s;
}

.pain-card:hover {
    background: var(--bg-card-hover);
}

.pain-icon {
    font-size: 28px;
    margin-bottom: 20px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
}

.pain-card h3 {
    font-size: clamp(16px, 1.8vw, 20px);
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    line-height: 1.3;
}

.pain-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 300;
}


/* ==========================================================
   SERVICES
   ========================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    margin-top: 48px;
}

.service-card {
    background: var(--bg-subtle);
    padding: clamp(32px, 3vw, 48px);
    position: relative;
    transition: background 0.5s;
    overflow: hidden;
}

.service-card:hover {
    background: var(--bg-card-hover);
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, var(--accent-glow) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.service-card:hover::after {
    opacity: 1;
}

.service-num {
    font-size: 11px;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 24px;
    display: block;
}

.service-card h3 {
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 14px;
}

.service-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 300;
}

.service-card .service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    transition: gap 0.3s;
}

.service-card:hover .service-link {
    gap: 10px;
}


/* ==========================================================
   COMPARISON TABLE
   ========================================================== */
.comparison {
    overflow: hidden;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    margin-top: 48px;
}

.comp-col {
    padding: clamp(32px, 4vw, 56px);
}

.comp-col.without {
    background: var(--red-dim);
    border-right: 1px solid var(--border);
}

.comp-col.with {
    background: rgba(74, 222, 128, 0.03);
}

.comp-col h3 {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comp-col.without h3 {
    color: var(--red);
}

.comp-col.with h3 {
    color: var(--green);
}

.comp-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    font-weight: 300;
}

.comp-row:last-child {
    border-bottom: none;
}

.comp-icon {
    font-size: 14px;
    flex-shrink: 0;
}

.comp-col.without .comp-icon {
    color: var(--red);
    opacity: 0.6;
}

.comp-col.with .comp-icon {
    color: var(--green);
}


/* ==========================================================
   RESULTS / CASE STUDIES
   ========================================================== */
.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    margin-top: 48px;
}

.result-card {
    background: var(--bg-subtle);
    padding: clamp(32px, 4vw, 56px);
    position: relative;
    transition: background 0.4s;
}

.result-card:hover {
    background: var(--bg-card-hover);
}

.result-client {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.result-card h3 {
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-bottom: 14px;
}

.result-card>p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 28px;
    font-weight: 300;
}

.result-takeaway {
    font-size: 13px;
    font-weight: 400;
    font-style: italic;
    color: var(--text-muted);
    padding-top: 20px;
    border-top: 1px solid var(--border);
    line-height: 1.6;
}

.result-metrics {
    display: flex;
    gap: clamp(24px, 3vw, 40px);
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.metric-value {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
}

.metric-label {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 6px;
}


/* ==========================================================
   PROCESS / HOW IT WORKS
   ========================================================== */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    margin-top: 48px;
    counter-reset: step;
}

.process-step {
    background: var(--bg-subtle);
    padding: clamp(32px, 3vw, 48px);
    transition: background 0.4s;
    position: relative;
}

.process-step:hover {
    background: var(--bg-card-hover);
}

.step-num {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--text-dim);
    margin-bottom: 20px;
    line-height: 1;
}

.process-step h3 {
    font-size: clamp(16px, 1.8vw, 20px);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    line-height: 1.3;
}

.process-step p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 300;
}

.step-duration {
    display: inline-block;
    margin-top: 16px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    padding: 4px 12px;
    border: 1px solid var(--border-accent);
    border-radius: var(--r-pill);
}


/* ==========================================================
   WORKFLOWS / AUTOMATIONS
   ========================================================== */
.workflow-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    margin-top: 48px;
}

.workflow-tab {
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 400;
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    color: var(--text-secondary);
    transition: all 0.3s;
}

.workflow-tab:hover {
    border-color: var(--border-light);
    color: var(--text);
}

.workflow-tab.active {
    background: var(--accent-gradient);
    color: #000;
    border-color: transparent;
    font-weight: 600;
}

.workflow-detail {
    display: none;
    grid-template-columns: 1fr auto;
    gap: clamp(32px, 4vw, 64px);
    align-items: start;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: clamp(32px, 4vw, 56px);
    background: var(--bg-subtle);
}

.workflow-detail.active {
    display: grid;
}

.workflow-detail h3 {
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
}

.workflow-detail>div>p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 28px;
}

.workflow-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.workflow-step {
    display: flex;
    align-items: center;
    gap: 16px;
}

.workflow-step-num {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--border-accent);
    border-radius: 50%;
    color: var(--accent);
    flex-shrink: 0;
}

.workflow-step-text {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 300;
}

.workflow-stat {
    text-align: center;
    padding: clamp(32px, 3vw, 48px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    min-width: 180px;
}

.workflow-stat .stat-value {
    font-size: clamp(40px, 5vw, 56px);
}

.workflow-stat .stat-label {
    margin-top: 8px;
}


/* ==========================================================
   FAQ ACCORDION
   ========================================================== */
.faq-grid {
    max-width: 800px;
    margin: 48px auto 0;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 24px 0;
    font-size: clamp(15px, 1.6vw, 17px);
    font-weight: 500;
    letter-spacing: -0.01em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.faq-question:hover {
    color: var(--accent);
}

.faq-toggle {
    font-size: 20px;
    font-weight: 300;
    color: var(--text-secondary);
    transition: transform 0.3s;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--ease);
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer-inner {
    padding-bottom: 24px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 300;
}


/* ==========================================================
   FINAL CTA
   ========================================================== */
.final-cta {
    text-align: center;
    padding: clamp(120px, 15vw, 240px) 0;
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    width: 900px;
    height: 900px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    pointer-events: none;
}

.final-cta .section-sub {
    margin-left: auto;
    margin-right: auto;
}


/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
    border-top: 1px solid var(--border);
    padding: 80px 0 40px;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: clamp(32px, 4vw, 64px);
    margin-bottom: 60px;
}

.footer-brand p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-top: 16px;
    max-width: 280px;
}

.footer-col h4 {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 6px 0;
    transition: color 0.3s;
    font-weight: 300;
}

.footer-col a:hover {
    color: var(--text);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-dim);
}

.footer-social {
    display: flex;
    gap: 24px;
}

.footer-social a {
    font-size: 12px;
    color: var(--text-muted);
    transition: color 0.3s;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.footer-social a:hover {
    color: var(--text);
}


/* ==========================================================
   BLOG LIST
   ========================================================== */
.blog-hero {
    padding: 160px 0 80px;
    text-align: center;
}

.blog-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 40px;
}

.blog-filter {
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 400;
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    color: var(--text-secondary);
    transition: all 0.3s;
}

.blog-filter:hover {
    border-color: var(--border-light);
    color: var(--text);
}

.blog-filter.active {
    background: var(--accent-gradient);
    color: #000;
    border-color: transparent;
    font-weight: 600;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.blog-card {
    background: var(--bg-subtle);
    padding: clamp(24px, 3vw, 40px);
    transition: all 0.4s;
}

.blog-card:hover {
    background: var(--bg-card-hover);
}

.blog-card.hidden {
    display: none;
}

.blog-card-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.blog-card h3 {
    font-size: clamp(15px, 1.4vw, 18px);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-bottom: 10px;
}

.blog-card h3 a {
    transition: color 0.3s;
}

.blog-card h3 a:hover {
    color: var(--accent);
}

.blog-card-excerpt {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 300;
    margin-bottom: 16px;
}

.blog-card-meta {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}


/* ==========================================================
   BLOG POST
   ========================================================== */
.blog-post-hero {
    padding: 160px 0 60px;
    text-align: center;
}

.blog-post-hero h1 {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.15;
    max-width: 800px;
    margin: 0 auto 16px;
}

.blog-post-meta {
    font-size: 13px;
    color: var(--text-muted);
}

.blog-post-body {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 var(--container-px) 60px;
}

.blog-post-body h2 {
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 600;
    letter-spacing: -0.03em;
    margin: 48px 0 16px;
    line-height: 1.2;
}

.blog-post-body h3 {
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 600;
    margin: 36px 0 12px;
    letter-spacing: -0.02em;
}

.blog-post-body p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
    font-weight: 300;
}

.blog-post-body ul,
.blog-post-body ol {
    margin: 16px 0 24px 24px;
}

.blog-post-body li {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 8px;
    font-weight: 300;
}

.blog-post-body strong {
    color: var(--text);
    font-weight: 500;
}

.blog-post-body blockquote {
    border-left: 2px solid var(--accent);
    padding: 16px 24px;
    margin: 32px 0;
    background: var(--bg-card);
    border-radius: 0 var(--r-md) var(--r-md) 0;
}

.blog-post-body blockquote p {
    font-style: italic;
    color: var(--text);
    font-weight: 400;
    margin-bottom: 0;
}

.blog-cta {
    text-align: center;
    padding: 80px 0;
    border-top: 1px solid var(--border);
}

.blog-cta h3 {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.blog-cta p {
    color: var(--text-secondary);
    font-size: 15px;
    max-width: 500px;
    margin: 0 auto 32px;
    font-weight: 300;
}


/* ==========================================================
   FIRM PAGE
   ========================================================== */
.firm-hero {
    padding: 160px 0 80px;
    text-align: center;
}

.firm-section {
    padding: var(--section-py) 0;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    margin-top: 48px;
}

.principle-card {
    background: var(--bg-subtle);
    padding: clamp(32px, 3vw, 48px);
    transition: background 0.4s;
}

.principle-card:hover {
    background: var(--bg-card-hover);
}

.principle-card h3 {
    font-size: clamp(16px, 1.6vw, 20px);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.principle-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 300;
}


/* ==========================================================
   MOBILE RESPONSIVE
   ========================================================== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .principles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 140px 20px 80px;
        min-height: auto;
    }

    .hero h1 {
        font-size: clamp(32px, 8vw, 48px);
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    .hero-ctas .btn {
        width: 100%;
        max-width: 300px;
    }

    .pain-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .comp-col.without {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .principles-grid {
        grid-template-columns: 1fr;
    }

    .workflow-detail {
        grid-template-columns: 1fr;
    }

    .workflow-stat {
        margin-top: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .fog-blob:nth-child(1) {
        width: 300px;
        height: 300px;
    }

    .fog-blob:nth-child(2) {
        width: 250px;
        height: 250px;
    }

    .fog-blob:nth-child(3) {
        width: 350px;
        height: 350px;
    }

    .fog-blob:nth-child(4) {
        display: none;
    }

    .section-title {
        font-size: clamp(26px, 7vw, 36px);
    }
}

@media (max-width: 480px) {
    :root {
        --container-px: 16px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero-sub {
        font-size: 14px;
    }

    .stat-value {
        font-size: 32px;
    }

    .blog-post-hero h1 {
        font-size: 24px;
    }

    .workflow-tabs {
        gap: 6px;
    }

    .workflow-tab {
        font-size: 12px;
        padding: 8px 14px;
    }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .fog-blob {
        animation: none !important;
        opacity: 0.4;
    }

    .reveal,
    .reveal-text {
        transition: none !important;
        opacity: 1;
        transform: none;
        filter: none;
    }

    .hero h1 .word .char {
        transform: none !important;
    }
}

/* ---------- Print ---------- */
@media print {

    .noise-overlay,
    .fog-container,
    .loading-screen,
    .nav {
        display: none;
    }

    body {
        background: #fff;
        color: #000;
    }

    section {
        padding: 40px 0;
    }
}