/* CaraCore-PDV — Loja. Todas as páginas: assets/css, assets/js, assets/img */

:root {
    --bg-dark: #0f1514;
    --bg-surface: rgba(19, 28, 27, 0.88);
    --bg-card: rgba(26, 36, 35, 0.9);
    --bg-elevated: rgba(35, 47, 46, 0.92);
    --bg-soft: rgba(184, 148, 74, 0.08);
    --text-primary: #f3efe5;
    --text-secondary: #b8c0b8;
    --text-muted: #86908a;
    --accent-green: #8fcf74;
    --accent-green-strong: #b8f08f;
    --accent-blue: #83c8d8;
    --accent-cyan: #67d3d2;
    --accent-gold: #d8b15b;
    --accent-gold-soft: #f3d495;
    --border: rgba(155, 177, 154, 0.2);
    --border-strong: rgba(216, 177, 91, 0.35);
    --shadow-soft: 0 18px 42px rgba(0, 0, 0, 0.28);
    --shadow-card: 0 22px 52px rgba(4, 10, 9, 0.36);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    line-height: 1.65;
    color: var(--text-primary);
    background:
        radial-gradient(circle at top left, rgba(143, 207, 116, 0.14), transparent 32%),
        radial-gradient(circle at top right, rgba(216, 177, 91, 0.16), transparent 26%),
        radial-gradient(circle at bottom center, rgba(103, 211, 210, 0.1), transparent 28%),
        linear-gradient(180deg, #111918 0%, #0d1312 100%);
    min-height: 100vh;
    padding: 0 22px 56px;
    position: relative;
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

body::before {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 92%);
}

body::after {
    background: linear-gradient(180deg, rgba(216, 177, 91, 0.06), transparent 20%, transparent 80%, rgba(143, 207, 116, 0.06));
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.16em;
}

code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.12em 0.44em;
    color: var(--accent-gold-soft);
}

.wrapper { max-width: 960px; margin: 0 auto; }
body.page-download .wrapper { max-width: 760px; }
body.page-canal .wrapper { max-width: 700px; }
body.page-tecnologia .wrapper { max-width: 760px; }
body.page-wiki .wrapper { max-width: 800px; }

.breadcrumb {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 0.8rem;
    margin: 22px 0 26px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(15, 22, 21, 0.72);
    backdrop-filter: blur(10px);
}

body.page-download .breadcrumb,
body.page-canal .breadcrumb,
body.page-tecnologia .breadcrumb,
body.page-wiki .breadcrumb { margin-bottom: 18px; }

.breadcrumb a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover { color: var(--accent-gold-soft); }
.breadcrumb span { color: var(--text-muted); }
body.page-canal .breadcrumb a { color: var(--accent-cyan); }

header {
    padding: 56px 0 36px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    position: relative;
}

header::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -1px;
    width: min(220px, 38vw);
    height: 2px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

header h1,
.hero-cta .hero-title,
.nav-card h3,
.methodology .card h2,
.page-tecnologia .card h2,
.page-wiki .wiki-card h2,
.channel-card .title {
    font-family: 'Fraunces', Georgia, serif;
}

header h1 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 12px;
}

header .subtitle,
body.page-download header p,
body.page-canal header .subtitle,
body.page-tecnologia header p,
body.page-wiki header p {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto;
}

body.page-download header,
body.page-canal header,
body.page-tecnologia header,
body.page-wiki header {
    padding: 44px 0 30px;
}

body.page-download header h1,
body.page-canal header h1,
body.page-tecnologia header h1,
body.page-wiki header h1 {
    font-size: clamp(1.9rem, 3.4vw, 2.5rem);
}

.pdv-prelaunch-banner,
.hero-cta,
.methodology .card,
.nav-card,
.page-download .card,
.intro,
.channel-card,
.page-tecnologia .card,
.tech-selo,
.page-wiki .wiki-card {
    box-shadow: var(--shadow-card);
}

/* Index: hero, methodology, nav */
.pdv-prelaunch-banner {
    background: linear-gradient(135deg, rgba(143, 207, 116, 0.15) 0%, rgba(216, 177, 91, 0.08) 100%);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    padding: 22px 26px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.pdv-prelaunch-banner::before {
    content: "";
    position: absolute;
    inset: auto -40px -40px auto;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(216, 177, 91, 0.28), transparent 70%);
}

.pdv-prelaunch-banner .pdv-prelaunch-label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent-green-strong);
    margin-bottom: 8px;
}

.pdv-prelaunch-banner .pdv-prelaunch-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.55;
    max-width: 700px;
    position: relative;
}

.hero-cta {
    background: linear-gradient(145deg, rgba(26, 36, 35, 0.96), rgba(18, 26, 25, 0.94));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 38px 40px;
    margin-bottom: 42px;
    position: relative;
    overflow: hidden;
}

.hero-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(143, 207, 116, 0.08), transparent 36%, rgba(216, 177, 91, 0.1));
    pointer-events: none;
}

.hero-cta .hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent-green-strong);
    margin-bottom: 12px;
}

.hero-cta .hero-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    line-height: 1.08;
    max-width: 720px;
    position: relative;
}

.hero-cta .hero-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.72;
    max-width: 760px;
    position: relative;
}

.hero-cta .cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    position: relative;
}

.hero-cta .cta-btn,
.btn-release {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    border: 1px solid transparent;
}

.hero-cta .cta-btn:hover,
.btn-release:hover {
    transform: translateY(-2px);
}

.hero-cta .cta-btn-primary,
.btn-release {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-gold));
    color: #132018;
    box-shadow: 0 14px 30px rgba(143, 207, 116, 0.22);
}

.hero-cta .cta-btn-primary:hover,
.btn-release:hover {
    box-shadow: 0 18px 34px rgba(216, 177, 91, 0.24);
}

.hero-cta .cta-btn-secondary {
    background: rgba(131, 200, 216, 0.08);
    color: var(--accent-blue);
    border-color: rgba(131, 200, 216, 0.28);
}

.hero-cta .cta-btn-secondary:hover { background: rgba(131, 200, 216, 0.14); }

.hero-cta .cta-btn-tertiary {
    background: rgba(216, 177, 91, 0.09);
    color: var(--accent-gold-soft);
    border-color: rgba(216, 177, 91, 0.24);
}

.hero-cta .cta-btn-tertiary:hover { background: rgba(216, 177, 91, 0.14); }

.hero-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
    margin-top: 28px;
    font-size: 0.92rem;
    position: relative;
}

.hero-pillar-item {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px 16px 14px;
    backdrop-filter: blur(10px);
}

.hero-pillar-item strong {
    color: var(--accent-gold-soft);
    display: block;
    margin-bottom: 4px;
}

.hero-pillar-item span { color: var(--text-secondary); }

.methodology { margin: 42px 0 52px; }

.methodology .card,
.page-download .card,
.intro,
.page-tecnologia .card,
.tech-selo,
.page-wiki .wiki-card {
    background: linear-gradient(180deg, rgba(26, 36, 35, 0.94), rgba(19, 28, 27, 0.92));
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.methodology .card {
    padding: 30px 34px;
}

.methodology .card h2,
.page-tecnologia .card h2,
.page-wiki .wiki-card h2 {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--accent-gold-soft);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    text-transform: none;
}

.methodology .card p,
.page-download .card p,
.intro,
.page-tecnologia .card p,
.tech-selo,
.page-wiki .wiki-card p,
.page-wiki .wiki-card ul,
.page-download .card ul,
.channel-card .desc,
.nav-card p {
    font-size: 0.97rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

.methodology .card p strong,
.page-tecnologia .card p strong,
.page-download .card strong,
.page-wiki .wiki-card strong { color: var(--text-primary); }

.methodology .card.card-differential {
    margin-top: 20px;
    border-left: 1px solid var(--border);
    position: relative;
}

.methodology .card.card-differential::before {
    content: "";
    position: absolute;
    left: 0;
    top: 22px;
    bottom: 22px;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent-green), var(--accent-gold));
}

.nav-section-title {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.nav-card {
    background: linear-gradient(180deg, rgba(28, 39, 38, 0.94), rgba(18, 27, 26, 0.94));
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 212px;
    position: relative;
    overflow: hidden;
}

.nav-card::after {
    content: "";
    position: absolute;
    right: -28px;
    bottom: -28px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(131, 200, 216, 0.16), transparent 68%);
}

.nav-card:hover {
    border-color: rgba(216, 177, 91, 0.34);
    background: linear-gradient(180deg, rgba(32, 45, 43, 0.97), rgba(22, 31, 30, 0.97));
    transform: translateY(-4px);
}

.nav-card .icon {
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    flex-shrink: 0;
    padding: 11px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1;
}

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

.nav-card h3 {
    font-size: 1.28rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.nav-card p { position: relative; z-index: 1; }

footer {
    margin-top: 60px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    font-size: 0.88rem;
    color: var(--text-muted);
}

footer p { margin-bottom: 8px; }
footer a { color: var(--accent-blue); text-decoration: none; }
footer a:hover { color: var(--accent-gold-soft); }

/* Download */
.download-notice {
    background: linear-gradient(90deg, rgba(143, 207, 116, 0.14), rgba(216, 177, 91, 0.1));
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    padding: 14px 18px;
    margin-bottom: 24px;
    font-size: 0.93rem;
    color: var(--text-primary);
}

.page-download .card {
    padding: 30px 34px;
    margin: 28px 0;
}

.page-download .card ul,
.page-wiki .wiki-card ul {
    margin: 12px 0 16px 1.2em;
}

.page-download .card a,
.back a,
.page-wiki .wiki-card a {
    color: var(--accent-blue);
    text-decoration: none;
}

.page-download .card a:hover,
.back a:hover,
.page-wiki .wiki-card a:hover { color: var(--accent-gold-soft); }

.btn-release-outline {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border: 1px solid var(--border);
    box-shadow: none;
}

.btn-release-outline:hover {
    background: rgba(255, 255, 255, 0.07);
    box-shadow: none;
}

.page-download .card .card-link-margin { margin-top: 22px; }

.back {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
}

.back a { font-weight: 700; }
body.page-canal .back a { color: var(--accent-cyan); }
body.page-tecnologia .back a { color: var(--accent-blue); }

/* Canal feedback */
.intro {
    margin: 28px 0 24px;
    padding: 22px 24px;
}

.intro p { margin-bottom: 10px; }
.intro p:last-child { margin-bottom: 0; }
.intro strong { color: var(--accent-cyan); }

.no-phone {
    margin: 16px 0;
    padding: 14px 18px;
    background: rgba(216, 177, 91, 0.1);
    border: 1px solid rgba(216, 177, 91, 0.32);
    border-radius: 14px;
    font-size: 0.92rem;
    color: var(--text-primary);
}

.no-phone strong { color: var(--accent-gold-soft); }

.channels {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 28px 0;
}

.channel-card {
    display: block;
    padding: 22px 24px;
    background: linear-gradient(180deg, rgba(25, 37, 36, 0.96), rgba(16, 24, 23, 0.94));
    border: 1px solid var(--border);
    border-radius: 18px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.channel-card:hover {
    transform: translateY(-3px);
    border-color: rgba(103, 211, 210, 0.32);
    box-shadow: 0 18px 36px rgba(5, 12, 11, 0.32);
}

.channel-card .icon {
    font-size: 1.75rem;
    margin-bottom: 10px;
}

.channel-card .title {
    font-size: 1.28rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}

/* Tecnologia */
.page-tecnologia .card {
    padding: 26px 30px;
    margin: 20px 0;
}

.page-tecnologia .card h2 { color: var(--accent-green-strong); }

.tech-selo {
    margin: 26px 0;
    padding: 18px 22px;
    border-radius: 18px;
    border: 1px solid rgba(143, 207, 116, 0.22);
}

.tech-selo strong { color: var(--accent-green-strong); }

/* Wiki */
.page-wiki .wiki-card {
    padding: 26px 30px;
    margin: 20px 0;
    border-left: 1px solid var(--border);
    position: relative;
}

.page-wiki .wiki-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 20px;
    bottom: 20px;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent-blue), var(--accent-cyan));
}

.page-wiki .wiki-card h2 { color: var(--accent-blue); }

.page-wiki .wiki-card p { margin-bottom: 12px; }
.page-wiki .wiki-card p:last-child { margin-bottom: 0; }

.page-wiki .wiki-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.page-wiki .wiki-table-wrap {
    overflow-x: auto;
    margin-top: 8px;
}

.page-wiki .wiki-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
}

.page-wiki .wiki-table th,
.page-wiki .wiki-table td {
    text-align: left;
    vertical-align: top;
    padding: 12px 14px;
    border: 1px solid var(--border);
}

.page-wiki .wiki-table th {
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-gold-soft);
    background: rgba(216, 177, 91, 0.08);
}

.page-wiki .wiki-table td {
    font-size: 0.94rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 820px) {
    body {
        padding: 0 16px 44px;
    }

    .hero-cta,
    .methodology .card,
    .page-download .card,
    .page-tecnologia .card,
    .page-wiki .wiki-card,
    .intro,
    .channel-card {
        padding: 24px 22px;
    }

    .hero-cta .hero-title {
        font-size: clamp(1.8rem, 7vw, 2.6rem);
    }

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

@media (max-width: 560px) {
    .breadcrumb {
        display: flex;
        border-radius: 18px;
        padding: 10px 12px;
    }

    header {
        padding-top: 36px;
    }

    .hero-cta .cta-buttons,
    .page-wiki .wiki-links {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta .cta-btn,
    .btn-release {
        width: 100%;
    }

    .hero-pillars {
        grid-template-columns: 1fr;
    }

    .nav-card {
        min-height: unset;
    }
}
