/* ==========================================================================
   CARPASS Style System - Premium Landing Page CSS (Light Theme - 1Fit Style)
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* CSS Variables for design tokens */
:root {
    /* Brand HSL Colors - Blue, White, Orange */
    --primary-hue: 205; /* Royal Blue */
    --primary: hsl(var(--primary-hue), 76%, 50%); /* #1E8FE1 */
    --primary-hover: hsl(var(--primary-hue), 79%, 40%); /* #1574B8 */
    --primary-glow: hsla(var(--primary-hue), 76%, 50%, 0.1);
    
    --accent-hue: 19; /* Vibrant Orange */
    --accent: hsl(var(--accent-hue), 90%, 54%); /* #F26522 */
    --accent-hover: hsl(var(--accent-hue), 90%, 43%); /* #C94E10 */
    --accent-glow: hsla(var(--accent-hue), 90%, 54%, 0.12);
    
    /* Backgrounds & Neutral Shades - LIGHT THEME */
    --bg-dark: hsl(210, 30%, 98%); /* Soft off-white / light blue: #fafbfd */
    --bg-card: #ffffff;            /* Pure White card backgrounds */
    --bg-header: rgba(250, 251, 253, 0.85);
    --border-color: rgba(0, 0, 0, 0.08); /* Subtle grey border */
    --border-glow: hsla(var(--accent-hue), 90%, 54%, 0.2);
    
    /* Text Colors */
    --text-primary: hsl(222, 47%, 11%); /* Deep dark slate: #0f172a */
    --text-secondary: hsl(215, 20%, 35%); /* Soft dark slate: #475569 */
    --text-muted: hsl(215, 15%, 55%);
    
    /* Spacing & Layout */
    --container-max-width: 1100px;
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --border-radius-sm: 10px;
    
    /* Transitions */
    --transition-smooth: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base Styles & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

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

/* Decorative background glowing spots (subtle for light mode) */
.glow-spot-1 {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, hsla(var(--primary-hue), 76%, 50%, 0.06) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    z-index: -1;
    pointer-events: none;
}

.glow-spot-2 {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, hsla(var(--accent-hue), 90%, 54%, 0.03) 0%, transparent 70%);
    top: 600px;
    left: -200px;
    z-index: -1;
    pointer-events: none;
}

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

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

.logo-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 1.6rem;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.logo-car {
    color: var(--accent);
    font-weight: 900;
}

.logo-pass {
    color: var(--primary);
    font-weight: 900;
}

.logo-group:hover {
    opacity: 0.9;
}

.logo-img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.nav-menu a {
    position: relative;
    padding: 0.25rem 0;
}

.nav-menu a:hover {
    color: var(--text-primary);
}

.nav-menu a.active {
    color: var(--primary);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    border-radius: 2px;
}

/* Language Switcher (Inline Row Style: қаз рус eng) */
.lang-switcher {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-left: 1.25rem;
}

.lang-btn {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
    user-select: none;
    text-transform: lowercase;
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    color: var(--accent); /* Brand Orange color */
    font-weight: 800;
}

/* Language Visibility System */
[lang-content] {
    display: none;
}
body[data-lang="en"] [lang-content="en"] {
    display: block;
}
body[data-lang="en"] span[lang-content="en"] {
    display: inline;
}
body[data-lang="ru"] [lang-content="ru"] {
    display: block;
}
body[data-lang="ru"] span[lang-content="ru"] {
    display: inline;
}
body[data-lang="kk"] [lang-content="kk"] {
    display: block;
}
body[data-lang="kk"] span[lang-content="kk"] {
    display: inline;
}

/* Hero Section */
.hero-section {
    padding: 11rem 2rem 7rem 2rem;
    position: relative;
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 5rem;
    align-items: center;
}

.hero-text-block {
    display: flex;
    flex-direction: column;
}

.badge {
    align-self: flex-start;
    background-color: var(--primary-glow);
    color: var(--primary);
    border: 1px solid rgba(30, 143, 225, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-title span {
    background: linear-gradient(135deg, var(--accent) 0%, #ff8c42 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 520px;
    font-weight: 400;
}

.store-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-store {
    background-color: #000;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.btn-store svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

.btn-store:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.btn-store-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.btn-store-text span:first-child {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.btn-store-text span:last-child {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.hero-image-block {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup-container {
    position: relative;
    max-width: 360px;
    width: 100%;
}

.phone-shadow {
    position: absolute;
    width: 80%;
    height: 85%;
    bottom: -5%;
    left: 10%;
    background: radial-gradient(ellipse at bottom, rgba(0, 0, 0, 0.08) 0%, transparent 60%);
    filter: blur(20px);
    z-index: -1;
}

.phone-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 6px solid #e2e8f0; /* Clean light border */
    box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.18);
    transition: var(--transition-smooth);
}

.phone-img:hover {
    transform: translateY(-5px) scale(1.02);
}

/* Feature Grid Section */
.section-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 6rem 2rem;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 3rem 2.25rem;
    border-radius: var(--border-radius-lg);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.02);
}

.feature-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 0 1px var(--accent);
}

.feature-icon-wrapper {
    width: 56px;
    height: 56px;
    background-color: var(--accent-glow);
    border: 1px solid rgba(242, 101, 34, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--accent);
}

.feature-icon-wrapper svg {
    width: 26px;
    height: 26px;
}

.feature-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

/* Product Showcase / App Screens */
.showcase-slider {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.screen-card {
    text-align: center;
}

.screen-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 6px solid #e2e8f0; /* Light border */
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.15);
    margin-bottom: 1.5rem;
    background-color: #f8fafc;
}

.screen-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition-smooth);
}

.screen-wrapper:hover img {
    transform: scale(1.05);
}

.screen-card h4 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

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

/* legal support template container */
.legal-container {
    max-width: 800px;
    margin: 8rem auto 4rem auto;
    padding: 0 2rem;
}

.legal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 4rem 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.02);
}

.legal-card h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.legal-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.legal-card h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 2.5rem 0 1.25rem 0;
}

.legal-card ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.legal-card li {
    margin-bottom: 0.5rem;
}

/* Contact Support Grid */
.support-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 4rem;
    margin-top: 2rem;
}

.contact-info-block {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.25rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background-color: var(--primary-glow);
    border: 1px solid rgba(30, 143, 225, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-text h4 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.contact-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    white-space: pre-line;
}

/* Contact Form styling */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.form-control {
    background-color: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color);
    padding: 0.85rem 1.25rem;
    border-radius: var(--border-radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(30, 143, 225, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    background-color: var(--accent); /* Orange button */
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-md);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    align-self: flex-start;
}

.btn-submit:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--accent-glow);
}

/* Footer Section (Light Minimalist Style) */
footer {
    background-color: hsl(210, 30%, 95%); /* Very soft light grey background */
    border-top: 1px solid var(--border-color);
    padding: 5rem 2rem 3rem 2rem;
    margin-top: 8rem;
}

.footer-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-company h3 {
    margin-bottom: 1rem;
}

.footer-company p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 320px;
}

.footer-links h4 {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

/* Mobile Navigation Toggle Button */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    margin-left: 1.25rem;
}

.nav-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* Rotate lines on active */
.nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Responsive Breakpoints */
@media (max-width: 968px) {
    .nav-container {
        padding: 0.6rem 1.25rem;
    }
    
    .logo-group {
        font-size: 1.25rem;
        gap: 0.5rem;
    }
    
    .logo-img {
        width: 28px;
        height: 28px;
    }

    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--bg-card);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.08);
        transition: var(--transition-smooth);
        z-index: 1000;
        padding: 3rem 2rem;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu a {
        font-size: 1.2rem;
        font-weight: 600;
    }
    
    .nav-menu a.active::after {
        bottom: -6px;
    }

    .hero-section {
        grid-template-columns: 1fr;
        padding-top: 8rem;
        padding-bottom: 4rem;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-text-block {
        align-items: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-desc {
        font-size: 1.05rem;
        margin-bottom: 2rem;
    }
    
    .store-buttons {
        justify-content: center;
        gap: 0.75rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 2.5rem 1.75rem;
    }
    
    .showcase-slider {
        grid-template-columns: 1fr;
        max-width: 340px;
        margin: 0 auto;
        gap: 3rem;
    }
    
    .support-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-section {
        padding-top: 7rem;
    }
    
    .btn-store {
        width: 100%;
        justify-content: center;
    }
}
