@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@600;800;900&display=swap');

:root {
    /* Tema Escuro (Padrão) */
    --bg: #0b0b0d;
    --bg-surface: #121216;
    --bg-surface-hover: #1b1b22;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --text: #ffffff;
    --text-muted: #8e8e9f;
    --brand: #FFA800;
    --brand-hover: #e59700;
    --brand-dim: rgba(255, 168, 0, 0.1);
    --shadow: rgba(0, 0, 0, 0.4);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    /* Tema Claro */
    --bg: #f8f9fa;
    --bg-surface: #ffffff;
    --bg-surface-hover: #f1f3f5;
    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);
    --text: #1a1a1e;
    --text-muted: #5e5e6e;
    --shadow: rgba(0, 0, 0, 0.05);
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    transition: var(--transition);
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(11, 11, 13, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: var(--transition);
}

[data-theme="light"] header {
    background: rgba(248, 249, 250, 0.8);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
}

.logo img {
    height: 46px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
}

.logo span {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 18px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text);
}

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

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--brand);
    color: #000000;
}

.btn-primary:hover {
    background-color: var(--brand-hover);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background-color: var(--bg-surface-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

/* Theme Toggle & Lang Selector */
.action-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text);
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.action-btn:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-hover);
}

.lang-dropdown-wrapper {
    position: relative;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px;
    display: none;
    flex-direction: column;
    gap: 4px;
    min-width: 140px;
    box-shadow: 0 10px 25px var(--shadow);
    z-index: 100;
}

.lang-dropdown.show {
    display: flex;
}

.lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: var(--transition);
}

.lang-dropdown a:hover, .lang-dropdown a.active {
    background: var(--brand-dim);
    color: var(--brand);
}

.lang-dropdown img {
    width: 18px;
    height: 12px;
    object-fit: cover;
    border-radius: 1px;
}

/* Hero Section */
.hero {
    padding-top: 160px;
    padding-bottom: 120px;
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(to right, rgba(11, 11, 13, 0.96) 25%, rgba(11, 11, 13, 0.75) 60%, rgba(11, 11, 13, 0.85) 100%), url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: var(--transition);
}

[data-theme="light"] .hero {
    background-image: linear-gradient(to right, rgba(248, 249, 250, 0.96) 25%, rgba(248, 249, 250, 0.75) 60%, rgba(248, 249, 250, 0.85) 100%), url('../images/hero-bg.png');
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--brand-dim);
    border: 1px solid rgba(255, 168, 0, 0.2);
    border-radius: 100px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 24px;
    font-family: var(--font-body);
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--brand);
    box-shadow: 0 0 8px var(--brand);
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero p {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 36px;
    max-width: 520px;
}

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

.playstore-btn {
    display: inline-block;
    height: 42px;
    transition: var(--transition);
}

.playstore-btn:hover {
    transform: translateY(-2px);
}

.playstore-btn img {
    height: 100%;
    width: auto;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Glass card mockup */
.mockup-container {
    width: 100%;
    max-width: 500px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border: 1px solid var(--border);
    padding: 12px;
    box-shadow: 0 30px 60px -15px var(--shadow);
}

.mockup-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    object-fit: cover;
}

/* Features Section */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.section-header p {
    color: var(--text-muted);
    font-size: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.features {
    padding: 80px 0;
    border-top: 1px solid var(--border);
}

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

.feature-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-card:hover {
    background-color: var(--bg-surface-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px var(--shadow);
}

.feature-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--brand-dim);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.contact-card {
    background: linear-gradient(135deg, var(--bg-surface), rgba(var(--bg-surface), 0.7));
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 64px 32px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 30px 60px var(--shadow);
}

.contact-card h2 {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
}

.contact-card p {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 32px;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
    background: rgba(var(--bg-surface), 0.3);
}

.footer-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
}

.footer-links {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

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

.footer-copyright {
    color: var(--text-muted);
    font-size: 13px;
}

/* Documentation Page Specifics */
.docs-layout {
    padding-top: 140px;
    padding-bottom: 80px;
}

.docs-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
}

.docs-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.docs-sidebar h4 {
    font-family: var(--font-heading);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.docs-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.docs-menu a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    display: block;
    padding: 6px 12px;
    border-radius: 6px;
}

.docs-menu a:hover, .docs-menu a.active {
    background: var(--bg-surface);
    color: var(--text);
}

.docs-content {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.docs-article {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
}

.docs-article h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

.docs-article p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.7;
}

.docs-article ul {
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 15px;
}

.docs-article li {
    margin-bottom: 8px;
}

/* Video grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 24px;
}

.video-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.video-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 20px;
}

.video-info h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.4;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero h1 {
        font-size: 38px;
    }
    
    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .docs-grid {
        grid-template-columns: 1fr;
    }
    
    .docs-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Can build simple hamburger overlay if needed, for simplicity we keep it clean */
    }
    
    .header-container {
        justify-content: space-between;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-left {
        align-items: center;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}
