/* ==========================================
   DUOART DIGITAL - HOME (home.css)
   ========================================== */

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 10rem;
    background: linear-gradient(transparent, var(--bg-primary));
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 48rem;
    margin: 0 auto;
    padding: 8rem 0 4rem;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    border: var(--border-glass);
    border-radius: 3rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.8rem;
}

.hero-badge .dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 0.6rem var(--cyan);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-title {
    font-family: var(--font-title);
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-title .line {
    display: block;
    overflow: hidden;
}

.hero-title .line span {
    display: block;
    transform: translateY(110%);
    animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-title .line:nth-child(2) span { animation-delay: 0.15s; }

@keyframes rise { to { transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
    .hero-title .line span { transform: none; animation: none; }
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 34rem;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* ---------- STATS ---------- */
.stats {
    padding: 2rem 0 5rem;
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
}

.stat-number {
    font-family: var(--font-title);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

/* ---------- BENTO SERVIÇOS ---------- */
.services-preview {
    padding: 5rem 0;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto 3.5rem;
}

.section-header p { color: var(--text-secondary); }

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 13rem;
    gap: 1.25rem;
}

.bento-item {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.5rem;
}

.bento-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-item.wide { grid-column: span 2; }

.bento-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.8rem;
    background: rgba(0, 217, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--cyan);
    margin-bottom: auto;
}

.bento-item:nth-child(even) .bento-icon {
    background: rgba(180, 57, 255, 0.1);
    color: var(--purple);
}

.bento-item h3 {
    font-family: var(--font-title);
    font-size: 1.2rem;
    font-weight: 700;
}

.bento-item.large h3 { font-size: 1.6rem; }

.bento-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.bento-item .price {
    font-family: var(--font-title);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cyan);
    margin-top: 0.3rem;
}

/* Bloco CTA que fecha a grade (espaço vazio à direita do SEO) */
.bento-item.bento-cta {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(0,217,255,0.06), rgba(180,57,255,0.06));
    border-color: rgba(0, 217, 255, 0.25);
}

.bento-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--cyan);
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.5rem;
    transition: gap 0.3s ease;
}

.bento-link:hover { gap: 0.9rem; }

/* ---------- CTA FINAL ---------- */
.cta-section {
    padding: 5rem 0;
    position: relative;
    z-index: 2;
}

.cta-box {
    text-align: center;
    padding: 4.5rem 2rem;
    position: relative;
}

.cta-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0, 217, 255, 0.08), transparent 65%);
    pointer-events: none;
}

.cta-box h2 {
    font-family: var(--font-title);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-box p {
    color: var(--text-secondary);
    max-width: 32rem;
    margin: 0 auto 2rem;
}

/* ---------- RESPONSIVO ---------- */
@media (max-width: 900px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-item.large {
        grid-column: span 2;
        grid-row: span 1;
    }
    .bento-item.bento-cta { grid-column: span 2; }
}

@media (max-width: 560px) {
    .bento-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
    .bento-item.large,
    .bento-item.wide,
    .bento-item.bento-cta { grid-column: span 1; }
    .bento-item.large { grid-row: span 1; }
    .bento-item { min-height: 12rem; }
    .hero-actions .btn { width: 100%; justify-content: center; }
}