/* =================================
   VROOM Landing Page - Pixel Perfect CSS
   Based on Figma Design
   ================================= */

:root {
    /* Colors - Exact from Figma */
    --primary-purple: #8B2E8F;
    --light-purple: #F3E8FF;
    --very-light-purple: #F9F5FF;
    --dark-purple: #6B1B6F;
    --purple-gradient: linear-gradient(135deg, #8B2E8F 0%, #A84BAD 50%, #C168C7 100%);
    
    /* Text Colors */
    --text-primary: #1A1A1A;
    --text-secondary: #6B6B6B;
    --text-light: #9B9B9B;
    
    /* Background Colors */
    --bg-white: #FFFFFF;
    --bg-gray: #F8F8F8;
    --bg-light: #FAFAFA;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.1);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

/* =================================
   Reset & Base Styles
   ================================= */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

/* =================================
   Container & Layout
   ================================= */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* =================================
   Header & Navigation
   ================================= */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    padding: 18px 0;
    transition: var(--transition);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 36px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 48px;
    align-items: center;
}

.nav-menu a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    position: relative;
    padding: 8px 0;
    transition: var(--transition);
}

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

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-purple);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-close {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1003;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--bg-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.mobile-menu-close.active {
    display: flex;
}

/* =================================
   Hero Section
   ================================= */

.hero {
    padding: 100px 0 120px;
    background: linear-gradient(180deg, #F9F5FF 0%, #FAFAFA 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-text {
    max-width: 580px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    background: var(--primary-purple);
    color: var(--bg-white);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

.badge.purple {
    background: var(--primary-purple);
}

.badge.white {
    background: var(--bg-white);
    color: var(--primary-purple);
}

.badge.badge-light {
    background: #E8D4F8;
    color: var(--primary-purple);
}

.hero-text h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 32px;
}

.app-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.app-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: #000000;
    color: var(--bg-white);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.app-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.app-button.apple {
    background: #000000;
}

.app-button.google {
    background: #000000;
}

.app-button svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.app-button div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.app-button span {
    font-size: 10px;
    opacity: 0.85;
    font-weight: 400;
}

.app-button strong {
    font-size: 15px;
    font-weight: 600;
}

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

.phone-mockup {
    max-width: 380px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.15));
    animation: float 6s ease-in-out infinite;
}

/* =================================
   Features Section
   ================================= */

.features-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.features-section.gray-bg {
    background: var(--bg-gray);
}

.features-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.features-content.reverse {
    direction: rtl;
}

.features-content.reverse > * {
    direction: ltr;
}

.features-image {
    display: flex;
    justify-content: center;
}

.features-text {
    max-width: 540px;
}

.features-text h2 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 20px 0 24px;
    color: var(--text-primary);
}

.features-text p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.text-center {
    text-align: center;
    margin-bottom: 64px;
}

.text-center h2 {
    font-size: 42px;
    font-weight: 700;
    margin: 20px 0 16px;
    letter-spacing: -0.01em;
}

.subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin-top: 12px;
    font-weight: 400;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    gap: 32px;
    margin-top: 64px;
}

.features-grid-bottom {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    margin-top: 32px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid-bottom .feature-card {
    flex: 1;
}

.feature-card {
    background: var(--bg-white);
    padding: 36px 28px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-card.center {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: transparent;
    box-shadow: none;
    border: none;
}

.feature-phone {
    max-width: 340px;
    width: 100%;
    filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.15));
}

.feature-icon {
    margin-bottom: 20px;
}

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

.feature-card h3 {
    font-size: 19px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-secondary);
}

/* =================================
   Business Section
   ================================= */

.business-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #F3E8FF 0%, #E8D4FF 100%);
    position: relative;
    overflow: hidden;
}

.business-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(139, 46, 143, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.business-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.business-text {
    max-width: 520px;
}

.business-text h2 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 20px 0 16px;
}

.gradient-text {
    background: var(--purple-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.business-text p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 20px 0 36px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    padding: 16px 44px;
    background: var(--primary-purple);
    color: var(--bg-white);
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(139, 46, 143, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 46, 143, 0.4);
    background: var(--dark-purple);
}

.business-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.stats-card {
    position: absolute;
    bottom: 40px;
    right: 20px;
    background: var(--bg-white);
    padding: 20px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    gap: 24px;
    align-items: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-icon {
    font-size: 24px;
}

.stat-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-purple);
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: #E5E5E5;
}

/* =================================
   News Section
   ================================= */

.news-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.section-header {
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.news-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.news-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: var(--bg-gray);
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 24px 28px 28px;
}

.news-content h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text-light);
}

.author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.date {
    font-size: 13px;
    color: var(--text-light);
}

/* =================================
   CTA Section
   ================================= */

.cta-section {
    padding: 100px 0;
    background: var(--purple-gradient);
    color: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.cta-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.cta-text h2 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 20px 0 16px;
}

.cta-text p {
    font-size: 17px;
    line-height: 1.7;
    opacity: 0.95;
    margin-bottom: 36px;
}

.cta-section .app-button {
    background: var(--bg-white);
    color: var(--text-primary);
}

.cta-section .app-button:hover {
    background: rgba(255, 255, 255, 0.95);
}

/* =================================
   Footer
   ================================= */

.footer {
    background: var(--text-primary);
    color: var(--bg-white);
    padding: 64px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo img {
    height: 36px;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.copyright {
    font-size: 14px;
    opacity: 0.7;
    margin-top: 8px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.footer-column a {
    font-size: 16px;
    opacity: 0.85;
    transition: var(--transition);
}

.footer-column a:hover {
    opacity: 1;
    color: var(--light-purple);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-purple);
    transform: translateY(-2px);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 14px;
    opacity: 0.7;
}

.footer-nav {
    display: flex;
    gap: 32px;
}

.footer-nav a {
    font-size: 14px;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-nav a:hover {
    opacity: 1;
}

/* =================================
   Legal Pages
   ================================= */

.legal-section {
    padding: 80px 0 120px;
    background: var(--bg-white);
}

.legal-content {
    max-width: 860px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.last-updated {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 56px;
}

.legal-block {
    margin-bottom: 56px;
}

.legal-block h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.legal-block h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 32px 0 16px;
}

.legal-block p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.legal-block ul {
    list-style: disc;
    margin-left: 24px;
    margin-bottom: 20px;
}

.legal-block li {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.legal-block a {
    color: var(--primary-purple);
    font-weight: 500;
    transition: var(--transition);
}

.legal-block a:hover {
    text-decoration: underline;
}

.legal-block strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* =================================
   Animations
   ================================= */

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =================================
   Responsive Design - Tablet
   ================================= */

@media (max-width: 1024px) {
    .container {
        padding: 0 32px;
    }

    .hero-text h1 {
        font-size: 44px;
    }

    .features-text h2,
    .business-text h2,
    .section-header h2,
    .cta-text h2,
    .text-center h2 {
        font-size: 36px;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .feature-card.center {
        grid-column: 1 / -1;
    }

    .features-grid-bottom {
        flex-direction: column;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content,
    .features-content,
    .business-content,
    .cta-content {
        gap: 60px;
    }
}

/* =================================
   Responsive Design - Mobile
   ================================= */

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    /* Header Mobile */
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, #8B2E8F 0%, #A84BAD 100%);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 60px 40px;
        gap: 0;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        opacity: 0;
        visibility: hidden;
        z-index: 1002;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .nav-menu li:first-child {
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

    .nav-menu a {
        display: block;
        padding: 20px 24px;
        font-size: 18px;
        font-weight: 500;
        color: var(--bg-white);
        transition: var(--transition);
    }

    .nav-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--bg-white);
    }

    .nav-menu a::after {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active {
        opacity: 0;
        pointer-events: none;
    }

    /* Hero Mobile */
    .hero {
        padding: 60px 0 80px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .app-buttons {
        justify-content: center;
    }

    .phone-mockup {
        max-width: 300px;
    }

    /* Features Mobile */
    .features-section {
        padding: 60px 0;
    }

    .features-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .features-content.reverse {
        direction: ltr;
    }

    .features-text {
        max-width: 100%;
        text-align: center;
    }

    .features-text h2,
    .business-text h2,
    .section-header h2,
    .cta-text h2,
    .text-center h2 {
        font-size: 32px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .feature-card.center {
        grid-column: 1;
    }

    .features-grid-bottom {
        flex-direction: column;
        gap: 24px;
    }

    /* Business Mobile */
    .business-section {
        padding: 80px 0;
    }

    .business-content {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .business-text {
        max-width: 100%;
    }

    .business-image {
        order: -1;
    }

    .stats-card {
        bottom: 20px;
        right: 50%;
        transform: translateX(50%);
        padding: 16px 20px;
    }

    /* News Mobile */
    .news-section {
        padding: 60px 0;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* CTA Mobile */
    .cta-section {
        padding: 60px 0;
    }

    .cta-content {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .cta-text p {
        margin-bottom: 32px;
    }

    /* Footer Mobile */
    .footer {
        padding: 48px 0 24px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-column:first-child {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    /* Legal Mobile */
    .legal-content h1 {
        font-size: 36px;
    }

    .legal-block h2 {
        font-size: 26px;
    }

    .legal-block h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 30px;
    }

    .features-text h2,
    .business-text h2,
    .section-header h2,
    .cta-text h2,
    .text-center h2 {
        font-size: 28px;
    }

    .app-buttons {
        flex-direction: column;
        width: 100%;
    }

    .app-button {
        width: 100%;
        justify-content: center;
    }

    .phone-mockup {
        max-width: 280px;
    }

    .stats-card {
        padding: 12px 16px;
        gap: 16px;
    }

    .stat-value {
        font-size: 18px;
    }
}

/* =================================
   Accessibility & Focus States
   ================================= */

a:focus,
button:focus {
    outline: 2px solid var(--primary-purple);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =================================
   Print Styles
   ================================= */

@media print {
    .header,
    .footer,
    .app-buttons,
    .cta-section,
    .mobile-menu-toggle {
        display: none;
    }

    body {
        background: white;
    }

    .features-section,
    .business-section,
    .news-section {
        background: white;
    }
}
