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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #111827;
    background-color: #ffffff;
}

/* ===== Typography ===== */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #111827;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #111827;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #111827;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===== Header & Navigation ===== */
header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

.logo a {
    color: #111827;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: #111827;
    text-decoration: none;
    font-weight: 500;
}

.nav-links a:hover {
    color: #2563eb;
    text-decoration: none;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #111827;
}

/* ===== Main Content Container ===== */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* ===== Hero Section ===== */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.hero h1 {
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    color: #4b5563;
    margin-bottom: 2rem;
}

/* ===== Search Box ===== */
.search-box {
    max-width: 600px;
    margin: 2rem auto;
    padding: 1rem;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.search-box input {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.search-box input:focus {
    outline: none;
    border-color: #2563eb;
}

/* ===== Buttons ===== */
.btn-primary {
    display: inline-block;
    background-color: #2563eb;
    color: #ffffff;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    text-decoration: none;
}

.btn-secondary {
    display: inline-block;
    background-color: #10b981;
    color: #ffffff;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s;
}

.btn-secondary:hover {
    background-color: #059669;
    text-decoration: none;
}

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: #2563eb;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid #2563eb;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
}

.btn-outline:hover {
    background-color: #2563eb;
    color: #ffffff;
    text-decoration: none;
}

/* ===== Sections ===== */
section {
    padding: 3rem 0;
    border-bottom: 1px solid #e5e7eb;
}

section:last-child {
    border-bottom: none;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

/* ===== Brand Grid ===== */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.brand-card {
    padding: 2rem;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.brand-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.brand-card h3 {
    color: #2563eb;
    margin-bottom: 1rem;
}

.brand-card p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

/* ===== Feature Grid ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    padding: 1.5rem;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.feature-card h3 {
    color: #2563eb;
    margin-bottom: 0.5rem;
}

/* ===== Model List ===== */
.model-list {
    background-color: #f9fafb;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.model-list ul {
    list-style-position: inside;
    margin-top: 0.5rem;
    column-count: 2;
    column-gap: 2rem;
}

.model-list li {
    margin-bottom: 0.5rem;
}

/* ===== Steps/Tutorial ===== */
.steps {
    background-color: #f9fafb;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.steps ol {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.steps li {
    margin-bottom: 1rem;
}

/* ===== FAQ ===== */
.faq-item {
    background-color: #f9fafb;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.faq-item h3 {
    color: #2563eb;
}

/* ===== Info Box ===== */
.info-box {
    background-color: #eff6ff;
    border-left: 4px solid #2563eb;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    border-radius: 4px;
}

.warning-box {
    background-color: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    border-radius: 4px;
}

.success-box {
    background-color: #d1fae5;
    border-left: 4px solid #10b981;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    border-radius: 4px;
}

/* ===== CTA Section ===== */
.cta-section {
    background-color: #f9fafb;
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

/* ===== Footer ===== */
footer {
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
}

footer p {
    color: #6b7280;
    margin-bottom: 0.5rem;
}

footer a {
    color: #2563eb;
}

/* ===== Tables ===== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

table th,
table td {
    padding: 0.75rem;
    text-align: left;
    border: 1px solid #e5e7eb;
}

table th {
    background-color: #f9fafb;
    font-weight: 600;
}

/* ===== Error Page ===== */
.error-page {
    text-align: center;
    padding: 4rem 2rem;
}

.error-code {
    font-size: 6rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 1rem;
}

.error-message {
    font-size: 1.5rem;
    color: #4b5563;
    margin-bottom: 2rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    nav {
        padding: 1rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #ffffff;
        border-bottom: 1px solid #e5e7eb;
        flex-direction: column;
        gap: 0;
        padding: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        padding: 0.5rem 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    main {
        padding: 1rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

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

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

    .model-list ul {
        column-count: 1;
    }

    .error-code {
        font-size: 4rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .brand-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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