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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
    background-color: #0d1117;
    color: #e6edf3;
    line-height: 1.5;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Navigation */
.nav {
    background-color: #161b22;
    border-bottom: 1px solid #30363d;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.nav-logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f0f6fc;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.nav-logo:hover {
    color: #58a6ff;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-link {
    color: #8b949e;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #e6edf3;
}

.nav-link.active {
    color: #f0f6fc;
}

        /* Hero Section */
        .hero {
            background-color: #0d1117;
            padding: 64px 0;
            border-bottom: 1px solid #30363d;
        }

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
}

        .pcb-model {
            display: flex;
            justify-content: center;
            align-items: center;
            perspective: 1000px;
            width: 800px;
            height: 600px;
            position: relative;
        }

        .pcb-model canvas {
            width: 100%;
            height: 100%;
            cursor: grab;
            background: transparent;
        }
        
        .pcb-model canvas:active {
            cursor: grabbing;
        }

        #loading-container {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
            z-index: 10;
            background: rgba(13, 17, 23, 0.95);
            padding: 30px 40px;
            border-radius: 12px;
            border: 1px solid #30363d;
            min-width: 300px;
            opacity: 1;
            transition: opacity 0.3s ease;
        }

        .loading-text {
            color: #f0f6fc;
            font-size: 1.125rem;
            font-weight: 500;
            margin-bottom: 20px;
        }

        .progress-bar {
            width: 100%;
            height: 8px;
            background: #21262d;
            border-radius: 4px;
            overflow: hidden;
            margin-bottom: 12px;
            border: 1px solid #30363d;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #238636 0%, #2ea043 100%);
            width: 0%;
            transition: width 0.3s ease;
            border-radius: 4px;
        }

        .progress-percentage {
            color: #8b949e;
            font-size: 0.875rem;
            font-weight: 500;
        }

.hero-text {
    text-align: left;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #f0f6fc;
    margin-bottom: 16px;
}

.hero .tagline {
    font-size: 1.25rem;
    color: #8b949e;
    margin-bottom: 24px;
    font-weight: 400;
}

.hero .summary {
    font-size: 1rem;
    color: #8b949e;
    margin-bottom: 32px;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: #238636;
    color: #ffffff;
    border-color: #238636;
}

.btn-primary:hover {
    background-color: #2ea043;
    border-color: #2ea043;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(35, 134, 54, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #e6edf3;
    border-color: #30363d;
}

.btn-secondary:hover {
    background-color: #21262d;
    border-color: #8b949e;
}

/* Features Tabs Section */
.features-tabs {
    background-color: #161b22;
    padding: 60px 0;
}

.tabs-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}

.tabs-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tab-button {
    background: transparent;
    border: none;
    color: #8b949e;
    padding: 12px 16px;
    text-align: left;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
}

.tab-button:hover {
    color: #e6edf3;
    background: #161b22;
}

.tab-button.active {
    color: #e6edf3;
    border-left-color: #238636;
    background: #0d1117;
}

.tabs-content {
    position: relative;
    min-height: 200px;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-panel.active {
    display: block;
}

.tab-panel h3 {
    color: #f0f6fc;
    font-size: 1.5rem;
    margin-bottom: 16px;
    font-weight: 600;
}

.tab-panel p {
    color: #8b949e;
    line-height: 1.6;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Styling */
section {
    padding: 48px 0;
    border-bottom: 1px solid #30363d;
}

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

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #f0f6fc;
    margin-bottom: 24px;
    text-align: center;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f0f6fc;
    margin-bottom: 16px;
}

h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #f0f6fc;
    margin-bottom: 8px;
}

p {
    margin-bottom: 16px;
    color: #8b949e;
}

/* About Author Section */
.about-author {
    background-color: #0d1117;
    padding: 80px 0;
    min-height: 60vh;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h2 {
    color: #f0f6fc;
    font-size: 1.75rem;
    margin-bottom: 24px;
}

.about-content p {
    color: #8b949e;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* Contact Form */
.contact-form-container {
    max-width: 600px;
    margin: 64px auto 0;
    padding: 32px;
    background-color: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
}

.contact-form-container h3 {
    color: #f0f6fc;
    font-size: 1.5rem;
    margin-bottom: 12px;
    text-align: center;
}

.contact-intro {
    text-align: center;
    color: #8b949e;
    margin-bottom: 32px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #f0f6fc;
    font-size: 0.95rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    background-color: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 12px;
    color: #e6edf3;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #58a6ff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #6e7681;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    align-self: flex-start;
    margin-top: 8px;
}

/* Roadmap Section */
.roadmap-section {
    background-color: #0d1117;
    padding: 80px 0;
    min-height: 70vh;
}

.roadmap-section h2 {
    text-align: center;
    color: #f0f6fc;
    font-size: 2rem;
    margin-bottom: 16px;
}

.roadmap-intro {
    text-align: center;
    color: #8b949e;
    font-size: 1.125rem;
    margin-bottom: 64px;
}

.roadmap-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.roadmap {
    position: relative;
}

/* Vertical line connecting milestones */
.roadmap::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #238636 0%, #238636 20%, #30363d 20%, #30363d 100%);
}

.milestone {
    position: relative;
    margin-bottom: 48px;
    padding-left: 40px;
}

.milestone:last-child {
    margin-bottom: 0;
}

.milestone-marker {
    position: absolute;
    left: 0;
    top: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #30363d;
    border: 3px solid #0d1117;
    z-index: 1;
}

.milestone.completed .milestone-marker {
    background-color: #238636;
    box-shadow: 0 0 0 4px rgba(35, 134, 54, 0.2);
}

.milestone-content {
    background-color: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 24px;
    transition: all 0.3s ease;
}

.milestone-content:hover {
    border-color: #8b949e;
    transform: translateX(4px);
}

.milestone.completed .milestone-content {
    border-color: #238636;
}

.milestone-content h3 {
    color: #f0f6fc;
    font-size: 1.375rem;
    margin-bottom: 12px;
}

.roadmap-image {
    position: sticky;
    top: 100px;
    background-color: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 16px;
}

.roadmap-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    margin-bottom: 24px;
}

.roadmap-subscribe {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid #30363d;
}

.roadmap-subscribe h3 {
    color: #f0f6fc;
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.roadmap-subscribe p {
    color: #8b949e;
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.5;
}

.roadmap-subscribe .btn {
    width: 100%;
}

.milestone-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.milestone-content p {
    color: #8b949e;
    line-height: 1.6;
    margin-bottom: 16px;
}

.milestone-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    background-color: #30363d;
    color: #8b949e;
}

.milestone.completed .milestone-status {
    background-color: rgba(35, 134, 54, 0.2);
    color: #238636;
}

/* Overview Section */
.overview {
    background-color: #0d1117;
    border-top: 1px solid #30363d;
}

.overview-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

        /* Features Section */
        .features {
            background-color: #161b22;
        }

        .features-list {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 24px;
            margin-top: 32px;
        }

        .feature-item {
            text-align: center;
            padding: 20px;
            background: #21262d;
            border-radius: 8px;
            border: 1px solid #30363d;
            transition: transform 0.2s ease, border-color 0.2s ease;
        }

        .feature-item:hover {
            transform: translateY(-2px);
            border-color: #58a6ff;
        }

        .feature-item h4 {
            color: #f0f6fc;
            font-size: 1.125rem;
            margin-bottom: 0;
            font-weight: 600;
        }

/* Use Cases Section */
.use-cases {
    background-color: #0d1117;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.use-case {
    background: #161b22;
    padding: 20px;
    border-left: 3px solid #58a6ff;
    border-radius: 0 6px 6px 0;
}

.use-case h4 {
    color: #f0f6fc;
    margin-bottom: 12px;
}

/* Developer Section */
.developer {
    background-color: #161b22;
}

.developer-content {
    max-width: 800px;
    margin: 0 auto;
}

.code-block {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 16px;
    margin: 16px 0;
    font-family: ui-monospace, SFMono-Regular, 'SF Mono', Consolas, 'Liberation Mono', Menlo, monospace;
    color: #e6edf3;
    overflow-x: auto;
    font-size: 0.875rem;
}

/* Specifications Section */
.specifications {
    background-color: #0d1117;
}

.specs-toggle {
    text-align: center;
    margin-bottom: 24px;
}

.specs-content {
    display: none;
    max-width: 800px;
    margin: 0 auto;
}

.specs-content.show {
    display: block;
}

.spec-category {
    margin-bottom: 24px;
}

.spec-category h4 {
    color: #f0f6fc;
    margin-bottom: 12px;
    border-bottom: 1px solid #30363d;
    padding-bottom: 8px;
}

.spec-list {
    list-style: none;
    padding-left: 0;
}

.spec-list li {
    padding: 6px 0;
    border-bottom: 1px solid #21262d;
    color: #8b949e;
}

.spec-list li:last-child {
    border-bottom: none;
}

/* Philosophy Section */
.philosophy {
    background-color: #161b22;
}

.philosophy-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Footer */
footer {
    background-color: #0d1117;
    padding: 32px 0;
    text-align: center;
    border-top: 1px solid #30363d;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.footer-links a {
    color: #58a6ff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #79c0ff;
    text-decoration: underline;
}

.footer-text {
    color: #8b949e;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        gap: 16px;
    }

    .nav-link {
        font-size: 0.875rem;
    }

    .nav-logo {
        font-size: 1.125rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .hero-text {
        text-align: center;
    }

    .cartridge-3d {
        width: 250px;
        height: 150px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .tagline {
        font-size: 1.125rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    h2 {
        font-size: 1.25rem;
    }

    .roadmap-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .roadmap-image {
        position: relative;
        top: 0;
        order: -1;
    }

    .roadmap {
        padding-left: 24px;
    }

    .roadmap::before {
        left: 9px;
    }

    .milestone-marker {
        width: 20px;
        height: 20px;
        border-width: 2px;
    }

    .milestone-content {
        padding: 16px;
    }

    .milestone-content h3 {
        font-size: 1.125rem;
    }

    .contact-form-container {
        padding: 24px 16px;
        margin-top: 48px;
    }

    .contact-form .btn {
        width: 100%;
        text-align: center;
    }

        .features-list,
        .use-cases-grid {
            grid-template-columns: 1fr;
        }

        .footer-links {
            flex-direction: column;
            gap: 16px;
        }

        .pcb-model {
            width: 400px;
            height: 300px;
        }

        .tabs-container {
            display: block;
        }

        .tabs-list {
            display: none;
        }

        .tabs-content {
            display: block;
        }

        .tab-panel {
            display: block !important;
            margin-bottom: 32px;
            padding-bottom: 32px;
            border-bottom: 1px solid #30363d;
        }

        .tab-panel:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }

    }
