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

:root {
    /* Cores Casa e Construção - Tema Laranja/Terra */
    --primary: #ff6b35;
    --primary-dark: #e65100;
    --primary-light: #ff8a50;
    --secondary: #ff9e5a;
    --accent: #ffa726;

    --bg-dark: #1a1a1a;
    --bg-darker: #0f0f0f;
    --text-light: #ffffff;
    --text-gray: #b0b0b0;
    --border-color: rgba(255, 107, 53, 0.2);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Transitions */
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

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

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-light);
}

.nav-logo img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.logo-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.18);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

/* Ensure high contrast when used inside nav and mobile menu */
.nav-links a.btn-primary,
.mobile-menu a.btn-primary {
    color: #ffffff;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: var(--transition);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
    flex-direction: column;
    gap: 1rem;
    z-index: 999;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    color: var(--text-light);
    text-decoration: none;
    padding: 1rem;
    border-radius: 8px;
    transition: var(--transition);
}

.mobile-menu a:hover {
    background: rgba(255, 107, 53, 0.1);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.gradient-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at top right, rgba(255, 107, 53, 0.15), transparent),
        radial-gradient(ellipse at bottom left, rgba(255, 158, 90, 0.15), transparent),
        linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

.grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 107, 53, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 107, 53, 0.05) 1px, transparent 1px);
    background-size: 4rem 4rem;
    mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 70%, transparent 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    padding: 2rem 0;
}

.hero-text {
    text-align: center;
}

.hero-subtitle {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--primary);
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease 0.2s backwards;
}

.highlight-counter {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    padding: 0.5rem 1.5rem;
    border-radius: 12px;
    color: white;
    box-shadow: 0 10px 40px rgba(255, 107, 53, 0.4);
    transition: var(--transition);
}

.highlight-counter:hover {
    transform: scale(1.05);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease 0.4s backwards;
    line-height: 1.8;
}

.platform-animated {
    color: var(--primary);
    font-weight: 700;
    display: inline-block;
    animation: pulse 2s ease infinite;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: fadeInUp 0.6s ease 0.6s backwards;
}

.stat-icon {
    font-size: 2rem;
    filter: grayscale(0.3);
}

.stat-text {
    font-size: 0.875rem;
    color: var(--text-gray);
    font-weight: 500;
}

.hero-cta {
    margin-top: 2rem;
    animation: fadeInUp 0.6s ease 0.8s backwards;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1.25rem 2.5rem;
    border-radius: 50px;
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 10px 40px rgba(255, 107, 53, 0.3);
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(255, 107, 53, 0.5);
}

/* Hero Chat Preview */
.hero-chat {
    max-width: 400px;
    margin: 0 auto;
}

.platform-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.platform-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.3);
}

.platform-btn svg {
    width: 24px;
    height: 24px;
    color: white;
}

.platform-btn:hover {
    transform: scale(1.1);
}

.chat-container {
    perspective: 1000px;
}

.chat-phone {
    background: #0a1014;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 350px;
    margin: 0 auto;
    animation: floatPhone 6s ease-in-out infinite;
}

.chat-header {
    background: #202c33;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-info h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
}

.chat-info p {
    font-size: 0.75rem;
    color: #8696a0;
}

.chat-messages {
    background: #0b141a;
    padding: 1rem;
    height: 400px;
    overflow-y: auto;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect fill="%23111b21" width="100" height="100"/><path d="M0 0L50 50L0 100L50 100L100 50L50 0z" fill="%23182229" opacity="0.05"/></svg>');
    background-size: 100px 100px;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 53, 0.3);
    border-radius: 3px;
}

.message-date {
    text-align: center;
    font-size: 0.75rem;
    color: #8696a0;
    margin: 1rem 0;
    background: rgba(32, 44, 51, 0.5);
    padding: 0.5rem;
    border-radius: 8px;
    display: inline-block;
    width: 100%;
}

.message {
    display: flex;
    margin-bottom: 0.75rem;
    animation: messageSlide 0.3s ease;
}

.message.sent {
    justify-content: flex-end;
}

.message.received {
    justify-content: flex-start;
}

.message-content {
    background: #005c4b;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    max-width: 75%;
    font-size: 0.875rem;
    line-height: 1.5;
    position: relative;
}

.message.sent .message-content {
    background: #1f2c33;
}

.message-product {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    max-width: 85%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.message-product img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.product-info {
    padding: 1rem;
    background: white;
}

.product-info h4 {
    font-size: 0.875rem;
    color: #111b21;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.product-price {
    font-size: 1.125rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.product-desc {
    font-size: 0.75rem;
    color: #667781;
}

.message-time {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.25rem;
    text-align: right;
}

.chat-input {
    background: #202c33;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-input input {
    flex: 1;
    background: #2a3942;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 20px;
    color: white;
    font-size: 0.875rem;
}

.chat-input-btn {
    background: none;
    border: none;
    color: #8696a0;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.chat-input-btn:hover {
    color: var(--primary);
}

.chat-input-btn svg {
    width: 20px;
    height: 20px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--primary);
    border-radius: 12px;
    position: relative;
}

.scroll-mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

/* How It Works Section */
.how-it-works {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step-card {
    background: rgba(255, 107, 53, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.step-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 107, 53, 0.1);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.2);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.step-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.step-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.step-card p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* About Section */
.about {
    padding: var(--spacing-xl) 0;
    background: var(--bg-dark);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    opacity: 1 !important;
    display: block;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.lead {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-item svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.feature-item h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.feature-item p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* FAQ Section */
.faq {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active {
    border-color: var(--primary);
}

.faq-question {
    width: 100%;
    background: rgba(255, 107, 53, 0.05);
    border: none;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-light);
    transition: var(--transition);
    text-align: left;
}

.faq-question:hover {
    background: rgba(255, 107, 53, 0.1);
}

.faq-icon {
    width: 24px;
    height: 24px;
    color: var(--primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 1.5rem;
}

.faq-answer p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* CTA Section */
.cta {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--secondary) 100%);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    color: var(--primary-dark);
    padding: 1.25rem 2.5rem;
    border-radius: 50px;
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.btn-cta svg {
    width: 20px;
    height: 20px;
}

/* Footer */
.footer {
    background: var(--bg-darker);
    padding: 3rem 0 1.5rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.footer-brand p {
    color: var(--text-gray);
    font-size: 0.875rem;
}

.footer-tagline {
    margin-top: 0.5rem;
    font-weight: 500;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.footer-column h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.footer-column a {
    display: block;
    color: var(--text-gray);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: var(--transition);
    font-size: 0.875rem;
}

.footer-column a:hover {
    color: var(--primary);
    padding-left: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-gray);
    font-size: 0.875rem;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    animation: shake 5s ease infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    color: white;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid #25d366;
    border-radius: 50%;
    animation: pulseRing 2s infinite;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateY(0) translateX(-50%);
    }

    100% {
        opacity: 0;
        transform: translateY(12px) translateX(-50%);
    }
}

@keyframes floatPhone {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

@keyframes shake {

    0%,
    90%,
    100% {
        transform: rotate(0deg);
    }

    92%,
    96% {
        transform: rotate(10deg);
    }

    94%,
    98% {
        transform: rotate(-10deg);
    }
}

@keyframes pulseRing {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Responsive Design */
@media (min-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .hero-text {
        text-align: left;
    }

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

    .hero-stats {
        justify-content: flex-start;
    }

    .about-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-content {
        grid-template-columns: 2fr 3fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

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

    .hero-description {
        font-size: 1rem;
    }

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

    .chat-phone {
        max-width: 100%;
    }

    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
    }

    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-stats {
        gap: 1rem;
    }

    .stat-icon {
        font-size: 1.5rem;
    }

    .btn-hero {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }
}