:root {
    --taxi-yellow: #FDB813;
    --asphalt: #111111;
    --rubber: #333333;
    --white: #FFFFFF;
    --border-thick: 4px solid var(--asphalt);
    --border-thin: 2px solid var(--asphalt);
    --shadow-hard: 8px 8px 0px var(--asphalt);
    --shadow-hover: 12px 12px 0px var(--asphalt);
}

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

body {
    background-color: var(--taxi-yellow);
    color: var(--asphalt);
    font-family: 'Space Mono', monospace;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Noise Texture Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Typography */
h1, h2, h3, .btn-text, .nav-link {
    font-family: 'Archivo Black', sans-serif;
    text-transform: uppercase;
}

/* Header */
.taxi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: var(--border-thick);
    background: var(--taxi-yellow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.top-logo {
    height: 40px;
    width: auto;
    filter: drop-shadow(2px 2px 0px rgba(0,0,0,0.2));
}

.version-badge {
    background: var(--asphalt);
    color: var(--taxi-yellow);
    padding: 0.2rem 0.6rem;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 2px;
}

.nav-link {
    text-decoration: none;
    color: var(--asphalt);
    font-size: 1.2rem;
    margin-left: 2rem;
    position: relative;
    transition: all 0.2s;
}

.nav-link:hover {
    background: var(--asphalt);
    color: var(--taxi-yellow);
    padding: 0.2rem 0.5rem;
    transform: skewX(-10deg);
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    min-height: 80vh;
    border-bottom: var(--border-thick);
    position: relative;
    overflow: hidden;
}

.hero-content {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: var(--border-thick);
    background: var(--taxi-yellow);
    z-index: 2;
}

.glitch-text {
    font-size: 7rem;
    line-height: 0.85;
    margin-bottom: 1.5rem;
    position: relative;
    letter-spacing: -4px;
}

.hero-sub {
    font-size: 1.5rem;
    max-width: 500px;
    margin-bottom: 3rem;
    font-weight: 700;
}

.cta-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background: var(--asphalt);
    color: var(--white);
    text-decoration: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border: 2px solid var(--asphalt);
    box-shadow: var(--shadow-hard);
    transition: all 0.2s cubic-bezier(0, 0, 0.2, 1);
    min-width: 250px;
}

.btn-primary:hover {
    transform: translate(-4px, -4px);
    box-shadow: var(--shadow-hover);
    background: var(--white);
    color: var(--asphalt);
}

.os-req {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Hero Visual & Mascot */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #fff 0%, var(--taxi-yellow) 70%);
}

.checker-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background-image: 
        linear-gradient(45deg, #000 25%, transparent 25%), 
        linear-gradient(-45deg, #000 25%, transparent 25%), 
        linear-gradient(45deg, transparent 75%, #000 75%), 
        linear-gradient(-45deg, transparent 75%, #000 75%);
    background-size: 40px 40px;
    background-position: 0 0, 0 20px, 20px -20px, -20px 0px;
    opacity: 0.1;
    z-index: 1;
}

.mascot-img {
    width: 80%;
    max-width: 500px;
    height: auto;
    z-index: 2;
    transform: rotate(5deg);
    filter: drop-shadow(15px 15px 0px rgba(0,0,0,0.2));
    transition: transform 0.1s ease-out;
}

.visual-badge {
    position: absolute;
    bottom: 50px;
    left: -50px;
    background: var(--white);
    border: var(--border-thick);
    padding: 1rem;
    transform: rotate(-10deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Archivo Black';
    font-size: 1.5rem;
    box-shadow: var(--shadow-hard);
    z-index: 3;
}

/* Marquee */
.marquee-container {
    background: var(--asphalt);
    color: var(--taxi-yellow);
    padding: 1rem 0;
    overflow: hidden;
    border-bottom: var(--border-thick);
}

.marquee-content {
    white-space: nowrap;
    animation: scroll 20s linear infinite;
    font-family: 'Archivo Black';
    font-size: 2rem;
}

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

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* border-bottom: var(--border-thick); */
}

.feature-card {
    padding: 4rem;
    border-right: var(--border-thick);
    border-bottom: var(--border-thick);
    position: relative;
    transition: background 0.3s;
}

.feature-card:hover {
    background: #fff;
}

.feature-card.large {
    grid-column: span 2;
    background: #fff;
}

.feature-card.large:hover {
    background: #fafafa;
}

.feature-card.dark {
    background: var(--asphalt);
    color: var(--white);
}

.feature-card.dark:hover {
    background: #000;
}

.feature-card h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-card p {
    font-size: 1.1rem;
    max-width: 400px;
}

/* Power Moves Grid */
.power-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.power-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.power-item p {
    font-size: 1rem;
    max-width: 100%;
    opacity: 0.8;
}

/* Final CTA */
.final-cta {
    padding: 8rem 2rem;
    text-align: center;
    background: var(--white);
    position: relative;
    border-bottom: var(--border-thick);
}

.ticket-border {
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 20px;
    background: radial-gradient(circle, transparent 50%, var(--white) 50%) top;
    background-size: 40px 40px;
    transform: rotate(180deg);
}

.final-cta h2 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.btn-huge {
    display: inline-block;
    margin-top: 3rem;
    background: var(--taxi-yellow);
    color: var(--asphalt);
    font-family: 'Archivo Black';
    font-size: 2rem;
    padding: 1.5rem 4rem;
    text-decoration: none;
    border: var(--border-thick);
    box-shadow: 15px 15px 0px var(--asphalt);
    transition: all 0.2s;
}

.btn-huge:hover {
    transform: translate(-5px, -5px);
    box-shadow: 20px 20px 0px var(--asphalt);
    background: var(--asphalt);
    color: var(--taxi-yellow);
}

/* Footer */
footer {
    background: var(--asphalt);
    color: var(--taxi-yellow);
    padding: 4rem 2rem;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.footer-grid a {
    color: var(--taxi-yellow);
    text-decoration: none;
}

.footer-grid .col.right a {
    margin-left: 2rem;
}

.bottom-stripes {
    height: 20px;
    background: repeating-linear-gradient(
        45deg,
        var(--taxi-yellow),
        var(--taxi-yellow) 20px,
        var(--asphalt) 20px,
        var(--asphalt) 40px
    );
}

/* Mobile Responsive */
@media (max-width: 900px) {
    /* RESET LAYOUTS */
    .taxi-header { 
        padding: 1rem; 
        flex-wrap: wrap; 
        gap: 0.5rem;
    }
    
    .logo-area {
        flex: 1 1 100%; /* Force logo to own line */
        justify-content: space-between; /* Space out logo and badge */
        margin-bottom: 0.5rem;
    }

    nav {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }

    .nav-link { 
        margin-left: 0; 
        font-size: 1rem;
        flex: 1;
        text-align: center;
        padding: 0.5rem;
        border: 2px solid var(--asphalt);
        background: #fff;
        margin-right: 0.5rem;
    }

    .nav-link:last-child {
        margin-right: 0;
    }
    
    /* HERO STACK */
    .hero { 
        grid-template-columns: 1fr; 
        min-height: auto;
    }
    
    .hero-content { 
        padding: 2rem 1.25rem; 
        border-right: none;
        border-bottom: var(--border-thick);
    }
    
    /* FLUID TYPOGRAPHY */
    .glitch-text { 
        font-size: 13vw; 
        line-height: 0.9; 
    }
    
    .hero-sub { 
        font-size: 1.1rem; 
    }

    h2 { 
        font-size: 8vw !important; /* Scale headers on mobile */
        word-break: break-word;
    }
    
    /* THUMB-FRIENDLY BUTTONS */
    .cta-container { 
        flex-direction: column; 
        width: 100%; 
        gap: 1.5rem; 
        align-items: flex-start;
    }
    
    .btn-primary { 
        width: 100%; 
        justify-content: center; 
        min-width: unset;
    }

    .btn-huge {
        width: 100%;
        padding: 1.5rem 1rem;
        font-size: 1.5rem;
    }
    
    /* COMPACT CARDS */
    .features-grid { 
        grid-template-columns: 1fr; 
    }
    
    .feature-card.large, .feature-card { 
        grid-column: span 1; 
        padding: 2rem 1.25rem;
        border-right: none;
    }

    /* Power Grid Mobile */
    .power-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .power-item p {
        font-size: 0.95rem;
    }

    /* Keep text white in dark cards on mobile */
    .feature-card.large[style*="background: var(--asphalt)"] p {
        color: #fff !important;
    }

    /* FIX F.TAXI TITLE ON MOBILE */
    .feature-card.large[style*="background: var(--asphalt)"] h2 {
        font-size: 15vw !important; /* Scale dynamically */
        margin-top: 1rem;
        line-height: 0.9;
    }

    /* Fix text clipping in f.taxi banner */
    .feature-card.large[style*="background: var(--asphalt)"] p[style*="text-transform: uppercase"] {
        white-space: normal !important; /* Allow wrapping */
        line-height: 1.2;
    }
    
    /* VISUALS */
    .hero-visual {
        height: auto; /* Allow height to adapt */
        min-height: 300px;
        padding: 2rem 0;
        overflow: hidden;
    }
    
    .mascot-img {
        width: 60%; /* Smaller width so it doesn't push badge out */
        max-width: 300px;
        transform: rotate(5deg) !important;
        margin-bottom: 2rem;
    }

    .visual-badge {
        bottom: 20px;
        left: 20px;
        transform: rotate(-5deg) scale(0.8);
    }

    /* FOOTER */
    .footer-grid { 
        flex-direction: column; 
        gap: 1.5rem; 
        text-align: center; 
    }
    
    .footer-grid .col.right a { 
        margin: 0 1rem; 
    }

    /* FINAL CTA */
    .final-cta {
        padding: 4rem 1.5rem;
    }

    .final-cta h2 {
        font-size: 2.5rem;
    }

    /* TERMS PAGE MOBILE OPTIMIZATION */
    .terms-container {
        padding: 0 1rem;
        margin: 2rem auto;
    }
    
    .terms-container h1 {
        font-size: 8vw !important; /* Smaller to fit CONDITIONS on one line */
        line-height: 1;
        word-break: normal; /* Don't break words awkwardly */
    }
}
