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

body {
    font-family: 'Noto Sans JP', 'Source Han Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #e2e8f0;
    background-color: #0f1419;
    overflow-x: hidden;
}

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

/* Header */
.header {
    background: linear-gradient(135deg, #1a1f2e 0%, #2d3748 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.logo {
    flex-shrink: 0;
}

.brand-name {
    font-size: 24px;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: -0.5px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1a1f2e 0%, #2a3441 50%, #1a1f2e 100%);
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="carbon" patternUnits="userSpaceOnUse" width="10" height="10"><rect width="10" height="10" fill="%23212936"/><circle cx="5" cy="5" r="1.5" fill="%23374151" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23carbon)"/></svg>');
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #fff;
    line-height: 1.2;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 18px;
    margin-bottom: 40px;
    color: #cbd5e0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #cc5500, #ff6b1a);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(204, 85, 0, 0.3);
}

.feature-item span {
    font-weight: 600;
    color: #e2e8f0;
}

.cta-button {
    background: linear-gradient(135deg, #cc5500, #ff6b1a);
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(204, 85, 0, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(204, 85, 0, 0.4);
}

/* Services Section */
.services {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 100%);
    text-align: center;
}

.services h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 48px;
    color: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.service-card {
    background: linear-gradient(135deg, #1a1f2e, #2d3748);
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
    border-color: rgba(204, 85, 0, 0.3);
}

.service-icon,
.service-image,
.library-image {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
}

.service-icon svg {
    width: 100%;
    height: 100%;
    max-width: 200px;
    max-height: 200px;
}

.library-image {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    border: 2px solid rgba(204, 85, 0, 0.2);
}
.service-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #fff;
}

.service-card p {
    color: #cbd5e0;
    line-height: 1.6;
}

/* ECU Library Section */
.ecu-library {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1f2e 0%, #0f1419 100%);
    text-align: center;
}

.ecu-library h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 48px;
    color: #fff;
}

.library-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    text-align: left;
}

.library-info h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #fff;
}

.library-info p {
    color: #cbd5e0;
    margin-bottom: 32px;
    line-height: 1.7;
}

.features-list {
    list-style: none;
}

.features-list li {
    padding: 8px 0;
    color: #cbd5e0;
    position: relative;
    padding-left: 24px;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #cc5500;
    font-weight: bold;
}

.library-placeholder, .booking-placeholder, .checker-placeholder, .compare-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    overflow: hidden;
}

.library-image,
.booking-image,
.checker-image,
.compare-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid rgba(204, 85, 0, 0.2);
}

.guide-image {
    width: 100%;
    height: 100%;
    border-radius: 12px 12px 0 0;
}

.placeholder-box {
    color: #94a3b8;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    padding: 24px;
}

/* Tuner Bookings Section */
.tuner-bookings {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 100%);
    text-align: center;
}

.tuner-bookings h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 48px;
    color: #fff;
}

.booking-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    text-align: left;
}

.booking-info h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #fff;
}

.booking-info p {
    color: #cbd5e0;
    margin-bottom: 32px;
    line-height: 1.7;
}

.booking-features {
    display: flex;
    gap: 32px;
}

.booking-feature {
    text-align: center;
}

.feature-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #cc5500;
    line-height: 1;
}

.feature-desc {
    font-size: 14px;
    color: #94a3b8;
    margin-top: 4px;
}

/* DIY Guides Section */
.diy-guides {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1f2e 0%, #0f1419 100%);
    text-align: center;
}

.diy-guides h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 48px;
    color: #fff;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.guide-card {
    background: linear-gradient(135deg, #1a1f2e, #2d3748);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.guide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
    border-color: rgba(204, 85, 0, 0.3);
}

.guide-placeholder {
    height: 200px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px 16px 0 0;
}

.guide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guide-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 24px 24px 16px 24px;
    color: #fff;
}

.guide-card p {
    color: #cbd5e0;
    margin: 0 24px 24px 24px;
    line-height: 1.6;
}

/* Fitment Checker Section */
.fitment-checker {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 100%);
    text-align: center;
}

.fitment-checker h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 48px;
    color: #fff;
}

.checker-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    text-align: left;
}

.checker-info h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #fff;
}

.checker-info p {
    color: #cbd5e0;
    margin-bottom: 32px;
    line-height: 1.7;
}

.checker-steps {
    display: flex;
    gap: 24px;
}

.step {
    text-align: center;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #cc5500, #ff6b1a);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin: 0 auto 12px auto;
}

.step-text {
    color: #cbd5e0;
    font-size: 14px;
}

/* Dyno Compare Section */
.dyno-compare {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1f2e 0%, #0f1419 100%);
    text-align: center;
}

.dyno-compare h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 48px;
    color: #fff;
}

.compare-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    text-align: left;
}

.compare-info h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #fff;
}

.compare-info p {
    color: #cbd5e0;
    margin-bottom: 32px;
    line-height: 1.7;
}

.compare-stats {
    display: flex;
    gap: 32px;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #cc5500;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: #94a3b8;
    margin-top: 4px;
}

/* Products Section */
.products {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 100%);
    text-align: center;
}

.products h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 48px;
    color: #fff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.product-card {
    background: linear-gradient(135deg, #1a1f2e, #2d3748);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
    border-color: rgba(204, 85, 0, 0.3);
}

.product-placeholder {
    height: 200px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px 16px 0 0;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 24px 24px 16px 24px;
    color: #fff;
}

.product-card p {
    color: #cbd5e0;
    margin: 0 24px 16px 24px;
    line-height: 1.6;
}

.product-price {
    font-size: 24px;
    font-weight: 700;
    color: #cc5500;
    margin: 0 24px 24px 24px;
}

.product-button {
    background: linear-gradient(135deg, #cc5500, #ff6b1a);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    margin: 0 24px 24px 24px;
    width: calc(100% - 48px);
    transition: all 0.3s ease;
}

.product-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(204, 85, 0, 0.3);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1f2e 0%, #0f1419 100%);
}

.contact h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 48px;
    color: #fff;
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #cc5500, #ff6b1a);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.contact-details p {
    color: #cbd5e0;
    line-height: 1.6;
}

.contact-form {
    background: linear-gradient(135deg, #2d3748, #4a5568);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #fff;
}

.form-group {
    margin-bottom: 24px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #cc5500;
    box-shadow: 0 0 0 3px rgba(204, 85, 0, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #e2e8f0;
}

.submit-button {
    background: linear-gradient(135deg, #cc5500, #ff6b1a);
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(204, 85, 0, 0.3);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0a0f14 0%, #1a1f2e 100%);
    padding: 48px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #fff;
}

.footer-section p,
.footer-section li {
    color: #94a3b8;
    margin-bottom: 8px;
    line-height: 1.5;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #cc5500;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #64748b;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.modal-content {
    background: linear-gradient(135deg, #1a1f2e, #2d3748);
    margin: 5% auto;
    padding: 32px;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

.close {
    color: #94a3b8;
    float: right;
    font-size: 32px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    margin: -8px -8px 0 0;
    transition: color 0.3s ease;
}

.close:hover {
    color: #cc5500;
}

.modal h2 {
    color: #fff;
    margin-bottom: 24px;
    font-size: 28px;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .hero-features {
        gap: 32px;
    }
    
    .library-content,
    .booking-content,
    .checker-content,
    .compare-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .booking-features,
    .compare-stats {
        justify-content: space-around;
    }
    
    .checker-steps {
        flex-direction: column;
        gap: 16px;
    }
    
    .services-grid,
    .guides-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 24px;
    }
    
    section {
        padding: 48px 0;
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 18px;
    }
    
    .hero h1 {
        font-size: 24px;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }
    
    .services h2,
    .ecu-library h2,
    .tuner-bookings h2,
    .diy-guides h2,
    .fitment-checker h2,
    .dyno-compare h2,
    .products h2,
    .contact h2 {
        font-size: 28px;
    }
    
    .library-info h3,
    .booking-info h3,
    .checker-info h3,
    .compare-info h3 {
        font-size: 24px;
    }
}