/* Refactored about.css with Glassmorphism and Darwin Brand Colors */

/* --- Utilities --- */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    border-radius: 24px;
}

.glass-panel-dark {
    background: rgba(15, 23, 42, 0.03);
    /* Slight dark tint for contrast on white if needed */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Background Blobs for Glass Effect - REMOVED for clean white background */
/* .blob-container, .bg-blob, .blob-blue, .blob-green, .blob-orange styles were here */

/* --- Page Header Wrapper with Video Background --- */
.page-header-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-color: #0F172A;
    /* Fallback */
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Video overlay gradient - matches hero page */
.page-header-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(15, 23, 42, 0.6) 0%,
            rgba(15, 23, 42, 0.4) 40%,
            rgba(15, 23, 42, 0.7) 80%,
            rgba(15, 23, 42, 0.9) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Ensure navbar and sections stay above video and overlay */
.page-header-wrapper .navbar,
.page-header-wrapper .about-glass-section {
    position: relative;
    z-index: 2;
}



/* --- About Intro Section --- */
.about-glass-section {
    padding: 120px 0 80px;
    /* Increased padding for better spacing */
    position: relative;
    display: flex;
    align-items: center;
    min-height: calc(100vh - 120px);
    /* Full viewport height minus navbar */
}

.about-glass-card {
    max-width: 900px;
    /* No padding or glass styles needed - text directly over video */
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.about-heading {
    font-family: 'Playfair Display', serif;
    font-size: 5.5rem;
    /* Increased from 4.5rem */
    font-weight: 400;
    font-style: italic;
    color: #FFFFFF;
    /* White for visibility over video */
    line-height: 1.1;
    margin-bottom: 40px;
    /* Increased spacing */
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    /* Subtle shadow for better readability */
    letter-spacing: -0.02em;
}

.about-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    /* Increased from 1.8rem */
    color: rgba(255, 255, 255, 0.95);
    /* Slightly transparent white */
    line-height: 1.5;
    margin-bottom: 48px;
    /* Increased spacing */
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
    font-weight: 400;
}

.about-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    /* Slightly reduced but still readable */
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    /* White with slight transparency */
    max-width: 700px;
    margin-bottom: 24px;
    /* Reduced from 32px */
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .about-heading {
        font-size: 4.5rem;
    }

    .about-subtitle {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .about-glass-section {
        padding: 80px 0 60px;
        min-height: auto;
    }

    .about-heading {
        font-size: 3.5rem;
    }

    .about-subtitle {
        font-size: 1.5rem;
    }

    .about-text {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .about-heading {
        font-size: 2.75rem;
    }

    .about-subtitle {
        font-size: 1.25rem;
    }
}



/* --- Mission Section --- */
.mission-section {
    padding-top: 80px;
    /* Added spacing between hero and mission section */
    padding-bottom: 20px;
    position: relative;
}

.mission-card {
    /* Requested Gradient: #0A2468 -> #133B9E */
    background: linear-gradient(135deg, #0A2468 0%, #133B9E 100%);
    border-radius: 32px;
    padding: 60px 60px 0;
    overflow: hidden;
    box-shadow: 0 20px 50px -12px rgba(10, 36, 104, 0.25);
    /* Colored shadow */
    color: #FFFFFF;
    /* Set default text to white */
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle border for definition */
}

.mission-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    /* Reduced from 80px */
    gap: 40px;
}

.mission-content-left {
    max-width: 650px;
}

.mission-headline {
    font-family: 'Playfair Display', serif;
    font-size: 2.75rem;
    color: #FFFFFF;
    /* White */
    line-height: 1.2;
    margin-bottom: 24px;
}

.mission-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    /* White transparent */
    line-height: 1.6;
    max-width: 580px;
}

/* Visual Right - Graph Card */
.mission-visual-right {
    flex-shrink: 0;
}

/* Glass Graph Card - Apple Style */
.glass-graph-card {
    width: 280px;
    height: 220px;
    /* Apple-like Glass: Semi-transparent white with blur and subtle border */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    position: relative;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    overflow: hidden;
    /* For shine effect */
}

/* Subtle Shine overlay */
.glass-graph-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.5s;
    animation: shine 6s infinite;
    pointer-events: none;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

.graph-visual-curve {
    flex: 1;
    width: 100%;
    position: relative;
}

.graph-visual-curve svg {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.graph-label-now {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #FFFFFF;
    /* White text on glass */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    z-index: 2;
    animation: fadeIn 1s ease-out 1.5s backwards;
}

.graph-label-past {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    animation: fadeIn 1s ease-out 0.5s backwards;
}

/* Animations */
.graph-visual-curve path {
    stroke-dasharray: 300;
    /* Approximate length of curve */
    stroke-dashoffset: 300;
    animation: drawCurve 2s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.5s;
    stroke: rgba(255, 255, 255, 0.9);
    /* Lighter stroke for glass look */
    stroke-width: 4;
}

.graph-visual-curve circle {
    transform-origin: center;
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.graph-visual-curve circle:first-of-type {
    /* Start point */
    animation-delay: 0.5s;
    fill: #94A3B8;
    /* Slate */
    stroke: #FFFFFF;
    stroke-width: 2px;
}

.graph-visual-curve circle:last-of-type {
    /* End point */
    animation-delay: 2.5s;
    /* After curve finishes */
    fill: #F97316;
    /* Brand Orange */
    stroke: #FFFFFF;
    stroke-width: 3px;
    filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.6));
}

@keyframes drawCurve {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes popIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pillars Grid */
.mission-pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    /* White border */
}

.pillar-item {
    padding: 40px 24px 60px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    /* White border */
}

.pillar-item:last-child {
    border-right: none;
}

.pillar-number {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #37C384;
    /* Brand Green pops nicely on blue */
    margin-bottom: 12px;
}

.pillar-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    color: #FFFFFF;
    /* White */
    margin-bottom: 24px;
}

.pillar-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    /* White transparent */
    line-height: 1.5;
}

/* Responsive Mission */
@media (max-width: 992px) {
    .mission-top-row {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .pillar-item:nth-child(2) {
        border-right: none;
    }

    .pillar-item:nth-child(3),
    .pillar-item:nth-child(4) {
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }
}

@media (max-width: 600px) {
    .mission-pillars-grid {
        grid-template-columns: 1fr;
    }

    .pillar-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .pillar-item:last-child {
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    .mission-section {
        padding-top: 40px;
    }

    .mission-card {
        padding: 40px 24px 60px;
        /* Reduced padding, keeping bottom space */
    }

    .mission-headline {
        font-size: 2.5rem;
        /* Adjusted for mobile readability */
        line-height: 1.2;
        margin-bottom: 20px;
    }

    .mission-desc {
        font-size: 1rem;
        line-height: 1.6;
    }

    .mission-top-row {
        gap: 32px;
        margin-bottom: 32px;
    }
}

/* --- Measuring Is Essential Section --- */
.measuring-section {
    padding: 20px 0;
    /* Reduced from 60px 0 */
    position: relative;
}

.measuring-headline {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--brand-navy, #1E3A8A);
    margin-bottom: 24px;
    text-align: center;
}

.measuring-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: var(--color-slate-600, #475569);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 30px;
    /* Reduced from 100px */
    text-align: center;
}

.measuring-grid-container {
    display: grid;
    grid-template-columns: 240px 1fr 240px;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.measuring-col-side,
.measuring-col-center {
    display: flex;
    flex-direction: column;
}

.info-group {
    text-align: center;
    margin-bottom: 32px;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.info-title {
    font-size: 1.75rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: var(--brand-navy, #1E3A8A);
    /* Colors updated */
    margin-bottom: 12px;
}

.info-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
    max-width: 200px;
    margin: 0 auto;
}

/* Updated Badges to Glass Pills */
.badge-black {
    /* Previously black, now Glassy Navy */
    background: rgba(30, 58, 138, 0.9);
    /* Brand Navy semi-transparent */
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    align-self: center;
    margin-bottom: 30px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(30, 58, 138, 0.2);
}

.badge-grey {
    /* Glassy Light */
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    color: #475569;
    padding: 12px 0;
    width: 100%;
    text-align: center;
    border-radius: 999px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 30px;
    position: relative;
    top: -2px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}


/* Marker Lines */
.measuring-grid-container .timeline-marker-line {
    height: 60px;
    width: 2px;
    background-color: #CBD5E1;
    /* Lighter slate */
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.side-ruler-extension {
    height: 120px;
    width: 100%;
    background-image: repeating-linear-gradient(90deg,
            transparent,
            transparent 3px,
            #E2E8F0 3px,
            #E2E8F0 4px);
    opacity: 0.6;
    margin-top: 0;
    mask-image: linear-gradient(to top, black, transparent);
    -webkit-mask-image: linear-gradient(to top, black, transparent);
}

.timeline-bar-container {
    height: 120px;
    position: relative;
    width: 100%;
}

.timeline-blocks {
    display: flex;
    height: 100%;
    align-items: flex-end;
    gap: 4px;
    position: absolute;
    bottom: 0;
    left: -112px !important;
    right: -116px !important;
    width: auto !important;
    margin: 0 !important;
    z-index: 1;
}

.time-block {
    height: 100%;
    /* Added subtle glass feel to blocks or keep solid to pop? Keeping solid for clarity */
}

.block-pink {
    background-color: #FFE4E6;
    width: 15%;
    height: 100%;
}

.block-peach {
    background-color: #FFEDD5;
    width: 15%;
    height: 100%;
}

.block-yellow {
    background-color: #FEF9C3;
    width: 20%;
    height: 100%;
}

.block-blue {
    background-color: #E0F2FE;
    flex: 1;
    height: 100%;
}

.histogram-bg {
    position: absolute;
    inset: 0;
    opacity: 0.15;
    background-image: repeating-linear-gradient(90deg, transparent, transparent 3px, #E2E8F0 3px, #E2E8F0 4px);
    z-index: 0;
    mask-image: linear-gradient(to top, black 20%, transparent 100%);
    -webkit-mask-image: linear-gradient(to top, black 20%, transparent 100%);
}

/* Tablet layout - vertical stack (769px to 992px only) */
@media (min-width: 769px) and (max-width: 992px) {
    .measuring-grid-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .badge-grey {
        width: auto;
        padding: 12px 24px;
        display: inline-block;
    }

    .measuring-col-center {
        align-items: center;
    }
}

/* Mobile Optimization for Measuring Section */
@media (max-width: 768px) {
    .measuring-section {
        padding: 40px 0 30px;
    }

    .measuring-headline {
        font-size: 2.25rem;
        margin-bottom: 16px;
        line-height: 1.15;
    }

    .measuring-subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    /* Horizontal scrolling container for the mockup - Increased Specificity */
    .measuring-section .measuring-grid-container {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE/Edge */
        padding: 0 20px 20px;
        gap: 0;
        margin: 0 -20px;
        width: calc(100% + 40px);
        max-width: none;
    }

    /* Hide scrollbar for Chrome/Safari */
    .measuring-grid-container::-webkit-scrollbar {
        display: none;
    }

    /* Side columns - inline layout for horizontal scroll */
    .measuring-section .measuring-col-side {
        display: flex !important;
        flex: 0 0 auto !important;
        width: 200px !important;
        min-width: 200px !important;
        max-width: 200px !important;
        scroll-snap-align: center;
        background: transparent;
        border-radius: 0;
        padding: 0 15px;
        margin-bottom: 0;
        box-shadow: none;
        border: none;
        align-items: center;
    }

    /* Center column - visible with timeline */
    .measuring-section .measuring-col-center {
        display: flex !important;
        flex: 0 0 auto !important;
        width: 300px !important;
        min-width: 300px !important;
        max-width: 300px !important;
        scroll-snap-align: center;
        align-items: center;
        position: relative;
    }

    /* Info group styling for horizontal layout */
    .info-group {
        height: auto;
        margin-bottom: 16px;
        justify-content: flex-end;
        min-height: 100px;
    }

    /* Scroll Indicator Styles */
    .measuring-scroll-indicator {
        display: block !important;
        width: 100%;
        padding: 0 20px;
        margin-top: 10px;
        margin-bottom: 30px;
        box-sizing: border-box;
    }

    .scroll-track {
        width: 100%;
        height: 6px;
        background-color: #F1F5F9;
        border-radius: 3px;
        position: relative;
        overflow: hidden;
    }

    .scroll-thumb {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        background-color: #1E3A8A;
        /* Darwin Blue */
        border-radius: 3px;
        width: 33%;
        /* Initial width, JS will update */
        cursor: pointer;
    }

    .info-title {
        font-size: 1.25rem;
        font-family: 'Playfair Display', serif;
        font-weight: 600;
        color: var(--brand-navy, #1E3A8A);
        margin-bottom: 8px;
    }

    .info-desc {
        font-size: 0.75rem;
        color: #64748b;
        max-width: 180px;
        line-height: 1.4;
    }

    /* Badge styling - compact for mobile */
    .badge-black {
        padding: 10px 20px;
        font-size: 0.65rem;
        margin-bottom: 20px;
        background: linear-gradient(135deg, #0A2468 0%, #133B9E 100%);
        box-shadow: 0 4px 12px rgba(19, 59, 158, 0.25);
    }

    .badge-grey {
        font-size: 0.75rem;
        padding: 10px 16px;
        margin-bottom: 20px;
        white-space: nowrap;
    }

    /* Timeline marker lines - visible but shorter */
    .timeline-marker-line {
        display: block !important;
        height: 40px;
    }

    /* Ruler extensions - shorter on mobile */
    .side-ruler-extension {
        display: block !important;
        height: 80px;
    }

    /* Timeline blocks container - visible with adjusted positioning */
    .timeline-bar-container {
        display: block !important;
        height: 80px;
    }

    .timeline-blocks {
        display: flex !important;
        height: 100%;
        left: -92px !important;
        right: -96px !important;
    }

    .histogram-bg {
        display: block !important;
    }

    /* Time blocks - adjusted heights for mobile */
    .time-block {
        height: 100%;
    }

    .block-pink {
        height: 100%;
    }

    .block-peach {
        height: 100%;
    }

    .block-yellow {
        height: 100%;
    }

    .block-blue {
        height: 100%;
    }

    /* Scroll hint indicator */
    .measuring-grid-container::after {
        content: '';
        flex: 0 0 20px;
        min-width: 20px;
    }
}



/* --- Animations for Measuring Section --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes growDown {
    from {
        height: 0;
        opacity: 0;
    }

    to {
        height: 60px;
        opacity: 1;
    }
}

@keyframes expandWidth {
    from {
        transform: scaleX(0);
        opacity: 0;
    }

    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }

    to {
        opacity: 0.15;
    }
}

.measuring-headline,
.measuring-subtitle {
    animation: fadeInUp 0.8s ease-out forwards;
}

.info-group {
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
    /* Star hidden */
}

.badge-black,
.badge-grey {
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.measuring-grid-container .timeline-marker-line {
    animation: growDown 0.8s ease-out 0.6s forwards;
    height: 0;
    /* Start height 0 */
    opacity: 0;
}

.time-block {
    transform-origin: left;
    transform: scaleX(0);
    opacity: 0;
    animation: expandWidth 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.8s forwards;
}

.block-pink {
    animation-delay: 0.8s;
}

.block-peach {
    animation-delay: 0.9s;
}

.block-yellow {
    animation-delay: 1.0s;
}

.block-blue {
    animation-delay: 1.1s;
}

.side-ruler-extension {
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.2s forwards;
}

.histogram-bg {
    opacity: 0;
    animation: fadeInOverlay 1.5s ease-out 1.2s forwards;
}


/* --- Loop Section --- */
.loop-section {
    padding: 40px 0 20px;
    /* Reduced from 100px 0 40px */
    overflow: hidden;
    position: relative;
}

.loop-header-content {
    margin-bottom: 40px;
    text-align: center;
}

.loop-headline {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: var(--brand-navy, #1E3A8A);
    line-height: 1.1;
    margin-bottom: 32px;
}

.loop-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.loop-container {
    position: relative;
    padding: 80px 40px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.loop-track {
    position: absolute;
    inset: 0;
    border: 1px dashed #CBD5E1;
    border-radius: 9999px;
    pointer-events: none;
    z-index: 0;
}

.loop-label {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    /* Could be glass? Keep solid for text read */
    padding: 4px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand-blue, #1F6BFF);
    z-index: 1;
}

.loop-label-top {
    top: -14px;
}

.loop-label-bottom {
    bottom: -14px;
}

.loop-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
    z-index: 2;
}

.loop-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.loop-step-number {
    font-size: 0.85rem;
    font-weight: 600;
    color: #94A3B8;
    margin-bottom: 12px;
}

.loop-step-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--brand-navy, #1E3A8A);
    margin-bottom: 40px;
}

.loop-step-visual {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
}

/* Glass Icon Card - Refined */
.glass-icon-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    /* Slightly more rounded */
    padding: 16px 32px;
    box-shadow: 0 10px 25px -4px rgba(31, 107, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-icon-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px -8px rgba(31, 107, 255, 0.15);
}

.measuring-scroll-indicator {
    display: none;
}

.loop-step-desc {
    font-size: 1rem;
    color: #475569;
    line-height: 1.5;
    max-width: 280px;
}

/* Mini Chart specifics */
.mini-chart-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mini-chart-text {
    font-size: 0.75rem;
    text-align: left;
    line-height: 1.2;
    color: #475569;
}

@media (max-width: 992px) {
    .loop-track {
        border-radius: 40px;
    }

    .loop-steps-grid {
        gap: 20px;
    }
}

@media (max-width: 768px) {

    .loop-track,
    .loop-labels,
    .loop-label {
        display: none;
    }

    .loop-pagination {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 10px;
        /* Space between cards and dots */
        margin-bottom: 20px;
    }

    .loop-dot {
        width: 10px;
        height: 10px;
        background-color: #CBD5E1;
        /* Slate 300 */
        border-radius: 999px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        cursor: pointer;
    }

    .loop-dot.active {
        width: 32px;
        /* Elongated pill */
        background-color: #37C384;
        /* Brand Green */
    }

    .loop-section {
        padding: 40px 0;
        /* Adjusted padding */
    }

    .loop-container {
        padding: 0;
        width: 100%;
        /* Ensure full width used */
    }

    .loop-steps-grid {
        display: flex !important;
        /* Force flex for horizontal */
        flex-direction: row !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding: 0 20px 40px;
        /* Side padding + bottom padding */
        width: 100%;
        box-sizing: border-box;
        margin: 0;
        -webkit-overflow-scrolling: touch;
        /* Smooth scroll iOS */
        scrollbar-width: none;
        /* Hide scrollbar Firefox */
    }

    .loop-steps-grid::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar Chrome/Safari */
    }

    .loop-step-item {
        min-width: 85vw;
        /* Show one card with a peek */
        scroll-snap-align: center;
        flex: 0 0 auto;
        /* Prevent shrinking */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        /* Optional: Add a border/card look if needed, but keeping it clean per request */
    }

    .loop-headline {
        font-size: 2.5rem;
    }
}


/* --- Final CTA Section --- */
.final-cta-section {
    padding: 40px 0 80px;
    text-align: center;
    position: relative;
}

.final-cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.final-cta-headline {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: var(--brand-navy, #1E3A8A);
    line-height: 1.1;
    margin-bottom: 24px;
    text-align: center;
    /* white-space: nowrap; Removed to prevent overflow issues */
}

.final-cta-headline em {
    font-style: italic;
    color: var(--brand-orange, #F97316);
    /* Brand Orange */
}

.final-cta-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    color: var(--color-slate-600, #475569);
    margin-bottom: 48px;
}

.cta-actions-group {
    display: flex;
    justify-content: center;
    gap: 24px;
    align-items: center;
}

.btn-cta-lg {
    padding: 16px 40px;
    font-size: 1rem;
    font-weight: 600;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.7);
    /* Semitransparent white */
    backdrop-filter: blur(8px);
    border: 1px solid var(--brand-navy, #1E3A8A);
    color: var(--brand-navy, #1E3A8A);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.btn-outline:hover {
    background: #FFFFFF;
}

@media (max-width: 768px) {
    .final-cta-headline {
        font-size: 2.75rem;
        white-space: normal;
        /* Allow wrapping on mobile */
    }

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

    .btn-cta-lg {
        width: 100%;
        max-width: 300px;
    }
}