:root {
    --bg-dark: #050506;
    --card-bg: #0d0d0f;
    --accent: #00f2ff;
    --accent-glow: rgba(0, 242, 255, 0.2);
    --text-main: #e2e8f0;
    --text-dim: #64748b;
    --border: rgba(255, 255, 255, 0.08);
}

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

body { 
    background-color: var(--bg-dark); 
    color: var(--text-main); 
    font-family: 'Inter', sans-serif; 
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 80px;
}

/* Griglia Sfondo */
.tech-grid {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(var(--border) 1px, transparent 1px), 
                      linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 40px 40px; 
    mask-image: radial-gradient(circle at 50% 40%, black 10%, transparent 80%); 
    z-index: -1;
}

/* Nav */
nav { display: flex; justify-content: space-between; padding: 2rem 8%; align-items: center; }
.logo { font-weight: 900; font-size: 1.4rem; letter-spacing: 2px; }
.logo span { color: var(--accent); }
.specs-mini { font-family: 'Fira Code'; font-size: 0.65rem; color: var(--text-dim); }

/* Hero Section Corretta */
.hero { 
    display: flex; 
    flex-wrap: wrap;
    align-items: center; 
    justify-content: space-between;
    padding: 4rem 8%; 
    min-height: 80vh;
    gap: 3rem;
}

.hero-content { flex: 1; min-width: 320px; }
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 900; line-height: 1.1; margin-bottom: 1.5rem; }
.accent { color: var(--accent); }
.hero-content p { font-size: 1.1rem; color: var(--text-dim); margin-bottom: 2.5rem; max-width: 480px; }

/* Visualizzazione Moduli - Layout Stacked */
.visual-container { flex: 1; min-width: 320px; display: flex; justify-content: center; position: relative; height: 300px; }
.node-wrapper { position: relative; width: 100%; display: flex; justify-content: center; align-items: center; }

.node { 
    background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; 
    position: absolute; transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.main { width: 160px; height: 160px; border-color: var(--accent); box-shadow: 0 0 40px var(--accent-glow); z-index: 10; }
.side-1, .side-2 { width: 100px; height: 130px; opacity: 0.2; }
.side-1 { transform: translateX(-160px); }
.side-2 { transform: translateX(160px); }

.node-wrapper:hover .side-1 { transform: translateX(-140px); opacity: 1; border-color: var(--accent); }
.node-wrapper:hover .side-2 { transform: translateX(140px); opacity: 1; border-color: var(--accent); }

.led-indicator { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; margin-bottom: 15px; box-shadow: 0 0 10px var(--accent); }
.label { font-family: 'Fira Code'; font-size: 0.6rem; color: var(--text-dim); text-transform: uppercase; }

/* Waitlist Corretta */
.input-group { display: flex; background: var(--card-bg); border: 1px solid var(--border); padding: 5px; border-radius: 8px; width: 100%; max-width: 400px; }
.input-group input { background: transparent; border: none; padding: 12px 15px; color: #fff; font-family: 'Fira Code'; outline: none; flex: 1; width: 50%; }
.input-group button { background: var(--accent); color: #000; border: none; padding: 0 25px; border-radius: 6px; font-weight: 800; cursor: pointer; transition: 0.3s; }
.input-group button:hover { background: #fff; }

/* Features Grid */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; padding: 4rem 8%; }
.feature-item { 
    background: var(--card-bg); padding: 2.5rem; border-radius: 12px; border: 1px solid var(--border); 
    position: relative; overflow: hidden; transition: 0.3s; 
}
.feature-item:hover { border-color: var(--accent); transform: translateY(-5px); }
.interactive-line { position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--accent); transition: 0.4s ease; }
.feature-item:hover .interactive-line { width: 100%; }
.f-num { font-family: 'Fira Code'; color: var(--accent); margin-bottom: 1rem; opacity: 0.5; }

/* Bottom Bar - No Oggiono */
.bottom-bar { 
    position: fixed; bottom: 0; width: 100%; border-top: 1px solid var(--border); 
    background: rgba(5, 5, 6, 0.95); backdrop-filter: blur(10px);
    padding: 1.2rem 8%; display: flex; flex-wrap: wrap; gap: 2rem; font-family: 'Fira Code'; font-size: 0.65rem; z-index: 100;
}
.metric span { color: var(--accent); margin-right: 5px; }

/* Animations */
@keyframes flicker { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
.animate-flicker { animation: flicker 3s infinite; }

@media (max-width: 768px) {
    .hero { text-align: center; justify-content: center; padding-top: 2rem; }
    .hero-content p { margin: 0 auto 2.5rem; }
    .input-group { margin: 0 auto; }
    .visual-container { order: -1; height: 200px; margin-bottom: 2rem; }
    .main { width: 130px; height: 130px; }
    .side-1 { transform: translateX(-110px); }
    .side-2 { transform: translateX(110px); }
}

/* --- NUOVA SEZIONE SPECS --- */
.specs-section {
    padding: 4rem 8%;
    background: linear-gradient(to bottom, transparent, rgba(0, 242, 255, 0.02));
}

.specs-container {
    max-width: 800px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(13, 13, 15, 0.5);
    overflow: hidden;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 1.2rem 2rem;
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}

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

.spec-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.spec-label {
    font-family: 'Fira Code', monospace;
    color: var(--accent);
    font-size: 0.85rem;
    text-transform: uppercase;
}

.spec-value {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: right;
}

/* --- TIMELINE REINSERITA E RIFINITA --- */
.timeline-section { 
    padding: 6rem 8%; 
}

.section-title { 
    font-family: 'Fira Code'; 
    font-size: 0.9rem; 
    color: var(--accent); 
    margin-bottom: 3.5rem; 
    letter-spacing: 1px;
}

.timeline { 
    border-left: 2px solid var(--border); 
    margin-left: 20px; 
    padding-left: 40px; 
}

.time-point { 
    margin-bottom: 4rem; 
    position: relative; 
}

.time-point::before { 
    content: ''; 
    position: absolute; 
    left: -47px; 
    top: 6px; 
    width: 12px; 
    height: 12px; 
    background: #000; 
    border: 2px solid var(--border); 
    border-radius: 50%; 
    transition: 0.3s;
}

.time-point.done::before { 
    background: var(--accent); 
    border-color: var(--accent); 
}

.time-point.current::before { 
    background: var(--accent); 
    box-shadow: 0 0 15px var(--accent); 
    border-color: var(--accent); 
}

.date { 
    display: block; 
    font-family: 'Fira Code'; 
    font-size: 0.85rem; 
    color: var(--accent); 
    margin-bottom: 0.5rem;
}

.event {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
}

/* Responsive Fix per Specs */
@media (max-width: 600px) {
    .spec-row { flex-direction: column; gap: 0.5rem; text-align: left; }
    .spec-value { text-align: left; }
}