:root {
    --primary-color: #00aaff;
    --text-color: #e0e0e0;
    --text-secondary-color: #b0b0b0;
}

body {
    font-family: 'Roboto', sans-serif;
    background: #0D1117;
    background: linear-gradient(180deg, #0D1117 0%, #161B22 100%);
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;

    /* Carousel styles */
    .apps-carousel {
        position: relative;
        display: flex;
        align-items: center;
    }
    .carousel-track-wrapper {
        overflow: hidden;
        flex: 1 1 auto;
    }
    .carousel-track {
        display: flex;
        gap: 24px;
        transition: transform 0.35s ease;
        will-change: transform;
    }
    .carousel-track .app-card {
        min-width: 320px;
        max-width: 360px;
        flex: 0 0 auto;
    }
    .carousel-btn {
        background: rgba(255,255,255,0.06);
        border: none;
        color: var(--text-color);
        font-size: 28px;
        width: 46px;
        height: 46px;
        border-radius: 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        margin: 0 12px;
    }
    .carousel-btn:hover { background: rgba(255,255,255,0.1); }
    .carousel-btn:active { transform: scale(0.98); }
    padding: 20px;
}

/* Header da Página Principal */
header {
    position: relative;
    overflow: hidden;
    padding: 32px 0 70px;
    background: radial-gradient(circle at 20% 20%, rgba(0, 170, 255, 0.15), transparent 35%),
                radial-gradient(circle at 80% 0%, rgba(0, 170, 255, 0.12), transparent 30%),
                rgba(16, 18, 22, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 36px;
}

.brand {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 18px;
    font-weight: 500;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 10px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 32px;
    align-items: center;
}

.hero-copy h1 {
    font-size: 3.2em;
    margin: 0 0 12px 0;
    color: var(--primary-color);
    font-weight: 700;
}

.hero-copy p {
    font-size: 1.2em;
    font-weight: 300;
    margin: 0 0 20px 0;
    color: var(--text-secondary-color);
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ghost-button {
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}

.hero-card {
    background: rgba(30, 30, 30, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.hero-card h3 {
    margin: 0 0 12px 0;
    color: var(--primary-color);
}

.hero-card p {
    margin: 0;
    color: var(--text-secondary-color);
}

main {
    padding: 40px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 60px;
    color: var(--primary-color);
}

/* Grid de Apps na Home */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

/* Card de App na Home */
.app-card {
    background: rgba(30, 30, 30, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px 0 rgba(0, 170, 255, 0.2);
}

.app-card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.app-card .app-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.app-card .app-logo {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    border-radius: 12px;
}

.app-card h3 {
    font-size: 1.8em;
    margin: 0;
    color: var(--primary-color);
}

.app-card .app-description {
    font-weight: 300;
    margin-bottom: 20px;
    flex-grow: 1;
}

.app-card-footer {
    padding: 18px 20px;
    background-color: rgba(0, 0, 0, 0.12);
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.details-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.details-button:hover {
    background-color: #0077b3;
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.5);
    transform: scale(1.05);
}

/* Estilos das Páginas de Detalhes */
.app-header-detail {
    display: flex;
    align-items: center;
    margin: 40px 0;
    padding: 30px;
    background: rgba(30, 30, 30, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

.app-header-detail .app-logo {
    width: 80px;
    height: 80px;
    margin-right: 25px;
    border-radius: 15px;
}

.app-title-group h1 {
    font-size: 3em;
    margin: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.app-title-group p {
    font-size: 1.2em;
    margin: 0;
    font-weight: 300;
}

.back-link {
    display: inline-block;
    margin: 20px 0;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s ease;
}

.back-link:hover {
    transform: translateX(-5px);
}

.content {
    display: block;
    max-width: 800px;
}

.main-content {
    width: 100%;
}

.main-content h2 {
    color: var(--primary-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 2em;
}

.main-content p {
    line-height: 1.7;
    margin-bottom: 16px;
}

.features-list {
    list-style-type: none;
    padding: 0;
    font-size: 1.05em;
}

.features-list li {
    margin-bottom: 20px;
    padding-left: 30px;
    position: relative;
    line-height: 1.7;
}

.features-list li::before {
    content: '✔';
    color: var(--primary-color);
    font-size: 1.2em;
    line-height: 1;
    position: absolute;
    left: 0;
    top: 2px;
}

.feature-title {
    font-weight: 700;
    margin-right: 0.5em;
}

.sidebar .cta-box {
    background: rgba(30, 30, 30, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    margin-top: 48px;
    margin-bottom: 24px;
}

.play-store-button img {
    height: 44px;
    max-height: 56px;
    width: auto;
    transition: transform 0.18s ease, filter 0.18s ease;
}

.play-store-button:hover img {
    transform: scale(1.03);
    filter: drop-shadow(0 0 8px rgba(0, 170, 255, 0.45));
}

.coming-soon-button {
    display: inline-block;
    padding: 15px 25px;
    background-color: #333;
    color: #999;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1em;
    cursor: not-allowed;
    user-select: none;
    transition: all 0.3s ease;
}

.coming-soon-button:hover {
    box-shadow: 0 0 20px rgba(153, 153, 153, 0.3);
}

/* Footer Geral */
footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
    background: rgba(16, 18, 22, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    font-size: 0.9em;
    color: var(--text-secondary-color);
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
}

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

.intro-card {
    background: rgba(30, 30, 30, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
}

.intro-card h2 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 2.2em;
}

.intro-card p {
    margin: 0;
    color: var(--text-secondary-color);
    font-size: 1.05em;
}

/* Media Queries para Responsividade */
@media (max-width: 768px) {
    .top-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .nav-links {
        flex-wrap: wrap;
        gap: 10px;
    }
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-copy h1 {
        font-size: 2.4em;
    }
    .content {
        display: block;
        max-width: 100%;
    }
    .app-header-detail {
        flex-direction: column;
        text-align: center;
    }
    .app-header-detail .app-logo {
        margin-right: 0;
        margin-bottom: 20px;
    }
}

/* Additional responsiveness for tablets and small phones */
@media (max-width: 1024px) {
    .container {
        padding: 18px;
    }
    .hero-copy h1 {
        font-size: 2.6em;
    }
    .app-card .app-logo {
        width: 52px;
        height: 52px;
    }
    .app-card-content { padding: 22px; }
    .app-card-footer { padding: 18px; }
    .intro-card { padding: 22px; }
}

@media (max-width: 480px) {
    body { font-size: 15px; }
    .container { padding: 12px; }
    .hero-copy h1 { font-size: 1.8em; }
    .hero-copy p { font-size: 1em; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .details-button, .ghost-button { width: 100%; text-align: center; }
    .apps-grid { gap: 20px; grid-template-columns: 1fr; }
    .app-card-content { padding: 16px; }
    .app-card .app-logo { width: 44px; height: 44px; margin-right: 12px; }
    .app-card h3 { font-size: 1.25em; }
    .app-card .app-description { font-size: 0.98em; }
    .app-card-footer { padding: 14px; }
    .app-header-detail { padding: 18px; }
    .app-header-detail .app-logo { width: 64px; height: 64px; margin-bottom: 12px; }
    .app-title-group h1 { font-size: 1.6em; }
    .main-content h2 { font-size: 1.4em; margin-top: 28px; }
    .main-content p { font-size: 0.98em; }
    .play-store-button img { height: 48px; }
    .sidebar .cta-box { padding: 18px; margin-top: 24px; }
    .back-link { margin: 14px 0; }
}

/* small tweak: ensure badge images scale but keep aspect */
.play-store-button img { max-width: 100%; height: auto; }

@media (min-width: 1100px) {
    .play-store-button img { height: 56px; }
}

.carousel-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 18px;
}
.carousel-dots .dot {
    width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255,255,255,0.12); cursor: pointer; padding: 0;
}
.carousel-dots .dot.active { background: var(--primary-color); box-shadow: 0 0 6px rgba(0,170,255,0.18); }


@media (max-width: 480px) {
    .play-store-button img { height: 40px; }
}

/* ensure main content is centered on wide screens */
.content { margin: 0 auto; padding: 0 10px; }
