﻿/* Base styles */
:root {
    /* ---- Brand Tokens: matching Blazor app ---- */
    --red: #D72018;
    --white: #FAF6F2;
    --black: #1C1C1C;
    --outer-bg: #1B1B1B;
    --shadow: rgba(0, 0, 0, 0.2);
    --shadow-gray: #555555;
    --font-display: "DynaPuff", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
    --font-ui: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
    --accent: #c42b24; /* slightly darker red for hovers */
    --radius: 12px;
    --shadow-lg: 8px 8px 0 var(--black);
    --shadow-md: 4px 4px 0 var(--black);
    --gradient-bg: linear-gradient(135deg, var(--red) 0%, var(--accent) 100%);
    --section-padding: max(60px, 8vh);
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

html, body {
    background: var(--outer-bg);
    color: var(--black);
    font-family: var(--font-ui);
    margin: 0;
    padding: 0;
}

a {
    color: inherit;
    text-decoration: none
}

img {
    max-width: 100%;
    display: block
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Language Selector Styles */
.language-selector {
    position: relative;
    z-index: 1001;
}

.language-dropdown {
    position: relative;
    display: inline-block;
}

.language-btn {
    background: var(--white);
    border: 3px solid var(--black);
    border-radius: var(--radius);
    padding: 12px 12px;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 14px;
    color: var(--black);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-md);
    transition: all 0.2s ease;
    min-width: 80px;
    justify-content: space-between;
}

    .language-btn:hover {
        transform: translateY(-2px);
        box-shadow: 4px 6px 0 var(--black);
    }

    .language-btn.active {
        background: var(--red);
        color: var(--white);
    }

.language-arrow {
    transition: transform 0.2s ease;
    font-size: 12px;
}

.language-btn.active .language-arrow {
    transform: rotate(180deg);
}

.language-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--white);
    border: 3px solid var(--black);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1002;
    min-width: 100%; /* Ensure dropdown matches button width */
    width: max-content; /* Allow content to determine width but maintain min-width */
}

/* Specific styling for navbar language dropdown to ensure consistent sizing */
.nav-language .language-options {
    min-width: 120px; /* Fixed minimum width for navbar dropdown */
    width: 120px; /* Fixed width to match expected navbar button size */
}

.language-dropdown.active .language-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    padding: 12px 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: var(--black);
    transition: background-color 0.15s ease;
    border-bottom: 2px solid rgba(28, 28, 28, 0.1);
}

    .language-option:last-child {
        border-bottom: none;
        border-radius: 0 0 calc(var(--radius) - 3px) calc(var(--radius) - 3px);
    }

    .language-option:first-child {
        border-radius: calc(var(--radius) - 3px) calc(var(--radius) - 3px) 0 0;
    }

    .language-option:hover {
        background: rgba(215, 32, 24, 0.1);
        color: var(--red);
    }

    .language-option.selected {
        background: var(--red);
        color: var(--white);
    }

/* Hero Language Selector - Center Top */
.hero-language {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 10; /* Ensure it's above other content */
}

    .hero-language.hidden {
        opacity: 0;
        visibility: hidden;
    }

/* Navbar Language Selector - Right Side */
.nav-language {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

    .nav-language.visible {
        opacity: 1;
        visibility: visible;
    }

    /* Specific sizing for navbar language button */
    .nav-language .language-btn {
        min-width: 90px; /* Consistent width for navbar */
        padding: 10px 12px;
    }

/* Top nav - Hidden by default, shows on scroll */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--outer-bg);
    border-bottom: 3px solid var(--black);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

    .topbar.visible {
        transform: translateY(0);
    }

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .brand img {
        width: 32px;
        height: 32px;
        display: block;
    }

.wordmark {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 24px;
    color: var(--red);
}

.logo-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--red);
    margin-left: 4px;
}

.nav {
    display: flex;
    gap: 12px;
    align-items: center;
}

    .nav a {
        color: var(--white);
        padding: 10px 12px;
        border-radius: var(--radius);
        transition: .2s ease;
        font-weight: 500;
    }

        .nav a:hover {
            background: rgba(255,255,255,.1);
            color: var(--red);
        }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: var(--radius);
    border: 3px solid var(--black);
    background: var(--white);
    color: var(--black);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: transform .1s ease, background-color .2s ease;
    font-weight: 700;
}

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 6px 6px 0 var(--black);
    }

    .btn:active {
        transform: scale(0.98) translateY(1px);
    }

    .btn.primary {
        background: var(--red);
        color: var(--white);
        border-color: var(--black);
    }

        .btn.primary:hover {
            background: var(--accent);
        }

    .btn.ghost {
        background: transparent;
        color: var(--white);
        border-color: var(--white);
    }

        .btn.ghost:hover {
            background: var(--white);
            color: var(--black);
        }

/* Fix ghost button visibility in phone mock (white background) */
.screen .btn.ghost {
    background: transparent;
    color: var(--black);
    border-color: var(--black);
}

    .screen .btn.ghost:hover {
        background: var(--black);
        color: var(--white);
    }

.btn.small {
    padding: 8px 12px;
    font-size: 12px;
}

/* Fix: Ensure nav button has proper contrast and visibility */
.nav .btn.small {
    background: var(--red);
    color: var(--white);
    border-color: var(--black);
}

    .nav .btn.small:hover {
        background: var(--accent);
        color: var(--white);
    }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 2px solid var(--black);
    border-radius: 999px;
    padding: 6px 12px;
    color: var(--black);
    font-size: 13px;
    font-weight: 600;
}

/* Hero - Full screen */
.hero {
    min-height: 100vh;
    min-height: 100dvh; /* Use dynamic viewport height on mobile */
    padding: 0;
    background: var(--outer-bg);
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px; /* Add padding to prevent language selector overlap */
}

.hero-container {
    width: 80%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px 60px; /* Add bottom padding for scroll indicator */
}

.hero-brand {
    display: flex;
    align-items: center;
    justify-content: center; /* Center the image */
    gap: 16px;
    flex-shrink: 0; /* Prevent logo from shrinking */
}

    .hero-brand img {
        width: clamp(200px, 20vw, 250px); /* More responsive sizing */
        height: auto;
        display: block;
        max-width: 90vw; /* Ensure it doesn't overflow on small screens */
    }

    .hero-brand .wordmark {
        font-family: var(--font-display);
        font-weight: 600;
        font-size: 32px;
        color: var(--red);
    }

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    align-items: center;
}

/* Hero copy section with logo on left */
.hero-copy {
    padding: 20px;
    display: flex;
    gap: 32px;
    align-items: center; /* Center vertically with text */
}

.hero-content {
    flex: 1;
    max-width: 500px;
}

.kicker {
    color: var(--white);
    font-weight: 600;
    letter-spacing: .3px;
    text-transform: uppercase;
    font-size: 12px;
    opacity: 0.8;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(32px, 6vw, 48px);
    line-height: 1.05;
    margin: 10px 0 16px;
    color: var(--white);
    font-weight: 600;
}

.grad {
    color: var(--red);
}

.subtitle {
    color: var(--white);
    font-size: 20px;
    opacity: 0.9;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin: 28px 0 16px;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    opacity: 0.7;
    font-size: 14px;
    text-align: center;
    animation: bounce 2s infinite;
    transition: opacity 0.5s ease;
    z-index: 5; /* Ensure it's positioned correctly */
}

    .scroll-indicator.hidden {
        opacity: 0;
        pointer-events: none;
    }

    .scroll-indicator::after {
        /* Use the downwards arrow glyph per request */
        content: "\2193"; /* ↓ */
        display: block;
        font-size: 24px;
        margin-top: 8px;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", sans-serif; /* Use system fonts for better Unicode support */
    }

/* Fallback if this fails, try the triangle glyph */
@supports not (content: "\2193") {
    .scroll-indicator::after {
        content: "\25BC"; /* ▼ */
    }
}

/* Alternative fallback using a different approach */
.scroll-indicator::before {
    content: "";
    display: none;
}

/* If Unicode arrows fail, we can use CSS borders to create an arrow */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .scroll-indicator::after {
        content: "";
        width: 0;
        height: 0;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-top: 12px solid var(--white);
        margin: 8px auto 0;
        display: block;
        font-size: 0;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Sections - Now minimum 60vh height */
.section {
    min-height: 60vh;
    padding: var(--section-padding) 0;
    background: var(--white);
    display: flex;
    align-items: center;
}

.section-inner {
    width: 100%;
}

.section-header {
    margin-bottom: 48px;
    text-align: center;
}

.section h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 42px);
    margin: 0 0 16px;
    color: var(--red);
    font-weight: 600;
}

.section-sub {
    color: var(--black);
    opacity: 0.8;
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* How it works section - special styling */
.how-section {
    background: linear-gradient(135deg, var(--white) 0%, #f8f8f8 100%);
    position: relative;
}

    .how-section::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--gradient-bg);
    }

/* Step cards with enhanced design */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 24px;
}

.step-card {
    background: var(--white);
    border: 3px solid var(--black);
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

    .step-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--gradient-bg);
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }

    .step-card:hover::before {
        transform: scaleX(1);
    }

    .step-card:hover {
        transform: translateY(-8px);
        box-shadow: 8px 12px 0 var(--black);
    }

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--red);
    color: var(--white);
    border-radius: 50%;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 20px;
    border: 3px solid var(--black);
}

.step-card h3 {
    font-family: var(--font-display);
    margin: 0 0 12px;
    color: var(--black);
    font-weight: 600;
    font-size: 22px;
}

.step-card p {
    margin: 0;
    color: var(--black);
    line-height: 1.7;
    font-size: 16px;
    opacity: 0.9;
}

.step-features {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tag {
    background: rgba(215, 32, 24, 0.1);
    color: var(--red);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

/* Environment cards with enhanced styling */
.env-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.env-card {
    background: var(--white);
    border: 3px solid var(--black);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

    .env-card:hover {
        transform: translateY(-6px);
        box-shadow: 6px 10px 0 var(--black);
    }

.env-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
    border: 3px solid var(--black);
}

.env-card h3 {
    font-family: var(--font-display);
    margin: 0 0 8px;
    color: var(--black);
    font-weight: 600;
    font-size: 20px;
}

.tagline {
    color: var(--red);
    margin: 0 0 12px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.env-card p {
    margin: 0;
    color: var(--black);
    line-height: 1.6;
    opacity: 0.9;
}

/* Games section enhanced */
.games-section {
    background: var(--outer-bg);
    color: var(--white);
}

    .games-section h2 {
        color: var(--white);
    }

    .games-section .section-sub {
        color: var(--white);
    }

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.game-card {
    background: var(--white);
    border: 3px solid var(--black);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    user-select: none;
    position: relative;
}

    .game-card:hover {
        transform: translateY(-6px);
        box-shadow: 6px 10px 0 var(--black);
    }

    .game-card h3 {
        font-family: var(--font-display);
        margin: 0 0 12px;
        color: var(--black);
        font-weight: 600;
        font-size: 22px;
    }

    .game-card p {
        margin: 0 0 20px;
        color: var(--black);
        line-height: 1.6;
        opacity: 0.9;
    }

.status {
    font-size: 12px;
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
    font-weight: 700;
    border: 2px solid var(--black);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .status.live {
        background: var(--red);
        color: var(--white);
    }

    .status.soon {
        background: var(--white);
        color: var(--black);
    }

.roadmap {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 40px;
    justify-content: center;
}

.chip {
    border: 2px dashed var(--white);
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--white);
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    user-select: none;
    transition: all 0.2s ease;
}

    .chip:hover {
        background: rgba(255, 255, 255, 0.1);
        border-style: solid;
    }

/* CTA / Newsletter enhanced */
.cta-block {
    background: var(--outer-bg);
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.cta-inner {
    background: var(--white);
    border: 4px solid var(--black);
    border-radius: 24px;
    padding: 48px 32px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    width: 100%;
}

    .cta-inner::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 6px;
        background: var(--gradient-bg);
    }

    .cta-inner h2 {
        font-family: var(--font-display);
        color: var(--red);
        margin-bottom: 16px;
        font-weight: 600;
        font-size: clamp(24px, 4vw, 32px);
    }

    .cta-inner p {
        color: var(--black);
        margin-bottom: 32px;
        font-size: 18px;
        opacity: 0.9;
    }

.cta-form {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.input {
    min-width: 280px;
    flex: 1;
    max-width: 400px;
    padding: 14px 18px;
    border-radius: var(--radius);
    border: 3px solid var(--black);
    background: var(--white);
    color: var(--black);
    outline: none;
    font-weight: 600;
    font-family: var(--font-ui);
    font-size: 16px;
    transition: all 0.2s ease;
}

    .input:focus {
        box-shadow: 0 0 0 3px rgba(215, 32, 24, 0.2);
        border-color: var(--red);
    }

.toast {
    margin-top: 16px;
    color: var(--red);
    font-weight: 600;
    padding: 12px 24px;
    background: rgba(215, 32, 24, 0.1);
    border-radius: var(--radius);
    border: 2px solid rgba(215, 32, 24, 0.2);
}

/* Footer */
footer {
    border-top: 3px solid var(--black);
    padding: 32px 0;
    margin-top: 0px;
    background: var(--outer-bg);
}

.foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

    .foot .brand img {
        width: 28px;
        height: 28px;
        display: block;
    }

.footer-content {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.social-links {
    display: flex;
    gap: 16px;
    align-items: center;
}

    .social-links a {
        color: var(--white);
        opacity: 0.8;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .social-links a:hover {
            opacity: 1;
            color: var(--red);
            transform: translateY(-2px);
        }

        .social-links a svg {
            width: 24px;
            height: 24px;
        }

.links {
    display: flex;
    gap: 24px;
    align-items: center;
}

    .links a {
        color: var(--white);
        opacity: 0.8;
        font-weight: 400;
        transition: all 0.2s ease;
        font-size: 16px;
    }

        .links a:hover {
            opacity: 1;
            color: var(--red);
        }

.muted {
    color: var(--white);
    opacity: 0.7;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: .8s ease;
}

    .reveal.in {
        opacity: 1;
        transform: none;
    }

/* Phone mock */
.phone {
    width: 320px;
    height: 620px;
    border-radius: 36px;
    padding: 14px;
    background: var(--black);
    border: 4px solid var(--black);
    box-shadow: var(--shadow-lg);
    margin: 0 auto;
}

.phone-notch {
    width: 40%;
    height: 18px;
    background: var(--outer-bg);
    border-radius: 0 0 12px 12px;
    margin: 0 auto 10px;
}

.screen {
    height: calc(100% - 28px);
    border-radius: 28px;
    background: var(--white);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.screen-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    color: var(--black);
}

    .screen-header img {
        width: 24px;
        height: 24px;
        display: block;
    }

.screen-card {
    background: var(--white);
    border: 3px solid var(--black);
    padding: 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.prompt {
    font-size: 16px;
    line-height: 1.35;
    color: var(--black);
}

.screen-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.screen-footer {
    color: var(--black);
    font-size: 12px;
    opacity: .7;
}

/* Responsive */

@media (max-width: 1400px) {
    .hero-container {
        width: 100%;
    }
}

@media (max-width: 980px){
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Switch to vertical layout on smaller screens */
    .hero-copy {
        flex-direction: column;
        gap: 24px;
        align-items: center;
        text-align: center;
        padding: 0;
    }

    .hero-brand img {
        width: clamp(200px, 60vw, 280px); /* Responsive sizing for mobile */
        max-width: 85vw;
    }

    .hero-brand .wordmark {
        font-size: 28px;
    }

    .hero-container {
        width: 100%;
        padding: 32px 20px;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .badges {
        justify-content: center;
    }

    .steps-grid, .env-grid, .game-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .nav .hide-sm {
        display: none;
    }

    .cta-form {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .input {
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }

    .phone {
        width: 280px;
        height: 540px;
    }

    /* Adjust logo sizes for mobile */
    .brand img {
        width: 28px;
        height: 28px;
    }

    .foot .brand img {
        width: 24px;
        height: 24px;
    }

    /* Reduce shadows on mobile for lighter feel */
    .step-card, .env-card, .game-card, .btn, .cta-inner, .phone {
        box-shadow: 2px 2px 0 var(--black);
    }

        .step-card:hover, .env-card:hover, .game-card:hover, .btn:hover {
            box-shadow: 4px 4px 0 var(--black);
        }

    /* Adjust section padding for mobile */
    .section {
        min-height: 50vh;
        padding: max(40px, 6vh) 0;
    }

    /* Language selector mobile adjustments */
    .hero-language {
        top: 16px; /* Reduced top position */
    }

    .language-btn {
        padding: 12px 12px;
        min-width: 70px;
        font-size: 13px;
    }

    .language-options {
        min-width: 100px;
    }

    /* Adjust hero padding for mobile */
    .hero {
        padding-top: 70px; /* Reduced padding for mobile */
    }

    .hero-container {
        width: 100%;
        padding: 20px 20px 80px; /* Increased bottom padding for scroll indicator */
    }

    /* Scroll indicator adjustments for mobile */
    .scroll-indicator {
        bottom: 32px;
        font-size: 12px;
    }

    .scroll-indicator::after {
        font-size: 20px;
    }
}

@media (max-width: 640px) {
    /* Hide wordmark text in topbar on small screens */
    .topbar .wordmark {
        display: none;
    }

    /* Further adjustments for very small screens */
    .hero {
        padding-top: 65px; /* Adjusted for very small screens */
        min-height: 100vh; /* Ensure full viewport height */
    }

    .hero-container {
        padding: 16px 16px 90px; /* More bottom padding for scroll indicator clearance */
    }

    .hero-grid {
        gap: 24px; /* Reduced gap between grid items */
    }

    .hero-copy {
        gap: 20px; /* Tighter gap between logo and content */
        padding: 0;
    }

    .hero-brand img {
        width: clamp(160px, 50vw, 200px); /* Even more responsive on small screens */
        max-width: 80vw;
        margin-bottom: 8px; /* Add small margin to separate from content */
    }

    /* Language selector for very small screens */
    .hero-language {
        top: 12px; /* Position closer to top edge */
    }

    /* Scroll indicator for very small screens */
    .scroll-indicator {
        bottom: 24px;
        font-size: 12px;
    }

        .scroll-indicator::after {
            font-size: 20px;
            margin-top: 6px;
        }

    .footer-content {
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
    }

    .links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 16px;
    }
}

@media (max-width: 380px) {
    .topbar .wordmark {
        display: none;
    }

    .hero {
        padding-top: 60px;
    }

    .hero-container {
        padding: 12px 12px 100px; /* Extra bottom padding */
    }

    .hero-language {
        top: 10px;
    }

    .language-btn {
        padding: 10px 10px;
        min-width: 55px;
        font-size: 11px;
    }

    .scroll-indicator {
        bottom: 20px;
        font-size: 11px;
    }

        .scroll-indicator::after {
            font-size: 18px;
        }

    .phone {
        width: 260px;
        height: 500px;
    }

    .hero-brand img {
        width: clamp(140px, 45vw, 180px);
        max-width: 75vw;
    }

    .hero h1 {
        font-size: clamp(28px, 5.5vw, 40px);
    }

    .subtitle {
        font-size: 16px;
    }

    .hero-actions {
        gap: 12px;
    }

    .btn {
        padding: 10px 12px;
        font-size: 14px;
    }

    .badge {
        padding: 5px 10px;
        font-size: 11px;
    }
}

/* ========================================
   Blog-specific styles - Added at end to avoid conflicts
   ======================================== */

/* Blog section on main page - lighter topbar border */
.topbar.visible {
    border-bottom-color: rgba(250, 246, 242, 0.2);
}

/* Blog section styling on main pages */
.blog-section {
    background: var(--outer-bg);
    color: var(--white);
}

.blog-section h2 {
    color: var(--white);
}

.blog-section .section-sub {
    color: var(--white);
}

/* Blog "See all posts" button styling */
.blog-section .btn.ghost {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.blog-section .btn.ghost:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

/* ========================================
   FAQ Section Styles
   ======================================== */

.faq-section {
    background: var(--white);
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    background: var(--white);
    border: 3px solid var(--black);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    background: var(--white);
    border: none;
    padding: 10px 12px;
    text-align: left;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 18px;
    color: var(--black);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
}

.faq-question:hover {
    background: rgba(215, 32, 24, 0.05);
}

.faq-question[aria-expanded="true"] {
    background: rgba(215, 32, 24, 0.1);
    color: var(--red);
}

.faq-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 300;
    color: var(--red);
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 12px 24px 24px 24px;
}

.faq-answer p {
    margin: 0;
    line-height: 1.8;
    color: var(--black);
    opacity: 0.9;
    font-size: 16px;
}

/* Mobile adjustments for FAQ */
@media (max-width: 768px) {
    .faq-question {
        padding: 16px 20px;
        font-size: 16px;
    }

    .faq-icon {
        width: 28px;
        height: 28px;
        font-size: 20px;
    }

    .faq-item.active .faq-answer {
        padding: 0 20px 20px 20px;
    }

    .faq-answer p {
        font-size: 15px;
    }
}
