:root {
    --tesla-red: #e82127;
    --tesla-gray: #393c41;
    --tesla-light-gray: #f4f4f4;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.navbar {
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero {
    height: 100vh;
    background: url('https://digitalassets.tesla.com/tesla-contents/image/upload/f_auto,q_auto/Homepage-Model-3-Desktop-US.png') center/cover;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 120px;
}

.hero-content {
    max-width: 800px;
    padding: 1.5rem;
    border-radius: 15px;
}

.hero h1 {
    margin-bottom: 1.5rem;
    color: #171a20;
    font-weight: 600;
}

.hero .lead {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #393c41;
    font-weight: 500;
}

.cta-button {
    display: inline-block;
    background-color: var(--tesla-red);
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    margin-top: 2rem;
    transition: background-color 0.3s;
}

.cta-button-outline {
    background-color: rgba(0, 0, 0, 0.4);
}

.cta-button:hover {
    background-color: #c41e22;
    color: white;
}

.cta-button-outline:hover {
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
}

.benefits {
    padding: 5rem 0;
}

.benefit-card {
    padding: 2rem;
    text-align: center;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 1rem 0;
    transition: transform 0.3s;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.footer {
    background-color: var(--tesla-gray);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer a {
    color: white;
    text-decoration: none;
}

.footer a:hover {
    color: var(--tesla-red);
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 100px 15px 30px;
        background-position: center 70%;
        background-size: 150% auto;
    }
    
    .hero-content {
        padding: 1rem;
        margin: 0;
        width: 100%;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        padding: 0.75rem;
        margin: 1rem 0;
        background: rgba(255, 255, 255, 0.95);
    }
    
    .benefit-item {
        padding: 0.5rem;
    }
    
    .benefit-text {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    .button-group {
        padding: 0;
        margin-top: 1rem;
    }
    
    .cta-button {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .benefit-link, .cta-button {
        min-height: 44px;
    }
    
    .post {
        margin: 0;
        border-radius: 0;
    }
    
    .post-section {
        margin-bottom: 2rem;
    }
    
    .navbar {
        padding: 0.5rem 1rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
}

@media (max-width: 380px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .benefit-amount {
        font-size: 1.1rem;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 150vh;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
        margin: 0.5rem 0;
    }
    
    .hero-content {
        padding-top: 70px;
    }
}

@supports (padding: max(0px)) {
    .hero {
        padding-left: max(15px, env(safe-area-inset-left));
        padding-right: max(15px, env(safe-area-inset-right));
        padding-top: max(100px, env(safe-area-inset-top));
    }
    
    .footer {
        padding-bottom: max(2rem, env(safe-area-inset-bottom));
    }
}

html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    overflow-x: hidden;
}

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

* {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}

a:active {
    background-color: rgba(0,0,0,0.1);
}

.blog-content {
    padding: 4rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.post {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.post-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.post-section {
    margin-bottom: 3rem;
}

.post h2 {
    color: #171a20;
    margin-bottom: 1rem;
    font-weight: 600;
}

.post h3 {
    color: #393c41;
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
}

.post p, .post li {
    color: #444;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.post ul, .post ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.post li {
    margin-bottom: 0.5rem;
}

.cta-box {
    background: var(--tesla-light-gray);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin: 3rem 0;
}

.cta-box h4 {
    color: #171a20;
    margin-bottom: 1rem;
}

.disclaimer {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .blog-content {
        padding: 2rem 1rem;
    }
    
    .post {
        padding: 1.5rem;
    }
}

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.cta-button-outline {
    background-color: var(--tesla-red);
    color: white;
}

.cta-button-outline:hover {
    background-color: #c41e22;
    color: white;
}

@media (max-width: 768px) {
    .button-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .cta-button {
        margin-top: 0.5rem;
    }
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-amount {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--tesla-red);
    margin-bottom: 0.5rem;
}

.benefit-text {
    font-size: 0.9rem;
    color: var(--tesla-gray);
    font-weight: 500;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        padding: 1rem;
    }

    .benefit-item {
        padding: 0.75rem;
    }

    .benefit-amount {
        font-size: 1.25rem;
    }

    .benefit-text {
        font-size: 0.8rem;
    }
}

.benefit-link {
    text-decoration: none;
    cursor: pointer;
    background: rgba(232, 33, 39, 0.1);
    border-radius: 10px;
}

.benefit-link:hover {
    background: rgba(232, 33, 39, 0.2);
    transform: translateY(-5px);
}

.benefit-link .benefit-amount {
    color: var(--tesla-red);
}

.benefit-link .benefit-text {
    color: var(--tesla-gray);
}

/* Responsive Design Updates */
@media (max-width: 1200px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: 80px;
        padding-bottom: 2rem;
    }
    
    .hero-content {
        padding: 1rem;
        margin: 0 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero .lead {
        font-size: 1.1rem;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 1rem;
        margin: 1.5rem 0;
    }
    
    .button-group {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0 1rem;
    }
    
    .cta-button {
        width: 100%;
        padding: 0.875rem 1.5rem;
        margin-top: 0;
    }
    
    .blog-content {
        padding: 2rem 1rem;
    }
    
    .post {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .post h2 {
        font-size: 1.75rem;
    }
    
    .post h3 {
        font-size: 1.35rem;
    }
}

@media (max-width: 480px) {
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .benefit-item {
        padding: 0.75rem;
    }
    
    .benefit-amount {
        font-size: 1.25rem;
    }
    
    .benefit-text {
        font-size: 0.875rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero .lead {
        font-size: 1rem;
    }
    
    .post {
        padding: 1.25rem;
    }
    
    .cta-box {
        padding: 1.5rem 1rem;
    }
}

/* Fix for larger screens */
@media (min-width: 1400px) {
    .hero-content {
        max-width: 1200px;
    }
    
    .blog-content {
        max-width: 1000px;
    }
}

/* Fix for landscape mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 120vh;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Ensure content doesn't overflow on very small devices */
* {
    max-width: 100%;
    box-sizing: border-box;
}

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