/* Hero section */
    /* Knowledge hubs section reuses use-cases-section layout */
    .knowledge-hubs-section {
        padding: var(--section-padding) 0;
        border-top: 1px solid var(--border);
    }
    .hero {
        position: relative;
        text-align: center;
        padding: 0 1.5rem var(--hero-gap);
        /* No background, border or rounded card here -- the ambient glow
           behind provides the light so the hero has no visible edges. */
        background: transparent;
        margin-bottom: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-tag {
        font-family: var(--font-mono);
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.15em;
        color: var(--primary);
        border: 1px solid var(--primary);
        padding: 0.3rem 0.75rem;
        border-radius: 999px;
        margin-bottom: 1.5rem;
        font-weight: 600;
        background: rgba(249, 115, 22, 0.05);
    }
    
    .hero h1 {
        font-family: var(--font-heading);
        font-size: clamp(2.2rem, 5vw, 3.5rem);
        font-weight: 800;
        line-height: 1.1;
        letter-spacing: -0.03em;
        margin-bottom: 1rem;
        max-width: 800px;
    }
    
    .hero h1 span {
        color: var(--primary);
    }
    
    .hero h2 {
        font-size: clamp(1rem, 2.5vw, 1.25rem);
        font-weight: 400;
        color: var(--text-secondary);
        max-width: 620px;
        margin: 0 auto 2.5rem;
        line-height: 1.6;
    }

    .hero-buttons {
        display: flex;
        gap: 1rem;
        justify-content: center;
        width: 100%;
        max-width: 400px;
    }

    @media (max-width: 480px) {
        .hero-buttons {
            flex-direction: column;
            max-width: 300px;
        }

        .hero-buttons .btn {
            width: 100%;
        }
    }

    /* Partners Marquee */
    .partners-section {
        padding: var(--section-padding) 0;
        background: transparent;
        overflow: hidden;
    }

    .partners-section h3 {
        text-align: center;
        font-family: var(--font-heading);
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: var(--gray);
        margin-bottom: 1.5rem;
    }

    .partners-wrapper {
        display: flex;
        width: 100%;
        position: relative;
    }

    .partners-marquee {
        display: flex;
        flex-shrink: 0;
        width: max-content;
        animation: partnerTicker 30s linear infinite;
        align-items: center;
    }

    .partners-track {
        display: flex;
        flex-shrink: 0;
        gap: 4rem;
        align-items: center;
        padding-right: 4rem;
    }

    .partner-logo {
        font-family: var(--font-heading);
        font-weight: 700;
        font-size: 1.2rem;
        color: var(--gray);
        opacity: 0.45;
        transition: opacity 0.3s;
        display: flex;
        align-items: center;
        gap: 0.35rem;
        white-space: nowrap;
        flex-shrink: 0;
        filter: grayscale(100%);
    }

    .partner-logo:hover {
        opacity: 0.8;
        filter: none;
    }

    @keyframes partnerTicker {
        0% { transform: translateX(0); }
        100% { transform: translateX(-50%); }
    }

    /* Diagnostics Section */
    /*
     * Scroll reveal: elements start slightly lowered and transparent,
     * then ease up into place when they enter the viewport. Eased, so
     * the motion is smooth rather than a hard pop.
     */
    .reveal-on-scroll {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
        transition-delay: var(--reveal-delay, 0s);
        will-change: opacity, transform;
    }

    .reveal-on-scroll.is-visible {
        opacity: 1 !important;
        transform: none !important;
    }

    @media (prefers-reduced-motion: reduce) {
        .reveal-on-scroll {
            opacity: 1;
            transform: none;
            transition: none;
        }
    }

    .diagnostics-header {
        text-align: center;
        margin-bottom: 3rem;
    }

    .diagnostics-header h2 {
        font-family: var(--font-heading);
        font-size: 1.85rem;
        font-weight: 700;
        letter-spacing: -0.02em;
        margin-bottom: 0.5rem;
    }

    .diagnostics-header p {
        color: var(--text-secondary);
        font-size: 0.95rem;
    }

    .use-cases-view-all {
        display: inline-block;
        margin-top: 1rem;
        font-weight: 600;
        font-size: 0.9rem;
        color: var(--primary);
        text-decoration: none;
    }

    .use-cases-view-all:hover {
        text-decoration: underline;
    }

    /* Simple features section */
    .features-section {
        padding: var(--section-padding) 0;
        border-bottom: 1px solid var(--border);
    }

    .features-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1.5rem;
    }

    .feature-card {
        background: var(--bg-secondary);
        border: 1px solid var(--border);
        border-radius: 14px;
        padding: 2rem 1.5rem;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .feature-card:hover {
        transform: translateY(-2px);
        border-color: var(--primary);
        box-shadow: var(--card-shadow);
    }

    .feature-card-icon {
        color: var(--primary);
        margin-bottom: 0.25rem;
        background: var(--bg-tertiary);
        width: 44px;
        height: 44px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .feature-card h3 {
        font-family: var(--font-heading);
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--text-primary);
        letter-spacing: -0.01em;
    }

    .feature-card p {
        color: var(--text-secondary);
        font-size: 0.85rem;
        line-height: 1.5;
    }

    /* Use Cases Section Styling */
    .use-cases-section {
        padding: var(--section-padding) 0;
    }

    .use-cases-container {
        display: grid;
        grid-template-columns: 1fr 1.6fr;
        gap: 2rem;
        align-items: start;
        margin-top: 2rem;
    }

    .use-cases-list-viewport {
        height: var(--use-case-viewport-h, 27rem);
        min-height: 27rem;
        overflow-y: auto;
        overflow-x: hidden;
        scroll-behavior: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-mask-image: linear-gradient(to bottom, transparent 0, black 28px, black calc(100% - 28px), transparent 100%);
        mask-image: linear-gradient(to bottom, transparent 0, black 28px, black calc(100% - 28px), transparent 100%);
    }

    .use-cases-list-viewport::-webkit-scrollbar {
        display: none;
    }

    .use-cases-list {
        display: flex;
        flex-direction: column;
        gap: 0.65rem;
    }

    .use-case-item {
        background: var(--bg-secondary);
        border: 1px solid var(--border);
        border-radius: 14px;
        padding: 0.9rem 1.1rem;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
        position: relative;
        transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        border-left: 3px solid transparent;
    }

    .use-case-item:hover {
        transform: translateY(-2px);
        border-color: var(--primary);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

    .use-case-item.active {
        background: var(--bg-primary);
        border-color: var(--primary);
        border-left: 3px solid var(--primary);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }

    .use-case-item-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .use-case-item h4 {
        font-family: var(--font-heading);
        font-size: 1rem;
        font-weight: 700;
        color: var(--text-primary);
    }

    .use-case-badge-meta {
        font-size: 0.72rem;
        color: var(--gray);
        font-weight: 500;
        letter-spacing: 0.05em;
    }

    .use-case-item p {
        font-size: 0.82rem;
        color: var(--text-secondary);
        line-height: 1.5;
    }

    .use-case-tags {
        display: flex;
        gap: 0.4rem;
        flex-wrap: wrap;
        margin-top: 0.1rem;
    }

    .use-case-tag {
        font-size: 0.7rem;
        padding: 0.15rem 0.5rem;
        border-radius: 4px;
        background: var(--bg-tertiary);
        color: var(--text-secondary);
        border: 1px solid var(--border);
        font-weight: 500;
    }

    /* Detail Pane styles */
    .use-case-detail-pane {
        background: var(--bg-secondary);
        border: 1px solid var(--border);
        border-radius: 20px;
        padding: 2rem;
        min-height: var(--use-case-viewport-h, 27rem);
        position: relative;
        overflow: hidden;
        box-shadow: var(--card-shadow);
        transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .use-case-detail-content {
        transition: opacity 0.35s cubic-bezier(0.25, 1, 0.5, 1), transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
        opacity: 1;
        transform: translateY(0);
        position: relative;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .use-case-detail-header-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.75rem;
        border-bottom: 1px solid var(--border);
        padding-bottom: 0.75rem;
        margin-bottom: 1.1rem;
    }

    .use-case-detail-header-row h3 {
        font-family: var(--font-heading);
        font-size: 1.4rem;
        font-weight: 800;
        color: var(--text-primary);
        letter-spacing: -0.02em;
    }

    .use-case-detail-badges {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .use-case-detail-badge {
        font-size: 0.72rem;
        font-weight: 600;
        padding: 0.25rem 0.6rem;
        border-radius: 6px;
        background: var(--bg-tertiary);
        color: var(--text-secondary);
        border: 1px solid var(--border);
    }

    .use-case-detail-badge.active {
        background: var(--text-primary);
        color: var(--bg-primary);
        border-color: var(--text-primary);
    }

    .use-case-detail-badge-rating {
        font-size: 0.75rem;
        font-weight: 600;
        color: var(--primary);
        margin-left: 0.5rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .use-case-challenge-solution-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        margin-bottom: 1.25rem;
    }

    .use-case-challenge-box {
        background: rgba(239, 68, 68, 0.03);
        border: 1px solid rgba(239, 68, 68, 0.1);
        border-left: 3px solid #ef4444;
        border-radius: 10px;
        padding: 1rem 1.1rem;
    }

    .use-case-solution-box {
        background: rgba(16, 185, 129, 0.03);
        border: 1px solid rgba(16, 185, 129, 0.1);
        border-left: 3px solid #10b981;
        border-radius: 10px;
        padding: 1rem 1.1rem;
    }

    .box-label {
        display: block;
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 0.05em;
        margin-bottom: 0.35rem;
    }

    .challenge-label {
        color: #fca5a5;
    }

    .solution-label {
        color: #86efac;
    }

    .use-case-challenge-box p,
    .use-case-solution-box p {
        font-size: 0.85rem;
        color: var(--text-secondary);
        line-height: 1.5;
    }

    .use-case-capabilities-section {
        margin-bottom: 1.25rem;
    }

    .section-label, .results-label {
        display: block;
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 0.05em;
        color: var(--gray);
        margin-bottom: 0.5rem;
    }

    .use-case-capabilities-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem 1rem;
    }

    .capabilities-list {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
    }

    .capabilities-list li {
        font-size: 0.85rem;
        color: var(--text-primary);
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .capabilities-list li span {
        color: var(--primary);
        font-weight: bold;
    }

    .use-case-results-box {
        background: var(--bg-tertiary);
        border: 1px solid var(--border);
        border-radius: 10px;
        padding: 0.9rem 1.1rem;
        margin-bottom: 1.25rem;
    }

    .use-case-results-box p {
        font-size: 0.88rem;
        color: var(--text-primary);
        font-weight: 500;
        line-height: 1.5;
    }

    .use-case-learn-more-link {
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--text-primary);
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        transition: color 0.2s;
    }

    .use-case-learn-more-link:hover {
        color: var(--primary);
    }

    @media (max-width: 992px) {
        .use-cases-container {
            grid-template-columns: 1fr;
            gap: 2rem;
        }
        .use-cases-list-viewport {
            height: auto;
            overflow: visible;
            -webkit-mask-image: none;
            mask-image: none;
        }
        .use-case-detail-pane {
            padding: 2rem;
            min-height: auto;
        }
        .use-case-challenge-solution-row {
            grid-template-columns: 1fr;
        }
        .use-case-capabilities-grid {
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 480px) {
        .use-case-item {
            padding: 0.7rem 0.85rem;
        }
        .use-case-detail-pane {
            padding: 1.25rem;
        }
        .capabilities-list li {
            font-size: 0.8rem;
        }
    }
        color: var(--primary);
    }

    /* Private Pool Section */
    .pool-section {
        padding: var(--section-padding) 0;
        border-bottom: 1px solid var(--border);
        background: radial-gradient(circle at right, rgba(249, 115, 22, 0.03) 0%, transparent 60%);
    }

    .pool-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: start;
    }

    @media (max-width: 768px) {
        .pool-grid {
            grid-template-columns: 1fr;
            gap: 2rem;
        }
    }

    .pool-content h2 {
        font-family: var(--font-heading);
        font-size: 2rem;
        font-weight: 800;
        letter-spacing: -0.02em;
        margin-bottom: 1rem;
    }

    .pool-content p {
        color: var(--text-secondary);
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }

    .pool-features {
        list-style: none;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .pool-features li {
        font-size: 0.85rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-weight: 500;
    }

    .pool-features li svg {
        color: var(--success);
    }

    .pool-image-box {
        border: 1px solid var(--border);
        border-radius: 16px;
        background: var(--bg-secondary);
        padding: 2.5rem;
        box-shadow: var(--card-shadow);
        position: relative;
        overflow: hidden;
    }

    .pool-code {
        font-family: var(--font-mono);
        font-size: 0.72rem;
        background: var(--bg-tertiary);
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: 1rem;
        color: var(--text-primary);
        margin-top: 1.5rem;
        overflow-x: auto;
    }

    /* Featured Countries Section */
    .countries-section {
        padding: var(--section-padding) 0;
        border-bottom: 1px solid var(--border);
    }

    .countries-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .country-card {
        background: var(--bg-secondary);
        border: 1px solid var(--border);
        border-radius: 16px;
        overflow: hidden;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        display: flex;
        flex-direction: column;
        cursor: pointer;
    }

    .country-card:hover {
        transform: translateY(-2px);
        border-color: var(--primary);
        box-shadow: var(--card-shadow);
    }

    .country-card-header {
        padding: 1.5rem 1.5rem 1rem;
        display: flex;
        gap: 1rem;
        align-items: center;
        border-bottom: 1px solid var(--border);
    }

    .country-flag {
        font-size: 2.2rem;
        line-height: 1;
        font-family: 'Twemoji Country Flags';
    }

    .country-info {
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
    }

    .country-name {
        font-family: var(--font-heading);
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--text-primary);
        letter-spacing: -0.01em;
    }

    .country-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem 0.75rem;
        font-size: 0.72rem;
        color: var(--gray);
        font-weight: 500;
    }

    .meta-item {
        display: flex;
        align-items: center;
        gap: 0.25rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .country-card-body {
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
        flex-grow: 1;
    }

    .price-section {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
    }

    .price-label {
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--gray);
    }

    .price {
        font-family: var(--font-heading);
        font-weight: 700;
        color: var(--text-primary);
    }

    .price-value {
        font-size: 1.4rem;
        font-weight: 800;
    }

    .price-unit {
        font-size: 0.8rem;
        color: var(--text-secondary);
        font-weight: 500;
    }

    .network-badges {
        display: flex;
        gap: 0.4rem;
    }

    .network-badge {
        font-family: var(--font-mono);
        font-size: 0.65rem;
        font-weight: 600;
        background: var(--bg-tertiary);
        border: 1px solid var(--border);
        color: var(--text-secondary);
        padding: 0.2rem 0.5rem;
        border-radius: 6px;
        text-transform: uppercase;
    }

    .operators-list {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .operators-label {
        font-size: 0.72rem;
        color: var(--gray);
        font-weight: 500;
    }

    .operators-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .operator-tag {
        font-size: 0.72rem;
        background: rgba(255,255,255,0.02);
        border: 1px solid var(--border);
        color: var(--text-primary);
        padding: 0.15rem 0.4rem;
        border-radius: 5px;
        font-weight: 500;
    }

    .order-btn {
        width: 100%;
        padding: 0.75rem;
        border: 1px solid transparent;
        background: var(--primary);
        color: var(--white);
        border-radius: 10px;
        font-weight: 600;
        font-size: 0.85rem;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 0 4px 12px var(--glow-color);
        margin-top: auto;
    }

    .order-btn:hover {
        background: var(--primary-dark);
        transform: translateY(-1px);
        box-shadow: 0 6px 16px var(--glow-color);
    }

    /* FAQ Section */
    .faq-section {
        padding: var(--section-padding) 0;
        border-bottom: 1px solid var(--border);
    }

    .faq-list {
        max-width: 800px;
        margin: 2.5rem auto 0;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .faq-list details {
        border: 1px solid var(--border);
        background: var(--bg-secondary);
        border-radius: 12px;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .faq-list details[open] {
        border-color: var(--primary);
        background: var(--bg-primary);
        box-shadow: var(--card-shadow);
    }

    .faq-list summary {
        padding: 1.25rem 1.5rem;
        font-weight: 600;
        font-family: var(--font-heading);
        font-size: 0.95rem;
        color: var(--text-primary);
        cursor: pointer;
        list-style: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
        user-select: none;
    }

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

    .faq-list summary::after {
        content: '+';
        font-size: 1.2rem;
        color: var(--gray);
        transition: transform 0.2s;
        font-weight: 400;
    }

    .faq-list details[open] summary::after {
        content: '−';
        transform: rotate(180deg);
        color: var(--primary);
    }

    .faq-answer {
        padding: 0 1.5rem 1.5rem;
        color: var(--text-secondary);
        font-size: 0.88rem;
        line-height: 1.6;
    }

    .faq-answer a {
        color: var(--primary);
        text-decoration: none;
        font-weight: 500;
    }

    .faq-answer a:hover {
        text-decoration: underline;
    }

    .cta-section {
        text-align: center;
        margin: var(--section-gap-lg) 0 3rem;
        padding: var(--section-padding) 2rem;
        position: relative;
        overflow: hidden;
    }

    .cta-section h2 {
        font-family: var(--font-heading);
        font-size: 2.2rem;
        font-weight: 800;
        letter-spacing: -0.02em;
        margin-bottom: 0.75rem;
        position: relative;
        z-index: 1;
    }

    .cta-section p {
        color: var(--text-secondary);
        font-size: 0.95rem;
        margin-bottom: 2rem;
        position: relative;
        z-index: 1;
    }

    .cta-btn {
        position: relative;
        z-index: 1;
    }

    /* Grid Backdrops */
    .hero > *:not(.svg-grid-backdrop):not(.hero-glow-blob),
    .cta-section > *:not(.svg-grid-backdrop) {
        position: relative;
        z-index: 1;
    }

    .svg-grid-backdrop {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 0;
        color: var(--border);
        opacity: 0.15;
    }

    .svg-grid-backdrop svg {
        width: 100%;
        height: 100%;
        display: block;
    }

    /* Modal Overlay & Modal Dialogs Styles */
    .modal-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        /* Neutral dark dim that matches the page background (no blue cast);
           the blur shows the actual background behind, softened. */
        background: rgba(10, 10, 10, 0.6);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 9998;
        align-items: center;
        justify-content: center;
        padding: 1rem;
    }

    .modal-overlay.active {
        display: flex !important;
    }

    .modal-card {
        background-color: var(--bg-primary);
        border: 1px solid var(--border);
        border-radius: 20px;
        width: 100%;
        max-width: 500px;
        max-height: 90vh;
        overflow-y: auto;
        padding: 2.2rem;
        box-shadow: var(--card-shadow);
        position: relative;
        animation: modalSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    @keyframes modalSlideIn {
        from {
            opacity: 0;
            transform: translateY(-16px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1.5rem;
        border-bottom: 1px solid var(--border);
        padding-bottom: 0.75rem;
    }

    .modal-title-section {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .modal-flag {
        display: inline-flex;
        color: var(--primary);
        font-size: 2.2rem;
    }

    .modal-title {
        font-family: var(--font-heading);
        font-size: 1.3rem;
        font-weight: 700;
        color: var(--text-primary);
        margin: 0;
    }

    .modal-close, .close-btn {
        background: var(--bg-secondary);
        border: 1px solid var(--border);
        font-size: 0.85rem;
        color: var(--text-secondary);
        cursor: pointer;
        width: 32px;
        height: 32px;
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.2s;
    }

    .modal-close:hover, .close-btn:hover {
        color: var(--primary);
        border-color: var(--primary);
        transform: scale(1.05);
    }

    .modal-body {
        padding: 0;
    }

    .form-group {
        margin-bottom: 1.25rem;
    }

    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        color: var(--text-primary);
        font-weight: 600;
        font-size: 0.85rem;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 0.75rem;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: var(--bg-secondary);
        color: var(--text-primary);
        font-size: 0.9rem;
        transition: border-color 0.2s;
    }

    .form-group input:focus,
    .form-group textarea:focus {
        outline: none;
        border-color: var(--primary);
    }

    .form-group textarea {
        resize: vertical;
        min-height: 80px;
    }

    .submit-btn {
        width: 100%;
        padding: 0.85rem;
        background: var(--primary);
        color: var(--white);
        border: 1px solid transparent;
        border-radius: 8px;
        font-size: 0.95rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 0 4px 12px var(--glow-color);
    }

    .submit-btn:hover {
        background: var(--primary-dark);
        transform: translateY(-1px);
        box-shadow: 0 6px 16px var(--glow-color);
    }

    .submit-btn:disabled {
        background: var(--light-gray);
        color: var(--gray);
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
        border-color: var(--border);
    }

    .captcha-image {
        width: 100%;
        aspect-ratio: 3;
        border: 1px solid var(--border);
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.2s;
        object-fit: cover;
        background: var(--bg-secondary);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text-primary);
    }

    .captcha-image svg {
        width: 2.25rem !important;
        height: 2.25rem !important;
    }

    .captcha-image:hover {
        border-color: var(--primary);
        transform: scale(1.02);
    }

    .captcha-image.selected {
        border-color: var(--primary);
        background: rgba(249, 115, 22, 0.1); /* Amber highlight, not blue */
        transform: scale(0.98);
    }

    .success-message {
        text-align: center;
        padding: 1.5rem 0;
    }

    .success-message h3 {
        color: var(--success);
        font-family: var(--font-heading);
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }

    .success-message p {
        color: var(--text-secondary);
        font-size: 0.9rem;
    }

    @media (max-width: 768px) {
        .modal-content {
            padding: 1.5rem;
        }
    }

    /* Hero Glow Blobs Styling */
    .hero {
        position: relative;
        overflow: hidden;
    }

    /*
     * Ambient glow anchored to the top of the page and confined to the
     * first screen. It sits behind the header and hero (translucent, so
     * the glow shows through) and is masked to fade out before the fold,
     * so it dissolves smoothly into the normal background below with no
     * visible edge.
     */
    .page-ambient {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 105vh;
        z-index: 0;
        pointer-events: none;
        overflow: hidden;
        -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 42%, transparent 82%);
                mask-image: linear-gradient(to bottom, #000 0%, #000 42%, transparent 82%);
    }

    .hero-glow-blob {
        position: absolute !important;
        border-radius: 50%;
        pointer-events: none;
        z-index: 0 !important;
        opacity: 0.22;
        /* Only transform is animated so the compositor can run this on the
           GPU -- no per-frame blur/blend re-rasterisation, so it stays
           perfectly fluid. The softness comes from the gradient itself
           (below), not an expensive filter. */
        will-change: transform;
        transform: translateZ(0);
    }

    /*
     * Each blob is its own independent layer: different size, path,
     * duration and easing curve so nothing ever moves in lockstep.
     * Loops are seamless (0% == 100%) so there is no jump on repeat,
     * and every curve is an ease-in-out sine so motion always
     * accelerates and decelerates -- never linear, never sudden.
     */
    .hero-blob-orange {
        width: 620px;
        height: 620px;
        background: radial-gradient(circle, rgba(255, 163, 102, 0.42) 0%, rgba(255, 163, 102, 0.16) 32%, transparent 68%);
        top: -4%;
        left: -2%;
        opacity: 0.5;
        animation: floatBlob1 22s cubic-bezier(0.37, 0, 0.63, 1) infinite;
    }

    .hero-blob-gray {
        width: 720px;
        height: 720px;
        background: radial-gradient(circle, rgba(148, 163, 184, 0.32) 0%, rgba(148, 163, 184, 0.12) 32%, transparent 68%);
        top: 12%;
        right: -3%;
        opacity: 0.45;
        animation: floatBlob2 28s cubic-bezier(0.37, 0, 0.63, 1) infinite;
    }

    .hero-blob-accent {
        width: 460px;
        height: 460px;
        background: radial-gradient(circle, rgba(249, 115, 22, 0.35) 0%, rgba(249, 115, 22, 0.12) 32%, transparent 68%);
        top: 38%;
        left: 38%;
        opacity: 0.4;
        animation: floatBlob3 34s cubic-bezier(0.45, 0, 0.55, 1) infinite;
    }

    .hero > *:not(.hero-glow-blob):not(.svg-grid-backdrop) {
        position: relative;
        z-index: 2 !important;
    }

    .svg-grid-backdrop {
        z-index: 0 !important;
    }

    /* Grid drifts on its own timeline for gentle parallax depth. */
    .hero .svg-grid-backdrop {
        animation: gridDrift 72s ease-in-out infinite;
        will-change: transform;
    }

    /* Only transform animates -- kept off the opacity/paint path so the
       whole hero stays composited and fluid. */
    @keyframes floatBlob1 {
        0%   { transform: translate(0, 0) scale(1); }
        22%  { transform: translate(130px, 70px) scale(1.14); }
        48%  { transform: translate(-70px, 150px) scale(0.9); }
        74%  { transform: translate(-140px, 55px) scale(1.08); }
        100% { transform: translate(0, 0) scale(1); }
    }

    @keyframes floatBlob2 {
        0%   { transform: translate(0, 0) scale(1); }
        26%  { transform: translate(-160px, -95px) scale(1.15); }
        54%  { transform: translate(110px, -130px) scale(0.88); }
        80%  { transform: translate(80px, 75px) scale(1.06); }
        100% { transform: translate(0, 0) scale(1); }
    }

    @keyframes floatBlob3 {
        0%   { transform: translate(0, 0) scale(1); }
        33%  { transform: translate(105px, -80px) scale(1.2); }
        66%  { transform: translate(-95px, 70px) scale(0.85); }
        100% { transform: translate(0, 0) scale(1); }
    }

    @keyframes gridDrift {
        0%   { transform: translate(0, 0); }
        50%  { transform: translate(-30px, -22px); }
        100% { transform: translate(0, 0); }
    }

    /*
     * Hero content reveal -- each element rises and fades on its own
     * delay (independent timing per layer) with an ease-out curve so
     * they float into place rather than snapping.
     */
    @keyframes heroRise {
        from { opacity: 0; transform: translateY(26px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .hero .hero-tag     { animation: heroRise 1s   cubic-bezier(0.22, 1, 0.36, 1) 0.05s both; }
    .hero h1            { animation: heroRise 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.20s both; }
    .hero h2            { animation: heroRise 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.38s both; }
    .hero .hero-buttons { animation: heroRise 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.56s both; }

    /*
     * After the reveal, the tag keeps a slow independent bob so the
     * hero never feels fully frozen. Delay clears the entrance so the
     * hand-off is seamless (both rest at translateY(0)).
     */
    .hero .hero-tag {
        animation:
            heroRise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both,
            tagFloat 3.2s cubic-bezier(0.45, 0, 0.55, 1) 1.05s infinite;
        will-change: transform;
    }

    @keyframes tagFloat {
        0%   { transform: translateY(0); }
        50%  { transform: translateY(-3px); }
        100% { transform: translateY(0); }
    }

    /* Accessibility: honour users who ask for reduced motion. */
    @media (prefers-reduced-motion: reduce) {
        .hero-glow-blob,
        .hero .svg-grid-backdrop,
        .hero .hero-tag,
        .hero h1,
        .hero h2,
        .hero .hero-buttons {
            animation: none !important;
        }
        .hero .hero-tag,
        .hero h1,
        .hero h2,
        .hero .hero-buttons {
            opacity: 1 !important;
            transform: none !important;
        }
    }
