/* ── Download Page: Hero, Cards, Features, FAQ ──────────────────────── */

/* ═══════════════════════════════════════════════════════════════════════
   HERO — Download
   ═══════════════════════════════════════════════════════════════════════ */
.dl-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 140px 24px 100px;
    background:
        radial-gradient(ellipse 90% 55% at 50% -5%, rgba(250,204,21,.07) 0%, transparent 65%),
        radial-gradient(ellipse 40% 35% at 15% 65%, rgba(88,101,242,.05) 0%, transparent 60%),
        radial-gradient(ellipse 35% 30% at 85% 70%, rgba(250,204,21,.04) 0%, transparent 55%);
}

/* Canvas particles — absolutely fills the hero */
.hero-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.dl-hero-content {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    width: 100%;
    text-align: center;
}

.dl-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(250,204,21,.08);
    border: 1px solid rgba(250,204,21,.25);
    border-radius: 100px;
    padding: 8px 20px;
    font-size: .72rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 28px;
    box-shadow: 0 0 20px rgba(250,204,21,.06);
}
.dl-hero-badge .badge-icon { width: 16px; height: 16px; }

.dl-hero-title {
    font-size: clamp(2.4rem, 6vw, 4.4rem);
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.08;
    letter-spacing: -.02em;
}
.dl-hero-accent {
    color: var(--accent);
    text-shadow: 0 0 40px rgba(250,204,21,.25);
}

.dl-hero-sub {
    font-size: 1.05rem;
    color: var(--text2);
    max-width: 640px;
    margin: 0 auto 52px;
    line-height: 1.75;
}

/* ═══════════════════════════════════════════════════════════════════════
   DOWNLOAD CARDS (Passo a passo) — plataforma com cor própria
   ═══════════════════════════════════════════════════════════════════════ */
.dl-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 24px;
    max-width: 1020px;
    margin: 0 auto 52px;
}

/* Base card */
.dl-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-top: 3px solid transparent;
    border-radius: var(--radius);
    padding: 32px 26px;
    text-align: left;
    transition: transform .3s, border-color .3s, box-shadow .3s;
    position: relative;
    overflow: hidden;
}
.dl-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .4s;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255,255,255,.02) 0%, transparent 60%);
}
.dl-card:hover { transform: translateY(-4px); }
.dl-card:hover::before { opacity: 1; }

/* ── Android ─ */
.dl-card--android { border-top-color: #22c55e; }
.dl-card--android .dl-card-icon {
    background: linear-gradient(135deg, rgba(34,197,94,.15), rgba(34,197,94,.04));
    border: 1px solid rgba(34,197,94,.22);
    color: #22c55e;
}
.dl-card--android:hover {
    border-color: rgba(34,197,94,.35);
    box-shadow: 0 8px 36px rgba(34,197,94,.12);
}
.dl-card--android .dl-steps li::before {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34,197,94,.4);
}

/* ── iOS ─ */
.dl-card--ios { border-top-color: #a855f7; }
.dl-card--ios .dl-card-icon {
    background: linear-gradient(135deg, rgba(168,85,247,.15), rgba(168,85,247,.04));
    border: 1px solid rgba(168,85,247,.22);
    color: #a855f7;
}
.dl-card--ios:hover {
    border-color: rgba(168,85,247,.35);
    box-shadow: 0 8px 36px rgba(168,85,247,.12);
}
.dl-card--ios .dl-steps li::before {
    background: #a855f7;
    color: #fff;
    box-shadow: 0 0 8px rgba(168,85,247,.4);
}

/* ── Desktop ─ */
.dl-card--desktop { border-top-color: #3b82f6; }
.dl-card--desktop .dl-card-icon {
    background: linear-gradient(135deg, rgba(59,130,246,.15), rgba(59,130,246,.04));
    border: 1px solid rgba(59,130,246,.22);
    color: #3b82f6;
}
.dl-card--desktop:hover {
    border-color: rgba(59,130,246,.35);
    box-shadow: 0 8px 36px rgba(59,130,246,.12);
}
.dl-card--desktop .dl-steps li::before {
    background: #3b82f6;
    color: #fff;
    box-shadow: 0 0 8px rgba(59,130,246,.4);
}

.dl-card-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform .3s;
}
.dl-card:hover .dl-card-icon { transform: scale(1.08); }

.dl-card h3 {
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: -.01em;
}

.dl-steps {
    list-style: none;
    counter-reset: step;
    margin: 0 0 16px;
    padding: 0;
}
.dl-steps li {
    counter-increment: step;
    padding: 7px 0 7px 36px;
    position: relative;
    font-size: .87rem;
    color: var(--text2);
    line-height: 1.55;
    border-bottom: 1px solid rgba(255,255,255,.03);
}
.dl-steps li:last-child { border-bottom: none; }
.dl-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 8px;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--accent);
    color: #000;
    font-size: .7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dl-steps li strong {
    color: var(--text);
    font-weight: 600;
}

.dl-note {
    font-size: .77rem;
    color: rgba(255,255,255,.3);
    line-height: 1.55;
    margin: 0;
    padding-top: 4px;
    border-top: 1px solid rgba(255,255,255,.05);
}

/* ═══════════════════════════════════════════════════════════════════════
   CTA
   ═══════════════════════════════════════════════════════════════════════ */
.dl-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 8px;
}

/* ═══════════════════════════════════════════════════════════════════════
   FEATURES GRID
   ═══════════════════════════════════════════════════════════════════════ */
#dl-features { scroll-margin-top: 80px; }

.dl-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
    gap: 20px;
    max-width: 1020px;
    margin: 0 auto;
}

.dl-feature {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 24px;
    text-align: center;
    transition: transform .3s, border-color .3s, box-shadow .3s;
    position: relative;
    overflow: hidden;
}
.dl-feature:hover {
    border-color: rgba(250,204,21,.18);
    transform: translateY(-3px);
    box-shadow: 0 6px 28px rgba(250,204,21,.06);
}

.dl-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px; height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(250,204,21,.1), rgba(250,204,21,.03));
    border: 1px solid rgba(250,204,21,.1);
    font-size: 1.55rem;
    margin: 0 auto 16px;
    transition: transform .3s;
}
.dl-feature:hover .dl-feature-icon { transform: scale(1.1) rotate(-3deg); }

.dl-feature h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -.01em;
}
.dl-feature p {
    font-size: .84rem;
    color: var(--text2);
    line-height: 1.65;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════════════════════════ */
#dl-faq { scroll-margin-top: 80px; }

.dl-faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dl-faq-item {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color .25s, box-shadow .25s;
}
.dl-faq-item[open] {
    border-color: rgba(250,204,21,.22);
    box-shadow: 0 4px 20px rgba(250,204,21,.05);
}

.dl-faq-item summary {
    padding: 18px 22px;
    font-size: .91rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    user-select: none;
    transition: color .2s;
}
.dl-faq-item summary:hover { color: var(--accent); }
.dl-faq-item[open] summary { color: var(--accent); }

.dl-faq-item summary::after {
    content: '+';
    flex-shrink: 0;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: rgba(250,204,21,.08);
    border: 1px solid rgba(250,204,21,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    line-height: 1;
    color: var(--accent);
    font-weight: 400;
    transition: transform .3s, background .3s;
}
.dl-faq-item[open] summary::after {
    content: '−';
    transform: rotate(180deg);
    background: rgba(250,204,21,.14);
}
.dl-faq-item summary::-webkit-details-marker { display: none; }

.dl-faq-item p {
    padding: 0 22px 18px;
    font-size: .87rem;
    color: var(--text2);
    line-height: 1.65;
    margin: 0;
    border-top: 1px solid rgba(255,255,255,.05);
    padding-top: 14px;
}

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .dl-hero { padding: 120px 16px 64px; }
    .dl-hero-sub { font-size: .95rem; }
    .dl-cards { grid-template-columns: 1fr; gap: 16px; }
    .dl-features-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .dl-features-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .dl-hero-title { font-size: 2rem; }
    .dl-hero-badge { font-size: .65rem; padding: 7px 14px; }
}
