/* ========================================
   WeblyChat — Stylesheet
   Mobile-first, responsive design
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-primary: #6C5CE7;
    --color-primary-dark: #5A4BD1;
    --color-primary-light: #A29BFE;
    --color-text: #1a1a2e;
    --color-text-light: #555;
    --color-bg: #ffffff;
    --color-bg-soft: #f8f9fc;
    --color-bg-muted: #eef0f6;
    --color-border: #e2e5ed;
    --color-whatsapp: #25D366;
    --color-whatsapp-dark: #1EB954;
    --color-telegram: #0088cc;
    --color-telegram-dark: #006daa;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.12);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.container--narrow {
    max-width: 800px;
}

/* --- Badge --- */
.badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--color-primary);
    background: rgba(108, 92, 231, 0.1);
    padding: 0.35rem 0.9rem;
    border-radius: 100px;
}

/* --- Section Header --- */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header .badge {
    margin-bottom: 0.75rem;
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--color-text-light);
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn--sm { padding: 0.45rem 1rem; font-size: 0.85rem; }
.btn--lg { padding: 0.8rem 1.5rem; font-size: 1rem; }
.btn--full { width: 100%; }

.btn--primary {
    background: var(--color-primary);
    color: #fff;
}
.btn--primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn--outline {
    border-color: var(--color-border);
    color: var(--color-text);
    background: transparent;
}
.btn--outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn--whatsapp {
    background: var(--color-whatsapp);
    color: #fff;
}
.btn--whatsapp:hover {
    background: var(--color-whatsapp-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn--telegram {
    background: var(--color-telegram);
    color: #fff;
}
.btn--telegram:hover {
    background: var(--color-telegram-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* --- Navigation --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

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

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.15rem;
}

.nav__toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.nav__toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav__links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 1.25rem;
    flex-direction: column;
    gap: 0.25rem;
    box-shadow: var(--shadow-md);
}

.nav__links.is-open {
    display: flex;
}

.nav__links li a {
    display: block;
    padding: 0.6rem 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-light);
    transition: color 0.2s;
}
.nav__links li a:hover {
    color: var(--color-primary);
}

/* --- Hero --- */
.hero {
    padding: 3rem 0 2rem;
    overflow: hidden;
}

.hero__inner {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.hero__content .badge {
    margin-bottom: 1rem;
}

.hero__content h1 {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-primary), #e84393);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    max-width: 480px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.hero__trust {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* Chat Mockup */
.chat-mockup {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    max-width: 400px;
    margin: 0 auto;
}

.chat-mockup__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: var(--color-primary);
    color: #fff;
}

.chat-mockup__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.chat-mockup__name { font-weight: 600; font-size: 0.9rem; }
.chat-mockup__status { font-size: 0.75rem; opacity: 0.8; }

.chat-mockup__body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    background: #f0f0f5;
}

.chat-msg {
    max-width: 85%;
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    line-height: 1.5;
}

.chat-msg--sent {
    align-self: flex-end;
    background: var(--color-primary);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-msg--received {
    align-self: flex-start;
    background: #fff;
    color: var(--color-text);
    border-bottom-left-radius: 4px;
}

.chat-msg__link {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
    margin-top: 0.25rem;
}

/* --- Logos --- */
.logos {
    padding: 2.5rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg-soft);
}

.logos__label {
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.logos__row {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.logos__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text-light);
}

/* --- How It Works --- */
.how-it-works {
    padding: 4rem 0;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step {
    position: relative;
    background: var(--color-bg-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
}

.step__number {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(108, 92, 231, 0.1);
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.step h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* --- Features --- */
.features {
    padding: 4rem 0;
    background: var(--color-bg-soft);
}

.features__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.feature-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.feature-card__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(108, 92, 231, 0.1);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.feature-card p {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* --- Pricing --- */
.pricing {
    padding: 4rem 0;
}

.pricing__cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 720px;
    margin: 0 auto;
}

.pricing-card {
    position: relative;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
}

.pricing-card--featured {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
}

.pricing-card__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 1rem;
    border-radius: 100px;
    white-space: nowrap;
}

.pricing-card__header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.pricing-card__header p {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.pricing-card__price {
    margin-bottom: 1.5rem;
}

.pricing-card__amount {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.pricing-card__period {
    font-size: 1rem;
    color: var(--color-text-light);
}

.pricing-card__features {
    text-align: left;
    margin-bottom: 1.5rem;
}

.pricing-card__features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9rem;
    color: var(--color-text-light);
    border-bottom: 1px solid var(--color-bg-muted);
}

.pricing-card__features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(108, 92, 231, 0.1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236C5CE7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.pricing-card__features li:last-child {
    border-bottom: none;
}

/* --- FAQ --- */
.faq {
    padding: 4rem 0;
    background: var(--color-bg-soft);
}

.faq__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq__item {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.faq__item[open] {
    box-shadow: var(--shadow-sm);
}

.faq__item summary {
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.faq__item summary::-webkit-details-marker {
    display: none;
}

.faq__item summary::after {
    content: '+';
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--color-text-light);
    flex-shrink: 0;
    transition: transform 0.2s;
}

.faq__item[open] summary::after {
    content: '\2212';
}

.faq__item p {
    padding: 0 1.25rem 1rem;
    color: var(--color-text-light);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* --- CTA --- */
.cta {
    padding: 4rem 0;
}

.cta__inner {
    background: linear-gradient(135deg, var(--color-primary), #4834d4);
    color: #fff;
    border-radius: var(--radius-xl);
    padding: 3rem 1.5rem;
    text-align: center;
}

.cta__inner h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.cta__inner p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.cta__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

/* --- Footer --- */
.site-footer {
    background: var(--color-text);
    color: #ccc;
    padding: 3rem 0 0;
}

.footer__inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer__brand .nav__logo {
    color: #fff;
    margin-bottom: 0.5rem;
}

.footer__brand p {
    font-size: 0.9rem;
    color: #999;
}

.footer__links {
    display: flex;
    gap: 3rem;
}

.footer__col h4 {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.footer__col li {
    margin-bottom: 0.4rem;
}

.footer__col a {
    font-size: 0.9rem;
    color: #999;
    transition: color 0.2s;
}

.footer__col a:hover {
    color: #fff;
}

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.25rem 0;
    text-align: center;
}

.footer__bottom p {
    font-size: 0.8rem;
    color: #777;
}

/* ========================================
   Tablet (min-width: 640px)
   ======================================== */
@media (min-width: 640px) {
    .section-header h2 {
        font-size: 2rem;
    }

    .hero__content h1 {
        font-size: 2.75rem;
    }

    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing__cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        flex-direction: row;
        gap: 1.25rem;
    }

    .step {
        flex: 1;
    }
}

/* ========================================
   Desktop (min-width: 960px)
   ======================================== */
@media (min-width: 960px) {
    .nav__toggle {
        display: none;
    }

    .nav__links {
        display: flex;
        position: static;
        flex-direction: row;
        align-items: center;
        gap: 0.25rem;
        background: none;
        border: none;
        padding: 0;
        box-shadow: none;
    }

    .nav__links li a {
        padding: 0.45rem 0.85rem;
    }

    .hero {
        padding: 5rem 0 3rem;
    }

    .hero__inner {
        flex-direction: row;
        align-items: center;
    }

    .hero__content {
        flex: 1;
    }

    .hero__content h1 {
        font-size: 3.25rem;
    }

    .hero__visual {
        flex: 1;
        display: flex;
        justify-content: center;
    }

    .section-header h2 {
        font-size: 2.25rem;
    }

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

    .how-it-works,
    .features,
    .pricing,
    .faq,
    .cta {
        padding: 5rem 0;
    }

    .footer__inner {
        flex-direction: row;
        justify-content: space-between;
    }

    .cta__inner {
        padding: 4rem 3rem;
    }

    .cta__inner h2 {
        font-size: 2.25rem;
    }
}
