/* ========================================
   SPATIALIFY - MAIN PAGE STYLES
   ======================================== */

:root {
    --bg: #0a0a0a;
    --text: #ffffff;
    --text-secondary: #999999;
    --primary: #ff99cc;
    --border: rgba(255, 255, 255, 0.06);
}

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

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    background: var(--bg);
    font-family: 'Inter', sans-serif;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

/* Background */
canvas.space-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    display: block;
}

/* Layout - altura total */
.wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0 60px;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    width: 100%;
    flex-shrink: 0;
}

.logo {
    font-family: 'Clash Display', sans-serif;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.3px;
    color: var(--text);
    text-decoration: none;
}

.logo span {
    color: var(--primary);
    font-weight: 400;
}

.nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--text);
}

.nav-btn {
    padding: 10px 22px;
    border-radius: 6px;
    background: var(--text);
    color: var(--bg);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.2s;
}

.nav-btn:hover {
    opacity: 0.8;
}

/* Conteúdo principal - ocupa espaço restante */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    min-height: 0;
    padding: 20px 0;
}

/* Hero */
.hero {
    flex-shrink: 0;
    padding-left: 60px;
}

.hero-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 20px;
}

.hero-title {
    font-size: 72px;
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 20px;
    max-width: 100%;
    white-space: nowrap;
}

.hero-title strong {
    font-weight: 700;
}

.hero-desc {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 300;
    margin-bottom: 36px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg);
}

.btn-primary:hover {
    opacity: 0.85;
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Features - grid que ocupa toda largura */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    flex-shrink: 0;
}

.feature {
    background: var(--bg);
    padding: 40px 36px;
    transition: background 0.2s;
}

.feature:hover {
    background: #0d0d0d;
}

.feature-icon {
    width: 24px;
    height: 24px;
    color: var(--primary);
    margin-bottom: 20px;
    opacity: 0.85;
}

.feature-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.feature-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 400;
}

/* Copyright - canto inferior direito */
.copyright {
    position: fixed;
    bottom: 90px;
    right: 60px;
    z-index: 3;
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Visualizador de barrinhas */
.viz-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.5;
}

.viz-footer canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* ========== RESPONSIVO ========== */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 60px;
    }
    
    .feature {
        padding: 36px 28px;
    }
    
    .hero {
        padding-left: 40px;
    }
}

@media (max-width: 900px) {
    .wrapper {
        padding: 0 32px;
    }
    
    .copyright {
        right: 32px;
    }
    
    .hero-title {
        font-size: 48px;
        letter-spacing: -1px;
    }
    
    .hero-desc {
        font-size: 18px;
        max-width: 500px;
    }
    
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature {
        padding: 32px 24px;
    }
    
    .hero {
        padding-left: 20px;
    }
}

@media (max-width: 700px) {
    .wrapper {
        padding: 0 20px;
    }

    .copyright {
        right: 20px;
        bottom: 70px;
    }

    .header {
        padding: 20px 0;
    }

    .nav-link:nth-child(2),
    .nav-link:nth-child(3) {
        display: none;
    }
    
    .nav {
        gap: 16px;
    }

    .main-content {
        gap: 28px;
        padding: 16px 0;
    }

    .hero {
        padding-left: 0;
    }

    .hero-title {
        font-size: 36px;
        letter-spacing: -0.5px;
        white-space: normal;
    }

    .hero-desc {
        font-size: 16px;
        margin-bottom: 28px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 14px;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .feature {
        padding: 28px 20px;
    }
    
    .feature-title {
        font-size: 16px;
    }
    
    .feature-desc {
        font-size: 13px;
    }
    
    .viz-footer {
        height: 60px;
    }
}

@media (max-width: 400px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-desc {
        font-size: 15px;
    }
    
    .nav-link {
        font-size: 12px;
    }
    
    .nav-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* Ajustes para telas menores em altura */
@media (max-height: 800px) {
    .hero-title {
        font-size: 56px;
    }
    
    .main-content {
        gap: 30px;
    }
    
    .feature {
        padding: 28px 24px;
    }
    
    .feature-icon {
        margin-bottom: 14px;
    }
}

@media (max-height: 700px) {
    .hero-title {
        font-size: 48px;
        margin-bottom: 14px;
    }
    
    .hero-desc {
        margin-bottom: 24px;
        font-size: 18px;
    }
    
    .main-content {
        gap: 24px;
    }
    
    .feature {
        padding: 24px 20px;
    }
    
    .hero-label {
        margin-bottom: 14px;
    }
}

@media (max-height: 600px) {
    .header {
        padding: 16px 0;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-desc {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .main-content {
        gap: 20px;
    }
    
    .feature {
        padding: 20px 16px;
    }
    
    .feature-icon {
        margin-bottom: 10px;
    }
}

/* Animação de fade-in elemento por elemento */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Todos os elementos principais começam invisíveis */
.wrapper > *,
.main-content > *,
.hero-actions > *,
.feature,
.step,
.faq-item {
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

/* Sequência do wrapper */
.wrapper > *:nth-child(1) { animation-delay: 0.1s; }
.wrapper > *:nth-child(2) { animation-delay: 0.3s; }
.wrapper > *:nth-child(3) { animation-delay: 0.5s; }

/* Sequência do main content */
.main-content > *:nth-child(1) { animation-delay: 0.2s; }
.main-content > *:nth-child(2) { animation-delay: 0.4s; }
.main-content > *:nth-child(3) { animation-delay: 0.6s; }
.main-content > *:nth-child(4) { animation-delay: 0.8s; }
.main-content > *:nth-child(5) { animation-delay: 1.0s; }
.main-content > *:nth-child(6) { animation-delay: 1.2s; }
.main-content > *:nth-child(7) { animation-delay: 1.4s; }
.main-content > *:nth-child(8) { animation-delay: 1.6s; }
