:root {
    /* Cores */
    --bg-main: #09090b;       
    --bg-secondary: #121214;  
    --accent: #00dc82;        
    --accent-dark: #009c5b;   
    --text-primary: #e1e1e6;  
    --text-secondary: #a8a8b3;
    --border: #27272a;        
    
    /* Fontes */
    --font-main: 'Sora', sans-serif;
    --font-tech: 'JetBrains Mono', monospace;

    /* Tamanhos Responsivos (CLAMP) */
    --h1-size: clamp(2.5rem, 5vw, 4rem);
    --h2-size: clamp(1.8rem, 3vw, 2.5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }

/* NAVBAR RESPONSIVA */
.navbar {
    position: fixed; top: 0; width: 100%;
    background: rgba(9, 9, 11, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000; padding: 1rem 0;
}
.nav-flex { display: flex; justify-content: space-between; align-items: center; }

.logo { font-family: var(--font-tech); font-weight: 700; font-size: 1.4rem; letter-spacing: -1px; z-index: 1001; }
.highlight { color: var(--accent); }

.menu { display: flex; list-style: none; gap: 2rem; align-items: center; }
.menu a { text-decoration: none; color: var(--text-secondary); font-size: 0.9rem; transition: 0.3s; font-weight: 500; }
.menu a:hover { color: var(--accent); }

.mobile-menu-btn { display: none; font-size: 1.8rem; cursor: pointer; color: #fff; z-index: 1001; }

.btn-nav {
    border: 1px solid var(--accent); padding: 0.5rem 1.2rem;
    color: var(--accent) !important; border-radius: 6px; font-weight: 600;
}
.btn-nav:hover { background: var(--accent); color: var(--bg-main) !important; box-shadow: 0 0 15px rgba(0, 220, 130, 0.4); }

/* HERO SECTION */
.hero {
    position: relative; padding: 8rem 0 4rem; overflow: hidden;
    min-height: 90vh; display: flex; align-items: center;
}
.hero-bg-grid {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(rgba(0, 220, 130, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 220, 130, 0.05) 1px, transparent 1px);
    background-size: 50px 50px; opacity: 0.4; z-index: -2;
    transform: perspective(500px) rotateX(60deg) scale(2);
    animation: gridMove 20s linear infinite;
}
@keyframes gridMove { 0% { background-position: 0 0; } 100% { background-position: 0 1000px; } }

.hero-glow {
    position: absolute; top: -20%; right: -10%; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(0, 220, 130, 0.12) 0%, transparent 70%);
    filter: blur(80px); z-index: -1;
}

.hero-content { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 2rem; width: 100%; }

h1 { font-size: var(--h1-size); line-height: 1.1; margin: 1.5rem 0; letter-spacing: -1px; }

.tag { 
    font-family: var(--font-tech); color: var(--accent); font-size: 0.8rem; 
    border: 1px solid var(--border); padding: 4px 10px; border-radius: 4px; display: inline-block; 
    background: rgba(0, 220, 130, 0.05);
}

.typing-effect {
    color: var(--accent); border-right: 3px solid var(--accent);
    white-space: nowrap; overflow: hidden; display: inline-block; padding-right: 5px;
    animation: blinkCursor 0.75s step-end infinite;
}
@keyframes blinkCursor { 50% { border-color: transparent; } }

.hero p { color: var(--text-secondary); max-width: 550px; font-size: 1.1rem; margin-bottom: 2rem; }

.hero-stats { 
    display: flex; gap: 3rem; margin-top: 2rem; 
    border-top: 1px solid var(--border); padding-top: 1.5rem; max-width: fit-content;
}
.stat strong { display: block; font-size: 1.5rem; color: #fff; }
.stat span { font-size: 0.8rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; }

/* VISUAL HERO */
.hero-visual { position: relative; height: 450px; width: 100%; perspective: 1000px; }
.float-card {
    position: absolute; background: rgba(18, 18, 20, 0.6);
    backdrop-filter: blur(12px); border: 1px solid var(--border);
    padding: 1rem 1.5rem; border-radius: 12px;
    font-family: var(--font-tech); font-size: 1rem; color: var(--accent);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5); z-index: 2;
    display: flex; align-items: center; gap: 0.8rem; white-space: nowrap;
}
.card-1 { top: 15%; left: 5%; animation: float 5s ease-in-out infinite 1s; }
.card-2 { bottom: 15%; right: 5%; animation: float 7s ease-in-out infinite 0.5s; }
.card-mid { 
    top: 50%; left: 50%; transform: translate(-50%, -50%); 
    animation: floatMid 6s ease-in-out infinite 0.2s; 
    font-weight: bold; font-size: 1.2rem; background: rgba(0,220,130,0.1); color: #fff; 
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
@keyframes floatMid { 0%, 100% { transform: translate(-50%, -50%) translateY(0); } 50% { transform: translate(-50%, -50%) translateY(-20px); } }

/* ANIMAÇÕES GERAIS */
.fade-in { opacity: 0; transform: translateY(20px); animation: fadeInUp 0.8s forwards; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* SWITCHES SECTION */
section { padding: 5rem 0; border-bottom: 1px solid var(--border); }
h2 { font-size: var(--h2-size); margin-bottom: 1rem; letter-spacing: -1px; }
.section-title p { color: var(--text-secondary); margin-bottom: 2rem;}
.content-section { background: var(--bg-secondary); }

.tabs-container { margin-top: 2rem; width: 100%; }
.tabs-header { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 3rem; }
.glass-panel {
    display: inline-flex; background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border); border-radius: 50px; padding: 6px; gap: 10px;
    backdrop-filter: blur(10px);
}
.tab-btn {
    background: transparent; border: none; color: var(--text-secondary);
    padding: 10px 24px; border-radius: 40px; font-family: var(--font-tech); font-size: 0.9rem;
    cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; gap: 8px;
}
.tab-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.tab-btn.active { background: var(--bg-secondary); color: #fff; border: 1px solid var(--border); box-shadow: 0 4px 15px rgba(0,0,0,0.2); }

.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.red { background: #ff4444; box-shadow: 0 0 8px #ff4444; }
.dot.brown { background: #d2691e; box-shadow: 0 0 8px #d2691e; }
.dot.blue { background: #2e86de; box-shadow: 0 0 8px #2e86de; }

.tab-content { display: none; }
.tab-content.active { display: block; }

.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.specs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; border-top: 1px solid var(--border); padding-top: 1.5rem; }
.spec-item strong { display: block; color: var(--text-secondary); font-size: 0.8rem; text-transform: uppercase; margin-bottom: 0.3rem;}
.spec-item span { color: var(--accent); font-family: var(--font-tech); font-weight: bold; font-size: 1.1rem; }

/* CSS SWITCH ANIMATION */
.visual-stage {
    height: 320px; background: radial-gradient(circle at center, #1a1a1d 0%, #09090b 100%);
    border: 1px solid var(--border); border-radius: 20px;
    position: relative; display: flex; justify-content: center; align-items: center;
    overflow: hidden; box-shadow: inset 0 0 80px rgba(0,0,0,0.5);
}
.visual-stage::before {
    content: ''; position: absolute; width: 100%; height: 100%;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 20px 20px; opacity: 0.5;
}
.switch-mechanism { position: relative; width: 120px; height: 160px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.keycap {
    width: 100px; height: 60px; background: linear-gradient(180deg, #333 0%, #111 100%);
    border-radius: 8px 8px 15px 15px; border: 1px solid #444; border-bottom: 4px solid #000;
    z-index: 5; margin-bottom: -10px; position: relative; animation: keyPress 3s infinite ease-in-out;
}
.stem { width: 40px; height: 60px; border-radius: 4px; z-index: 4; animation: keyPress 3s infinite ease-in-out; }
.housing {
    width: 120px; height: 80px; background: rgba(255, 255, 255, 0.05);
    border: 2px solid #333; border-radius: 4px; backdrop-filter: blur(5px);
    position: relative; z-index: 6; display: flex; justify-content: center; align-items: center;
}
.contact-point {
    width: 10px; height: 10px; border-radius: 50%; background: #333; margin-top: 40px;
    transition: 0.2s; animation: lightUp 3s infinite ease-in-out;
}
.red-mech .stem { background: linear-gradient(90deg, #cc2e2e, #ff4444, #cc2e2e); box-shadow: 0 0 15px rgba(255, 68, 68, 0.2); }
.red-mech .contact-point { box-shadow: 0 0 0 rgba(255, 68, 68, 0); }
.brown-mech .stem { background: linear-gradient(90deg, #8b4513, #a0522d, #8b4513); }
.blue-mech .stem { background: linear-gradient(90deg, #2e5cb8, #4444ff, #2e5cb8); box-shadow: 0 0 15px rgba(68, 68, 255, 0.2); }
@keyframes keyPress { 0%, 10%, 100% { transform: translateY(0); } 40%, 60% { transform: translateY(35px); } }
@keyframes lightUp { 0%, 15%, 85%, 100% { background: #333; box-shadow: none; } 40%, 60% { background: var(--accent); box-shadow: 0 0 20px var(--accent); } }

/* BENTO GRID */
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.grid-item { background: var(--bg-secondary); border: 1px solid var(--border); padding: 2rem; border-radius: 12px; }
.item-large { grid-column: span 1; grid-row: span 2; }
.item-wide { grid-column: span 3; }
.highlight-bg { background: rgba(0, 220, 130, 0.03); border-color: var(--accent-dark); }
.grid-item h3 { margin-bottom: 1rem; color: #fff; font-family: var(--font-tech); font-size: 1.1rem; }
.grid-item p { color: var(--text-secondary); font-size: 0.95rem; }
.icon-representation {
    margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border);
    font-family: var(--font-tech); font-size: 0.8rem; color: var(--accent);
    display: flex; align-items: center; gap: 0.5rem;
}

/* SHOWCASE STORE */
.store-header {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 4rem; flex-wrap: wrap; gap: 2rem;
    border-bottom: 1px solid var(--border); padding-bottom: 2rem;
}
.header-text p { color: var(--text-secondary); max-width: 400px; margin-top: 0.5rem; }

.filters { display: flex; gap: 0.8rem; background: rgba(255, 255, 255, 0.03); padding: 0.5rem; border-radius: 50px; border: 1px solid var(--border); }
.filters button {
    background: transparent; border: none; color: var(--text-secondary);
    padding: 0.6rem 1.2rem; border-radius: 40px; font-size: 0.85rem; font-weight: 600;
    cursor: pointer; transition: all 0.3s ease;
}
.filters button:hover { color: #fff; }
.filters button.active { background: var(--accent); color: #000; box-shadow: 0 0 15px rgba(0, 220, 130, 0.3); }

.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2.5rem; }

.product-card {
    background: linear-gradient(145deg, #121214 0%, #0d0d0f 100%);
    border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
    position: relative; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-10px); border-color: var(--accent); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6); }

.p-image { height: 220px; background: #050505; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.p-image img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; opacity: 0.8; }
.product-card:hover .p-image img { transform: scale(1.1); opacity: 1; }

.p-badge {
    position: absolute; top: 15px; left: 15px;
    background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px);
    border: 1px solid var(--accent-dark); color: var(--accent);
    font-size: 0.7rem; padding: 6px 12px; font-weight: bold;
    border-radius: 30px; z-index: 2; text-transform: uppercase; letter-spacing: 1px;
}

.p-info { padding: 1.8rem; display: flex; flex-direction: column; gap: 1rem; flex: 1; }
.p-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.5rem; }
.p-title { font-size: 1.1rem; font-weight: 700; color: #fff; line-height: 1.3; max-width: 70%; }
.p-price { color: var(--accent); font-family: var(--font-tech); font-weight: 700; font-size: 1rem; }

.p-specs { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1rem; }
.spec-tag {
    font-size: 0.75rem; color: var(--text-secondary); background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, 0.05);
    font-family: var(--font-tech);
}

.p-actions { margin-top: auto; border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 1.2rem; }
.p-btn {
    display: flex; justify-content: center; align-items: center; gap: 0.5rem;
    width: 100%; background: transparent; border: 1px solid var(--border);
    color: #fff; padding: 0.8rem; text-decoration: none; font-weight: 600;
    border-radius: 8px; transition: 0.3s; font-size: 0.9rem;
}
.p-btn:hover { background: var(--accent); color: #000; border-color: var(--accent); }

footer { padding: 2rem 0; text-align: center; color: var(--text-secondary); font-size: 0.9rem; border-top: 1px solid var(--border); margin-top: 2rem; }
.disclaimer { font-size: 0.8rem; margin-top: 0.5rem; opacity: 0.6; }

/* === MEDIA QUERIES === */

/* Tablets / Telas Médias */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-text-area { align-items: center; display: flex; flex-direction: column; }
    .hero-visual { height: 350px; margin-top: 2rem; }
    
    .content-grid { grid-template-columns: 1fr; text-align: center; }
    .visual-stage { margin-top: 2rem; }
    .specs-grid { justify-content: center; }
    
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .item-large { grid-column: span 2; grid-row: span 1; }
    .item-wide { grid-column: span 2; }
}

/* Mobile */
@media (max-width: 768px) {
    /* Menu Hamburguer Ativo */
    .mobile-menu-btn { display: block; }
    .menu {
        position: fixed; top: 0; right: -100%; width: 75%; height: 100vh;
        background: #09090b; border-left: 1px solid var(--border);
        flex-direction: column; justify-content: center;
        transition: 0.3s ease; padding: 2rem; z-index: 1000;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    .menu.active { right: 0; }
    
    .hero { min-height: auto; padding-top: 7rem; }
    .hero-visual { height: 280px; }
    .float-card { padding: 0.5rem 1rem; font-size: 0.8rem; }
    
    .bento-grid { grid-template-columns: 1fr; }
    .item-large, .item-wide { grid-column: span 1; }
    
    .store-header { flex-direction: column; align-items: flex-start; }
    .filters { width: 100%; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
    .filters::-webkit-scrollbar { display: none; }
    
    .products-grid { grid-template-columns: 1fr; }
}