/* ============================================================
   TREEGARDEN LANDING PAGE — DARK THEME STYLES
   Design: Linear / Vercel / Raycast inspired
   Primary: #00A4BD | Dark: #0a0f1a
   ============================================================ */

/* ---- CSS Custom Properties ---- */
:root {
    --color-primary: #00A4BD;
    --color-primary-light: #00c4e0;
    --color-primary-dark: #008a9e;
    --color-primary-glow: rgba(0, 164, 189, 0.25);
    --color-accent: #7C3AED;
    --color-accent-glow: rgba(124, 58, 237, 0.2);

    --bg-darkest: #0a0f1a;
    --bg-dark: #111827;
    --bg-card: #1a1f2e;
    --bg-card-hover: #222838;
    --bg-elevated: #252b3b;

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(255, 255, 255, 0.15);

    --gradient-primary: linear-gradient(135deg, #00A4BD 0%, #7C3AED 100%);
    --gradient-bg: linear-gradient(180deg, #0a0f1a 0%, #111827 100%);
    --gradient-cta: linear-gradient(135deg, #0a0f1a 0%, #1a1040 50%, #0a0f1a 100%);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px var(--color-primary-glow);

    --header-height: 100px;
    --container-max: 1200px;
    --container-padding: 24px;

    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}

/* ---- Light Theme Variables ---- */
[data-theme="light"] {
    --bg-darkest: #ffffff;
    --bg-dark: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --bg-elevated: #e2e8f0;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --border-color: rgba(0, 0, 0, 0.08);
    --border-color-hover: rgba(0, 0, 0, 0.15);

    --gradient-bg: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    --gradient-cta: linear-gradient(135deg, #f8fafc 0%, #ede9fe 50%, #f8fafc 100%);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-darkest);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-light);
}

ul {
    list-style: none;
}

/* ---- Container ---- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    text-decoration: none;
}

.btn--primary {
    background: var(--gradient-primary);
    color: #fff;
    padding: 12px 24px;
    box-shadow: 0 0 20px var(--color-primary-glow);
}

.btn--primary:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 0 30px rgba(0, 164, 189, 0.4);
}

.btn--outline {
    background: transparent;
    color: var(--text-primary);
    padding: 12px 24px;
    border: 1px solid var(--border-color-hover);
}

.btn--outline:hover {
    color: var(--text-primary);
    border-color: var(--color-primary);
    background: rgba(0, 164, 189, 0.08);
}

.btn--sm {
    padding: 12px 28px;
    font-size: 15px;
}

.btn--lg {
    padding: 14px 32px;
    font-size: 15px;
}

/* ---- Section Common ---- */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    background: rgba(0, 164, 189, 0.1);
    border: 1px solid rgba(0, 164, 189, 0.2);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-badge--hr {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
}

.section-badge--ai {
    color: var(--color-accent);
    background: rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.2);
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    max-width: 700px;
    margin: 0 auto;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    margin-top: 12px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- Animations ---- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   1. HEADER
   ============================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: background var(--transition-base), box-shadow var(--transition-base);
}

.header.scrolled {
    background: rgba(10, 15, 26, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 var(--border-color);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.header__logo img {
    height: 52px;
    width: auto;
}

.header__nav-list {
    display: flex;
    gap: 32px;
}

.header__nav-link {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.header__nav-link:hover {
    color: var(--text-primary);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header__demo-link {
    font-size: 17px;
    font-weight: 500;
    color: var(--text-secondary);
}

.header__demo-link:hover {
    color: var(--color-primary);
}

/* Hamburger */
.header__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1010;
}

.header__hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
    transform-origin: center;
}

.header__hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.header__hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   2. HERO
   ============================================================ */
.hero {
    position: relative;
    padding: 140px 0 100px;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero__gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 20% 40%, rgba(0, 164, 189, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 80% 30%, rgba(124, 58, 237, 0.08) 0%, transparent 70%),
        var(--gradient-bg);
}

.hero__dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-primary-light);
    background: rgba(0, 164, 189, 0.08);
    border: 1px solid rgba(0, 164, 189, 0.15);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 24px;
}

.hero__badge-icon {
    flex-shrink: 0;
}

.hero__title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.hero__subtitle {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 520px;
}

.hero__ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

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

/* Hero Screenshot */
.hero__visual {
    position: relative;
}

/* ---- Browser Frame ---- */
.browser-frame {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.browser-frame__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-color);
}

.browser-frame__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.browser-frame__dot--red { background: #ff5f57; }
.browser-frame__dot--yellow { background: #febc2e; }
.browser-frame__dot--green { background: #28c840; }

.browser-frame__url {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 8px;
    background: rgba(255, 255, 255, 0.04);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    flex: 1;
    max-width: 260px;
}

.browser-frame__body {
    padding: 0;
    line-height: 0;
}

.browser-frame__body img {
    width: 100%;
    height: auto;
}

/* ---- SVG Illustration Card ---- */
.svg-illustration {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 60px rgba(0, 164, 189, 0.08);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.svg-illustration:hover {
    box-shadow: var(--shadow-lg), 0 0 80px rgba(0, 164, 189, 0.12);
    transform: translateY(-2px);
}

.svg-illustration svg {
    display: block;
    width: 100%;
    height: auto;
}

.svg-illustration--carousel {
    max-width: 900px;
    margin: 0 auto;
}

/* ============================================================
   3. TRUST BAR
   ============================================================ */
.trust-bar {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-dark);
}

.trust-bar__inner {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.trust-bar__pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 10px 18px;
    border-radius: var(--radius-full);
    letter-spacing: 0.3px;
}

.trust-bar__pill svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

/* ============================================================
   4. DIFFERENTIATORS
   ============================================================ */
.differentiators {
    padding: 100px 0;
    background: var(--bg-darkest);
}

.differentiators__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Glass Card */
.glass-card {
    background: rgba(26, 31, 46, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition-base);
}

.glass-card:hover {
    border-color: var(--border-color-hover);
    background: rgba(26, 31, 46, 0.8);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.glass-card--featured {
    border-color: rgba(0, 164, 189, 0.3);
    background: rgba(0, 164, 189, 0.05);
}

.glass-card--featured:hover {
    border-color: rgba(0, 164, 189, 0.5);
    box-shadow: var(--shadow-glow);
}

.glass-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 164, 189, 0.1);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    color: var(--color-primary);
}

.glass-card__icon svg {
    width: 24px;
    height: 24px;
}

.glass-card__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.glass-card__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.glass-card__list li {
    font-size: 14px;
    color: var(--text-secondary);
    padding-left: 16px;
    position: relative;
}

.glass-card__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-primary);
}

/* ============================================================
   5 & 6. FEATURES (ATS + HR)
   ============================================================ */
.features {
    padding: 100px 0;
    background: var(--bg-dark);
}

.features--hr {
    background: var(--bg-darkest);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: all var(--transition-base);
}

.feature-card:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.feature-card__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 164, 189, 0.1);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    color: var(--color-primary);
}

.feature-card__icon svg {
    width: 22px;
    height: 22px;
}

.feature-card__icon--hr {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.features__screenshot {
    max-width: 900px;
    margin: 0 auto;
}

/* ============================================================
   7. AI FEATURES
   ============================================================ */
.ai-features {
    padding: 100px 0;
    background: var(--bg-dark);
    position: relative;
}

.ai-features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ai-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: all var(--transition-base);
    position: relative;
}

.ai-card:hover {
    border-color: rgba(124, 58, 237, 0.3);
    transform: translateY(-2px);
}

.ai-card__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 58, 237, 0.1);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    color: var(--color-accent);
}

.ai-card__icon svg {
    width: 22px;
    height: 22px;
}

.ai-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.ai-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Featured AI Card — larger, accent border, glow */
.ai-card--featured {
    grid-column: span 1;
    border-color: rgba(124, 58, 237, 0.4);
    background: rgba(124, 58, 237, 0.05);
    overflow: hidden;
}

.ai-card--featured:hover {
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.2);
}

.ai-card__glow {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(124, 58, 237, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.ai-card__label {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-accent);
    background: rgba(124, 58, 237, 0.15);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    margin-bottom: 8px;
}

/* ============================================================
   8. WORKFLOW
   ============================================================ */
.workflow {
    padding: 100px 0;
    background: var(--bg-darkest);
}

.workflow__flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.workflow__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 0 8px;
}

.workflow__step-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

.workflow__step-icon svg {
    width: 24px;
    height: 24px;
}

.workflow__step-icon--accent {
    border-color: rgba(0, 164, 189, 0.3);
    color: var(--color-primary);
    background: rgba(0, 164, 189, 0.08);
}

.workflow__step span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.workflow__connector {
    width: 48px;
    height: 2px;
    background: var(--border-color);
    position: relative;
    margin-top: -20px;
}

.workflow__connector-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
    animation: dotPulse 2s infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.workflow__tagline {
    text-align: center;
    font-size: 18px;
    color: var(--text-primary);
}

/* ============================================================
   9. CAROUSEL
   ============================================================ */
.carousel-section {
    padding: 100px 0;
    background: var(--bg-dark);
}

.carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.carousel__track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel__slide {
    min-width: 100%;
    padding: 0 20px;
    flex-shrink: 0;
}

.carousel__slide .browser-frame,
.carousel__slide .svg-illustration {
    max-width: 900px;
    margin: 0 auto;
}

.carousel__caption {
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 20px;
}

.carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 31, 46, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition-fast);
}

.carousel__arrow:hover {
    background: var(--bg-elevated);
    border-color: var(--border-color-hover);
}

.carousel__arrow--prev { left: 16px; }
.carousel__arrow--next { right: 16px; }

.carousel__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all var(--transition-fast);
}

.carousel__dot.active {
    background: var(--color-primary);
    width: 24px;
    border-radius: 4px;
}

/* ============================================================
   10. INTEGRATIONS
   ============================================================ */
.integrations {
    padding: 100px 0;
    background: var(--bg-darkest);
}

.integrations__category {
    margin-bottom: 48px;
}

.integrations__category:last-child {
    margin-bottom: 0;
}

.integrations__category-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-align: center;
}

.integrations__grid {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.integration-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    min-width: 120px;
}

.integration-card:hover {
    transform: scale(1.05);
    border-color: var(--color-primary);
    box-shadow: 0 0 20px var(--color-primary-glow);
}

.integration-card img,
.integration-card svg {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.integration-card span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ============================================================
   11. FAQ
   ============================================================ */
.faq {
    padding: 100px 0;
    background: var(--bg-dark);
}

.faq__list {
    max-width: 760px;
    margin: 0 auto;
}

.faq__item {
    border-bottom: 1px solid var(--border-color);
}

.faq__item:first-child {
    border-top: 1px solid var(--border-color);
}

.faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 0;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: color var(--transition-fast);
    gap: 16px;
}

.faq__question:hover {
    color: var(--color-primary);
}

.faq__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    transition: transform var(--transition-base);
    color: var(--text-muted);
}

.faq__item.active .faq__icon {
    transform: rotate(45deg);
    color: var(--color-primary);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq__item.active .faq__answer {
    max-height: 300px;
    padding-bottom: 20px;
}

.faq__answer p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================================
   12. FINAL CTA
   ============================================================ */
.final-cta {
    padding: 100px 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 50%, rgba(0, 164, 189, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 30% 50%, rgba(124, 58, 237, 0.08) 0%, transparent 70%),
        var(--gradient-cta);
}

.final-cta__inner {
    text-align: center;
}

.final-cta__title {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.final-cta__subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 36px;
}

.final-cta__buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============================================================
   13. FOOTER
   ============================================================ */
.footer {
    padding: 64px 0 32px;
    background: #080c16;
    border-top: 1px solid var(--border-color);
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 48px;
}

.footer__heading {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.footer__links li {
    margin-bottom: 10px;
}

.footer__links a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.footer__links a:hover {
    color: var(--text-primary);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.footer__email {
    font-size: 14px;
    color: var(--text-secondary);
}

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

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

/* ============================================================
   RESPONSIVE — 1024px
   ============================================================ */
@media (max-width: 1024px) {
    .hero__inner {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__ctas {
        justify-content: center;
    }

    .hero__title {
        font-size: 40px;
    }

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

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

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

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

    .workflow__connector {
        width: 32px;
    }
}

/* ============================================================
   RESPONSIVE — 768px
   ============================================================ */
@media (max-width: 768px) {
    :root {
        --header-height: 64px;
        --container-padding: 20px;
    }

    .header__nav,
    .header__actions {
        display: none;
    }

    .header__hamburger {
        display: flex;
    }

    /* Mobile nav overlay */
    .header__nav.mobile-open {
        display: flex;
        position: fixed;
        inset: 0;
        top: var(--header-height);
        background: var(--bg-dark);
        flex-direction: column;
        padding: 40px var(--container-padding);
        z-index: 999;
    }

    .header__nav.mobile-open .header__nav-list {
        flex-direction: column;
        gap: 0;
    }

    .header__nav.mobile-open .header__nav-link {
        display: block;
        padding: 16px 0;
        font-size: 18px;
        border-bottom: 1px solid var(--border-color);
    }

    .header__actions.mobile-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 24px var(--container-padding);
        background: var(--bg-dark);
        border-top: 1px solid var(--border-color);
        z-index: 999;
        gap: 12px;
    }

    .header__actions.mobile-open .btn {
        width: 100%;
    }

    .hero {
        padding: 120px 0 60px;
        min-height: auto;
    }

    .hero__title {
        font-size: 32px;
    }

    .hero__subtitle {
        font-size: 15px;
    }

    .section-title {
        font-size: 28px;
    }

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

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

    .ai-features__grid {
        grid-template-columns: 1fr;
    }

    .workflow__flow {
        flex-wrap: wrap;
        gap: 8px;
    }

    .workflow__connector {
        width: 24px;
    }

    .workflow__step-icon {
        width: 44px;
        height: 44px;
    }

    .workflow__step span {
        font-size: 11px;
    }

    .integration-card {
        min-width: 100px;
        padding: 16px 20px;
    }

    .final-cta__title {
        font-size: 28px;
    }

    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }

    .carousel__arrow {
        width: 36px;
        height: 36px;
    }

    .carousel__arrow--prev { left: 8px; }
    .carousel__arrow--next { right: 8px; }
}

/* ============================================================
   RESPONSIVE — 480px
   ============================================================ */
@media (max-width: 480px) {
    .hero__title {
        font-size: 26px;
    }

    .hero__badge {
        font-size: 11px;
        padding: 6px 12px;
    }

    .hero__ctas {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__ctas .btn {
        width: 100%;
    }

    .trust-bar__inner {
        gap: 10px;
    }

    .trust-bar__pill {
        font-size: 11px;
        padding: 8px 12px;
    }

    .glass-card {
        padding: 24px;
    }

    .section-title {
        font-size: 24px;
    }

    .workflow__flow {
        gap: 4px;
    }

    .workflow__connector {
        width: 16px;
    }

    .workflow__step-icon {
        width: 36px;
        height: 36px;
    }

    .workflow__step-icon svg {
        width: 18px;
        height: 18px;
    }

    .workflow__step span {
        font-size: 10px;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .integrations__grid {
        gap: 10px;
    }

    .integration-card {
        min-width: 80px;
        padding: 14px 16px;
    }

    .final-cta__title {
        font-size: 24px;
    }
}

/* ============================================================
   RESPONSIVE — 1440px+
   ============================================================ */
@media (min-width: 1440px) {
    :root {
        --container-max: 1320px;
    }

    .hero__title {
        font-size: 56px;
    }

    .section-title {
        font-size: 42px;
    }
}

/* ---- Utility: reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* ---- Utility: selection ---- */
::selection {
    background: rgba(0, 164, 189, 0.3);
    color: var(--text-primary);
}

/* ---- Scrollbar (webkit) ---- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darkest);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ============================================================
   LIGHT THEME OVERRIDES
   ============================================================ */

/* Header scrolled state */
[data-theme="light"] .header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

/* Glass cards */
[data-theme="light"] .glass-card {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Carousel arrows */
[data-theme="light"] .carousel__arrow {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
    color: #0f172a;
}

/* Footer */
[data-theme="light"] .footer {
    background: #f1f5f9;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* Hero dots */
[data-theme="light"] .hero__dots {
    background-image: radial-gradient(rgba(0, 0, 0, 0.06) 1px, transparent 1px);
}

/* Browser frame URL bar */
[data-theme="light"] .browser-frame__url {
    background: rgba(0, 0, 0, 0.04);
}

/* Hero gradient */
[data-theme="light"] .hero__gradient {
    background: radial-gradient(ellipse at 30% 0%, rgba(0, 164, 189, 0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 0%, rgba(124, 58, 237, 0.06) 0%, transparent 60%);
}

/* Final CTA section */
[data-theme="light"] .final-cta {
    background: var(--gradient-cta);
}

[data-theme="light"] .final-cta::before {
    background: radial-gradient(ellipse at center, rgba(0, 164, 189, 0.06) 0%, transparent 70%);
}

/* Mobile nav overlay */
[data-theme="light"] .header__nav.mobile-open {
    background: rgba(255, 255, 255, 0.98);
}

[data-theme="light"] .header__actions.mobile-open {
    background: rgba(255, 255, 255, 0.98);
}

/* SVG illustrations - invert for light mode */
[data-theme="light"] .svg-illustration {
    filter: invert(1) hue-rotate(180deg);
    border-color: rgba(0, 0, 0, 0.1);
}

/* Section badges in light mode */
[data-theme="light"] .section-badge {
    background: rgba(0, 164, 189, 0.06);
    border-color: rgba(0, 164, 189, 0.15);
}

[data-theme="light"] .section-badge--hr {
    background: rgba(16, 185, 129, 0.06);
    border-color: rgba(16, 185, 129, 0.15);
}

[data-theme="light"] .section-badge--ai {
    background: rgba(124, 58, 237, 0.06);
    border-color: rgba(124, 58, 237, 0.15);
}

/* AI featured card */
[data-theme="light"] .ai-features__card--featured {
    background: linear-gradient(135deg, rgba(0, 164, 189, 0.06) 0%, rgba(124, 58, 237, 0.06) 100%);
    border-color: rgba(0, 164, 189, 0.15);
}

/* Hero badge */
[data-theme="light"] .hero__badge {
    background: rgba(0, 164, 189, 0.06);
    border-color: rgba(0, 164, 189, 0.15);
}

/* Selection color */
[data-theme="light"] ::selection {
    background: rgba(0, 164, 189, 0.2);
    color: #0f172a;
}

/* Scrollbar */
[data-theme="light"]::-webkit-scrollbar-track {
    background: #f1f5f9;
}

[data-theme="light"]::-webkit-scrollbar-thumb {
    background: #cbd5e1;
}

[data-theme="light"]::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Workflow step numbers */
[data-theme="light"] .workflow__number {
    background: rgba(0, 164, 189, 0.08);
    color: var(--color-primary);
}

/* Integration logos */
[data-theme="light"] .integration__logo {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.06);
}

/* FAQ items */
[data-theme="light"] .faq__question:hover {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .faq__item.active .faq__question {
    background: rgba(0, 164, 189, 0.04);
}

/* Differentiator cards */
[data-theme="light"] .differ__card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .differ__card:hover {
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Trust bar logos - improve visibility */
[data-theme="light"] .trust-bar__logos {
    opacity: 0.7;
}

/* Feature items icon bg */
[data-theme="light"] .feature-item__icon {
    background: rgba(0, 164, 189, 0.06);
}

/* Browser frame */
[data-theme="light"] .browser-frame {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .browser-frame__header {
    background: #f8fafc;
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

/* ============================================================
   THEME TOGGLE BUTTON
   ============================================================ */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    color: var(--text-secondary);
    margin-right: 8px;
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--color-primary);
    background: rgba(0, 164, 189, 0.08);
    color: var(--color-primary);
}

.theme-toggle__icon {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-base);
}

.theme-toggle:hover .theme-toggle__icon {
    transform: rotate(15deg);
}

/* Sun icon (visible in dark mode) */
.theme-toggle__sun {
    display: block;
}

.theme-toggle__moon {
    display: none;
}

/* Moon icon (visible in light mode) */
[data-theme="light"] .theme-toggle__sun {
    display: none;
}

[data-theme="light"] .theme-toggle__moon {
    display: block;
}

/* Smooth theme transition */
.theme-transitioning,
.theme-transitioning *,
.theme-transitioning *::before,
.theme-transitioning *::after {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, fill 0.3s ease !important;
}

/* Mobile: position toggle before hamburger */
@media (max-width: 768px) {
    .theme-toggle {
        position: absolute;
        right: 56px;
        top: 50%;
        transform: translateY(-50%);
        width: 36px;
        height: 36px;
    }

    .theme-toggle__icon {
        width: 18px;
        height: 18px;
    }
}

/* ============================================================
   BLOG STYLES
   ============================================================ */

/* ---- Blog Hero ---- */
.blog-hero {
    padding: calc(var(--header-height) + 60px) 0 48px;
    text-align: center;
    background: var(--gradient-bg);
}

.blog-hero__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.blog-hero__subtitle {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--color-primary);
}

.breadcrumb__separator {
    color: var(--text-muted);
    font-size: 12px;
}

/* ---- Blog Grid (Listing Page) ---- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding: 48px 0 64px;
}

/* ---- Blog Card ---- */
.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-color-hover);
}

.blog-card__image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.blog-card__image-icon {
    width: 48px;
    height: 48px;
    max-width: 48px;
    max-height: 48px;
    flex-shrink: 0;
    color: var(--color-primary);
    opacity: 0.4;
}

.blog-card__image svg {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.blog-card__body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

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

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

/* ---- Category Badge ---- */
.blog-category-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.blog-category-badge--ats {
    background: rgba(0, 164, 189, 0.12);
    color: var(--color-primary);
}

.blog-category-badge--hr {
    background: rgba(124, 58, 237, 0.12);
    color: var(--color-accent);
}

.blog-category-badge--ats-hr {
    background: linear-gradient(135deg, rgba(0, 164, 189, 0.12) 0%, rgba(124, 58, 237, 0.12) 100%);
    color: var(--color-primary);
}

.blog-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.blog-card__excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.blog-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    transition: gap var(--transition-fast);
}

.blog-card__link:hover {
    gap: 10px;
}

.blog-card__link-arrow {
    transition: transform var(--transition-fast);
}

.blog-card__link:hover .blog-card__link-arrow {
    transform: translateX(3px);
}

/* ---- Article Hero ---- */
.article-hero {
    padding: calc(var(--header-height) + 48px) 0 40px;
    background: var(--gradient-bg);
}

.article-hero__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.article-hero__date,
.article-hero__reading-time,
.article-hero__author {
    font-size: 14px;
    color: var(--text-muted);
}

.article-hero__title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 16px;
    max-width: 800px;
}

.article-hero__description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    line-height: 1.6;
}

/* ---- Article Body Layout ---- */
.article-body {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    padding: 48px 0 64px;
    align-items: start;
}

/* ---- Article Content (Prose) ---- */
.article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 40px 0 16px;
    letter-spacing: -0.01em;
    scroll-margin-top: calc(var(--header-height) + 24px);
}

.article-content h2:first-child {
    margin-top: 0;
}

.article-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 28px 0 12px;
}

.article-content p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.article-content ul,
.article-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.article-content li {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.article-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.article-content blockquote {
    border-left: 3px solid var(--color-primary);
    padding: 12px 20px;
    margin: 24px 0;
    background: rgba(0, 164, 189, 0.05);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.article-content blockquote p {
    color: var(--text-primary);
    font-style: italic;
    margin-bottom: 0;
}

/* ---- Article Callout Box ---- */
.article-callout {
    padding: 20px 24px;
    border-radius: var(--radius-md);
    margin: 24px 0;
    border: 1px solid var(--border-color);
}

.article-callout--tip {
    background: rgba(0, 164, 189, 0.06);
    border-color: rgba(0, 164, 189, 0.2);
}

.article-callout--info {
    background: rgba(124, 58, 237, 0.06);
    border-color: rgba(124, 58, 237, 0.2);
}

.article-callout__title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.article-callout--tip .article-callout__title {
    color: var(--color-primary);
}

.article-callout--info .article-callout__title {
    color: var(--color-accent);
}

.article-callout__text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ---- Article Feature Card ---- */
.article-feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin: 16px 0;
}

.article-feature-card__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Prevent any SVG inside article content from blowing up */
.article-content svg {
    max-width: 100%;
    height: auto;
}

/* Feature card icons - must override .article-content svg with higher specificity */
.article-content svg.article-feature-card__icon,
.article-feature-card__title svg.article-feature-card__icon,
svg.article-feature-card__icon {
    width: 20px;
    height: 20px;
    max-width: 20px;
    max-height: 20px;
    flex-shrink: 0;
    color: var(--color-primary);
}

.article-feature-card__text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ---- Table of Contents (Sidebar) ---- */
.article-toc {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.article-toc__title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.article-toc__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-toc__list li {
    margin-bottom: 10px;
}

.article-toc__list a {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
    line-height: 1.4;
    display: block;
}

.article-toc__list a:hover {
    color: var(--color-primary);
}

/* ---- Sidebar CTA ---- */
.article-sidebar-cta {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
}

.article-sidebar-cta__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.article-sidebar-cta__text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
}

/* ---- Blog CTA Section ---- */
.blog-cta {
    padding: 64px 0;
    text-align: center;
    background: var(--gradient-cta);
    border-top: 1px solid var(--border-color);
}

.blog-cta__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.blog-cta__text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.blog-cta__buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- Related Articles ---- */
.related-articles {
    padding: 64px 0;
    border-top: 1px solid var(--border-color);
}

.related-articles__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 32px;
    letter-spacing: -0.01em;
}

.related-articles__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ---- Active Nav Link ---- */
.header__nav-link--active {
    color: var(--color-primary) !important;
}

/* ---- Blog Responsive ---- */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .article-body {
        grid-template-columns: 1fr;
    }

    .article-toc {
        position: static;
        margin-bottom: 32px;
    }

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

@media (max-width: 768px) {
    .blog-hero {
        padding: calc(var(--header-height) + 40px) 0 32px;
    }

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

    .blog-card__image {
        height: 160px;
    }

    .article-hero {
        padding: calc(var(--header-height) + 32px) 0 28px;
    }

    .article-body {
        padding: 32px 0 48px;
        gap: 32px;
    }

    .related-articles__grid {
        grid-template-columns: 1fr;
    }

    .blog-cta {
        padding: 48px 0;
    }
}

/* ---- Blog Light Theme Overrides ---- */
[data-theme="light"] .blog-card {
    box-shadow: var(--shadow-sm);
}

[data-theme="light"] .blog-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .blog-card__image {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

[data-theme="light"] .article-callout--tip {
    background: rgba(0, 164, 189, 0.04);
}

[data-theme="light"] .article-callout--info {
    background: rgba(124, 58, 237, 0.04);
}

[data-theme="light"] .article-content blockquote {
    background: rgba(0, 164, 189, 0.03);
}

/* ---- Icon Size Fix ---- */
/* Constrain SVG icons to prevent massive page sections */
.why-icon svg {
    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
}

.feature-icon svg {
    width: 44px !important;
    height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
}
/* ============================================================
   CALENDLY MODAL OVERLAY
   ============================================================ */
#tg-calendly-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(10, 15, 26, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: tgFadeIn var(--transition-base) ease;
}

#tg-calendly-overlay.is-open {
    display: flex;
}

@keyframes tgFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.tg-calendly-modal {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color-hover);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 900px;
    height: min(90vh, 720px);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    animation: tgSlideUp var(--transition-slow) ease;
    overflow: hidden;
}

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

.tg-calendly-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.tg-calendly-modal__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.tg-calendly-modal__close {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 6px;
    border-radius: var(--radius-sm);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast), background var(--transition-fast);
}

.tg-calendly-modal__close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.tg-calendly-modal__body {
    flex: 1;
    min-height: 0;
    position: relative;
}

.tg-calendly-modal__body iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.tg-calendly-modal__loader {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--text-secondary);
    font-size: 14px;
}

.tg-calendly-modal__loader-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border-color);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: tgSpin 0.7s linear infinite;
}

@keyframes tgSpin {
    to { transform: rotate(360deg); }
}

@media (max-width: 600px) {
    .tg-calendly-modal {
        height: 92vh;
        border-radius: var(--radius-lg);
    }
    .tg-calendly-modal__header {
        padding: 14px 16px;
    }
}

/* ====================================================
   LEAD MAGNET SECTION
   ==================================================== */
.lead-magnet {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(0, 164, 189, 0.04) 0%, rgba(124, 58, 237, 0.04) 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.lead-magnet::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,164,189,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.lead-magnet__inner {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 64px;
    align-items: center;
}

/* PDF Book Mockup */
.pdf-book {
    position: relative;
    width: 200px;
    margin: 0 auto;
}

.pdf-book__shadow {
    position: absolute;
    bottom: -16px;
    left: 20px;
    right: 20px;
    height: 20px;
    background: rgba(0,0,0,0.4);
    border-radius: 50%;
    filter: blur(12px);
}

.pdf-book__body {
    display: flex;
    border-radius: 4px 8px 8px 4px;
    box-shadow: -4px 4px 20px rgba(0,0,0,0.4), 4px 4px 30px rgba(0,164,189,0.15);
    transform: perspective(800px) rotateY(-8deg);
    transform-origin: center center;
    transition: transform var(--transition-base);
}

.pdf-book:hover .pdf-book__body {
    transform: perspective(800px) rotateY(-4deg) translateY(-4px);
}

.pdf-book__spine {
    width: 18px;
    background: linear-gradient(180deg, #006a78 0%, #004d5a 100%);
    border-radius: 4px 0 0 4px;
    flex-shrink: 0;
}

.pdf-book__front {
    flex: 1;
    background: linear-gradient(135deg, #00A4BD 0%, #7C3AED 100%);
    border-radius: 0 8px 8px 0;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 280px;
}

.pdf-book__badge {
    background: rgba(255,255,255,0.2);
    color: white;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    margin-bottom: 8px;
}

.pdf-book__year {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
    font-weight: 500;
}

.pdf-book__icon {
    margin-bottom: 12px;
    opacity: 0.7;
}

.pdf-book__title {
    font-size: 15px;
    font-weight: 700;
    color: white;
    line-height: 1.3;
    margin-top: auto;
}

.pdf-book__pages {
    font-size: 10px;
    color: rgba(255,255,255,0.6);
    margin-top: 8px;
}

.pdf-book__chips {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 20px;
    padding-left: 18px;
}

.pdf-chip {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Lead Magnet Content */
.lead-magnet__title {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 700;
    color: var(--text-primary);
    margin: 12px 0 14px;
    line-height: 1.25;
}

.lead-magnet__desc {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.lead-magnet__list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lead-magnet__list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--text-primary);
}

.lead-magnet__list svg {
    flex-shrink: 0;
}

/* Lead Magnet Form */
.lead-magnet__form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.lead-magnet__form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.lead-magnet__input {
    flex: 1;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
    padding: 12px 16px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
    min-width: 0;
}

.lead-magnet__input::placeholder {
    color: var(--text-muted);
}

.lead-magnet__input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.lead-magnet__btn {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.lead-magnet__btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.lead-magnet__trust {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

/* Light theme adjustments */
[data-theme="light"] .lead-magnet {
    background: linear-gradient(135deg, rgba(0, 164, 189, 0.04) 0%, rgba(124, 58, 237, 0.04) 100%);
}

[data-theme="light"] .lead-magnet__input {
    background: #f8fafc;
    color: #0f172a;
}

[data-theme="light"] .lead-magnet__form {
    background: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
    .lead-magnet__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .pdf-book {
        width: 160px;
    }

    .pdf-book__chips {
        flex-direction: row;
        flex-wrap: wrap;
        padding-left: 0;
        margin-top: 16px;
    }

    .lead-magnet__form-row {
        flex-direction: column;
    }

    .lead-magnet__btn {
        justify-content: center;
    }
}
