/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #1a1a1a;
    --bg-secondary: #242424;
    --bg-tertiary: #2d2d2d;
    --text: #e8e8e8;
    --text-muted: #a0a0a0;
    --accent: #75fb47;
    --accent-hover: #5dd830;
    --border: #3a3a3a;
    --terminal-bg: #0a0a0a;
    --terminal-text: #75fb47;
    --shadow: rgba(0, 0, 0, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Language Toggle */
.lang-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--accent);
    color: #000;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    z-index: 1000;
    transition: all 0.3s;
}

.lang-toggle:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 15px rgba(117, 251, 71, 0.4);
}

/* Hide inactive language */
body:not(.lang-pt) .lang-pt {
    display: none;
}

body.lang-pt .lang-en {
    display: none;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 20px 60px;
    background: var(--bg);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: radial-gradient(ellipse at top, rgba(117, 251, 71, 0.08), transparent);
    pointer-events: none;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
}

.polly-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

/* Terminal Title */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@800&display=swap');

.pixel-art-title {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 64px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 4px;
    text-transform: lowercase;
}

.hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text);
}

.subtitle {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.subtitle a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.subtitle a:hover {
    text-decoration: underline;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--accent);
    color: #000;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(117, 251, 71, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-secondary:hover {
    background: var(--accent);
    color: #000;
    transform: translateY(-2px);
}

/* Video Section */
.video-section {
    padding: 60px 20px;
    background: var(--bg-secondary);
}

.video-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--text);
}

.video-placeholder {
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    background: var(--terminal-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border);
    box-shadow: 0 10px 40px var(--shadow);
}

.video-content {
    text-align: center;
    color: var(--terminal-text);
}

.video-content svg {
    margin-bottom: 20px;
    opacity: 0.7;
}

.video-content p {
    font-size: 20px;
    font-weight: 600;
}

/* Terminal Section */
.terminal-section {
    padding: 60px 20px;
}

.terminal {
    max-width: 900px;
    margin: 0 auto;
    background: var(--terminal-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px var(--shadow), 0 0 60px rgba(117, 251, 71, 0.1);
    border: 1px solid var(--border);
}

.terminal-header {
    background: var(--bg-tertiary);
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.terminal-title {
    margin-left: auto;
    color: #999;
    font-size: 13px;
    font-family: 'Courier New', monospace;
}

.terminal-body {
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: var(--terminal-text);
}

.terminal-body .output {
    color: var(--terminal-text);
}

.terminal-body .command {
    color: #00ccff;
    font-weight: bold;
}

/* Features Section */
.features {
    padding: 60px 20px;
    background: var(--bg);
}

.features h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: var(--text);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.feature:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 5px 20px rgba(117, 251, 71, 0.1);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 15px;
    color: var(--accent);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--text);
}

.feature p {
    color: var(--text-muted);
    font-size: 16px;
}

/* Installation Section */
.installation {
    padding: 60px 20px;
    background: var(--bg-secondary);
}

.installation h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--text);
}

.code-block {
    max-width: 700px;
    margin: 0 auto;
    background: var(--terminal-bg);
    border-radius: 8px;
    padding: 30px;
    border: 1px solid var(--border);
    box-shadow: 0 5px 20px var(--shadow);
}

.code-block pre {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.8;
    color: var(--terminal-text);
    overflow-x: auto;
}

.code-block code {
    color: var(--terminal-text);
}

/* Footer */
footer {
    padding: 40px 20px;
    background: var(--bg);
    border-top: 1px solid var(--border);
    text-align: center;
}

footer p {
    color: var(--text-muted);
    margin-bottom: 15px;
}

footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}

.footer-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 14px;
}

.license {
    font-size: 14px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }

    .subtitle {
        font-size: 18px;
    }

    .ascii-logo pre {
        font-size: 10px;
    }

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

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
    
    .logo-container {
        flex-direction: column;
        gap: 10px;
    }
}
