@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Syne:wght@400..800&display=swap');

:root {
    /* Colors */
    --primary: #1D9E75;
    --primary-light: #e8f5f1;
    --text-main: #1a1a1a;
    --text-muted: #555555;
    --bg-white: #ffffff;
    --bg-subtle: #f9fafb;
    
    /* Typography */
    --font-heading: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    
    /* Spacing & Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --container-width: 1200px;
    --section-padding: 80px 20px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: var(--section-padding);
}

/* Navbar */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 32px;
    width: auto;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-coming-soon {
    background-color: var(--primary-light);
    color: var(--primary);
    border: 1px solid rgba(29, 158, 117, 0.2);
}

/* Page spacing for fixed header */
main {
    padding-top: 80px;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 24px;
    background: radial-gradient(circle at top right, var(--primary-light) 0%, transparent 40%);
}

.hero-content {
    max-width: 900px;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    color: var(--text-main);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

/* How It Works Section */
.how-it-works {
    background-color: var(--bg-subtle);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 16px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.step-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: var(--primary-light);
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.step-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text-main);
}

.step-description {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Utilities */
.text-primary { color: var(--primary); }
.bg-subtle { background-color: var(--bg-subtle); }

/* Features Section */
.features {
    background-color: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.features .container {
    position: relative;
    z-index: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.feature-card {
    padding: 40px;
    border-radius: var(--radius-lg);
    background: var(--bg-subtle);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.feature-card:hover {
    background: var(--bg-white);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    transform: translateY(-12px);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    margin-bottom: 28px;
    box-shadow: 0 10px 20px rgba(29, 158, 117, 0.25);
}

.feature-title {
    font-size: 1.75rem;
    margin-bottom: 16px;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.feature-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .features {
        padding: 60px 0;
    }
    
    .feature-card {
        padding: 32px;
    }
}

/* Footer Section */
.footer {
    padding: 80px 0 40px;
    background-color: var(--bg-white);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 400;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 400;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }
    
    .footer-brand {
        align-items: center;
    }
}

/* Visual Polish & Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.section-header, .steps-grid, .features-grid {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-pause-state: running;
}

/* Enhanced Section Transitions */
section {
    transition: background-color 0.3s ease;
}

/* Mobile Typography & Spacing Audit */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 20px;
    }
    
    .hero {
        padding: 100px 24px 60px;
        min-height: auto;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        letter-spacing: -0.01em;
    }
}

/* Final SaaS Feel Polish */
::selection {
    background-color: var(--primary-light);
    color: var(--primary);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-subtle);
}

::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
    border: 3px solid var(--bg-subtle);
}

::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

/* SMS Preview Section */
.sms-preview {
    background-color: var(--bg-white);
    padding: 100px 24px;
    overflow: hidden;
}

.sms-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}

.phone-mockup-container {
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: #1a1a1a;
    border-radius: 44px;
    padding: 10px;
    position: relative;
    box-shadow: 
        0 10px 20px rgba(0,0,0,0.2),
        0 30px 60px rgba(0,0,0,0.1),
        0 60px 100px rgba(0,0,0,0.15),
        inset 0 0 0 2px rgba(255,255,255,0.05);
    border: 3px solid #333;
    transform: rotateY(-15deg) rotateX(5deg);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.phone-mockup::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 40px;
    box-shadow: inset 0 0 20px rgba(255,255,255,0.02);
    pointer-events: none;
}

.phone-mockup:hover {
    transform: rotateY(0deg) rotateX(0deg) translateY(-15px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.1),
        0 60px 120px rgba(0,0,0,0.15),
        0 100px 150px rgba(0,0,0,0.2);
}

.phone-speaker {
    width: 50px;
    height: 4px;
    background: #222;
    border-radius: 10px;
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.phone-screen {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    width: 100%;
    height: 100%;
    border-radius: 36px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.02);
}

.phone-header {
    height: 44px;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
}

.phone-status-icons {
    display: flex;
    gap: 6px;
    opacity: 0.7;
}

.phone-contact-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.phone-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.phone-contact-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}

.sms-messages {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f9f9f9;
}

.sms-date {
    text-align: center;
    font-size: 10px;
    color: #bbb;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.message-bubble {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 13px;
    line-height: 1.5;
    position: relative;
    animation: messageAppear 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
    animation-delay: 2s;
}

.message-bubble.received {
    background-color: #e9e9eb;
    color: #1a1a1a;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.text-link {
    color: #007aff;
    text-decoration: underline;
    word-break: break-all;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: #e9e9eb;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    width: fit-content;
    animation: indicatorFadeOut 0.3s ease forwards;
    animation-delay: 2s;
}

.typing-indicator span {
    width: 5px;
    height: 5px;
    background: #999;
    border-radius: 50%;
    animation: typingBounce 1s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

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

@keyframes messageAppear {
    from { opacity: 0; transform: scale(0.8) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes indicatorFadeOut {
    from { opacity: 1; }
    to { opacity: 0; visibility: hidden; height: 0; padding: 0; margin: 0; }
}

@media (max-width: 992px) {
    .sms-preview {
        padding: 60px 24px;
    }
    
    .sms-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }
    
    .phone-mockup {
        transform: none;
        width: 280px;
        height: 560px;
    }
    
    .phone-mockup:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 480px) {
    .phone-mockup {
        width: 240px;
        height: 480px;
        border-radius: 32px;
    }
    
    .phone-screen {
        border-radius: 24px;
    }
}

/* WhatsApp Integration Styles */
.cta-whatsapp {
    padding: 100px 24px;
    background-color: var(--bg-white);
}

.cta-card {
    background: linear-gradient(135deg, var(--primary) 0%, #157a5a 100%);
    padding: 80px 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    color: white;
    box-shadow: 0 20px 40px rgba(29, 158, 117, 0.2);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 57c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.4;
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.cta-text {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 100px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.btn-whatsapp {
    background-color: white;
    color: var(--primary);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.whatsapp-icon {
    stroke: currentColor;
    fill: none;
}

/* Floating WhatsApp Button */
.whatsapp-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 64px;
    height: 64px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 2000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.whatsapp-floating:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
}

.whatsapp-tooltip {
    position: absolute;
    right: 80px;
    background-color: var(--text-main);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateX(10px);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid var(--text-main);
}

.whatsapp-floating:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .cta-card {
        padding: 60px 24px;
    }
    
    .whatsapp-floating {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
}
