:root {
    /* Vibrant Tech Palette (Refined / Middle Ground) */
    --color-freedom: #ff6600bb;
    --color-growth: #059669bb;
    --color-agility: #0284C7bb;
    --color-intuition: #4e46e5bb;

    --color-logo: #ff6600ff;

    --color-freedom-gradient: linear-gradient(135deg, var(--color-freedom) 0%, var(--color-logo) 100%);
    --color-bg-glow: radial-gradient(circle at 50% 50%, rgba(249, 115, 22, 0.15) 0%, transparent 70%);

    --color-sky-light: #F0F9FF;
    --color-gray-warm: #6d717b;
    --color-text-dark: #0F172A;
    --color-text-muted: #334155;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --border-radius: 12px;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    /* Full height initially for correct centering */
    /* Fallback */
    aspect-ratio: 2.5 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
    /* White to Slate 100 */
    /* overflow: hidden; REMOVED to prevent logo clipping */
    padding: var(--spacing-lg) var(--spacing-md);
    /* max-height removed initially */
    transition: max-height 1s ease, min-height 1s ease;
    /* Smooth transition */
    color: var(--color-text-dark);
    /* Revert to dark text */
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(249, 115, 22, 0.08) 0%, transparent 60%);
    /* Brighter copper glow */
    z-index: 0;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.08) 0%, transparent 60%);
    /* Stronger blue glow */
    z-index: 0;
    pointer-events: none;
    filter: blur(60px);
}

@media (hover: hover) {
    .info-card:hover {
        box-shadow: 0 10px 25px rgba(93, 138, 168, 0.15);
        transform: translateY(-3px);
        border-color: var(--color-agility);
    }
}

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

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    line-height: 1.6;
    background-color: #fff;
    /* Living Blueprint Grid */
    background-image:
        linear-gradient(rgba(69, 90, 100, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(69, 90, 100, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--color-text-main);
}

.hero-title {
    font-size: var(--font-size-h1);
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, var(--color-text-dark) 30%, var(--color-copper) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--color-text-dark);
}

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

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    aspect-ratio: 2.5 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
    padding: var(--spacing-lg) var(--spacing-md);
    transition: max-height 1s ease, min-height 1s ease;
    color: var(--color-text-dark);
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(200, 105, 47, 0.05) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(93, 138, 168, 0.05) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
    filter: blur(60px);
}

.hero.hero-compact {
    min-height: 600px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.brand-mark {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 4rem;
    margin-top: 1.5rem;
    transform: scale(1.5);
}

.brand-mark img {
    height: 50px;
    width: auto;
    filter: brightness(1.0) drop-shadow(0 8px 16px rgba(234, 88, 12, 0.2));
    transition: filter 0.3s ease, transform 0.75s ease-in-out;
}

.brand-mark:hover img {
    filter: brightness(1.1) drop-shadow(0 12px 24px rgba(234, 88, 12, 0.3));
    transform: rotate(360deg) translateY(-2px) scale(1.02);
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-gray-warm);
    letter-spacing: 0.05em;
    font-style: normal;
    text-transform: none;
    line-height: 1.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.10);
}

.brand-highlight {
    color: var(--color-logo);
    font-size: 3rem;
}

.hero-title {
    font-size: 3.0rem;
    line-height: 1.2;
    padding-bottom: 0.1em;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, var(--color-text-dark) 30%, var(--color-logo) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--color-text-dark);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--color-freedom-gradient);
    color: white;
    border-radius: var(--border-radius);
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 4px 6px rgba(200, 105, 47, 0.15);
    position: relative;
    z-index: 1;
}

@media (hover: hover) {
    .cta-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 15px rgba(200, 105, 47, 0.25);
        filter: brightness(1.1);
    }

    /* Removed conflicting brand-mark hover spin */
}

/* Removed duplicate .brand-mark img block */

.hero-background {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.mountain-lines {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    position: relative;
    z-index: 2;
    margin-top: var(--spacing-lg);
    /* Increased from implicit spacing */
}

/* Intro Section */
.intro-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
}

.lead-text {
    font-size: 1.25rem;
    /* Reduced from 1.5rem */
    color: var(--color-text-muted);
    font-weight: 400;
}

.lead-text strong {
    font-weight: 600;
    color: var(--color-logo);
}

/* Details Grid */
.details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    max-width: 800px;
    margin: 0 auto;
    /* Added max-width */
}

.info-card {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

/* ... (skipping unchanged lines) ... */

body.intro-active .hero {
    /* Hide hero but allow for transition */
    height: 0;
    min-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0;
    margin: 0;
    transition: all 1.5s ease-in-out;
    /* Smooth reveal */
}

body.intro-active .intro-section {
    display: none;
}

body.intro-active .content-wrapper {
    opacity: 1 !important;
    /* Override inline style */
}

body.intro-active .details-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    /* Center horizontally */
    width: 100%;
    min-height: 100vh;
    /* Full height to center vertically */
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

body.intro-active .info-card {
    opacity: 0;
    /* Hidden initially, revealed by JS */
    transform: scale(0.9);
    /* Start slightly smaller */
    transition: opacity 0.5s ease, transform 0.5s ease;
    width: 100%;
    /* Fix width issue */
    max-width: 800px;
    /* Match container max-width */
}

body.intro-active .info-card.revealed {
    opacity: 1;
    transform: scale(1);
}

body.intro-active .info-card.pop-forward {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    z-index: 20;
    background-color: white;
}

/* Card Accent Colors */
#card-growth {
    border-left: 4px solid var(--color-freedom);
    /* Swapped to Orange */
}

/* Sage -> Now Orange */
#card-freedom {
    border-left: 4px solid var(--color-growth);
    /* Swapped to Green */
}

/* Copper */
#card-agility {
    border-left: 4px solid var(--color-agility);
}

/* Sky Blue */
#card-intuition {
    border-left: 4px solid var(--color-intuition);
}

/* Dark Grey */

@media (hover: hover) {
    .info-card:hover {
        box-shadow: 0 10px 25px rgba(93, 138, 168, 0.15);
        transform: translateY(-3px);
        border-color: var(--color-agility);
    }
}

.info-card[open] {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border-color: rgba(138, 154, 91, 0.3);
}

.info-card summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    position: relative;
    user-select: none;
}

.info-card summary::-webkit-details-marker {
    display: none;
}

.info-card summary h3 {
    flex-grow: 1;
    margin: 0 var(--spacing-sm);
    font-size: 1.25rem;
}

.icon-svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.toggle-icon {
    font-size: 1.5rem;
    color: var(--color-logo);
    font-weight: 300;
    transition: transform 0.3s ease;
}

.info-card[open] .toggle-icon {
    transform: rotate(45deg);
}

.card-content {
    padding: 0 var(--spacing-md) var(--spacing-md) var(--spacing-md);
    color: var(--color-text-muted);
    animation: fadeIn 0.4s ease;
}

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

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

/* Applications Section */
.applications-section {
    padding: var(--spacing-lg) var(--spacing-md);
    background-color: var(--color-sky-light);
}

.applications-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.applications-content h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-dark);
}

.applications-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
    font-size: 1.1rem;
    color: var(--color-text-dark);
}

.applications-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-sm);
    list-style: none;
    padding: 0;
    text-align: left;
}

.applications-list li {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    font-size: 1.1rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.applications-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.applications-list li::before {
    content: '✓';
    color: var(--color-logo);
    font-weight: bold;
    margin-right: 1rem;
    font-size: 1.2rem;
}

/* Contact Section */
.contact-section {
    text-align: center;
    padding: var(--spacing-lg) 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-section h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.contact-section p {
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
}

.cta-link {
    font-size: 1.1rem;
    color: var(--color-logo);
    font-weight: 500;
    border-bottom: 1px solid transparent;
}

.cta-link:hover {
    border-bottom-color: var(--color-logo);
}

/* Footer */
.footer {
    background-color: var(--color-bg-alt);
    padding: var(--spacing-md);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        aspect-ratio: auto;
        min-height: 60vh;
        padding: var(--spacing-xl) var(--spacing-sm);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

/* Intro Overlay */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
    /* Let clicks pass through after it fades */
    transition: opacity 1s ease;
}

/* Intro State Styles */
body.intro-active {
    overflow: hidden;
    /* Prevent scrolling during intro */
}

body.intro-active .hero {
    display: none;
    /* Hide hero completely during intro */
}

body.intro-active .container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body.intro-active .intro-section,
body.intro-active .contact-section,
body.intro-active .footer,
body.intro-active .applications-section,
body.intro-active .engine-section {
    display: none;
    /* Hide other sections during intro */
}

body.intro-active .details-grid {
    /* Keep Grid Layout! Do not force flex column */
    width: 100%;
    margin: 0 auto;
    /* Ensure it's centered */
}

body.intro-active .info-card {
    opacity: 0;
    /* Initially hidden, revealed by script */
    transform: scale(1);
    transition: opacity 1s ease, transform 1s ease;
    /* No border width change to avoid layout shift */
}

body.intro-active .info-card.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease;
}

#loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-logo {
    width: 80px;
    height: 80px;
    animation: spin 2s infinite linear;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Content Fade In */
.content-wrapper {
    opacity: 0;
    transition: opacity 1s ease;
}

.content-wrapper.visible {
    opacity: 1;
}

.hero {
    transition: margin-top 2s ease-in-out, opacity 2s ease-in-out;
}

/* --- Mobile Optimization --- */
@media (max-width: 768px) {
    :root {
        --font-size-h1: 2.5rem;
        /* Smaller H1 */
        --font-size-h2: 2rem;
        /* Smaller H2 */
        --spacing-lg: 2rem;
        /* Reduced spacing */
        --spacing-md: 0.66rem;
        /* Further reduced for compact mobile layout */
    }

    .hero {
        min-height: 100dvh;
        /* Use dynamic viewport height */
        padding: var(--spacing-md);
        align-items: center;
        /* Center content vertically */
    }

    .hero.hero-compact {
        min-height: 60dvh;
        max-height: none;
        /* Allow content to dictate height if needed */
    }

    .hero-content {
        width: 100%;
        padding: 0;
        text-align: center;
        /* Ensure text is centered */
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        max-width: 100%;
    }

    .brand-mark {
        transform: scale(1.2);
        /* Slightly smaller logo scaling */
    }

    .info-card {
        padding: var(--spacing-md);
    }

    .info-card h3 {
        font-size: 1.0rem;
        /* Slightly smaller to prevent wrapping */
    }

    /* Adjust canvas for mobile performance if needed */
    #background-canvas {
        opacity: 0.8;
        /* Slightly reduce visibility */
    }

    .toggle-icon {
        font-size: 1.2rem;
        /* Smaller icon */
        margin-left: 0.25rem;
        /* Reduced margin */
    }

    /* Horizontal Snap Scroll REMOVED by request */
    .details-grid {
        /* Revert to default grid/flex behavior */
        display: flex;
        flex-direction: column;
        gap: var(--spacing-md);
        padding-bottom: 0;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .info-card {
        min-width: auto;
        width: 100%;
        margin-bottom: var(--spacing-sm);
    }
}

/* Small Mobile Optimization (<375px) */
@media (max-width: 375px) {
    :root {
        --font-size-h1: 2rem;
        /* Even smaller H1 */
        --spacing-lg: 1.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        width: 100%;
        /* Full width button */
        text-align: center;
    }
}

/* Ensure content inside card is visible/styled for intro if needed */
body.intro-active .info-card summary {
    justify-content: center;
}

body.intro-active .info-card summary h3 {
    flex-grow: 0;
    font-size: 1.5rem;
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.reveal.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for cards if they are revealed together */
.info-card:nth-child(1) {
    transition-delay: 0.1s;
}

.info-card:nth-child(2) {
    transition-delay: 0.2s;
}

.info-card:nth-child(3) {
    transition-delay: 0.3s;
}

.info-card:nth-child(4) {
    transition-delay: 0.4s;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--color-logo);
    z-index: 1000;
    transition: width 0.1s ease-out;
}

/* Custom Scrollbar */
/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
    /* Thinner horizontal scrollbar */
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
}

::-webkit-scrollbar-thumb {
    background: rgba(200, 105, 47, 0.5);
    border-radius: 10px;
    /* Rounder ends */
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(200, 105, 47, 0.8);
}

/* Latest Insights Section */
.latest-insights {
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
}

.latest-insights h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-lg);
}

.homepage-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
}

.homepage-blog-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: var(--spacing-md);
    text-align: left;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.homepage-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-color: var(--color-logo);
    background: rgba(255, 255, 255, 0.8);
}

.homepage-blog-card .blog-date {
    font-size: 0.85rem;
    color: var(--color-logo);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.homepage-blog-card .blog-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-text-dark);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.card-link {
    color: var(--color-logo);
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin-top: 0.5rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.card-link:hover {
    color: var(--color-primary);
    transform: translateX(4px);
}

.homepage-blog-card .blog-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.view-all-container {
    margin-top: var(--spacing-md);
}

/* Engine Section */
.engine-section {
    padding: var(--spacing-xl) var(--spacing-md);
    background: linear-gradient(180deg, #FFFFFF 0%, var(--color-sky-light) 100%);
    border-radius: var(--border-radius);
    margin: var(--spacing-lg) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.engine-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(138, 154, 91, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.engine-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    background: var(--color-freedom-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--color-logo);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    max-width: 300px;
}

/* Utility: Visually Hidden (for accessibility/SEO) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Language Switcher */
.lang-switch {
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0.2rem;
    transition: color 0.2s ease;
    font-family: inherit;
    font-weight: inherit;
}

.lang-btn:hover,
.lang-btn.active {
    color: var(--color-logo);
}

.lang-separator {
    color: var(--color-border);
    font-size: 0.8rem;
}

/* Contact Form */
.contact-form {
    max-width: 500px;
    margin: 2rem auto 0;
    text-align: left;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-dark);
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.form-input:focus {
    border-color: var(--color-logo);
    background: #fff;
    box-shadow: 0 4px 12px rgba(200, 105, 47, 0.1);
}

/* Floating Label */
.form-label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--color-text-muted);
    pointer-events: none;
    transition: all 0.2s ease;
    font-size: 1rem;
    background: transparent;
    padding: 0 0.2rem;
}

/* Move label up when input has focus or value */
.form-input:focus~.form-label,
.form-input:not(:placeholder-shown)~.form-label {
    top: -0.6rem;
    left: 0.8rem;
    font-size: 0.8rem;
    color: var(--color-freedom);
    background: #fff;
    /* Mask the border */
    height: auto;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.form-message {
    margin-top: 1rem;
    font-size: 0.9rem;
    min-height: 1.5rem;
    transition: all 0.3s ease;
}

.form-message.success {
    color: var(--color-growth);
}

.form-message.error {
    color: #ef4444;
}

.submit-button {
    width: 100%;
    border: none;
    cursor: pointer;
    margin-top: 1rem;
}

/* Blog Layout */
.blog-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--color-text-heading);
    font-weight: 600;
    font-size: 1.2rem;
}

.nav-logo-img {
    height: 32px;
    width: auto;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    align-items: start;
}

.blog-main {
    min-width: 0;
    /* Prevent overflow */
}

.blog-sidebar {
    position: sticky;
    top: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.sidebar-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-heading);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-link {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: block;
    line-height: 1.4;
}

.sidebar-link:hover {
    color: var(--color-logo);
}

.sidebar-link.active {
    color: var(--color-logo);
    font-weight: 500;
}

@media (max-width: 900px) {
    .blog-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .blog-sidebar {
        position: static;
        margin-top: 2rem;
    }
}

/* Blog Post Styles */
.article-header {
    padding: 4rem 2rem 4rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.article-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-body);
}

.article-content h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-dark);
}

.article-content p {
    margin-bottom: 0.75rem;
}

.article-content blockquote {
    border-left: 4px solid var(--color-logo);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--color-text-dark);
}

.article-content ul,
.article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.article-content ul li {
    list-style-type: disc;
}

.article-content ol li {
    list-style-type: decimal;
}

.article-meta {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    display: block;
}

/* Blog Index Styles */
.blog-header {
    padding: 8rem 2rem 4rem;
    text-align: center;
    background: linear-gradient(to bottom, #f8f9fa, #fff);
}

.blog-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
    padding: 2rem;
}

.blog-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: var(--color-logo);
}

.blog-date {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

.blog-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text-dark);
}

.blog-desc {
    color: var(--color-text-body);
    line-height: 1.6;
    width: 100%;
}

.back-link {
    display: inline-block;
    margin-top: 2rem;
    color: var(--color-logo);
    text-decoration: none;
    font-weight: 500;
}

/* About Section */
.about-section {
    padding: var(--spacing-xl) var(--spacing-md);
    background: linear-gradient(180deg, #fff 0%, var(--color-sky-light) 100%);
    position: relative;
    overflow: hidden;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.about-section h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, var(--color-text-dark) 0%, var(--color-logo) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--color-text-dark);
}

.about-section .lead-text {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
    color: var(--color-text-muted);
    font-weight: 300;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    text-align: left;
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-md);
}

.personal-note {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--color-sky-light);
    border-left: 4px solid var(--color-logo);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-style: italic;
    color: var(--color-text-muted);
}

.personal-note strong {
    color: var(--color-logo);
    font-weight: 600;
    font-style: normal;
}

@media (min-width: 768px) {
    .about-section h2 {
        font-size: 3rem;
    }
}

/* Section Divider */
.section-divider {
    height: 1px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(90deg, transparent, rgba(200, 105, 47, 0.3), transparent);
    position: relative;
    z-index: 2;
}

/* Interactive Applications List */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-sm);
    text-align: left;
}

.application-item {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    border: 1px solid transparent;
}

.application-item:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: rgba(200, 105, 47, 0.2);
}

.application-item[open] {
    border-color: var(--color-logo);
    box-shadow: 0 10px 25px rgba(200, 105, 47, 0.1);
}

.application-item summary {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    user-select: none;
}

.application-item summary::-webkit-details-marker {
    display: none;
}

.app-title {
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--color-text-dark);
    padding-right: 1rem;
}

.app-toggle {
    color: var(--color-logo);
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

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

.app-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.6;
    animation: fadeIn 0.3s ease;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .applications-grid {
        grid-template-columns: 1fr;
    }
}

/* CAPTCHA Styling */
.captcha-group {
    max-width: 200px;
}

.captcha-group label {
    font-weight: 500;
    /* color removed to match other labels */
}

/* Floating Navigation */
.floating-nav {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    left: auto;
    /* Prevent centering overrides */
    z-index: 100;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 1rem;
    opacity: 1;
    transition: opacity 0.5s ease;
    pointer-events: none;
    /* Allow clicks to pass through container */
}

body.intro-active .floating-nav {
    opacity: 0;
    pointer-events: none;
}

.nav-toggle {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: var(--color-freedom-gradient);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    pointer-events: auto;
}

.nav-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(234, 88, 12, 0.4);
}

.hamburger {
    width: 24px;
    height: 2px;
    background: white;
    position: relative;
    transition: background 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: white;
    left: 0;
    transition: transform 0.3s ease, top 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Active State (X icon) */
.floating-nav.active .hamburger {
    background: transparent;
}

.floating-nav.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.floating-nav.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.floating-nav.active .nav-links {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    /* Enable clicks when visible */
}

.nav-link {
    background: white;
    color: var(--color-text-dark);
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, color 0.2s ease;
    text-align: right;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--color-freedom);
    transform: translateX(-5px);
}

/* Phone Number Styling */
.contact-phone {
    margin-top: var(--spacing-md);
    font-size: 1.1rem;
    color: var(--color-text-dark);
}

.contact-hours {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
}

.phone-link {
    color: var(--color-freedom);
    font-weight: 600;
    text-decoration: none;
    margin-left: 0.5rem;
    transition: color 0.2s ease;
}

.phone-link:hover {
    color: var(--color-growth);
    text-decoration: underline;
}

.footer-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.footer-separator {
    margin: 0 0.5rem;
    color: var(--color-text-muted);
}