/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Sabidinho palette */
    --brown-dark: #4A3928;
    --brown-medium: #6E533A;
    --beige-medium: #E7D8BE;
    --beige-light: #F5EAD8;
    --orange: #F29C1F;
    --black-soft: #1A1A1A;
    --shadow-bg: #3A2F23;

    --text-dark: var(--black-soft);
    --text-light: #6E533A;
    --bg-light: var(--beige-light);
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--beige-light);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--shadow-bg) 0%, var(--brown-medium) 100%);
    color: var(--beige-light);
    text-align: center;
    padding: 40px 20px 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ctext x='10' y='50' font-size='40' fill='%23ffffff' opacity='0.03'%3E💰%3C/text%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Ctext x='10' y='40' font-size='30' fill='%23ffffff' opacity='0.04'%3E💵%3C/text%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg width='90' height='90' viewBox='0 0 90 90' xmlns='http://www.w3.org/2000/svg'%3E%3Ctext x='10' y='45' font-size='35' fill='%23ffffff' opacity='0.03'%3E💸%3C/text%3E%3C/svg%3E");
    background-size: 100px 100px, 80px 80px, 90px 90px;
    background-position: 0 0, 40px 60px, 130px 10px;
    animation: floatPattern 60s linear infinite;
}

@keyframes floatPattern {
    0% {
        background-position: 0 0, 40px 60px, 130px 10px;
    }
    100% {
        background-position: 1000px 1000px, 1040px 1060px, 1130px 1010px;
    }
}

/* Brand Logo with Nerd Icon + Satisfy Font */
.logo-container {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.brand-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: float 3s ease-in-out infinite;
}

.nerd-icon {
    font-size: 8rem;
    line-height: 1;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
}

.brand-name {
    font-family: 'Satisfy', cursive !important;
    font-size: 6rem;
    color: var(--beige-light);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 3px;
    font-weight: 400;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.05rem;
    margin-bottom: 30px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hide-mobile {
    display: inline;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--orange);
    color: var(--black-soft);
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    background-color: #FFB347;
}

.cta-button.large {
    padding: 18px 36px;
    font-size: 1.2rem;
}

.cta-button i {
    font-size: 1.5rem;
}

.hero-note {
    margin-top: 20px;
    font-size: 0.95rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

.hero-note strong {
    color: var(--orange);
    font-weight: 700;
}

/* Chat Demo Section */
.chat-demo {
    padding: 60px 20px;
    background-color: var(--beige-light);
}

.demo-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--brown-dark);
}

.demo-subtitle {
    text-align: center;
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.phone-mockup {
    max-width: 400px;
    margin: 0 auto;
    background: #000;
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.phone-header {
    position: relative;
}

.phone-notch {
    width: 150px;
    height: 30px;
    background: #000;
    border-radius: 0 0 20px 20px;
    margin: 0 auto 10px;
    position: relative;
    z-index: 10;
}

.whatsapp-header {
    background-color: var(--brown-dark);
    padding: 15px;
    border-radius: 28px 28px 0 0;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--white);
}

.whatsapp-header i {
    font-size: 1.2rem;
}

.header-info {
    display: flex;
    flex-direction: column;
}

.group-name {
    font-weight: 600;
    font-size: 1rem;
}

.group-members {
    font-size: 0.75rem;
    opacity: 0.8;
}

.phone-screen {
    background: #E7D8BE;
    height: 550px;
    overflow-y: auto;
    border-radius: 0 0 28px 28px;
    position: relative;
}

.chat-messages {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    display: flex;
    flex-direction: column;
    max-width: 85%;
    opacity: 0;
    transform: translateY(20px);
}

.message.animate-in.visible {
    animation: slideIn 0.5s ease forwards;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.delay-1 { animation-delay: 0.5s; }
.message.delay-2 { animation-delay: 1.5s; }
.message.delay-3 { animation-delay: 3s; }
.message.delay-4 { animation-delay: 4s; }
.message.delay-5 { animation-delay: 5.5s; }
.message.delay-6 { animation-delay: 6.5s; }
.message.delay-7 { animation-delay: 8s; }
.message.delay-8 { animation-delay: 9s; }

.user-message {
    align-self: flex-end;
}

.bot-message {
    align-self: flex-start;
}

.message-bubble {
    padding: 10px 14px;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
}

.user-message .message-bubble {
    background-color: var(--beige-light);
    border-radius: 8px 8px 0 8px;
}

.bot-message .message-bubble {
    background-color: var(--white);
    border-radius: 8px 8px 8px 0;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.bot-avatar {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.bot-content {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.5;
}

.message-time {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-top: 4px;
    align-self: flex-end;
}

/* How It Works Section */
.how-it-works {
    padding: 60px 20px;
    background-color: var(--beige-medium);
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--brown-dark);
}

.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    text-align: center;
    padding: 30px;
    background: var(--beige-light);
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--orange), var(--brown-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 2rem;
}

.step-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--brown-dark);
}

.step-description {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

.step-description strong {
    color: var(--orange);
    font-weight: 600;
}

.step-description em {
    background-color: var(--beige-medium);
    padding: 2px 8px;
    border-radius: 4px;
    font-style: normal;
    font-weight: 500;
}

/* Features Section */
.features {
    padding: 60px 20px;
    background-color: var(--beige-light);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature {
    background: var(--beige-medium);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.feature:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--orange), var(--brown-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 1.5rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--brown-dark);
}

.feature-description {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Use Cases Section */
.use-cases {
    padding: 60px 20px;
    background-color: var(--beige-medium);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 800px;
    margin: 0 auto;
}

.use-case {
    background: var(--beige-light);
    padding: 35px 25px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.use-case:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.use-case-emoji {
    font-size: 4rem;
    margin-bottom: 15px;
    line-height: 1;
}

.use-case h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--brown-dark);
    margin-bottom: 10px;
}

.use-case p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

/* CTA Section */
.cta-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--brown-medium) 0%, var(--shadow-bg) 100%);
    color: var(--beige-light);
    text-align: center;
}

.cta-nerd {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

.cta-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-steps {
    max-width: 550px;
    margin: 30px auto 20px;
    background: rgba(255, 255, 255, 0.15);
    padding: 25px 35px;
    border-radius: 16px;
    text-align: left;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.cta-steps p {
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.05rem;
    text-align: center;
}

.cta-steps ol {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
    margin: 0;
}

.cta-steps li {
    margin-bottom: 12px;
    padding-left: 40px;
    position: relative;
    line-height: 1.6;
    counter-increment: step-counter;
}

.cta-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    background: var(--orange);
    color: var(--black-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.cta-steps strong {
    color: var(--orange);
    font-weight: 700;
}

.cta-note {
    margin-top: 25px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.cta-note i {
    margin-right: 5px;
}

/* Footer */
.footer {
    padding: 40px 20px;
    background-color: var(--shadow-bg);
    color: var(--beige-light);
    text-align: center;
}

.footer-brand {
    margin-bottom: 20px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.nerd-small {
    font-size: 2rem;
}

.brand-name-small {
    font-family: 'Satisfy', cursive;
    font-size: 2rem;
    color: var(--beige-light);
    letter-spacing: 1px;
}

.footer-text {
    margin-bottom: 15px;
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-text a {
    color: var(--orange);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-text a:hover {
    opacity: 0.8;
}

.footer-note {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-note i {
    color: #e74c3c;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Responsive Styles */
@media (max-width: 767px) {
    .hide-mobile {
        display: none;
    }

    .nerd-icon {
        font-size: 5rem;
    }

    .brand-name {
        font-size: 3.5rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .cta-button {
        padding: 14px 28px;
        font-size: 1rem;
    }

    .cta-button.large {
        padding: 16px 32px;
        font-size: 1.1rem;
    }

    .demo-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .cta-subtitle {
        font-size: 1rem;
    }

    .cta-steps {
        padding: 20px 25px;
        font-size: 0.9rem;
    }

    .cta-steps li {
        padding-left: 35px;
    }

    .cta-steps li::before {
        width: 24px;
        height: 24px;
        font-size: 0.85rem;
    }

    .use-cases-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (min-width: 768px) {
    .hero {
        padding: 60px 20px 80px;
    }

    .nerd-icon {
        font-size: 9rem;
    }

    .brand-name {
        font-size: 7rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .demo-title {
        font-size: 2.3rem;
    }

    .demo-subtitle {
        font-size: 1.2rem;
    }

    .steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .cta-title {
        font-size: 2.5rem;
    }

    .cta-subtitle {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 2.2rem;
    }
}

@media (min-width: 1024px) {
    .hero {
        padding: 80px 20px 100px;
    }

    .nerd-icon {
        font-size: 10rem;
    }

    .brand-name {
        font-size: 8rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .use-cases-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
