:root {
    scroll-behavior: smooth;
    /* Colors - Modern Clean Dark (Zinc Palette) */
    --bg-dark: #09090b;
    /* Zinc 950 - Cleaner than purple tint */
    --bg-card: #18181b;
    /* Zinc 900 */
    --bg-card-hover: #27272a;
    /* Zinc 800 */

    --primary: #8b5cf6;
    /* Violet 500 - Vibrant & Modern */
    --primary-glow: #a78bfa;
    --accent: #22c55e;
    /* Green 500 - Cleaner than neon green */

    --text-main: #fafafa;
    /* Zinc 50 */
    --text-muted: #a1a1aa;
    /* Zinc 400 */
    --border-color: #27272a;

    /* Gradients */
    --gradient-main: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    /* Violet to Indigo */
    --gradient-card: linear-gradient(to bottom right, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));

    /* Fonts */
    --font-main: 'Outfit', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

h1 {
    font-size: 4rem;
    /* Larger */
    letter-spacing: -2px;
    background: linear-gradient(to right, #fff, #c4b5fd);
    /* Cleaner gradient */
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

p {
    color: var(--text-muted);
    font-size: 1.125rem;
    font-weight: 300;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    /* Modern cleaner radius */
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid transparent;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    /* Solid modern color */
    color: white;
    box-shadow: 0 10px 30px -10px rgba(139, 92, 246, 0.5);
    /* Soft glow */
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #7c3aed;
    box-shadow: 0 20px 40px -10px rgba(139, 92, 246, 0.6);
}

.btn-whatsapp {
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: var(--accent);
}

.btn-whatsapp:hover {
    background-color: var(--accent);
    color: #000;
    box-shadow: 0 10px 30px -10px rgba(34, 197, 94, 0.4);
}

.card-clean {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.card-clean:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}

.section-padding {
    padding: 120px 0;
    /* More whitespace */
}

/* Navbar Styles */
.navbar {
    padding: 20px 0;
    position: sticky;
    top: 0;
    background: rgba(9, 9, 11, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-nav {
    padding: 0.6rem 1.2rem !important;
    font-size: 0.9rem !important;
}

/* Hero Section Styles */
.hero-container {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 280px;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
}

.badge-text {
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 500;
}

.hero-title {
    text-align: left;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.text-accent {
    color: var(--accent);
    background: none;
    -webkit-text-fill-color: initial;
}

.hero-description {
    text-align: left;
    font-size: 1.25rem;
    margin-bottom: 3rem;
    max-width: 540px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.hero-social-proof {
    margin-top: 3rem;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    color: #666;
}

.hero-avatars {
    display: flex;
}

.avatar-item {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 3px solid var(--bg-dark);
    overflow: hidden;
    margin-right: -10px;
    position: relative;
}

.hero-visual-wrapper {
    flex: 1.2;
    min-width: 280px;
    perspective: 1000px;
}

.visual-container {
    width: 100%;
    height: 680px;
    position: relative;
    display: flex;
}

/* Timeline / Passo a Passo */
.timeline-step {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.timeline-number {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
    flex-shrink: 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    transform: translateX(-50%);
    opacity: 0.3;
}

@media (max-width: 768px) {
    .timeline-step {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .timeline-number {
        margin: 0 auto 1rem auto;
    }

    .chat-container {
        margin: 0 auto;
    }
}

/* 3D Animations for Hero */
@keyframes float-3d {
    0% {
        transform: rotateY(-10deg) rotateX(5deg) translateY(0px);
    }

    50% {
        transform: rotateY(-12deg) rotateX(8deg) translateY(-20px);
    }

    100% {
        transform: rotateY(-10deg) rotateX(5deg) translateY(0px);
    }
}

.hero-visual {
    animation: float-3d 6s ease-in-out infinite;
    transform-style: preserve-3d;
}

.hero-visual:hover {
    animation-play-state: paused;
    /* Pause on hover to inspect */
}

.phone-chassis {
    width: 300px;
    height: 600px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 50%, #000 100%);
    border-radius: 44px;
    padding: 10px;
    box-shadow:
        -30px 30px 60px rgba(0, 0, 0, 0.6),
        inset 0 0 15px rgba(255, 255, 255, 0.1),
        0 0 0 2px rgba(255, 255, 255, 0.05);
    /* Subtle outline */
    border: 6px solid #000;
    margin: 0 auto;
    position: relative;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: rotateY(-15deg) rotateX(5deg);
    transform-style: preserve-3d;
}

/* Side Buttons */
.phone-chassis::before {
    content: '';
    position: absolute;
    right: -9px;
    top: 120px;
    width: 4px;
    height: 50px;
    background: #333;
    border-radius: 2px;
    box-shadow: -1px 0 2px rgba(0, 0, 0, 0.5);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #0b141a;
    /* WhatsApp Dark BG */
    background-image: url("https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png");
    background-blend-mode: overlay;
    border-radius: 34px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
    /* Inner screen shadow */
}

.phone-header {
    background: #202c33;
    padding: 40px 15px 15px 15px;
    /* Top padding for notch */
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #000;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    z-index: 10;
}

.chat-msg {
    padding: 10px 15px;
    border-radius: 12px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    max-width: 85%;
    position: relative;
    line-height: 1.4;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.chat-msg.sent {
    background: #005c4b;
    color: #fff;
    align-self: flex-end;
    border-top-right-radius: 0;
}

.chat-msg.received {
    background: #202c33;
    color: #fff;
    align-self: flex-start;
    border-top-left-radius: 0;
}

.message-time {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: right;
    margin-top: 4px;
}

.hero-visual:hover {
    transform: rotateY(-5deg) rotateX(2deg) translateY(-10px) !important;
    transition: transform 0.5s ease-out;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.25rem;
        text-align: center;
    }

    h2 {
        font-size: 1.8rem;
        text-align: center;
    }

    p {
        text-align: center !important;
        font-size: 1rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    /* Navbar */
    .navbar {
        padding: 15px 0;
    }

    .nav-links a:not(.btn) {
        display: none;
    }

    .btn-nav {
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem !important;
    }

    /* Hero */
    .hero-container {
        text-align: center;
        gap: 20px;
        flex-direction: column;
        padding-top: 40px;
    }

    .hero-content {
        text-align: center;
        width: 100%;
        min-width: auto;
    }

    .hero-title,
    .hero-description {
        text-align: center !important;
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }

    .hero-badge {
        margin: 0 auto 1.5rem auto;
    }

    .hero-btns {
        justify-content: center;
        gap: 0.8rem;
    }

    .hero-social-proof {
        justify-content: center;
        margin-top: 2rem;
        margin-bottom: 4rem;
        /* More space before the visual section starts */
    }

    .hero-visual-wrapper {
        perspective: none;
        width: 100%;
        min-width: auto;
        overflow: visible;
        margin-top: 1rem;
    }

    .visual-container {
        height: auto;
        min-height: 450px;
    }

    .floating-pastor {
        width: 100% !important;
        left: auto !important;
        right: auto !important;
        top: 0 !important;
        height: auto !important;
        min-height: 420px !important;
        max-width: 300px !important;
        position: relative !important;
        margin: 40px auto 0 auto !important;
        /* Forces it down and centers */
        transform: none !important;
        /* Clears any translate that might cause overlap */
    }

    .floating-mariana-new {
        display: none !important;
    }

    /* Steps */
    .timeline-step {
        flex-direction: column !important;
        text-align: center;
        gap: 2rem;
        margin-bottom: 80px;
    }

    .timeline-step>div {
        width: 100% !important;
        padding: 0 !important;
        text-align: center !important;
    }

    .timeline-number {
        margin: 0 auto 1.5rem auto !important;
    }

    .timeline-line {
        display: none;
    }

    .chat-container {
        margin: 0 auto;
        max-width: 100%;
    }

    /* Grids Management */
    /* Only apply stack to auto-fit grids or specific layout containers */
    .features-grid,
    .testimonials-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    /* Stats / Benefits List */
    .stats-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 2.5rem !important;
        align-items: center;
    }

    /* FAQ and Cards */
    .card-clean,
    .faq-item {
        width: 100%;
    }
}

/* NEW FLOATING ANIMATIONS */
@keyframes float-drifting {
    0% {
        transform: translate(-50%, -50%) translateY(0px) rotate(0deg);
    }

    50% {
        transform: translate(-50%, -50%) translateY(-20px) rotate(1deg);
    }

    100% {
        transform: translate(-50%, -50%) translateY(0px) rotate(0deg);
    }
}

@keyframes float-mobile {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(0.5deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes float-mariana {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(-3deg) translateX(15px);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.floating-pastor {
    animation: float-drifting 10s ease-in-out infinite !important;
}

@media (max-width: 768px) {
    .floating-pastor {
        animation: float-mobile 8s ease-in-out infinite !important;
    }
}

.floating-mariana-new {
    animation: float-mariana 12s ease-in-out infinite !important;
}