:root {
    --navy-dark: #0a192f;
    --navy-blue: #1e293b;
    --cyan-primary: #4DB1E8;
    --cyan-hover: #3CA3DA;
    --accent-blue: #020617; 
    --gradient-brand: linear-gradient(135deg, #4DB1E8 0%, #1e293b 100%);
    --white: #ffffff;
    --gray-light: #f1f5f9;
    --gray-border: #e2e8f0;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: #e2e8f0;
    --blue-cta: #4DB1E8;
    --blue-cta-hover: #3CA3DA;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
}

/* Background Mesh Pattern */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: 
        radial-gradient(at 0% 0%, rgba(77, 177, 232, 0.03) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(30, 58, 138, 0.03) 0px, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* Background Textures */
.fixed-bg-textures {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.dot-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.02) 1px, transparent 0);
    background-size: 32px 32px;
    opacity: 0.8;
}

.noise-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Background Glow Blobs */
.glow-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.2;
    pointer-events: none;
    animation: blob-float 20s infinite alternate ease-in-out;
}

@keyframes blob-float {
    0% { transform: scale(1) translate(0, 0); }
    33% { transform: scale(1.1) translate(50px, -30px); }
    66% { transform: scale(0.9) translate(-20px, 40px); }
    100% { transform: scale(1) translate(0, 0); }
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--cyan-primary);
    top: -200px;
    right: -100px;
    opacity: 0.1;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-blue);
    bottom: -100px;
    left: -100px;
    opacity: 0.1;
}

h1,
h2,
h3,
h4 {
    font-weight: 800;
    line-height: 1.2;
    color: var(--navy-dark);
}

.container {
    max-width: 1280px; /* Slightly wider for the new layout */
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 80px;
}

.header-nav {
    display: flex;
    gap: 32px;
}

.header-nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.header-nav a:hover {
    opacity: 1;
    color: var(--cyan-primary);
}

.header-cta {
    background: var(--gradient-brand);
    padding: 10px 20px !important;
    border-radius: 8px;
    opacity: 1 !important;
    color: var(--white) !important;
    font-size: 13px !important;
    margin-left: 10px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.header-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

/* Layout Wrapper */
.layout-wrapper {
    display: grid;
    grid-template-columns: 1fr 400px; /* Use fixed width for sidebar on desktop for stability */
    gap: 80px;
    padding: 80px 0;
    align-items: start;
}

main {
    min-width: 0; /* Prevents grid blowout from wide children */
}

/* Sections */
section {
    padding: 120px 0;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 24px;
    line-height: 1.2;
    font-weight: 800;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--cyan-primary);
}

/* Hero */
.hero {
    padding-top: 0;
}

.hero h1 {
    font-size: clamp(40px, 6vw, 64px);
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero h1 span {
    display: inline;
}

.hero p {
    font-size: clamp(18px, 2vw, 20px);
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.text-gradient {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.glass-section {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 60px;
}

/* Trust Bar */
/* Trust Bar Marquee */
.marquee-container {
    margin-left: -24px;
    margin-right: -24px;
    background: rgba(255, 255, 255, 0.03);
    padding: 30px 0;
    overflow: hidden;
    margin-bottom: 60px;
}

.marquee-container p {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.marquee-content {
    display: flex;
    gap: 80px;
    animation: scroll 40s linear infinite;
    min-width: 100%;
    align-items: center;
    padding-left: 80px;
}

.marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content img {
    height: 44px;
    width: auto;
    filter: brightness(0.8) grayscale(1);
    opacity: 0.5;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.marquee-content img:hover {
    filter: brightness(1) grayscale(0);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Pillars / Methodology */
.boutique-topics {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.boutique-topics li {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.boutique-topics li::before {
    content: '→';
    color: var(--cyan-primary);
    font-weight: 800;
}

.boutique-topics li:hover {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.2);
    transform: translateX(5px);
}

/* Variables Section Refinement */
.phase-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 100px;
    color: var(--cyan-primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.phase-badge.phase-2 {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
    color: var(--accent-blue);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan-primary);
    margin-bottom: 12px;
}

.variables-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.variable-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 24px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.variable-card:hover {
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.2);
}

.variable-number {
    position: absolute;
    top: -10px;
    right: -5px;
    font-size: 72px;
    font-weight: 900;
    color: rgba(77, 177, 232, 0.08);
    pointer-events: none;
    line-height: 1;
}

.variable-card h4 {
    color: var(--cyan-primary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.variable-card p {
    font-size: 15px;
    color: var(--text-dark);
    margin: 0;
}

.sticky-sidebar {
    position: sticky;
    top: 60px;
    height: fit-content;
    align-self: start;
    z-index: 1000;
}

.form-card {
    background: var(--white);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(10, 25, 47, 0.1);
    border: 1px solid var(--gray-border);
    position: relative;
    overflow: hidden;
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-brand);
}

.form-card h2 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 8px;
    color: var(--navy-dark);
}

.form-card .subtitle {
    display: block;
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 14px;
}

.input-block {
    margin-bottom: 20px;
}

.input-block label {
    display: block;
    font-weight: 600;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-block input,
.input-block select {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1.5px solid var(--gray-border);
    border-radius: 10px;
    font-size: 15px;
    background: #fcfcfd;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.input-block input:focus,
.input-block select:focus {
    outline: none;
    border-color: var(--cyan-primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(77, 177, 232, 0.1);
}

.cta-button {
    width: 100%;
    height: 56px;
    background: var(--cyan-primary);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 15px -3px rgba(77, 177, 232, 0.3);
}

.cta-button:hover {
    background: var(--cyan-hover);
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(77, 177, 232, 0.4);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-button:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}



/* Footer */
footer {
    background: #f8fafc;
    color: var(--text-dark);
    padding: 80px 0;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

/* Logo Fallback */
.logo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.logos-grid-large .logo-fallback {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #475569;
}

/* Logos Grid Large */
.logos-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 40px;
    align-items: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 60px 40px;
    border-radius: 24px;
    text-align: center;
    margin-bottom: 60px;
    backdrop-filter: blur(10px);
}

.logos-grid-large .logo-fallback {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.logos-grid-large img {
    max-width: 140px;
    height: auto;
    max-height: 55px;
    object-fit: contain;
    filter: grayscale(1) opacity(0.5);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.logos-grid-large img:hover {
    filter: grayscale(0) opacity(1);
    opacity: 1;
    transform: scale(1.08);
}

/* Responsive */
@media (max-width: 1280px) {
    .layout-wrapper {
        grid-template-columns: 1fr 350px;
        gap: 40px;
    }
}

@media (max-width: 1100px) {
    .layout-wrapper {
        grid-template-columns: 1fr;
        padding: 40px 0;
    }

    .container {
        padding: 0 24px;
    }

    .sticky-sidebar {
        position: relative;
        top: 0;
        margin-top: 60px;
        width: 100%;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 0;
    }

    .variables-container {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 12px;
    }

    .variable-card {
        padding: 16px;
    }

    .boutique-topics {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .marquee-content {
        gap: 40px;
    }

    .logos-grid-large {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        padding: 40px 20px;
    }

    .header-nav {
        display: none; /* Hide standard nav on small mobile if it overflows, or keep it simple */
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: clamp(32px, 8vw, 40px);
    }

    .form-card {
        padding: 24px;
    }

    .pillar-item {
        padding: 24px;
    }
}