@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&display=swap');

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

:root {
    --primary: #1a1a2e;
    --primary-light: #16213e;
    --accent: #e67e22;
    --accent-warm: #f39c12;
    --text: #2c3e50;
    --text-light: #7f8c8d;
    --bg: #f5f3f0;
    --bg-card: #ffffff;
    --border: #ddd8d0;
    --border-dark: #c9c2b8;
    --recycle: #27ae60;
    --recycle-light: #e8f8f0;
    --mono: 'IBM Plex Mono', 'Courier New', monospace;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
}

.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 60px 40px 40px;
    text-align: center;
    border-bottom: 3px solid var(--accent);
}

.header h1 {
    font-family: var(--mono);
    font-size: 2.8rem;
    font-weight: 600;
    letter-spacing: 12px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.2);
}

.header .tagline {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--accent-warm);
    letter-spacing: 4px;
    text-transform: uppercase;
}

.nav {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.nav a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    padding: 8px 18px;
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 1px;
    border: 1px solid transparent;
    border-radius: 2px;
    transition: all 0.2s;
}

.nav a:hover,
.nav a.active {
    background: rgba(255,255,255,0.08);
    border-color: var(--accent);
    color: var(--accent-warm);
}

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

section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border);
}

section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
    font-weight: 600;
}

.section-heading {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--primary);
    margin-bottom: 30px;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.intro-text p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.intro-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 8px 8px 0 var(--border-dark);
    border: 1px solid var(--border);
}

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

.specs-row {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--primary);
}

.spec {
    text-align: center;
}

.spec-value {
    display: block;
    font-family: var(--mono);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary);
}

.spec-label {
    display: block;
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 4px;
}

.recycle-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--recycle-light);
    border-left: 4px solid var(--recycle);
    padding: 15px 20px;
    margin-bottom: 30px;
    font-family: var(--mono);
}

.recycle-banner span {
    font-size: 0.8rem;
    color: var(--recycle);
    font-weight: 500;
}

.table-container {
    overflow-x: auto;
}

.retro-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    border: 2px solid var(--primary);
}

.retro-table th {
    background: var(--primary);
    color: white;
    padding: 14px 20px;
    text-align: left;
    font-family: var(--mono);
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.retro-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
}

.retro-table tbody tr:hover {
    background: #ebe7e1;
}

.retro-table .price {
    text-align: right;
    font-family: var(--mono);
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}

.recycled-row {
    background: var(--recycle-light);
}

.recycled-row:hover {
    background: #d5f5e3 !important;
}

.recycle-tag {
    display: inline-block;
    background: var(--recycle);
    color: white;
    padding: 2px 8px;
    font-family: var(--mono);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-left: 8px;
    vertical-align: middle;
}

.total-row {
    background: var(--primary);
    color: white;
}

.total-row td {
    border-bottom: none;
}

.total-row .price {
    color: var(--accent-warm);
    font-size: 1.1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 3px;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: #e0dcd6;
    border: 2px solid var(--border);
    transition: border-color 0.3s;
}

.gallery-item:hover {
    border-color: var(--accent);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(26,26,46,0.9));
    padding: 25px 15px 12px;
    color: white;
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 1px;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}

.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-dark);
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 6px;
    width: 14px;
    height: 14px;
    background: var(--accent);
    border: 3px solid var(--bg);
    border-radius: 2px;
    transform: rotate(45deg);
}

.timeline-date {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.timeline-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

.timeline-text {
    color: var(--text-light);
    font-size: 0.95rem;
}

.timeline-photos {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.timeline-photos img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 3px;
    cursor: pointer;
    border: 2px solid var(--border);
    transition: all 0.2s;
}

.timeline-photos img:hover {
    border-color: var(--accent);
    transform: scale(1.05);
}

.planos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.plano-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 4px 4px 0 var(--border);
}

.plano-card:hover {
    box-shadow: 6px 6px 0 var(--accent);
    border-color: var(--accent);
}

.plano-img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: #f0ece6;
    padding: 20px;
}

.plano-info {
    padding: 20px;
    border-top: 2px solid var(--border);
}

.plano-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 5px;
}

.plano-info p {
    font-size: 0.85rem;
    color: var(--text-light);
}

.file-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    font-family: var(--mono);
    font-size: 0.65rem;
    letter-spacing: 1px;
    margin-top: 10px;
}

.download-links {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.download-btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    border: 2px solid var(--primary);
    transition: all 0.2s;
}

.download-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.circuito-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: start;
}

.circuito-img {
    width: 100%;
    border: 2px solid var(--border);
    border-radius: 4px;
    background: white;
    padding: 15px;
    box-shadow: 5px 5px 0 var(--border);
}

.circuito-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 15px;
}

.circuito-info p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-item {
    background: var(--primary);
    color: rgba(255,255,255,0.8);
    padding: 12px 18px;
    font-family: var(--mono);
    font-size: 0.8rem;
    border-left: 4px solid var(--accent);
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.app-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 4px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 3px 3px 0 var(--border);
}

.app-card:hover {
    box-shadow: 5px 5px 0 var(--accent);
    border-color: var(--accent);
}

.app-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.app-card h3 {
    font-family: var(--mono);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 5px;
}

.app-card p {
    font-size: 0.8rem;
    color: var(--text-light);
}

.footer {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: rgba(255,255,255,0.5);
    text-align: center;
    padding: 40px;
    font-family: var(--mono);
    font-size: 0.8rem;
    letter-spacing: 1px;
    border-top: 3px solid var(--accent);
}

.footer strong {
    color: var(--accent-warm);
    font-weight: 600;
}

.github-link {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 2px;
    transition: all 0.2s;
}

.github-link:hover {
    color: var(--accent-warm);
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26,26,46,0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 40px;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.2s;
    font-family: var(--mono);
}

.lightbox-close:hover {
    opacity: 1;
    color: var(--accent);
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    border: 3px solid var(--accent);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8rem;
        letter-spacing: 6px;
    }
    
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .specs-row {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .planos-grid {
        grid-template-columns: 1fr;
    }
    
.circuito-info-full {
    max-width: 700px;
}

.circuito-info-full h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 15px;
}

.circuito-info-full p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.8;
}

.circuito-layout {
        grid-template-columns: 1fr;
    }
    
    .apps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav {
        gap: 3px;
    }
    
    .nav a {
        padding: 6px 12px;
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .apps-grid {
        grid-template-columns: 1fr;
    }
}
