/* Picsell — refinements alem do Tailwind CDN */

:root {
    --brand-50:  #fff7ed;
    --brand-100: #ffedd5;
    --brand-300: #fdba74;
    --brand-500: #f97316;
    --brand-600: #ea580c;
    --brand-700: #c2410c;
    --brand-900: #7c2d12;
    --ink:       #0f172a;
    --ink-soft:  #1e293b;
}

html { scroll-behavior: smooth; }

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ========== Mesh gradient hero ========== */
.mesh-hero {
    position: relative;
    background:
        radial-gradient(ellipse 60% 60% at 20% 30%, rgba(249, 115, 22, 0.18), transparent 60%),
        radial-gradient(ellipse 50% 50% at 80% 70%, rgba(236, 72, 153, 0.15), transparent 60%),
        radial-gradient(ellipse 80% 50% at 50% 100%, rgba(99, 102, 241, 0.12), transparent 70%),
        linear-gradient(135deg, #0a0e1a 0%, #1a1d2e 50%, #0f1729 100%);
}
.mesh-hero::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
}

/* ========== Floating photo cards no hero ========== */
.float-card {
    animation: float 6s ease-in-out infinite;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.float-card:nth-child(2) { animation-delay: -1.5s; animation-duration: 7s; }
.float-card:nth-child(3) { animation-delay: -3s;   animation-duration: 8s; }
.float-card:nth-child(4) { animation-delay: -4.5s; animation-duration: 9s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
    50%      { transform: translateY(-12px) rotate(var(--rot, 0deg)); }
}

/* ========== Reveal on scroll ========== */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}
[data-reveal-delay="100"] { transition-delay: 0.1s; }
[data-reveal-delay="200"] { transition-delay: 0.2s; }
[data-reveal-delay="300"] { transition-delay: 0.3s; }
[data-reveal-delay="400"] { transition-delay: 0.4s; }
[data-reveal-delay="500"] { transition-delay: 0.5s; }
@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ========== Header sticky com blur ========== */
header.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.85);
    transition: background 0.25s, box-shadow 0.25s, border-color 0.25s;
}
header.site-header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 12px 32px -16px rgba(0, 0, 0, 0.08);
    border-color: rgba(226, 232, 240, 0.7);
}

/* ========== Botoes com sheen ========== */
.btn-primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
    color: white;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.7s;
}
.btn-primary:hover::after { transform: translateX(100%); }

/* ========== Cards com border-gradient ========== */
.card-feat {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 28px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
    border: 1px solid #e2e8f0;
}
.card-feat:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px -10px rgba(15, 23, 42, 0.15), 0 4px 12px -4px rgba(15, 23, 42, 0.08);
    border-color: var(--brand-300);
}
.card-feat .icon-wrap {
    width: 52px; height: 52px;
    border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--brand-100), white);
    color: var(--brand-700);
    margin-bottom: 16px;
}

/* ========== Pricing tier ========== */
.tier {
    background: white;
    border-radius: 18px;
    padding: 32px;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    position: relative;
}
.tier:hover { transform: translateY(-4px); box-shadow: 0 16px 48px -16px rgba(15, 23, 42, 0.18); }
.tier.featured {
    border: 2px solid var(--brand-500);
    box-shadow: 0 12px 36px -12px rgba(249, 115, 22, 0.4);
}
.tier.featured::before {
    content: 'Mais popular';
    position: absolute; top: -12px; right: 24px;
    background: var(--brand-500); color: white;
    font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    padding: 4px 12px; border-radius: 999px;
}

/* ========== Showcase grid masonry-ish ========== */
.showcase-grid img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s;
}
.showcase-grid a:hover img { transform: scale(1.05); }

/* ========== FAQ ========== */
details.faq-item {
    border-bottom: 1px solid #e2e8f0;
    padding: 18px 0;
}
details.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--ink);
    display: flex; align-items: center; justify-content: space-between;
    list-style: none;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
    content: '+';
    font-size: 24px;
    font-weight: 300;
    color: var(--brand-500);
    transition: transform 0.3s;
}
details.faq-item[open] summary::after { transform: rotate(45deg); }
details.faq-item p { margin-top: 12px; color: #475569; line-height: 1.65; }

/* ========== Stat counter ========== */
.stat-num {
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ========== Hover scale gentle pra cards ========== */
.hover-lift { transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s; }
.hover-lift:hover { transform: translateY(-2px); }

/* ========== Glow ring ao redor de elemento ========== */
.glow-ring {
    box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.2),
                0 0 0 6px rgba(249, 115, 22, 0.08);
}
