/* American Muscle — Beasthouse Style Guide Implementation */

:root {
    --bg:       #0f1117;
    --card:     #1a1d27;
    --border:   #2a2d3a;
    --text:     #e4e6ef;
    --muted:    #8b8fa3;
    --accent:   #6c7cff;
    --green:    #4ade80;
    --yellow:   #fbbf24;
    --red:      #f87171;
    --orange:   #fb923c;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1.3em;
}

.logo-icon {
    font-size: 1.4em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Hero Section */
.hero {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1d27 0%, #0f1117 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--bg) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3em;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent), #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3em;
    color: var(--muted);
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5em;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    display: block;
    font-size: 0.9em;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sections */
.section {
    padding: 60px 0;
}

.section h2 {
    font-size: 2em;
    margin-bottom: 40px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border);
}

/* Car Cards */
.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.car-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.car-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.car-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.car-image {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.car-card.featured .car-image {
    aspect-ratio: auto;
    min-height: 400px;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5em;
    font-weight: 700;
    text-align: center;
    padding: 20px;
}

.car-content {
    padding: 28px;
}

.car-card h3 {
    font-size: 1.5em;
    margin-bottom: 8px;
    color: var(--text);
}

.car-tagline {
    color: var(--muted);
    font-size: 0.95em;
    margin-bottom: 20px;
}

.car-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
}

.spec {
    text-align: center;
}

.spec-label {
    display: block;
    font-size: 0.75em;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.spec-value {
    display: block;
    font-size: 1.1em;
    font-weight: 700;
    color: var(--accent);
}

.car-description {
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.7;
}

/* Tags */
.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-red {
    background: rgba(248,113,113,0.15);
    color: var(--red);
}

.tag-yellow {
    background: rgba(251,191,36,0.15);
    color: var(--yellow);
}

.tag-green {
    background: rgba(74,222,128,0.15);
    color: var(--green);
}

/* Note Box */
.note-box {
    border-left: 3px solid var(--yellow);
    background: rgba(251,191,36,0.08);
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 32px;
}

/* About Section */
.about-content {
    max-width: 900px;
}

.about-content p {
    font-size: 1.1em;
    margin-bottom: 32px;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 40px;
    margin: 40px 0;
    border-left: 2px solid var(--border);
}

.timeline-item {
    margin-bottom: 24px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -46px;
    top: 4px;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
}

.timeline-year {
    display: inline-block;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
}

.timeline-item p {
    color: var(--muted);
    font-size: 0.95em;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 40px;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
}

.stat-card h3 {
    font-size: 1.3em;
    margin-bottom: 20px;
    color: var(--accent);
}

.stat-card ul {
    list-style: none;
}

.stat-card li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
}

.stat-card li:last-child {
    border-bottom: none;
}

.stat-card li strong {
    color: var(--text);
}

/* Footer */
.footer {
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
}

.footer p {
    color: var(--muted);
    margin-bottom: 8px;
}

.footer-note {
    font-size: 0.9em;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2em;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .nav-links {
        gap: 16px;
        font-size: 0.9em;
    }
    
    .car-grid {
        grid-template-columns: 1fr;
    }
    
    .car-card.featured {
        grid-template-columns: 1fr;
    }
    
    .car-specs {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .section h2 {
        font-size: 1.6em;
    }
}
