:root {
    --bg-color: #09090a; /* Fundo principal */
    --bg-secondary: #0f0f11; /* Fundo secundário (features) */
    --bg-card: #1f1f23; /* Fundo dos cards */
    --text-main: #e4e4e7; /* Texto claro */
    --text-muted: #a1a1aa; /* Texto acinzentado */
    --primary: #c82245; /* Vermelho carmesim da Tayama */
    --primary-hover: #e0284f;
    --border-color: #2a2a30;
    --font-family: 'PT Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-color: var(--border-color);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-family);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ─────────────────────────── */
/* CABEÇALHO (HEADER)          */
/* ─────────────────────────── */
.header {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(9, 9, 10, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.25rem;
    text-decoration: none;
    transition: opacity 0.3s;
}

.logo:hover {
    opacity: 0.8;
}

.github-link {
    color: var(--text-muted);
    transition: color 0.3s;
}

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

/* ─────────────────────────── */
/* SISTEMA SPA (PÁGINAS)       */
/* ─────────────────────────── */
.page {
    display: none;
    flex: 1;
}

.page.active {
    display: block;
}

/* ─────────────────────────── */
/* SEÇÃO: HERO                 */
/* ─────────────────────────── */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 1rem;
    min-height: 85vh;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('public/supermarket.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, var(--bg-color), rgba(9,9,10,0.8), rgba(9,9,10,0.3));
    z-index: 0;
}

.avatar-container {
    position: relative;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.avatar-glow {
    position: absolute;
    inset: 0;
    background-color: rgba(200, 34, 69, 0.4);
    border-radius: 50%;
    filter: blur(40px);
    transform: scale(1.25);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.avatar-image {
    position: relative;
    width: 16rem;
    height: 16rem;
    border-radius: 50%;
    border: 4px solid var(--primary);
    box-shadow: 0 0 50px rgba(200, 34, 69, 0.7);
    object-fit: cover;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    z-index: 10;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 42rem;
    margin-bottom: 3rem;
    z-index: 10;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    z-index: 10;
}

@media (max-width: 600px) {
    .cta-buttons {
        flex-direction: column;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 20px rgba(200, 34, 69, 0.3);
}

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

.btn-secondary {
    background-color: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(31, 31, 35, 0.8);
}

.btn-outline {
    background-color: var(--bg-card);
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: #fff;
}

/* ─────────────────────────── */
/* TUTORIAL SECTION            */
/* ─────────────────────────── */
.tutorial-section {
    padding: 6rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

.section-container {
    max-width: 56rem;
    margin: 0 auto;
}

.section-title-wrapper {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
}

.step-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.step-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

@media (max-width: 600px) {
    .step-item {
        flex-direction: column;
    }
}

.step-number {
    width: 3.5rem;
    height: 3.5rem;
    flex-shrink: 0;
    background-color: #0a0a0c;
    color: var(--primary);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.step-item:hover .step-number {
    border-color: rgba(200, 34, 69, 0.5);
    background-color: rgba(200, 34, 69, 0.1);
}

.step-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.step-content p {
    color: var(--text-muted);
    line-height: 1.6;
}

code {
    background-color: var(--bg-card);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    border: 1px solid var(--border-color);
    font-family: monospace;
    font-size: 0.9em;
}

/* ─────────────────────────── */
/* FEATURES SECTION            */
/* ─────────────────────────── */
.features-section {
    padding: 6rem 1.5rem;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    transition: border-color 0.3s;
}

.feature-card:hover {
    border-color: rgba(200, 34, 69, 0.5);
}

.feature-icon {
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* ─────────────────────────── */
/* CTA SECTION                 */
/* ─────────────────────────── */
.cta-section {
    padding: 6rem 1.5rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.cta-section h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--text-muted);
    max-width: 36rem;
    margin: 0 auto 2.5rem auto;
}

/* ─────────────────────────── */
/* PÁGINA: TERMOS              */
/* ─────────────────────────── */
.termos-container {
    max-width: 48rem;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    width: 100%;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--primary);
}

.termos-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.termos-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.termos-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.termos-footer {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.875rem;
}

/* ─────────────────────────── */
/* FOOTER                      */
/* ─────────────────────────── */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    background-color: #0a0a0a;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--text-main);
}

/* ─────────────────────────── */
/* AUDIO PLAYER                */
/* ─────────────────────────── */
.audio-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background-color: rgba(9, 9, 10, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--primary);
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.audio-btn:hover {
    border-color: rgba(200, 34, 69, 0.7);
}

.audio-btn.playing {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(200, 34, 69, 0.4);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spin-icon {
    animation: spin 4s linear infinite;
}

