/* ─── RESET & BASE ─────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a25;
    --text: #e0e0e0;
    --text-muted: #a0a0a0;
    --accent: #ffd34d;
    --accent-blue: #4286f4;
    --radius: 12px;
    --max-width: 1100px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.85;
}

img {
    max-width: 100%;
    display: block;
}

/* ─── NAVBAR ──────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.3s ease;
}

.navbar.hidden {
    transform: translateY(-100%);
}

.navbar-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
}

.nav-brand:hover {
    opacity: 1;
    color: var(--accent);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #fff;
    opacity: 1;
}

.nav-github {
    background: var(--accent);
    color: #000 !important;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
}

.nav-github:hover {
    opacity: 0.9 !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ─── HERO ────────────────────────────────────────────── */
.hero {
    padding-top: 64px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 20px;
}

.accent {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-model {
    width: 100%;
    height: 500px;
    border-radius: var(--radius);
    overflow: hidden;
}

.hero-model spline-viewer {
    width: 100%;
    height: 100%;
}

/* ─── BUTTONS ─────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: #000;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    opacity: 1;
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* ─── SECTIONS ────────────────────────────────────────── */
.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 80px 24px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    text-align: center;
}

.section-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

.section-text strong {
    color: var(--accent);
}

/* ─── STATS ───────────────────────────────────────────── */
.stats {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.stats-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px 24px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 24px;
}

.stat-item {
    text-align: center;
    min-width: 120px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 6px;
}

/* ─── ABOUT ───────────────────────────────────────────── */
.about {
    background: var(--bg);
}

/* ─── FEATURES ────────────────────────────────────────── */
.features {
    background: var(--bg-card);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
    border-color: rgba(255, 211, 77, 0.2);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ─── PARTS ───────────────────────────────────────────── */
.parts {
    background: var(--bg);
}

.parts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.part-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    transition: border-color 0.2s;
}

.part-card:hover {
    border-color: rgba(255, 211, 77, 0.2);
}

.part-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto 12px;
    border-radius: 8px;
}

.part-card span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.parts-link {
    display: block;
    text-align: center;
    margin: 0 auto;
    width: fit-content;
}

/* ─── GET STARTED ─────────────────────────────────────── */
.get-started {
    background: var(--bg-card);
    text-align: center;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.step-card {
    padding: 32px 24px;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: #000;
    font-size: 1.3rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.step-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ─── SUPPORT ─────────────────────────────────────────── */
.support {
    background: var(--bg);
}

.support .section-container {
    text-align: center;
    padding: 60px 24px;
}

.support-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.support img {
    display: inline-block;
    height: 48px;
}

/* ─── FOOTER ──────────────────────────────────────────── */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 40px 24px;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.social-links a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    opacity: 1;
}

.social-links svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

.copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.copyright a {
    color: var(--text-muted);
}

.copyright a:hover {
    color: var(--accent);
}

/* ─── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 40px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        margin: 0 auto 32px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-model {
        height: 350px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .parts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-model {
        height: 280px;
    }

    .stats-container {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .parts-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .part-card {
        padding: 16px 12px;
    }

    .part-card img {
        width: 60px;
        height: 60px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .btn-large {
        padding: 14px 32px;
        font-size: 1rem;
    }
}
