/* ===================================
   Modern BondsBuddy Landing Page CSS
   Design inspired by Amplitude.com
   =================================== */

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

:root {
    /* Color Palette (Amplitude-style) */
    --primary-500: #4F46E5;
    --primary-600: #4338CA;
    --primary-700: #3730A3;
    --accent-500: #7C3AED;
    --accent-600: #6D28D9;

    /* Neutrals */
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-900: #111827;

    /* Semantic */
    --bg-primary: #FFFFFF;
    --text-primary: #111827;
    --text-secondary: #4B5563;
    --text-muted: #6B7280;

    /* Spacing */
    --space-unit: 8px;
    --container-width: 1200px;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 calc(var(--space-unit) * 3);
}

/* ==================
   LIQUID GLASS HEADER (NEW)
   ================== */
.nav-wrapper {
    position: fixed;
    top: 24px;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding: 0 16px;
    transition: transform 0.3s ease;
}

.nav-wrapper.hidden {
    transform: translateY(-150%);
}

.nav-glass {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 8px 8px 8px 24px;
    border-radius: 100px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06),
        0 1px 2px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 900px;
}

.nav-logo {
    font-size: 18px;
    font-weight: 800;
    color: var(--gray-900);
    text-decoration: none;
    letter-spacing: -0.02em;
    margin-right: 24px;
}

.nav-desktop {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-item {
    padding: 8px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 100px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-item:hover {
    color: var(--gray-900);
    background: rgba(0, 0, 0, 0.03);
}

.nav-item.active {
    background: var(--gray-900);
    color: white;
}

.nav-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 100px;
    text-decoration: none;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.btn-primary-sm {
    background: var(--primary-600);
    color: white;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.btn-primary-sm:hover {
    background: var(--primary-700);
    /* transform: translateY(-1px); REMOVED ANIMATION */
}

/* Mobile Burger */
.burger-btn {
    display: none;
    /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray-900);
    padding: 8px;
    line-height: 1;
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 80px;
    /* Below header */
    left: 16px;
    right: 16px;
    background: white;
    padding: 24px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid var(--gray-100);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-link {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    text-decoration: none;
    padding: 12px;
    border-radius: 12px;
}

.mobile-link:active {
    background: var(--gray-50);
}

/* ==================
   SCROLL TO TOP
   ================== */
.scroll-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--primary-500);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.5);
}

/* ==================
   HERO SECTION  
   ================== */
/* ==================
   HERO SECTION (Photorealistic)
   ================== */
.hero-new {
    position: relative;
    /* Unsplash: Calm Lake/Mountain - Inspiring, infinite, stable */
    background-image: url('assets/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 90vh;
    /* Full impactful height */
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-top: -80px;
    /* Pull behind header */
    padding-top: 140px;
    /* Increased for Badge gap */
}

.hero-new::before {
    /* Remove old circle gradient */
    display: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Uniform semi-transparent black overlay */
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content-new {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 24px;
}

.badge-new {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 14px;
    font-weight: 500;
    border-radius: 100px;
    margin-bottom: 32px;
}

.hero-title-new {
    font-family: var(--font-sans);
    font-size: 64px;
    /* Larger, premium */
    font-weight: 700;
    /* Slightly lighter than 800 for elegance */
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    color: white;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    /* Remove gradient text for readability on photo */
    background: none;
    -webkit-text-fill-color: initial;
}

.hero-subtitle-new {
    font-size: 22px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 48px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-cta-new {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 64px;
}

.btn-primary-new {
    background: #4F46E5;
    /* Indigo 600 */
    color: white;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 100px;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.4);
    /* Vibrant glow */
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(79, 70, 229, 0.5);
    background: #4338CA;
    /* Indigo 700 */
}

/* Hidden per feedback */
.hero-stats-new {
    display: none;
}

.stat-new,
.stat-value-new,
.stat-label-new {
    display: none;
}

/* ==================
   SOCIAL PROOF
   ================== */
.social-proof {
    padding: calc(var(--space-unit) * 8) 0;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.social-title {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: calc(var(--space-unit) * 3);
}

.social-icons {
    display: flex;
    gap: calc(var(--space-unit) * 4);
    justify-content: center;
    flex-wrap: wrap;
}

.social-badge {
    padding: calc(var(--space-unit) * 2) calc(var(--space-unit) * 3);
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-700);
}

/* ==================
   VALUE PROPS
   ================== */
/* ==================
   VALUE PROPS (Photo Cards)
   ================== */
/* ==================
   VALUE PROPS (Photo Cards)
   ================== */
.value-props {
    padding: 120px 0;
    background: #F9FAFB;
    /* Slight gray */
}

.value-grid {
    display: grid;
    /* Asymmetric grid */
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
    margin-top: 80px;
}

/* Make first card span full width */
.value-card:first-child {
    grid-column: span 2;
    flex-direction: row;
}

.value-card:first-child .value-card-img {
    width: 50%;
    height: auto;
}

.value-card:first-child .value-card-content {
    justify-content: center;
    display: flex;
    flex-direction: column;
}

.value-card {
    background: white;
    border: 1px solid var(--gray-100);
    border-radius: 32px;
    /* More rounded */
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.value-card-img {
    height: 300px;
    /* Taller */
    width: 100%;
    background-size: cover;
    background-position: center;
}

/* Specific Card Images */
.card-img-1 {
    background-image: url('assets/card-bonds.jpg');
}

.card-img-2 {
    background-image: url('assets/card-portfolio.jpg');
}

.card-img-3 {
    background-image: url('assets/card-risk-new.jpg');
    /* New Image */
}

.value-card-content {
    padding: 32px;
    flex: 1;
}

.value-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.value-card p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Remove old Icon styles if present */
.value-icon,
.value-illustration {
    display: none;
}

/* ==================
   FEATURES
   ================== */
/* ==================
   FEATURES (Creative Grid)
   ================== */
.features-new {
    padding: 120px 0;
    /* Increased padding */
    background: var(--gray-50);
}

.section-title-new {
    font-size: 48px;
    /* Larger Typography */
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--gray-900);
}

.section-subtitle-new {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 80px;
    /* Increased separation */
    max-width: 600px;
}

.features-grid-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    /* Two Rows */
    gap: 32px;
}

/* Creative Grid: 1st card wide, 3rd card wide */
.feature-card-new:nth-child(1) {
    grid-column: span 2;
    background: white;
}

/* 3rd Card (Risk) - Full Width */
.feature-card-new:nth-child(3) {
    grid-column: span 3;
}

.feature-card-new {
    padding: 48px;
    background: white;
    border: 1px solid var(--gray-100);
    border-radius: 32px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.feature-card-new:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    /* Soft lift */
    transform: translateY(-4px);
}

.feature-card-new h3 {
    font-size: 28px;
    /* Larger headers */
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--gray-900);
}

/* Numbered Step Styling instead of Emoji */
.feature-step-number {
    font-size: 64px;
    font-weight: 900;
    color: var(--gray-100);
    /* Large subtle number */
    line-height: 1;
    margin-bottom: 24px;
}

.feature-list-new li {
    font-size: 16px;
    margin-bottom: 12px;
    padding-left: 24px;
    /* Bullet space */
    position: relative;
    color: var(--text-secondary);
    list-style: none;
}

.feature-list-new li::before {
    content: "—";
    /* Em dash instead of tick */
    position: absolute;
    left: 0;
    color: var(--primary-500);
}

/* Hide old header flex */
.feature-header {
    display: block;
    margin-bottom: 0;
}

.feature-icon-new {
    display: none;
}

.features-expand {
    text-align: center;
    margin-top: 80px;
}

.btn-ghost:hover {
    border-color: var(--primary-500);
    color: var(--primary-600);
}

/* ==================
   METRICS FAQ
   ================== */
.metrics-faq {
    padding: 64px 0 120px;
    /* Reduced top padding */
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    margin-bottom: calc(var(--space-unit) * 2);
    background: white;
    transition: all 0.2s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.faq-item[open] {
    border-color: var(--primary-500);
}

.faq-question {
    padding: calc(var(--space-unit) * 3);
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-toggle {
    font-size: 24px;
    font-weight: 300;
    color: var(--primary-600);
    transition: transform 0.2s ease;
}

.faq-item[open] .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 calc(var(--space-unit) * 3) calc(var(--space-unit) * 3);
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

.faq-answer strong {
    color: var(--gray-900);
}

.faq-answer p {
    margin-bottom: calc(var(--space-unit) * 2);
}

.faq-more {
    text-align: center;
    margin-top: calc(var(--space-unit) * 4);
}

/* ==================
   UPDATES SECTION
   ================== */
.updates-section {
    padding: 80px 0 120px;
    background: var(--gray-50);
}

.updates-block {
    margin-bottom: 80px;
}

.updates-block:last-child {
    margin-bottom: 0;
}

.updates-block-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 40px;
    /* Increased gap */
}

.updates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: calc(var(--space-unit) * 3);
}

.update-card-new {
    padding: calc(var(--space-unit) * 4);
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.update-card-new:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.update-card-new.roadmap {
    border-style: dashed;
    background: var(--gray-50);
}

.update-badge-new {
    display: inline-block;
    padding: calc(var(--space-unit) * 0.5) calc(var(--space-unit) * 2);
    background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.update-badge-roadmap {
    display: inline-block;
    padding: calc(var(--space-unit) * 0.5) calc(var(--space-unit) * 2);
    background: var(--gray-200);
    color: var(--gray-700);
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.update-card-new h4 {
    margin: calc(var(--space-unit) * 2) 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
}

.update-card-new p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* ==================
   FINAL CTA
   ================== */
/* ==================
   FINAL CTA
   ================== */
.final-cta {
    padding: 120px 0;
    position: relative;
    /* Coffee Shop Background */
    background-image: url('assets/cta-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Fallback color */
    background-color: #1F2937;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Uniform semi-transparent black overlay for text readability */
    background: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

.cta-content-new {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Typography Increase */
.cta-title-new {
    font-size: 56px;
    /* Larger */
    font-weight: 800;
    color: white;
    margin-bottom: 24px;
    line-height: 1.1;
}

.cta-subtitle-new {
    font-size: 24px;
    color: var(--gray-300);
    margin-bottom: 48px;
}

.btn-cta-large {
    display: inline-flex;
    align-items: center;
    gap: calc(var(--space-unit) * 2);
    padding: calc(var(--space-unit) * 3) calc(var(--space-unit) * 6);
    background: white;
    color: var(--primary-600);
    font-size: 18px;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-cta-large:hover {
    /* transform: translateY(-2px); REMOVED ANIMATION */
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.cta-features {
    display: flex;
    gap: calc(var(--space-unit) * 4);
    justify-content: center;
    margin-top: calc(var(--space-unit) * 4);
    color: white;
    font-size: 15px;
}

/* ==================
   FOOTER
   ================== */
.footer-new {
    background: var(--gray-900);
    color: white;
    padding: calc(var(--space-unit) * 10) 0 calc(var(--space-unit) * 4);
}

.footer-content-new {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: calc(var(--space-unit) * 6);
    margin-bottom: calc(var(--space-unit) * 6);
}

.footer-brand-new h3 {
    font-size: 24px;
    margin-bottom: calc(var(--space-unit) * 2);
}

.footer-brand-new p {
    color: var(--gray-300);
    font-size: 14px;
}

.footer-links-new {
    display: flex;
    flex-direction: column;
    gap: calc(var(--space-unit) * 2);
}

.footer-link {
    color: var(--gray-300);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: white;
}

.footer-contact-new h4 {
    font-size: 16px;
    margin-bottom: calc(var(--space-unit) * 2);
}

.footer-contact-new a {
    color: var(--gray-300);
    text-decoration: none;
    font-size: 14px;
}

.footer-contact-new a:hover {
    color: white;
}

.footer-bottom-new {
    border-top: 1px solid var(--gray-700);
    padding-top: calc(var(--space-unit) * 4);
    text-align: center;
}

.footer-bottom-new p {
    color: var(--gray-400);
    font-size: 14px;
}

/* ==================
   RESPONSIVE
   ================== */
/* ==================
   RESPONSIVE
   ================== */
@media (max-width: 768px) {
    .hero-title-new {
        font-size: 36px;
    }

    .hero-subtitle-new {
        font-size: 18px;
    }

    .hero-cta-new {
        flex-direction: column;
    }

    .hero-stats-new {
        flex-direction: column;
        gap: 32px;
    }

    .value-grid,
    .features-grid-new,
    .footer-content-new {
        grid-template-columns: 1fr;
    }

    .section-title-new,
    .cta-title-new {
        font-size: 32px;
    }

    /* Mobile Header Adjustments */
    .nav-wrapper {
        top: 16px;
        padding: 0 12px;
    }

    .nav-glass {
        padding: 8px 16px;
    }

    .nav-desktop,
    .nav-actions {
        display: none;
    }

    .burger-btn {
        display: block;
        margin-left: auto;
    }

    .cta-features {
        flex-direction: column;
        gap: 16px;
    }
}

/* ==================
   KNOWLEDGE BASE PAGE
   ================== */
.kb-header {
    padding: 96px 0 64px;
    background: linear-gradient(135deg, #F9FAFB 0%, #FFFFFF 100%);
    color: var(--gray-900);
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
}

.kb-back {
    display: inline-block;
    color: var(--primary-600);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 24px;
    transition: color 0.2s ease;
    font-weight: 500;
}

.kb-back:hover {
    color: var(--primary-700);
}

.kb-header h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
}

.kb-header p {
    font-size: 20px;
    color: var(--text-secondary);
}

/* Status Badges */
.badge-status {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-right: 8px;
}

.badge-success {
    background: #DCFCE7;
    color: #166534;
}

.badge-warning {
    background: #FEF3C7;
    color: #92400E;
}

.badge-danger {
    background: #FEE2E2;
    color: #991B1B;
}

.kb-main {
    padding: 80px 0;
}

.kb-section {
    margin-bottom: 80px;
}

.kb-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gray-200);
}

.kb-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
    transition: box-shadow 0.2s ease;
}

.kb-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.kb-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.kb-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.kb-card ul {
    list-style: none;
    margin: 16px 0;
    padding-left: 0;
}

.kb-card ul li {
    padding: 8px 0;
    color: var(--text-secondary);
    padding-left: 24px;
    position: relative;
}

.kb-card ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-500);
    font-weight: bold;
}

.kb-card strong {
    color: var(--gray-900);
}

/* ==================
   KB SIDEBAR LAYOUT
   ================== */
.kb-layout {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px 24px;
    gap: 48px;
}

.kb-sidebar {
    width: 250px;
    flex-shrink: 0;
    position: sticky;
    top: 80px;
    height: fit-content;
}

.kb-nav {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 24px;
}

.kb-nav-section {
    margin-bottom: 24px;
}

.kb-nav-section:last-child {
    margin-bottom: 0;
}

.kb-nav-section h4 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 12px;
    padding-left: 12px;
}

.kb-nav-link {
    display: block;
    padding: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.kb-nav-link:hover {
    background: var(--gray-50);
    color: var(--primary-600);
}

.kb-nav-link.active {
    background: var(--primary-500);
    color: white;
}

.kb-content {
    flex: 1;
    min-width: 0;
}

/* Responsive sidebar */
@media (max-width: 900px) {
    .kb-layout {
        flex-direction: column;
    }

    .kb-sidebar {
        width: 100%;
        position: static;
    }

    .kb-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
    }

    .kb-nav-section {
        margin-bottom: 0;
    }

    .kb-nav-section h4 {
        display: none;
    }
}

/* ==================
   MOBILE RESPONSIVENESS
   ================== */
@media (max-width: 768px) {

    /* Navigation */
    .nav-wrapper {
        padding: 0 8px;
        top: 16px;
    }

    .nav-glass {
        padding: 8px 16px;
        max-width: 100%;
    }

    .nav-desktop {
        display: none;
        /* Hide desktop links */
    }

    .burger-btn {
        display: block;
        /* Show burger */
    }

    .btn-sm {
        display: none;
        /* Hide top header CTA */
    }

    /* Typography Scaling */
    .hero-title-new {
        font-size: 36px;
    }

    .hero-subtitle-new {
        font-size: 18px;
        margin-bottom: 32px;
    }

    .section-title-new {
        font-size: 32px;
    }

    .cta-title-new {
        font-size: 36px;
    }

    /* Hero Section */
    .hero-new {
        height: auto;
        min-height: 500px;
        padding-top: 120px;
        padding-bottom: 60px;
        margin-top: 0;
    }

    .badge-new {
        margin-bottom: 24px;
    }

    /* Grids Stacking */
    .value-grid,
    .features-grid-new,
    .updates-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 24px;
    }

    /* Reset Spans for Mobile */
    .value-card:first-child,
    .feature-card-new:nth-child(1),
    .feature-card-new:nth-child(3) {
        grid-column: auto;
        flex-direction: column;
    }

    /* Adjust Assets */
    .value-card:first-child .value-card-img {
        width: 100%;
        height: 200px;
    }

    .value-card-img {
        height: 200px;
    }

    /* Features */
    .features-new {
        padding: 60px 0;
    }

    .feature-card-new {
        padding: 24px;
    }

    .feature-step-number {
        font-size: 48px;
        margin-bottom: 16px;
    }

    /* Knowledge Base Layout */
    .kb-layout {
        grid-template-columns: 1fr;
    }

    .kb-sidebar {
        position: static;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
        padding-bottom: 24px;
        margin-bottom: 32px;
    }

    .kb-nav-links {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
    }

    .kb-nav-link {
        padding: 4px 8px;
        background: var(--gray-100);
        border-radius: 4px;
        font-size: 13px;
    }

    /* Footer */
    .footer-content-new {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }

    .footer-links-new {
        flex-direction: column;
        gap: 16px;
    }

    /* Hero CTA Centering */
    .btn-primary-new {
        justify-content: center;
        width: 100%;
        /* Optional: make button full width on mobile for better touch target */
    }

    /* KB Sidebar Clean up */
    .kb-nav-links>div {
        display: none !important;
        /* Hide category headers "Instruments", "Metrics" etc. */
    }

    .kb-nav-links {
        gap: 8px;
        /* Tighter gap */
    }

    .kb-nav-link {
        font-size: 14px;
        /* Slightly legible */
        background: white;
        border: 1px solid var(--gray-200);
    }
}