/* Zepoye - Premium Financial Design System */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
    /* Sophisticated Figma-style Palette */
    --primary-color: #2563eb;
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --primary-surface: rgba(37, 99, 235, 0.05);
    --primary-border: rgba(37, 99, 235, 0.1);

    --secondary-color: #10b981;
    --secondary-gradient: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    --secondary-surface: rgba(16, 185, 129, 0.05);

    --primary-light: #eff6ff;
    --secondary-light: #ecfdf5;

    --text-main: #020617;
    /* Deeper slate for better contrast */
    --text-body: #475569;
    /* Polished slate for readability */
    --text-light: #94a3b8;
    /* Subtle slate for metadata */

    --bg-body: #f8fafc;
    --bg-white: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.85);

    --border-base: #e2e8f0;
    --border-muted: #f1f5f9;
    --border-rich: rgba(255, 255, 255, 0.4);

    /* Elevation System (Figma Style) */
    --shadow-subtle: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-medium: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-heavy: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-premium: 0 25px 50px -12px rgb(0 0 0 / 0.15);
    --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.15);

    /* Layout & Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --max-width: 1280px;
    --header-height: 80px;

    /* Spacing Continuum */
    --s-1: 4px;
    --s-2: 8px;
    --s-3: 12px;
    --s-4: 16px;
    --s-6: 24px;
    --s-8: 32px;
    --s-10: 40px;
    --s-12: 48px;
    --s-20: 80px;

    /* Legacy Spacing Support */
    --spacing-sm: 16px;
    --spacing-md: 32px;
    --spacing-lg: 48px;
    --spacing-xl: 80px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* Ambient Background System */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    animation: fadeIn 0.5s ease-out;
    position: relative;
}

/* Ambient Pattern Overlay (Figma Style Grid) */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(var(--primary-color) 0.5px, transparent 0.5px);
    background-size: 32px 32px;
    opacity: 0.04;
    z-index: -1;
    pointer-events: none;
}

/* Floating Institutional Blobs */
.blob {
    position: fixed;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -2;
    opacity: 0.08;
    pointer-events: none;
    animation: blobFloat 30s infinite alternate ease-in-out;
}

.blob-primary {
    background: var(--primary-color);
    top: -20%;
    left: -10%;
}

.blob-secondary {
    background: var(--secondary-color);
    bottom: -20%;
    right: -10%;
    animation-delay: -15s;
}

@keyframes blobFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(10vw, 5vw) scale(1.1);
    }
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(100px, 100px);
    }
}

h1,
h2,
h3,
h4,
.logo {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Header & Nav - Figma Style Premium */
header {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-rich);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

header.scrolled {
    height: 64px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-medium);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 var(--spacing-md);
    /* Add padding for mobile */
}

.logo {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 1.6rem;
    font-weight: 800;
    /* Extra bold */
    color: var(--text-main);
    letter-spacing: -0.03em;
    text-decoration: none;
}

.logo span {
    color: var(--primary-color);
    font-size: 2rem;
    line-height: 0;
    margin-bottom: 8px;
    /* Lift the dot slightly */
}

/* Nav Links - Right aligned */
.nav-links {
    display: flex;
    gap: var(--s-1);
    align-items: center;
    padding: var(--s-1);
    background: var(--border-muted);
    border-radius: var(--radius-full);
}

.nav-links a {
    color: var(--text-body);
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
    color: var(--primary-color);
    background: white;
}

.nav-links a.active {
    background: white;
    color: var(--text-main);
    box-shadow: var(--shadow-subtle);
}

.mobile-menu-btn {
    display: none;
    /* Hidden by default, shown on mobile */
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-main);
    border-radius: var(--radius-sm);
    transition: background 0.2s;
    z-index: 1001;
    /* Higher than other elements */
}

.mobile-menu-btn:hover {
    background: var(--bg-body);
}

/* Hero Sections */
/* Consistent structure for all pages */
/* Hero Sections - Ultra Realistic Figma Style */
.hero {
    padding: clamp(3rem, 8vw, 6.25rem) 0 clamp(2.5rem, 6vw, 5rem);
    position: relative;
    overflow: hidden;
    background: #fff;
    /* Fallback */
}

/* Animated Mesh Gradient Background */
.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 70%;
    height: 130%;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.18) 0%, rgba(16, 185, 129, 0.12) 40%, rgba(255, 255, 255, 0) 70%);
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
    animation: pulseGradient 10s ease-in-out infinite alternate;
}

@keyframes pulseGradient {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.1) translate(-20px, 20px);
    }
}

.hero .container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3xl);
}

.hero .container.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-align: left;
}

/* Desktop-specific hero styles */
@media (min-width: 1025px) {
    .hero .container {
        gap: var(--spacing-4xl);
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 40px;
    }

    .hero-text {
        padding-right: var(--spacing-xl);
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100%;
    }

    .hero h1 {
        font-size: var(--font-size-5xl);
        line-height: 1.1;
        margin-bottom: var(--spacing-md);
    }

    .hero p {
        font-size: 1.3rem;
        max-width: 100%;
        margin-bottom: var(--spacing-xl);
    }

    .hero-stats {
        margin-bottom: var(--spacing-xl);
    }

    .hero-visual {
        height: 450px;
        justify-content: center;
        align-items: center;
        display: flex;
    }

    .hero-image {
        max-height: 380px;
        width: auto;
        min-width: 350px;
    }

    .hero-btn-group {
        gap: var(--spacing-lg);
        margin-bottom: var(--spacing-lg);
    }

    .btn-primary {
        padding: var(--spacing-lg) var(--spacing-3xl);
        font-size: var(--font-size-xl);
    }

    .btn-secondary {
        padding: var(--spacing-lg) var(--spacing-2xl);
        font-size: var(--font-size-xl);
    }

    .hero-trust {
        margin-top: 0;
    }

    .hero-trust p {
        font-size: 1rem;
    }

    /* Enhanced desktop gradient */
    .hero::before {
        top: -20%;
        right: -5%;
        width: 60%;
        height: 120%;
        filter: blur(100px);
    }
}

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: var(--spacing-lg);
}

.hero-image {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    z-index: 2;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.3);
}

.hero-text {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--spacing-md);
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: var(--spacing-lg);
    line-height: 1.1;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--text-main) 0%, #334155 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-body);
    margin-bottom: var(--spacing-lg);
    max-width: 500px;
    line-height: 1.7;
    animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s forwards;
    opacity: 0;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), #10b981);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.05s forwards;
    opacity: 0;
}

.hero-stats {
    display: flex;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
    animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s forwards;
    opacity: 0;
}

.stat-item {
    padding: 0 20px;
    border-left: 1px solid var(--border-base);
}

.stat-item:first-child {
    border-left: none;
    padding-left: 0;
}

.stat-number {
    display: block;
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-main);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 4px;
}

.hero-btn-group {
    display: flex;
    gap: var(--spacing-md);
    animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s forwards;
    opacity: 0;
    margin-bottom: var(--spacing-lg);
}

.hero-trust {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    opacity: 0;
    animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s forwards;
}

.trust-icons {
    display: flex;
    gap: var(--spacing-sm);
}

.hero-trust p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
    font-style: italic;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    background: var(--primary-gradient);
    color: white;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 8px 20px -6px rgba(37, 99, 235, 0.45);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -8px rgba(37, 99, 235, 0.55);
    filter: brightness(1.1);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: white;
    color: var(--text-main);
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 16px;
    border: 1px solid var(--border-base);
    transition: all 0.25s ease;
    box-shadow: var(--shadow-subtle);
}

.btn-secondary:hover {
    background: var(--bg-body);
    border-color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Hero Visual (Right Side) */
.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 1s ease-out 0.3s forwards;
    opacity: 0;
}

/* Abstract Glass Elements */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    padding: 24px;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.05),
        0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    position: absolute;
}

.card-main {
    width: 280px;
    height: 360px;
    z-index: 2;
    transform: rotate(-5deg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-floating {
    width: 200px;
    height: 120px;
    top: 50%;
    right: -20px;
    z-index: 3;
    transform: translateY(-50%) translateX(20px) rotate(5deg);
    background: rgba(255, 255, 255, 0.85);
}

.card-bg-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.1;
    filter: blur(40px);
    z-index: 1;
}

/* Fake UI elements for the card */
.ui-line {
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    margin-bottom: 12px;
    width: 100%;
}

.ui-line.short {
    width: 60%;
}

.ui-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-light);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
}

/* Generic Page Hero override (for calculator pages) */
body:not(.home-page) .hero:not(.home-page-hero) {
    padding: 60px 0;
    text-align: center;
}

body:not(.home-page) .hero:not(.home-page-hero) .container {
    display: block;
}

body:not(.home-page) .hero:not(.home-page-hero) h1 {
    font-size: 2.5rem;
    margin: 0 auto 16px;
    text-align: center;
}

body:not(.home-page) .hero:not(.home-page-hero) p {
    margin: 0 auto;
    text-align: center;
}

/* Main Content Wrapper */
.main-content {
    padding: clamp(2.5rem, 6vw, 3.75rem) 0;
}

.section-title {
    font-size: var(--font-size-4xl);
    text-align: center;
    margin-bottom: var(--spacing-3xl);
    font-weight: 700;
}

/* Calculator Card - The Star of the Show */
.calculator-container {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    padding: 40px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: start;
    border: 1px solid var(--border-light);
    transition: transform 0.3s ease;
    animation: scaleIn 0.6s ease-out 0.4s backwards;
    margin: 0 auto;
}

.input-group {
    margin-bottom: 32px;
}

.input-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-main);
    font-size: 1rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-body);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 4px;
    transition: all 0.3s ease;
}

.input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: white;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
}

.input-wrapper input:focus {
    outline: none;
}

/* Currency Selector styled like input */
select {
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23000000%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2082.2c3.6-3.6%205.4-7.8%205.4-12.8%200-5-1.8-9.3-5.4-12.9z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 10px;
}

.input-symbol {
    padding-right: 16px;
    color: var(--text-light);
    font-weight: 500;
}

/* Custom Range Slider */
.slider-container {
    margin-top: 16px;
}

input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    /* Standard property */
    width: 100%;
    background: transparent;
    cursor: pointer;
}

input[type=range]:focus {
    outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: var(--primary-light);
    border-radius: 99px;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 2px solid var(--primary-color);
    margin-top: -7px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.1s;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Results Panel */
.results-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.result-card {
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.result-card h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 8px;
}

.result-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Outfit', sans-serif;
    line-height: 1.2;
}

/* AI Explanation Box */
.ai-explanation {
    margin-top: 32px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
    padding: 20px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--secondary-color);
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.6;
    box-shadow: var(--shadow-sm);
    animation: fadeIn 0.8s ease-out;
}

/* Visual Bar - Updated Class Name for consistency */
.visual-bar-container {
    height: 12px;
    background: #e2e8f0;
    border-radius: 99px;
    overflow: hidden;
    display: flex;
    margin: 40px auto;
    max-width: 800px;
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 20px;
}

.feature-card {
    background: var(--bg-white);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideUp 0.6s ease-out forwards;
    opacity: 0;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: var(--primary-light);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    color: var(--primary-color);
}

.feature-image {
    width: 80px;
    height: 80px;
    margin-bottom: var(--spacing-md);
    transition: transform 0.3s ease;
}

.feature-image:hover {
    transform: scale(1.05);
}

.hero-image {
    max-width: 100%;
    height: auto;
}

/* Content Typography */
.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.content-wrapper h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.content-wrapper h2 {
    font-size: 1.75rem;
    margin: 2.5rem 0 1rem;
    color: var(--text-main);
}

.content-wrapper p {
    margin-bottom: 1.5rem;
    color: var(--text-body);
    font-size: 1.05rem;
}

.content-wrapper ul {
    margin-bottom: 1.5rem;
    list-style: disc;
    padding-left: 20px;
}

.content-wrapper li {
    margin-bottom: 0.5rem;
    color: var(--text-body);
}

/* Footer */
/* Main Footer Styling */
footer {
    background: #020617;
    /* Deep Navy */
    color: #94a3b8;
    padding: 0;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

/* Footer Pre-section (Why choose us) */
.footer-pre {
    background: #020617;
    padding: 60px 0 40px;
}

.footer-pre h2 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    font-family: 'Outfit', sans-serif;
}

.pre-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.pre-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pre-icon-box {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f59e0b;
    /* Golden/Yellow */
    font-size: 1.5rem;
}

.pre-col h3 {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.pre-col p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #64748b;
}

/* Footer CTA Banner */
.footer-cta {
    padding: 0 0 50px;
}

.cta-banner {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 24px;
    padding: 40px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.2);
}

.cta-banner::before,
.cta-banner::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
}

.cta-banner::before {
    width: 300px;
    height: 300px;
    bottom: -150px;
    right: 10%;
}

.cta-banner::after {
    width: 150px;
    height: 150px;
    top: -50px;
    right: 25%;
}

.cta-content h2 {
    color: #020617;
    font-size: 2.2rem;
    font-weight: 700;
    max-width: 500px;
    line-height: 1.2;
    position: relative;
    z-index: 2;
}

.cta-btn {
    background: #020617;
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Footer Grid & Bottom */
.footer-main {
    padding: 40px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 24px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.footer-main-info {
    grid-column: span 1.5;
}

@media (min-width: 769px) and (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    .footer-main-info {
        grid-column: span 1;
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr 0.8fr;
    }
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: white !important;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}

.footer-logo span {
    color: #fbbf24;
}

.footer-main-info p {
    max-width: 300px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-col h4 {
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: relative;
    display: block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 16px;
    height: 2px;
    background: #2563eb;
    border-radius: 2px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.footer-col ul li a:hover {
    color: white;
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.social-icons-v2 {
    display: flex;
    gap: 16px;
}

.social-icon-v2 {
    color: #fbbf24;
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.social-icon-v2:hover {
    transform: scale(1.1);
}

.certified-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
}

.certified-badge fs {
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    color: #020617;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.newsletter-box:focus-within {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.newsletter-box input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 16px;
    color: white;
    font-size: 0.95rem;
    outline: none;
}

.newsletter-box input::placeholder {
    color: #475569;
}

.newsletter-box button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.newsletter-box button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

/* Social Iconography */
.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-link:hover {
    background: white;
    color: #020617;
    transform: translateY(-4px);
    border-color: white;
}

/* Bottom Bar */
.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 32px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #475569;
    font-size: 0.875rem;
}

.copyright span {
    color: #64748b;
    font-weight: 600;
}

.footer-legal-links {
    display: flex;
    gap: 24px;
}

.footer-legal-links a {
    color: #64748b !important;
    padding: 0 !important;
    font-size: 0.85rem !important;
}

.footer-legal-links a:hover {
    color: white !important;
    transform: none !important;
}

/* Enhanced copyright with animation */
.copyright p {
    margin: 0;
}

.copyright span {
    color: var(--primary-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.7;
    }
}

/* Consolidated Media Queries & Mobile Overhaul */
@media (max-width: 1024px) {
    .container {
        padding: 0 40px;
    }

    .hero-container {
        gap: 60px !important;
    }

    .calculator-container {
        gap: 40px;
        padding: 30px;
    }
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .footer-logo {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-lg: 24px;
        --spacing-xl: 32px;
    }

    body {
        font-size: 15px;
    }

    .container {
        padding: 0 20px;
    }

    /* Header & Mobile Menu */
    header {
        height: 70px;
    }

    .nav-wrapper {
        justify-content: space-between;
    }

    .nav-links {
        display: none;
        /* Hide desktop nav */
    }

    .mobile-menu-btn {
        display: block;
        font-size: 1.8rem;
        color: var(--text-main);
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1001;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header-actions .btn-primary {
        display: none;
        /* Hide CTA button on very small screens to save space */
    }

    /* Mobile Menu Drawer */
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: white;
        z-index: 1000;
        padding: 90px 24px 40px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transform: translateX(0);
        animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    @keyframes slideInRight {
        from {
            transform: translateX(100%);
        }

        to {
            transform: translateX(0);
        }
    }

    .nav-links.active li {
        margin: 0 0 15px 0;
        width: 100%;
    }

    .nav-links.active a {
        font-size: 1.1rem;
        font-weight: 600;
        padding: 12px 16px;
        display: block;
        border-radius: 12px;
        transition: all 0.2s;
        color: var(--text-main);
    }

    .nav-links.active a:hover,
    .nav-links.active a.active {
        background: var(--primary-light);
        color: var(--primary-color);
    }

    /* Hero Section Stacking */
    .hero-container {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 40px !important;
        padding: 40px 0;
    }

    .hero-text {
        align-items: center !important;
        text-align: center !important;
    }

    .hero-title {
        font-size: 2.25rem !important;
        line-height: 1.2;
    }

    .hero-subtitle {
        margin: 0 auto 30px;
    }

    .hero-cta-wrapper {
        justify-content: center;
        gap: 20px;
    }

    .hero-visual-dynamic {
        order: -1;
        /* Image on top for mobile */
        justify-content: center;
    }

    .visual-wrapper {
        height: 320px;
    }

    .dashboard-mockup {
        width: 300px;
        height: 240px;
    }

    .floating-card-ui {
        padding: 12px 16px;
        gap: 10px;
    }

    /* Calculator Grid Stacking */
    .calculator-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 24px;
        border-radius: 24px;
    }

    .results-section {
        padding: 24px;
        order: 2;
    }

    .result-value {
        font-size: 2rem;
    }

    /* Tabs scrollable on mobile */
    .tool-tabs {
        display: flex;
        overflow-x: auto;
        padding-bottom: 8px;
        margin-bottom: 24px;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        justify-content: flex-start;
    }

    .tool-tab {
        white-space: nowrap;
        padding: 10px 20px;
    }

    /* Table Responsiveness */
    .table-responsive {
        width: 100%;
        overflow-x: auto;
        margin-top: 20px;
        border-radius: 12px;
        box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.02);
    }

    #amortization-table {
        min-width: 600px;
        /* Ensure table remains readable */
    }

    /* Blog & Content */
    .content-wrapper {
        padding: 24px;
    }

    .features-grid-premium {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    /* Footer adjustments */
    .footer-pre {
        padding: 40px 0 20px;
    }
    
    .footer-pre h2 {
        font-size: 1.8rem;
        text-align: center;
        margin-bottom: 30px;
    }
    
    .pre-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .pre-col {
        align-items: center;
        text-align: center;
    }
    
    .pre-col h3 {
        text-align: center;
    }
    
    .pre-col p {
        text-align: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        padding: 0 15px;
    }
    
    .footer-main-info {
        grid-column: span 1;
        text-align: center;
    }
    
    .footer-main-info p {
        max-width: 100%;
        margin: 0 auto 20px;
    }
    
    .footer-col {
        text-align: center;
    }
    
    .footer-col h4 {
        margin-bottom: 12px;
    }
    
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-col ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .social-icons-v2 {
        justify-content: center;
        margin-top: 10px;
    }
    
    .social-icon-v2 {
        margin: 0 5px;
    }
    
    .cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        gap: 20px;
    }
    
    .cta-content h2 {
        font-size: 1.5rem;
        max-width: 100%;
    }
    
    .cta-btn {
        margin: 0 auto;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .certified-badge {
        justify-content: center;
        margin: 0 auto;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .newsletter-box {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .copyright {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-legal-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    /* Adjust CTA banner for small screens */
    .cta-banner {
        padding: 25px 15px;
    }
    
    .cta-content h2 {
        font-size: 1.4rem;
        line-height: 1.4;
    }
    
    .cta-btn {
        padding: 14px 24px;
        font-size: 0.95rem;
    }

    /* How It Works Stacking */
    .steps-container {
        flex-direction: column;
        gap: 40px;
    }

    .step-line {
        display: none;
    }

    .step-card {
        padding: 0;
    }

    /* Split Layout Stacking */
    .split-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .sticky-side {
        position: static;
        text-align: center;
    }

    .section-title.left {
        text-align: center;
    }

    .calc-nav {
        justify-content: center;
        flex-wrap: wrap;
    }

    .tool-card {
        gap: 16px;
        padding: 24px;
        text-align: left;
    }

    .tool-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    /* CTA Section Mobile */
    .cta-premium {
        padding: 60px 0;
        text-align: center;
    }

    .cta-btns {
        flex-direction: column;
        width: 100%;
        gap: 16px;
    }

    .cta-btns a {
        width: 100%;
    }

    .cta-visual-fragment {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem !important;
    }

    .main-cta {
        width: 100%;
    }

    .btn-secondary-outline {
        width: 100%;
        justify-content: center;
    }

    .hero-btn-group {
        flex-direction: column;
        width: 100%;
    }

    .dashboard-mockup {
        width: 100%;
        height: 200px;
    }

    .stat-pill-new {
        width: 100%;
        justify-content: center;
    }
}

/* Touch-friendly enhancements */
a {
    -webkit-tap-highlight-color: rgba(37, 99, 235, 0.2);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: blink 2s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.hero-ver {
    background: #f1f5f9;
    color: #64748b;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Typography */
.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.05;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-main);
    letter-spacing: -0.04em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, #10b981 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: var(--text-body);
    line-height: 1.6;
    max-width: 580px;
    margin-bottom: 40px;
    font-weight: 500;
}

/* CTA & Social Proof */
.hero-cta-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 32px;
    margin-bottom: 48px;
}

.hero-btn-group {
    display: flex;
    gap: 16px;
}

.main-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 16px;
    background: var(--primary-gradient);
    color: white;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.main-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px rgba(37, 99, 235, 0.4);
    background: var(--primary-dark);
}

.btn-secondary-outline {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: 16px;
    background: white;
    color: var(--text-main);
    font-weight: 700;
    border: 1px solid var(--border-light);
    transition: all 0.3s;
}

/* Mockup UI Inner Elements */
.mockup-chart-container {
    height: 120px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin-bottom: 24px;
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e2e8f0;
}

.mockup-bar {
    flex: 1;
    background: var(--primary-gradient);
    border-radius: 4px;
    min-height: 10px;
    animation: growBar 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transform-origin: bottom;
    opacity: 0.8;
}

@keyframes growBar {
    from {
        transform: scaleY(0);
    }

    to {
        transform: scaleY(1);
    }
}

.mockup-stats-row {
    display: flex;
    gap: 12px;
}

.mockup-stat-item {
    flex: 1;
    height: 60px;
    background: #eff6ff;
    border-radius: 8px;
    border: 1px solid #dbeafe;
}

.mockup-bar:nth-child(2) {
    animation-delay: 0.1s;
    background: var(--secondary-gradient);
}

.mockup-bar:nth-child(3) {
    animation-delay: 0.2s;
}

.mockup-bar:nth-child(4) {
    animation-delay: 0.3s;
    background: var(--secondary-gradient);
}

.mockup-bar:nth-child(5) {
    animation-delay: 0.4s;
}

.btn-secondary-outline:hover {
    background: #f8fafc;
    border-color: var(--border-hover);
}

.hero-guarantee {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-avatars {
    display: flex;
    align-items: center;
}

.avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    margin-right: -10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: white;
    font-weight: 700;
}

.avatar-more {
    margin-left: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-light);
}

.hero-guarantee p {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

/* New Stats */
.hero-stats-new {
    display: flex;
    gap: 32px;
}

.stat-pill-new {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon-wrap {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.stat-val {
    display: block;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-main);
}

.stat-desc {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Dynamic Visuals */
.hero-visual-dynamic {
    position: relative;
    perspective: 1000px;
}

.visual-wrapper {
    position: relative;
    width: 100%;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-mockup {
    width: 420px;
    height: 360px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    overflow: hidden;
    transform: rotateX(10deg) rotateY(-10deg);
    transition: transform 0.8s ease-out;
}

.hero-visual-dynamic:hover .dashboard-mockup {
    transform: rotateX(5deg) rotateY(-5deg);
}

.mockup-nav {
    height: 44px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 20px;
}

.dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    margin-right: 6px;
}

.search-bar {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    flex: 1;
    height: 20px;
}

.mockup-content {
    padding: 24px;
}

/* Enhanced Mobile Responsiveness for Hero Sections */
@media (max-width: 1024px) {
    .hero-visual-dynamic {
        perspective: 800px;
    }

    .visual-wrapper {
        height: 380px;
    }

    .dashboard-mockup {
        width: 340px;
        height: 280px;
        transform: rotateX(8deg) rotateY(-8deg);
    }

    .mockup-nav {
        height: 36px;
        padding: 0 16px;
    }

    .mockup-content {
        padding: 20px;
    }

    .hero-title {
        font-size: clamp(2rem, 4.5vw, 3.5rem);
    }

    .hero-subtitle {
        font-size: clamp(1rem, 1.8vw, 1.15rem);
    }
}

@media (max-width: 768px) {
    .home-page-hero {
        padding: clamp(3rem, 8vw, 5rem) 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 30px 20px;
        text-align: center;
    }

    .hero-text {
        padding-right: 0;
        align-items: center;
    }

    .hero-badge-container {
        justify-content: center;
        margin-bottom: 20px;
    }

    .hero-badge-new {
        font-size: 0.75rem;
        padding: 6px 16px;
    }

    .hero-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
        margin-bottom: 16px;
        text-align: center;
    }

    .hero-subtitle {
        font-size: clamp(0.95rem, 2.5vw, 1.1rem);
        margin-bottom: 32px;
        max-width: 100%;
        text-align: center;
    }

    .hero-stats-new {
        justify-content: center;
        gap: 24px;
        flex-wrap: wrap;
    }

    .stat-pill-new {
        gap: 12px;
    }

    .stat-pill-new strong {
        font-size: 1.1rem;
    }

    .stat-pill-new span {
        font-size: 0.75rem;
    }

    .hero-visual-dynamic {
        perspective: 600px;
        order: -1;
    }

    .visual-wrapper {
        height: 300px;
        width: 100%;
    }

    .dashboard-mockup {
        width: min(320px, 90%);
        height: 260px;
        transform: rotateX(5deg) rotateY(0deg);
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    }

    .hero-visual-dynamic:hover .dashboard-mockup {
        transform: rotateX(3deg) rotateY(0deg);
    }

    .mockup-nav {
        height: 32px;
        padding: 0 12px;
        gap: 12px;
    }

    .dots span {
        width: 6px;
        height: 6px;
        margin-right: 4px;
    }

    .mockup-content {
        padding: 16px;
    }

    .mockup-content>div:first-child {
        height: 80px !important;
        font-size: 1.2rem !important;
        margin-bottom: 16px !important;
    }

    .mockup-content>div:last-child>div {
        height: 8px !important;
        border-radius: 4px !important;
    }

    .hero-bg-glow {
        width: 100%;
        height: 120%;
        top: -10%;
        right: -20%;
        filter: blur(80px);
    }
}

@media (max-width: 480px) {
    .home-page-hero {
        padding: 2.5rem 0;
    }

    .hero-container {
        padding: 24px 16px;
        gap: 32px;
        border-radius: 24px;
    }

    .hero-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
        line-height: 1.15;
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 24px;
    }

    .hero-badge-new {
        font-size: 0.7rem;
        padding: 5px 12px;
    }

    .hero-stats-new {
        gap: 16px;
    }

    .stat-pill-new {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }

    .stat-pill-new strong {
        font-size: 1rem;
    }

    .stat-pill-new span {
        font-size: 0.7rem;
    }

    .visual-wrapper {
        height: 240px;
    }

    .dashboard-mockup {
        width: min(280px, 95%);
        height: 220px;
        border-radius: 16px;
    }

    .mockup-nav {
        height: 28px;
        padding: 0 10px;
    }

    .dots span {
        width: 5px;
        height: 5px;
        margin-right: 3px;
    }

    .mockup-content {
        padding: 12px;
    }

    .mockup-content>div:first-child {
        height: 60px !important;
        font-size: 1rem !important;
        margin-bottom: 12px !important;
        border-radius: 8px !important;
    }

    .mockup-content>div:last-child>div {
        height: 8px !important;
        border-radius: 4px !important;
    }
}

.chart-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.chart-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
}

.chart-legend {
    font-size: 0.75rem;
    color: var(--text-light);
}

.chart-legend span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 2px;
}

.chart-visual {
    height: 120px;
    margin-bottom: 18px;
}

.mockup-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.list-item {
    height: 10px;
    background: #f1f5f9;
    border-radius: 5px;
    width: 100%;
}

.list-item.short {
    width: 60%;
}

/* Modern Mockup Header */
.mockup-header-v2 {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 20px 20px 0 0;
}

.window-controls {
    display: flex;
    gap: 6px;
}

.window-controls span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
}

.window-controls span:nth-child(1) {
    background: #ff5f56;
}

.window-controls span:nth-child(2) {
    background: #ffbd2e;
}

.window-controls span:nth-child(3) {
    background: #27c93f;
}

.mockup-address {
    font-size: 0.7rem;
    color: #94a3b8;
    background: white;
    padding: 4px 20px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    font-family: monospace;
}

/* Neural Logic Header */
.neural-logic-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 4px;
}

.logic-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-main);
}

.logic-status {
    font-size: 0.65rem;
    font-weight: 800;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 4px;
}

.logic-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Logic Stream Mini */
.logic-stream-mini {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #020617;
    padding: 12px;
    border-radius: 12px;
}

.stream-line {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.65rem;
    color: #3b82f6;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid transparent;
}

.stream-line:nth-child(1) {
    animation: typing 3s steps(30, end) infinite;
}

.stream-line:nth-child(2) {
    color: #10b981;
    opacity: 0.8;
}

.stream-line:nth-child(3) {
    color: #94a3b8;
    opacity: 0.6;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

/* Floating UI Enhancements */
.floating-card-ui {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    z-index: 10;
}

.card-one {
    top: 10%;
    left: -20px;
    animation: float1 6s ease-in-out infinite;
}

.card-two {
    bottom: 15%;
    right: -20px;
    animation: float2 7s ease-in-out infinite;
}

.card-icon-small {
    width: 40px;
    height: 40px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.card-text-small span {
    display: block;
    font-size: 0.7rem;
    color: var(--text-light);
    font-weight: 500;
}

.card-text-small strong {
    display: block;
    font-size: 1rem;
    color: var(--text-main);
}

.visual-blur-bg {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    filter: blur(100px);
    opacity: 0.1;
    z-index: 0;
}

@keyframes float1 {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes float2 {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(15px);
    }
}

/* Trusted By Institutional Fix */
.trusted-by {
    padding: 60px 0;
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.trust-label {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 24px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-cloud {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.logo-cloud:hover {
    opacity: 0.8;
}

.cloud-item {
    display: flex;
    align-items: center;
    gap: 8px;
    filter: grayscale(1);
    transition: filter 0.3s;
}

.cloud-item:hover {
    filter: grayscale(0);
}

.cloud-item span {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 1px;
}

.trust-long-pitch {
    margin-top: 80px;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    background: var(--bg-body);
    padding: 60px;
    border-radius: 32px;
    border: 1px solid var(--border-base);
}

.trust-long-pitch h3 {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 24px;
    font-weight: 800;
}

.trust-long-pitch p {
    color: var(--text-body);
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Features Premium */
.features-section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.sub-title {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2.2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--text-main);
    letter-spacing: -0.03em;
}

.section-desc {
    font-size: 1.15rem;
    color: var(--text-body);
    line-height: 1.6;
    max-width: 650px;
    margin: 0 auto;
}

/* How It Works Premium */
.how-it-works {
    padding: 100px 0;
    background: #fcfdfe;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 60px;
}

.step-card {
    flex: 1;
    text-align: left;
    max-width: 300px;
    z-index: 2;
}

.step-num {
    width: 50px;
    height: 50px;
    background: var(--primary-surface);
    color: var(--primary-color);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 24px;
    position: relative;
    border: 1px solid var(--primary-border);
}

.step-num::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 1px dashed var(--primary-color);
    border-radius: 18px;
    opacity: 0.2;
    animation: rotate 10s linear infinite;
}

.step-card h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-main);
}

.step-card p {
    font-size: 0.95rem;
    color: var(--text-body);
}

.step-line {
    flex: 0.5;
    height: 1px;
    background: var(--border-base);
    margin-top: 25px;
    position: relative;
}

/* Calculator Grid Bento Style */
.calculators-section {
    padding: 100px 0;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
}

.sticky-side {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.calc-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 32px;
}

.nav-btn {
    padding: 12px 24px;
    border: none;
    background: transparent;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    border-left: 2px solid transparent;
    transition: all 0.3s;
}

.nav-btn.active {
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    background: var(--primary-surface);
}

.cards-side {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tool-card {
    background: white;
    padding: 32px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 24px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--border-muted);
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s;
}

.tool-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-premium);
    border-color: var(--primary-color);
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-body);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: all 0.3s;
}

.tool-card:hover .tool-icon {
    background: var(--primary-surface);
    transform: scale(1.1) rotate(-5deg);
}

.tool-info h3 {
    font-size: 1.25rem;
    margin-bottom: 4px;
    color: var(--text-main);
}

.tool-info p {
    font-size: 0.95rem;
    color: var(--text-body);
}

.tool-arrow {
    margin-left: auto;
    color: var(--text-light);
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.cta-visual-fragment {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%) rotate(5deg);
    width: 300px;
    height: 200px;
    perspective: 1000px;
}

.fragment-card {
    background: white;
    padding: 24px;
    border-radius: 20px;
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--border-rich);
    transform: rotateX(10deg) rotateY(-10deg);
}

.f-header {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
}

.f-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border-base);
}

.f-line {
    height: 8px;
    background: var(--bg-body);
    border-radius: 4px;
    margin-bottom: 12px;
    width: 100%;
}

.f-line.short {
    width: 60%;
}

.section-desc {
    font-size: 1.15rem;
    color: var(--text-light);
}

.features-grid-premium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-card-premium {
    background: white;
    padding: 32px;
    border-radius: 28px;
    border: 1px solid var(--border-light);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.feature-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card-premium:hover {
    transform: translateY(-12px);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
}

.feature-card-premium:hover::before {
    opacity: 1;
}

.card-icon {
    width: 56px;
    height: 56px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.card-icon svg {
    width: 28px;
    height: 28px;
}

.card-inner {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-inner h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
    color: var(--text-main);
}

.card-inner p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
}

.card-feature-pill {
    display: inline-block;
    margin-top: 24px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: fit-content;
}

/* --- Institutional FAQ Hub --- */
.faq-section {
    padding: 100px 0;
    background: #f8fafc;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 48px;
}

.faq-details {
    background: white;
    border: 1px solid var(--border-base);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-details summary {
    padding: 24px 32px;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-main);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-details summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s;
}

.faq-details[open] summary::after {
    transform: rotate(45deg);
}

.faq-details:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-medium);
}

.faq-answer {
    padding: 0 32px 32px;
    color: var(--text-body);
    line-height: 1.7;
    font-size: 1rem;
}

/* Calculator Grid Split */
.calculators-section {
    padding: 100px 0;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
}

.sticky-side {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.section-title.left {
    text-align: left;
    margin-bottom: 18px;
}

.calc-nav {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.nav-btn {
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    background: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-btn.active {
    background: var(--text-main);
    color: white;
    border-color: var(--text-main);
}

.cards-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tool-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px;
    background: white;
    border-radius: 24px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.tool-card:hover {
    background: #f8fafc;
    transform: translateX(10px);
    border-color: var(--primary-color);
}

.tool-icon {
    font-size: 2.5rem;
    width: 80px;
    height: 80px;
    background: #f1f5f9;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-info {
    flex: 1;
}

.tool-info h3 {
    margin-bottom: 8px;
}

.tool-info p {
    color: var(--text-light);
}

.tool-arrow {
    font-size: 1.5rem;
    color: #cbd5e1;
    transition: color 0.3s;
}

.tool-card:hover .tool-arrow {
    color: var(--primary-color);
}

/* CTA Premium */
.cta-premium {
    padding: 80px 0;
}

.cta-premium .container {
    background: var(--text-main);
    border-radius: 48px;
    padding: 80px 100px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    justify-content: center;
    text-align: left;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-badge {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    margin-bottom: 18px;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-premium h2 {
    color: white;
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 18px;
}

.cta-btns {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    margin-top: 40px;
}

.btn-secondary.dark {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-secondary.dark:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cta-visual-fragment {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fragment-card {
    width: 200px;
    height: 240px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 24px;
    transform: rotate(10deg);
}

.f-dot {
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    border-radius: 12px;
    margin-bottom: 20px;
}

.f-line {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    width: 100%;
    margin-bottom: 8px;
}

.cta-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--primary-color);
    filter: blur(120px);
    opacity: 0.2;
    top: -200px;
    right: -200px;
}

/* FAQ Accordion */
.faq-section {
    padding: 100px 0;
}

.container.narrow {
    max-width: 800px;
}

.faq-accordion {
    margin-top: 60px;
}

.faq-details {
    background: white;
    border-radius: 16px;
    margin-bottom: 12px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all 0.3s;
}

.faq-details[open] {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.faq-details summary {
    padding: 24px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
}

.faq-details summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s;
}

.faq-details[open] summary::after {
    content: '-';
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px 24px;
    color: var(--text-body);
}

/* Mobile Responsive Adjustments */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-badge-container {
        justify-content: center;
    }

    /* Mobile blog enhancements */
    .features-grid-premium {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .feature-card-premium {
        padding: 24px;
    }

    .section-title {
        font-size: 2rem;
    }

    .blog-actions {
        margin-top: 50px;
    }

    .cta-content {
        padding: 0 20px;
    }

    .newsletter-box {
        flex-direction: column;
        border-radius: 12px;
    }

    .newsletter-box input {
        width: 100%;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    .newsletter-box button {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        width: 100%;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta-wrapper {
        justify-content: center;
        flex-direction: column;
        gap: 24px;
    }

    .hero-stats-new {
        justify-content: center;
    }

    .dashboard-mockup {
        width: 100%;
        max-width: 450px;
        transform: rotateX(5deg) scale(0.95);
    }

    .visual-wrapper {
        height: 400px;
    }

    .card-one {
        left: 0;
    }

    .card-two {
        right: 0;
    }

    .features-grid-premium {
        grid-template-columns: repeat(2, 1fr);
    }

    .split-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-btn-group {
        flex-direction: column;
        width: 100%;
    }

    .main-cta,
    .btn-secondary-outline {
        width: 100%;
        justify-content: center;
    }

    .hero-stats-new {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .visual-wrapper {
        height: 350px;
    }

    .dashboard-mockup {
        width: 100%;
        margin: 0 auto;
    }

    .floating-card-ui {
        padding: 12px;
        gap: 12px;
    }

    .card-text-small strong {
        font-size: 0.9rem;
    }

    .card-one {
        top: -20px;
    }

    .card-two {
        bottom: -20px;
    }

    .features-grid-premium {
        grid-template-columns: 1fr;
    }

    .steps-container {
        flex-direction: column;
    }

    .step-line {
        width: 2px;
        height: 40px;
    }

    .cta-premium .container {
        padding: 60px 32px;
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cta-visual-fragment {
        display: none;
    }

    .cta-premium h2 {
        font-size: 2.25rem;
    }

    .cta-btns {
        flex-direction: column;
        justify-content: center;
        width: 100%;
        gap: 16px;
    }

    .cta-btns a {
        width: 100%;
        justify-content: center;
    }

    .logo-cloud {
        gap: 30px;
    }
}

/* --- Footer Styling --- */
footer {
    background: #020617;
    /* Deeper midnight blue/black */
    color: #f8fafc;
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
}

/* Subtle Top Border Highlight */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.2), transparent);
}

/* Corner Glow for Premium Depth */
footer::after {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05), transparent 70%);
    pointer-events: none;
}

/* Grid & Columns */
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.footer-logo {
    font-size: 2.25rem;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-col p {
    color: #94a3b8;
    max-width: 320px;
    margin-bottom: 32px;
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 400;
}

.footer-col h4 {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 20px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
    list-style: none;
    padding: 0;
}

.footer-col ul a {
    color: #64748b;
    /* Muted color for clean hierarchy */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    text-decoration: none;
    font-size: 0.95rem;
}

.footer-col ul a:hover {
    color: white;
    transform: translateX(8px);
}

.social-links {
    display: flex;
    gap: 14px;
}

.social-link {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-8px) rotate(8deg);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.3);
}

/* Bottom Copyright Section */
.copyright {
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.85rem;
    color: #64748b;
    padding-bottom: 25px;
    position: relative;
    z-index: 1;
}

.copyright p {
    color: #475569;
    font-size: 0.9rem;
}

.copyright span {
    color: #94a3b8;
    font-weight: 600;
}

.footer-legal-links {
    display: flex;
    gap: 24px;
}

.footer-legal-links a {
    color: #475569;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.footer-legal-links a:hover {
    color: #94a3b8;
}

.newsletter-box {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s;
    margin-top: 20px;
}

.newsletter-box:focus-within {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
}

.newsletter-box input {
    background: transparent;
    border: none;
    padding: 10px 14px;
    color: white;
    font-size: 0.9rem;
    width: 100%;
    outline: none;
}

.newsletter-box input::placeholder {
    color: #475569;
}

.newsletter-box button {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.newsletter-box button:hover {
    background: #1d4ed8;
    transform: scale(1.05);
}

/* Staggered Responsive Adjustments */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 640px) {
    footer {
        padding: 80px 0 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-col p {
        margin: 0 auto 32px;
    }

    .social-links {
        justify-content: center;
    }

    .footer-col ul a:hover {
        transform: translateY(-3px);
    }

    .copyright {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-legal-links {
        justify-content: center;
        width: 100%;
    }
}

/* --- Calculator Tool Styling --- */
.calculator-container {
    background: white;
    border-radius: 32px;
    border: 1px solid var(--border-light);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.05);
    padding: 40px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.calculator-inputs {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-group label {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.95rem;
}

.input-wrapper {
    position: relative;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    background: white;
}

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    border: none;
    background: transparent;
    padding: 16px 20px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    outline: none;
}

/* Remove arrows for cleaner look */
.input-wrapper input::-webkit-outer-spin-button,
.input-wrapper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-symbol {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    color: var(--text-light);
}

.slider-container {
    padding-top: 10px;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 99px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    border: 4px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.results-section {
    background: #f8fafc;
    border-radius: 24px;
    padding: 32px;
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.result-card {
    background: white;
    padding: 24px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
}

.result-card h3 {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 600;
}

.result-value {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary-color);
}

.visual-bar-container {
    height: 12px;
    background: #e2e8f0;
    border-radius: 99px;
    overflow: hidden;
    display: flex;
    margin-top: 24px;
}

.ai-explanation {
    margin-top: 32px;
    padding: 24px;
    background: white;
    border-radius: 20px;
    border: 1px solid rgba(37, 99, 235, 0.1);
    position: relative;
    min-height: 120px;
}

.ai-explanation::before {
    content: 'AI Insight';
    position: absolute;
    top: -12px;
    left: 24px;
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
}

.ai-explanation strong {
    color: var(--text-main);
}

@media (max-width: 900px) {
    .calculator-container {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col p {
        margin-left: auto;
        margin-right: auto;
    }

    .social-links {
        justify-content: center;
    }

    .result-value {
        font-size: 1.75rem;
    }
}

/* --- About Page Enhancements --- */
.timeline-section {
    padding: 100px 0;
    background: #f8fafc;
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--primary-color), transparent);
}

.timeline-item {
    margin-bottom: 60px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 45%;
    background: white;
    padding: 32px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-light);
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.1);
    z-index: 2;
}

.timeline-year {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
    display: block;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.team-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.team-image {
    height: 300px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #cbd5e1;
    position: relative;
    overflow: hidden;
}

.team-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.1), transparent);
}

.team-info {
    padding: 24px;
    text-align: center;
}

.team-info h4 {
    font-size: 1.25rem;
    margin-bottom: 4px;
    color: var(--text-main);
}

.team-info p {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

/* --- Professional Tool Enhancements --- */
.tool-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    background: #f1f5f9;
    padding: 8px;
    border-radius: 16px;
    width: fit-content;
}

.tool-tab {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    color: var(--text-light);
}

.tool-tab.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.amortization-section {
    margin-top: 80px;
    background: white;
    border-radius: 32px;
    padding: 60px;
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.table-responsive {
    overflow-x: auto;
    margin-top: 40px;
}

.professional-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.professional-table th {
    text-align: left;
    padding: 20px;
    background: #f8fafc;
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-light);
}

.professional-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-body);
    font-size: 0.95rem;
}

.professional-table tr:hover td {
    background: #fcfdfe;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 40px;
}

.comparison-card {
    background: #f8fafc;
    border-radius: 24px;
    padding: 32px;
    border: 1px solid var(--border-light);
}

.comparison-card h4 {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.comparison-card h4 i {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
}

.comparison-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

.comparison-value {
    font-weight: 700;
    color: var(--text-main);
}

.tool-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 40px;
}

.btn-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-icon:hover {
    background: #f1f5f9;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Responsiveness for new sections */
@media (max-width: 900px) {
    .timeline-container::before {
        left: 30px;
    }

    .timeline-item {
        justify-content: flex-start;
        padding-left: 60px;
    }

    .timeline-item:nth-child(even) {
        flex-direction: row;
    }

    .timeline-content {
        width: 100%;
    }

    .timeline-dot {
        left: 30px;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .amortization-section {
        padding: 30px 20px;
    }
}

/* Enhanced desktop styles for all tool hero sections */
@media (min-width: 1200px) {

    .home-page-hero .hero-container,
    .hero-container {
        grid-template-columns: 1fr 1fr;
        /* Equal columns for better balance */
        gap: 80px;
        align-items: center;
    }

    .home-page-hero .hero-text,
    .hero-text {
        padding-right: 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100%;
    }

    .home-page-hero .hero-title,
    .hero-title {
        font-size: clamp(3rem, 4vw, 4.5rem);
        line-height: 1.05;
        margin-bottom: 24px;
    }

    .home-page-hero .hero-subtitle,
    .hero-subtitle {
        font-size: 1.4rem;
        line-height: 1.6;
        margin-bottom: 32px;
        max-width: 100%;
    }

    .hero-visual-dynamic {
        position: relative;
        perspective: 1200px;
    }

    .visual-wrapper {
        position: relative;
        width: 100%;
        height: 520px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .dashboard-mockup {
        width: 480px;
        height: 400px;
        background: white;
        border-radius: 24px;
        box-shadow: 0 40px 120px rgba(0, 0, 0, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.8);
        overflow: hidden;
        transform: rotateX(10deg) rotateY(-10deg);
        transition: transform 0.8s ease-out;
    }

    .hero-stats-new {
        display: flex;
        gap: 20px;
        margin-top: 30px;
    }

    .stat-pill-new {
        background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
        border: 1px solid rgba(37, 99, 235, 0.15);
        padding: 16px 24px;
        border-radius: 16px;
        text-align: center;
        min-width: 140px;
        box-shadow: 0 4px 20px rgba(37, 99, 235, 0.1);
    }

    .stat-pill-new strong {
        display: block;
        font-size: 1.8rem;
        font-weight: 800;
        color: var(--primary-color);
        line-height: 1.2;
    }

    .stat-pill-new span {
        font-size: 0.9rem;
        color: var(--text-light);
        font-weight: 600;
    }

    /* Professional styling for tool tabs */
    .tool-tabs {
        padding: 12px;
        border-radius: 20px;
        background: linear-gradient(to right, #f8fafc, #f1f5f9);
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .tool-tab {
        padding: 14px 28px;
        border-radius: 16px;
        font-weight: 600;
        font-size: 1rem;
        transition: all 0.3s ease;
    }

    .tool-tab.active {
        background: white;
        color: var(--primary-color);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    }

    /* Enhanced calculator container */
    .calculator-container {
        border-radius: 32px;
        padding: 50px;
        gap: 70px;
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
    }

    /* Blog-specific desktop enhancements */
    .features-grid-premium {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }

    .feature-card-premium {
        padding: 40px;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .section-title {
        font-size: 2.8rem;
    }

    .blog-actions {
        margin-top: 80px;
    }
}

@media (min-width: 1400px) {

    .home-page-hero .hero-container,
    .hero-container {
        max-width: 1600px;
        margin: 0 auto;
        gap: 100px;
    }

    .visual-wrapper {
        height: 550px;
    }

    .dashboard-mockup {
        width: 520px;
        height: 420px;
    }

    .hero-title {
        font-size: clamp(3.2rem, 4.5vw, 5rem);
    }

    .calculator-container {
        padding: 60px;
        gap: 80px;
    }
}

/* --- About Page Premium Styles --- */
.features-grid-premium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.feature-card-premium {
    background: white;
    padding: 40px;
    border-radius: 30px;
    border: 1px solid var(--border-light);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.feature-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.feature-card-premium .card-icon {
    width: 60px;
    height: 60px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1.5rem;
}

.feature-card-premium h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.feature-card-premium p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 18px;
}

.card-feature-pill {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--primary-light);
    color: var(--primary-color);
}

/* Blog-specific enhancements */
.blog-actions {
    text-align: center;
    margin-top: 60px;
}

.btn-primary-outline {
    padding: 16px 40px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
}

/* Enhanced blog article cards */
.feature-card-premium {
    background: white;
    padding: 32px;
    border-radius: 28px;
    border: 1px solid var(--border-light);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.feature-card-premium .card-inner {
    position: relative;
    z-index: 1;
}

.feature-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card-premium:hover {
    transform: translateY(-12px);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.12);
    border-color: rgba(37, 99, 235, 0.3);
}

.feature-card-premium h3 {
    transition: color 0.3s ease;
}

.feature-card-premium:hover h3 {
    color: var(--primary-color);
}

.feature-card-premium:hover::before {
    opacity: 1;
}

/* Enhanced article metadata */
.sub-title {
    font-size: 0.7rem;
    margin-bottom: 8px;
    display: block;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.sub-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Enhanced feature pill for articles */
.card-feature-pill {
    display: inline-block;
    padding: 7px 18px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--primary-light);
    color: var(--primary-color);
    border: 1px solid rgba(37, 99, 235, 0.15);
    transition: all 0.3s ease;
}

.card-feature-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

/* Professional blog section header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-header .hero-badge-new {
    margin: 0 auto 16px;
    display: inline-block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    color: var(--text-main);
    position: relative;
    display: inline-block;
}

/* Blog newsletter CTA */
.cta-premium {
    margin-top: 0;
    background: #0f172a;
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-badge {
    background: var(--primary-color);
    padding: 8px 20px;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 20px;
}

.newsletter-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    padding: 4px;
    border-radius: 12px;
    transition: border-color 0.3s ease;
}

.newsletter-box:focus-within {
    border-color: var(--primary-color);
}

.newsletter-box input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 16px 20px;
    color: white;
    font-size: 1rem;
    outline: none;
}

.newsletter-box button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 16px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-box button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Timeline Styling */
.timeline-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, #fff, #f8fafc);
}

.timeline-container {
    max-width: 900px;
    margin: 60px auto 0;
    position: relative;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    opacity: 0.2;
}

.timeline-item {
    margin-bottom: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 45%;
    background: white;
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-light);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: white;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.1);
}

.timeline-year {
    display: block;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
    text-transform: uppercase;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.team-card {
    background: white;
    border-radius: 30px;
    padding: 40px;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.team-image {
    width: 120px;
    height: 120px;
    border-radius: 40px;
    margin: 0 auto 24px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    overflow: hidden;
    position: relative;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.team-info p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* CTA Premium */
.cta-premium {
    margin: 100px 0;
    position: relative;
}

.cta-premium .container {
    background: var(--text-main);
    border-radius: 40px;
    padding: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.cta-badge {
    color: var(--primary-color);
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 0.75rem;
    margin-bottom: 20px;
}

.cta-content h2 {
    color: white;
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 18px;
}

.cta-content p {
    color: #94a3b8;
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.cta-btns {
    display: flex;
    gap: 20px;
}

.cta-glow {
    position: absolute;
    bottom: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    filter: blur(60px);
}

/* --- Blog page professional styling --- */
.blog-hero {
    background: #0b172f;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-hero .hero-title {
    color: white;
    background: none;
    -webkit-text-fill-color: unset;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.06);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.meta-pill.accent {
    background: rgba(37, 99, 235, 0.18);
    border-color: rgba(37, 99, 235, 0.2);
}

.avatar-stack {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.meta-caption {
    color: #cbd5e1;
    font-size: 0.9rem;
}

.blog-filters {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    margin: 24px 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 14px;
    border-radius: 16px;
    backdrop-filter: blur(8px);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: white;
    background: rgba(255, 255, 255, 0.06);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.35);
}

.filter-chip.active {
    background: var(--primary-gradient);
    border-color: rgba(37, 99, 235, 0.6);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
}

.filter-search {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-search input {
    flex: 1;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: white;
    padding: 12px 14px;
    border-radius: 12px;
    outline: none;
}

.filter-search button {
    background: white;
    color: var(--text-main);
    border: none;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-search button:hover {
    transform: translateY(-1px);
}

.blog-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 18px;
}

.stat-chip {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 12px 16px;
    color: white;
}

.stat-chip .label {
    display: block;
    font-size: 0.8rem;
    color: #cbd5e1;
    letter-spacing: 0.02em;
}

.stat-chip strong {
    font-size: 1.1rem;
}

.blog-feed .container {
    max-width: 1220px;
}

.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

.blog-main {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.sidebar-card .eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.sidebar-card strong {
    color: var(--text-main);
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.trending-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.trending-list li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border-muted);
    background: #f8fafc;
}

.trending-list a {
    color: var(--text-main);
    font-weight: 600;
}

.trending-list span {
    color: var(--text-light);
    font-size: 0.85rem;
}

.sidebar-card.highlight {
    background: linear-gradient(135deg, #0f172a, #111827);
    color: white;
    border-color: rgba(255, 255, 255, 0.08);
}

.sidebar-card.highlight p {
    color: #cbd5e1;
}

.sidebar-card.tags .tag-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.blog-actions {
    text-align: center;
    margin-top: 20px;
}

.blog-actions .load-more-caption {
    color: var(--text-light);
    margin-top: 10px;
}

.featured-article {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    align-items: stretch;
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
    border: 1px solid var(--border-muted);
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.06);
}

.featured-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.featured-tag {
    background: var(--secondary-surface);
    color: var(--secondary-color);
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.8rem;
}

.featured-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.featured-meta {
    display: flex;
    gap: 14px;
    margin: 18px 0;
    flex-wrap: wrap;
}

.meta-block {
    background: white;
    border: 1px solid var(--border-muted);
    border-radius: 14px;
    padding: 12px 14px;
    min-width: 140px;
}

.meta-block .label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
}

.featured-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.featured-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 18px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.featured-card .card-row {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    color: var(--text-main);
}

.progress {
    width: 100%;
    height: 10px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-gradient);
}

/* --- Institutional Premium Blog Style --- */
.blog-hero {
    padding: 140px 0 80px !important;
    background: var(--bg-body);
    position: relative;
    overflow: hidden;
}

/* Subtle credit-desk grid background */
.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background-image: radial-gradient(var(--border-base) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.4;
    mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
    pointer-events: none;
}

.blog-hero .hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-main);
}

.blog-hero .hero-subtitle {
    font-size: 1.35rem;
    color: var(--text-body);
    max-width: 700px;
    margin: 0 auto 48px;
    line-height: 1.6;
}

.blog-search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.blog-search-bar {
    display: flex;
    background: white;
    padding: 8px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-base);
    box-shadow: var(--shadow-medium);
}

.blog-search-bar input {
    flex: 1;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    outline: none;
    border-radius: var(--radius-full);
}

.blog-search-bar button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-search-bar button:hover {
    background: #1d4ed8;
    transform: scale(1.02);
}

.blog-filter-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.filter-chip {
    padding: 10px 24px;
    background: white;
    border: 1px solid var(--border-base);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-body);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-chip.active {
    background: var(--primary-surface);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-chip:hover:not(.active) {
    border-color: var(--text-light);
    transform: translateY(-2px);
}

.featured-article {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 0;
    border: 1px solid var(--border-base);
    box-shadow: var(--shadow-heavy);
    margin-bottom: 80px;
    transition: all 0.4s ease;
}

.featured-article:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
}

.featured-image-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.featured-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid var(--border-base);
}

.featured-tag-pill {
    display: inline-flex;
    padding: 6px 16px;
    background: var(--primary-surface);
    color: var(--primary-color);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 24px;
    width: fit-content;
}

.featured-image-container {
    width: 50%;
    height: 400px;
    overflow: hidden;
}

.featured-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-article:hover .featured-image-container img {
    transform: scale(1.05);
}

.blog-card-premium {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-base);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card-premium:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-premium);
    border-color: var(--primary-color);
}

.card-category-label {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-main);
    z-index: 2;
}

.blog-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card-premium:hover .blog-card-image img {
    transform: scale(1.1);
}

.blog-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    line-height: 1.4;
    color: var(--text-main);
}

.blog-card-content p {
    font-size: 0.95rem;
    color: var(--text-body);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-muted);
}

.blog-card-footer .read-time {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-card-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-color);
}

.sidebar-card {
    background: white;
    border: 1px solid var(--border-base);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 18px;
}

.sidebar-card h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.trending-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.trending-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
}

.trending-num {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--border-base);
    line-height: 1;
}

.trending-info h5 {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 4px;
    line-height: 1.3;
}

.trending-info span {
    font-size: 0.8rem;
    color: var(--text-light);
}

.trending-item:hover .trending-num {
    color: var(--primary-color);
}

.trending-item:hover h5 {
    color: var(--primary-color);
}

/* --- Institutional Reading Experience --- */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 2000;
}

#reading-progress {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.1s ease;
}

/* --- Blog Post Specific Styles --- */
.post-header {
    padding-top: 200px;
    padding-bottom: 160px;
    background: radial-gradient(circle at 50% 100%, var(--primary-surface) 0%, transparent 70%);
    text-align: center;
    border-bottom: 1px solid var(--border-base);
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    z-index: 15;
    /* HIGHER than image */
}

.post-container {
    max-width: 800px;
    /* narrowed slightly for better line length */
    margin: 0 auto;
    padding: 0 24px;
}

.post-breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-color);
}

.post-meta-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.post-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-main);
    font-weight: 800;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.post-meta-v2 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 0;
    /* remove margin, rely on header padding */
}

.author-mini {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-mini img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.author-mini span {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}

.post-hero-image {
    width: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-top: 24px;
    margin-bottom: 80px;
    box-shadow: var(--shadow-premium);
    border: 8px solid white;
    background: white;
    animation: fadeInUp 1s ease-out 0.2s both;
    position: relative;
    z-index: 10;
    /* LOWER than header */
}

.post-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content {
    font-size: 1.2rem;
    line-height: 1.9;
    color: #1e293b;
    /* Sharper contrast for deep reading */
}

.post-content h2,
.post-content h3 {
    color: var(--text-main);
    margin: 48px 0 24px;
}

.post-content p {
    margin-bottom: 32px;
}

.post-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 60px 0 24px;
    color: var(--text-main);
}

.post-content h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 40px 0 20px;
    color: var(--text-main);
}

.post-content ul,
.post-content ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.post-content li {
    margin-bottom: 8px;
}

.post-content blockquote {
    position: relative;
    padding: 40px;
    background: #f8fafc;
    border-radius: var(--radius-lg);
    margin: 60px 0;
    border: 1px solid var(--border-base);
    font-style: italic;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    font-size: 1.4rem;
}

/* Expert Insights Box */
.insight-box {
    background: var(--primary-surface);
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin: 60px 0;
}

.insight-box h4 {
    color: var(--primary-color);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.insight-box p {
    margin-bottom: 0;
    font-size: 1.1rem;
    color: var(--text-main);
}

/* Related Section */
.related-posts-section {
    background: white;
    padding: 100px 0;
    border-top: 1px solid var(--border-base);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

@media (max-width: 900px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}

.post-share-bar {
    position: sticky;
    top: 120px;
    float: left;
    margin-left: -100px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.share-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--border-base);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.share-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateX(-4px);
}

.author-bio {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid var(--border-base);
    display: flex;
    gap: 32px;
    align-items: center;
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.author-info p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .featured-article {
        grid-template-columns: 1fr;
    }

    .featured-content {
        padding: 40px 30px;
        border-left: none;
        border-top: 1px solid var(--border-base);
    }

    .blog-sidebar {
        order: 2;
    }
}

@media (max-width: 1200px) {
    .post-share-bar {
        position: relative;
        top: 0;
        float: none;
        margin: 0 auto 40px;
        flex-direction: row;
        justify-content: center;
        gap: 32px;
        width: 100%;
        border-bottom: 1px solid var(--border-base);
        padding-bottom: 24px;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 100px 0 60px !important;
    }

    .blog-hero .hero-title {
        font-size: 2.5rem;
    }

    .blog-search-bar {
        border-radius: var(--radius-lg);
        padding: 4px;
    }

    .blog-search-bar input {
        padding: 10px 16px;
    }

    .blog-search-bar button {
        padding: 10px 20px;
    }

    .blog-filter-row {
        justify-content: flex-start;
        overflow-x: auto;
        padding: 10px 0;
        -ms-overflow-style: none;
        scrollbar-width: none;
        gap: 8px;
    }

    .blog-filter-row::-webkit-scrollbar {
        display: none;
    }

    .filter-chip {
        flex: 0 0 auto;
        padding: 8px 18px;
    }

    .post-header {
        padding-top: 120px;
        padding-bottom: 50px;
    }

    .post-title {
        font-size: 2.2rem;
    }

    .post-meta-v2 {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 40px;
    }

    .post-hero-image {
        margin-top: 0;
        border: 4px solid white;
        margin-bottom: 40px;
    }

    .post-content {
        font-size: 1.1rem;
    }

    .post-content h2 {
        font-size: 1.8rem;
    }

    .author-bio {
        flex-direction: column;
        text-align: center;
        gap: 24px;
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .blog-card-content {
        padding: 20px;
    }

    .blog-card-content h3 {
        font-size: 1.15rem;
    }
}

/* --- Figma Style Premium Effects & Animations --- */

/* Shimmer Animation for Badges & Buttons */
@keyframes shimmerAnim {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.hero-badge-new,
.card-feature-pill,
.btn-primary {
    position: relative;
    overflow: hidden;
}

.hero-badge-new::after,
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    background-size: 200% 100%;
    border-radius: inherit;
    animation: shimmerAnim 3s infinite linear;
    pointer-events: none;
}

/* Spotlight Hover Effect for Cards */
.feature-card-premium {
    position: relative;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.feature-card-premium:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary-color) !important;
    box-shadow: var(--shadow-premium) !important;
}

/* Glass Spotlight for Hero Mockups */
.dashboard-mockup {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.dashboard-mockup:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg);
}

/* Precise Figma Borders */
.professional-table th,
.professional-table td,
.input-wrapper {
    border-width: 0.5px !important;
}

/* Magnetic Interaction Logic Helper */
.magnetic {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cursor-spotlight {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: screen;
}

/* Responsive adjustments for About Page */
@media (max-width: 1024px) {

    .features-grid-premium,
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-premium .container {
        flex-direction: column;
        text-align: center;
        padding: 60px 30px;
    }

    .cta-btns {
        justify-content: center;
    }
}

@media (max-width: 768px) {

    .features-grid-premium,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .timeline-container::before {
        left: 20px;
    }

    .timeline-dot {
        left: 20px;
    }

    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: row;
        align-items: flex-start;
    }

    .cta-content h2 {
        font-size: 2.2rem;
    }
}

/* --- Institutional Tool Pages & V2 Design System --- */

.tool-page .hero-v2 {
    padding: 120px 0 80px;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.05), transparent);
    text-align: center;
}

.hero-v2-content {
    max-width: 800px;
    margin: 0 auto;
}

.badge {
    display: inline-flex;
    padding: 6px 12px;
    background: var(--primary-surface);
    color: var(--primary-color);
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-v2 h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-lead {
    font-size: 1.25rem;
    color: var(--text-body);
    max-width: 600px;
    margin: 0 auto;
}

.calculator-section {
    margin-top: -40px;
    margin-bottom: 100px;
}

.calculator-grid-wrapper {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 32px;
}

.calculator-card-premium {
    background: var(--bg-white);
    border: 1px solid var(--border-base);
    border-radius: 32px;
    padding: 48px;
    box-shadow: var(--shadow-medium);
}

.calc-header-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
}

.calc-header-v2 h2 {
    font-size: 1.5rem;
}

.logic-status {
    font-size: 0.75rem;
    color: var(--secondary-color);
    background: var(--secondary-surface);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.input-stack {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.input-group-v2 {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.label-row label {
    font-weight: 600;
    color: var(--text-main);
}

.input-group-v2 input[type="number"] {
    width: 100%;
    height: 56px;
    padding: 0 16px;
    background: var(--bg-body);
    border: 1px solid var(--border-base);
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.3s ease;
}

.input-group-v2 input[type="number"]:focus {
    border-color: var(--primary-color);
}

.range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: var(--border-muted);
    border-radius: 3px;
    outline: none;
    margin-top: 12px;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border: 4px solid var(--bg-white);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-subtle);
}

.result-card-v2 {
    background: var(--text-main);
    color: white;
    padding: 48px;
    border-radius: 32px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.result-main {
    text-align: center;
    margin-bottom: 40px;
}

.result-label {
    color: var(--text-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 12px;
}

.result-value {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: white;
}

.result-breakdown {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 32px;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

.breakdown-item span {
    color: var(--text-light);
}

.breakdown-item strong {
    color: white;
}

.high-total {
    margin-top: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.high-total strong {
    color: var(--secondary-color);
    font-size: 1.25rem;
}

.tool-content {
    padding-bottom: 120px;
}

.content-grid-v2 {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 80px;
}

.content-main-v2 h2 {
    font-size: 2rem;
    margin-bottom: 24px;
}

.content-main-v2 p {
    margin-bottom: 24px;
    font-size: 1.1rem;
    color: var(--text-body);
}

.content-main-v2 h3 {
    font-size: 1.4rem;
    margin-top: 40px;
    margin-bottom: 16px;
}

.insight-box {
    background: var(--bg-white);
    border: 1px solid var(--border-base);
    padding: 32px;
    border-radius: 24px;
}

.insight-box h4 {
    color: var(--primary-color);
    margin-bottom: 12px;
}

.insight-box p {
    font-size: 0.95rem;
    color: var(--text-body);
}


/* Responsive Overrides for V2 */

@media (max-width: 1024px) {

    .calculator-grid-wrapper,
    .content-grid-v2,
    .split-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .sticky-side,
    .result-card-v2 {
        position: static;
    }

    .hero-v2 h1,
    .post-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {

    .hero-v2 h1,
    .post-title {
        font-size: 2.2rem;
    }

    .calculator-card-premium,
    .result-card-v2 {
        padding: 32px 24px;
    }

    .result-value {
        font-size: 2.2rem;
    }
}


/* --- Global Mobile Consistency Fixes --- */


/* Global Mobile Fixes */
@media (max-width: 768px) {
    .footer-pre h2 {
        font-size: 1.8rem !important;
    }

    .footer-main .footer-logo {
        font-size: 1.5rem !important;
    }

    header .nav-wrapper {
        padding: 0 20px !important;
    }
}


/* --- Contact Page Mobile Consistency Fixes --- */
@media (max-width: 768px) {
    .contact-page .hero {
        padding: 80px 0 40px !important;
    }
}