:root {
    --primary: #FF0000;
    --primary-dark: #CC0000;
    --bg-light: #F5F5F7;
    --bg-card: #FFFFFF;
    --text-main: #1D1D1F;
    --text-muted: #6E6E73;
    --glass: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.1);
    --accent: #FF3B30;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    hyphens: manual;
    font-size: 15px;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -1.5px;
    padding-top: 5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo img {
    transition: opacity 0.3s;
}

.logo img:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.lang-switch {
    display: flex;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.05);
    padding: 4px;
    border-radius: 20px;
}

.lang-btn {
    padding: 4px 14px;
    border-radius: 16px;
    font-size: 0.75rem;
    text-decoration: none;
    color: var(--text-muted);
    transition: all 0.3s;
    font-weight: 600;
}

.lang-btn.active {
    background: var(--primary);
    color: white;
}

/* Hero Section */
.hero {
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 1.5rem 2rem !important;
    background: radial-gradient(circle at 50% 50%, rgba(255, 0, 0, 0.03) 0%, rgba(245, 245, 247, 1) 100%);
}

.hero-content h1 {
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -3px;
    color: var(--text-main);
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.4rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
    font-weight: 400;
}

.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15rem;
    border: none !important;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(255, 0, 0, 0.1);
}

.btn:hover {
    background: var(--primary-dark);
    box-shadow: 0 10px 20px rgba(255, 0, 0, 0.2);
}

/* Sections */
section {
    padding: 6rem 2rem 3rem;
    /* Top padding clears header */
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    text-align: center;
    letter-spacing: -1px;
}

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

.card {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}



.card h3, 
.glass-card h3 {
    color: var(--primary);
    margin-bottom: 1.2rem;
    font-size: clamp(1.1rem, 4vw, 1.6rem); /* Responsive scaling */
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: break-word;
    white-space: normal;
    word-break: break-word;
    hyphens: auto;
}

.card p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Mission Section */
.mission {
    text-align: center;
    background: white;
    padding: 8rem 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.content-narrow {
    max-width: 800px;
    margin: 0 auto;
}

.mission-text {
    font-size: 1.6rem;
    color: var(--text-main);
    line-height: 1.5;
    font-weight: 500;
}

/* Onboarding */
.onboarding {
    background: var(--bg-light);
    padding: 3rem 2rem 6rem;
}

.interactive-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.interactive-card p {
    flex-grow: 1;
}

.interactive-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary) !important;
    color: var(--primary);
    margin-top: auto;
    box-shadow: none;
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 16px rgba(255, 0, 0, 0.15);
}

/* Services Preview */
.services-preview {
    padding: 8rem 2rem;
    text-align: center;
    background: white;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-top: -1.5rem;
    margin-bottom: 3rem;
}

.grid-small {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.service-chip {
    padding: 0.8rem 2rem;
    background: var(--bg-light);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    font-weight: 600;
    color: var(--text-main);
    transition: all 0.3s;
}

.service-chip:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.05);
}

.center-cta {
    margin-top: 2rem;
}

.text-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Footer */
footer {
    padding: 3rem 2rem;
    background: white;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-muted);
}

.menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0.5rem 1rem;
        gap: 0.5rem;
    }

    .logo-text {
        font-size: 2.2rem;
        letter-spacing: -1.5px;
    }

    .lang-switch {
        padding: 2px;
    }

    .lang-btn {
        padding: 4px 8px;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }

    .menu-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: var(--text-main);
        border-radius: 3px;
        transition: all 0.3s;
    }

    /* Hamburger Animation */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
        transition: right 0.3s ease;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        gap: 2rem;
    }

    .nav-links.active {
        right: 0;
        display: flex;
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 700;
        width: 100%;
        text-align: center;
    }

    .hero {
        padding-top: 4rem;
        /* Aligned with regular section padding to clear header */
        height: auto;
        min-height: 40vh;
        /* Keep the reduced min-height */
    }

    .hero-content p {
        margin-bottom: 1.5rem;
        /* Reduced from 3rem */
        font-size: 1.1rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
        letter-spacing: -1.5px;
        word-wrap: break-word;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .card h3,
    .glass-card h3 {
        font-size: clamp(1.1rem, 5vw, 1.3rem);
    }

    section {
        padding: 4rem 1.5rem 2rem;
    }
}

/* Hide number input spinners */
.no-spin::-webkit-inner-spin-button,
.no-spin::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.no-spin {
    -moz-appearance: textfield;
    appearance: none;
}