:root {
    --bg-dark: #0b1121;
    --bg-darker: #060b14;
    --bg-light: #f8fafc;
    --text-light: #ffffff;
    --text-dark: #0f172a;
    --text-muted-light: #94a3b8;
    --text-muted-dark: #64748b;
    --wsp-green: #25D366;
    --border-light: #e2e8f0;
    --border-dark: #1e293b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

.navbar.dark-nav {
    background-color: var(--bg-dark);
    border-bottom: 1px solid var(--border-dark);
}

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

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

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(37, 211, 102, 0.1);
    color: var(--wsp-green);
    border: 1px solid var(--wsp-green);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-whatsapp:hover {
    background-color: var(--wsp-green);
    color: #fff;
}

.btn-large {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    margin-top: 1.5rem;
    background-color: var(--wsp-green);
    color: #fff;
}
.btn-large:hover {
    background-color: #1da851;
}

.btn-full {
    background-color: var(--wsp-green);
    color: #fff;
    width: 100%;
    justify-content: center;
    padding: 1rem;
    margin-top: 2rem;
    font-size: 1.05rem;
}

/* Hero Section */
.hero-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6rem 5% 2rem;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.2rem;
    letter-spacing: -1px;
}

.hero-content h1 .highlight {
    color: var(--wsp-green);
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-muted-light);
    margin-bottom: 1.5rem;
}

/* Phone Mockup - iOS Style */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.phone-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.chat-toggle-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.chat-toggle {
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
    border-radius: 14px;
    display: flex;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-muted-light);
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.toggle-btn.active {
    background: #ffffff;
    color: var(--text-dark);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.toggle-btn:not(.active):hover {
    color: white;
}

.phone-frame {
    width: 340px;
    height: 660px;
    background: #000;
    border-radius: 50px;
    position: relative;
    box-shadow: 
        inset 0 0 0 2px #505050,
        inset 0 0 0 7px #dcdcdc,
        inset 0 0 0 8px #8c8c8c,
        0 35px 60px rgba(0,0,0,0.6);
    padding: 18px; /* Black inner bezel */
}

.phone-buttons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    border-radius: 55px;
}

.phone-buttons::before {
    content: '';
    position: absolute;
    top: 140px;
    left: -4px;
    width: 4px;
    height: 28px;
    background: #c1c1c1;
    border-radius: 3px 0 0 3px;
    box-shadow: 
        0 50px 0 0 #c1c1c1,
        0 110px 0 0 #c1c1c1;
}

.phone-buttons::after {
    content: '';
    position: absolute;
    top: 180px;
    right: -4px;
    width: 4px;
    height: 80px;
    background: #c1c1c1;
    border-radius: 0 3px 3px 0;
}

.dynamic-island {
    position: absolute;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 32px;
    background: #000;
    border-radius: 20px;
    z-index: 100;
}

.wsp-app {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #e5ded8;
    border-radius: 34px;
    overflow: hidden;
    position: relative;
}

.wsp-header-ios {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    color: #000;
    padding: 3.2rem 0.5rem 0.5rem; /* Space for dynamic island */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.wsp-back {
    display: flex;
    align-items: center;
    color: #007AFF;
    font-size: 1.05rem;
    font-weight: 400;
    width: 70px;
    cursor: pointer;
}
.wsp-back span {
    margin-left: -4px;
}

.wsp-title-ios {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.wsp-avatar-ios {
    width: 36px;
    height: 36px;
    background: #f1dfc5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wsp-name-ios {
    font-weight: 600;
    font-size: 0.95rem;
}

.wsp-header-right-ios {
    width: 70px;
}

.wsp-chat-area-ios {
    flex: 1;
    min-height: 0;
    padding: 1rem 0.8rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    /* iOS WhatsApp Doodle Pattern */
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
    background-size: cover;
    background-color: #e5ded8;
}
.wsp-chat-area-ios::-webkit-scrollbar { display: none; }
.wsp-chat-area-ios { -ms-overflow-style: none; scrollbar-width: none; }

@media (max-height: 800px) {
    .phone-frame {
        transform: scale(0.9);
        transform-origin: center;
    }
    .hero-section {
        padding: 5rem 5% 1rem;
    }
}

@media (max-height: 700px) {
    .phone-frame {
        transform: scale(0.8);
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

.wsp-date-pill {
    align-self: center;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 1px rgba(0,0,0,0.05);
}

.wsp-sys-msg {
    align-self: center;
    background: #e2f6ed;
    color: #3e4a46;
    font-size: 0.8rem;
    text-align: center;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    max-width: 90%;
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 1px rgba(0,0,0,0.05);
}

.wsp-msg-row {
    display: flex;
    width: 100%;
    margin-bottom: 0.2rem;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.msg-user { justify-content: flex-end; }
.msg-bot { justify-content: flex-start; }

.wsp-bubble-ios {
    max-width: 82%;
    padding: 0.4rem 0.6rem 0.4rem 0.6rem;
    border-radius: 14px;
    font-size: 0.95rem;
    position: relative;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.wsp-bubble-ios.bg-in {
    background-color: #ffffff;
    border-top-left-radius: 4px;
    color: #000;
    align-self: flex-start;
}

.wsp-bubble-ios.bg-out {
    background-color: #e7ffdb;
    border-top-right-radius: 4px;
    color: #000;
    align-self: flex-end;
}

.wsp-text-ios {
    line-height: 1.35;
    white-space: pre-wrap;
}

.wsp-time-ios {
    font-size: 0.7rem;
    color: rgba(0,0,0,0.4);
    align-self: flex-end;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    margin-top: 2px;
    float: right;
    margin-left: 0.5rem;
    line-height: 1;
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 0.4rem 0.2rem;
    align-items: center;
}
.typing-indicator span {
    width: 6px;
    height: 6px;
    background-color: #a0a0a0;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}
.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }
@keyframes typing {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Input Area iOS */
.wsp-input-area-ios {
    background: #f6f6f6;
    padding: 0.6rem 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.wsp-input-pill-ios {
    flex: 1;
    background: #ffffff;
    border: 1px solid #d1d1d6;
    height: 36px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.8rem;
    overflow: hidden;
}

.placeholder {
    color: #8e8e93;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}

.placeholder::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    height: 1.2rem;
    width: 2px;
    background-color: #007AFF;
    opacity: 0;
}

.placeholder.typing::after {
    animation: blink 1s infinite;
    opacity: 1;
}

@keyframes blink {
    50% { opacity: 0; }
}

.ios-keyboard {
    width: 100%;
    height: 0;
    background-color: #d1d5db;
    transition: height 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0 4px;
    gap: 8px;
}

.ios-keyboard.show {
    height: 290px;
    padding-top: 10px;
    padding-bottom: 5px;
}

.kb-row {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.kb-key {
    background: #ffffff;
    border-radius: 5px;
    flex: 1;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 500;
    font-family: -apple-system, sans-serif;
    color: #000;
    box-shadow: 0 1px 0 #888;
    transition: background-color 0.05s;
}

.kb-key.pressed {
    background: #b3b8c1;
}

.kb-key.special {
    background: #b3b8c1;
    flex: 1.2;
}

.kb-key.space {
    flex: 5;
}

.kb-key.send-key {
    background: #007AFF;
    color: white;
    flex: 1.5;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

/* Integrations Bar */
.integrations-bar {
    background: #f1f5f9;
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.integrations-bar span {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted-dark);
}

.logos {
    display: flex;
    gap: 2rem;
    font-weight: 700;
    font-size: 1.3rem;
    color: #475569;
}

/* Pain Points */
.pain-points {
    padding: 6rem 5%;
    text-align: center;
    background: #ffffff;
}

.pain-points h2 {
    font-size: 2.2rem;
    margin-bottom: 3rem;
    font-weight: 800;
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pain-card {
    background: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid var(--border-light);
    text-align: left;
}

.pain-title {
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
}

.cross { 
    color: #ef4444; 
    font-size: 1.2rem; 
}

.pain-card p {
    font-size: 0.95rem;
    color: var(--text-muted-dark);
}

/* Solution Bento */
.solution-bento {
    padding: 6rem 5%;
    background: var(--bg-light);
}

.bento-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    font-weight: 800;
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: start;
}

.bento-col {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.bento-text-block {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bento-text-block h3 {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-dark);
}

.bento-text-block p {
    font-size: 1.05rem;
    color: var(--text-muted-dark);
    line-height: 1.5;
}

.bento-image-card {
    background: #f1f5f9;
    border-radius: 16px;
    height: 250px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Pricing */
.pricing-section {
    padding: 6rem 5%;
    background: var(--bg-dark);
    display: flex;
    justify-content: center;
}

.pricing-card {
    background: var(--bg-darker);
    border: 1px solid rgba(37, 211, 102, 0.4);
    box-shadow: 0 0 40px rgba(37, 211, 102, 0.15);
    border-radius: 20px;
    padding: 2rem;
    color: white;
    max-width: 500px;
    width: 100%;
}

.pricing-card h3 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
}

.price span {
    font-size: 1.2rem;
    color: var(--text-muted-light);
}

.price-sub {
    text-align: center;
    color: var(--text-muted-light);
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

.features-list {
    list-style: none;
    margin-bottom: 1.2rem;
    margin-top: 1.5rem;
}

.features-list li {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    display: flex;
    gap: 0.5rem;
}

/* FAQ */
.faq-section {
    padding: 6rem 5%;
    background: #ffffff;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.faq-section h2 {
    font-size: 2.2rem;
    font-weight: 800;
}

.faq-list {
    margin-top: 3rem;
    text-align: left;
}

.faq-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

.faq-question {
    font-weight: 600;
    font-size: 1.05rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: var(--text-dark);
}

.faq-icon svg {
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, margin-top 0.3s ease-out;
}

.faq-answer p {
    color: var(--text-muted-dark);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.faq-item.active .faq-answer {
    max-height: 150px;
    margin-top: 1rem;
}

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

/* Footer */
footer {
    background: var(--bg-darker);
    color: var(--text-muted-light);
    text-align: center;
    padding: 3rem 5%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    border-top: 1px solid var(--border-dark);
}

footer .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

footer a {
    color: var(--text-muted-light);
    text-decoration: none;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-section {
        flex-direction: column;
        padding-top: 8rem;
        text-align: center;
    }
    .hero-content h1 { font-size: 2.5rem; }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-card.large { grid-row: span 1; }
    .nav-links { display: none; }
}

@media (max-width: 600px) {
    .hero-section { padding-top: 6.5rem; padding-bottom: 0; }
    .hero-content h1 { font-size: 1.8rem; line-height: 1.25; margin-bottom: 0; }
    .hero-content h1 br { display: none; }
    .hero-content p { display: none; }
    .hero-content .btn-whatsapp { display: none; }
    .phone-frame { transform: scale(0.72); transform-origin: top center; margin-top: -2.5rem; margin-bottom: -28%; }
    .pain-points, .solution-bento, .pricing-section, .faq-section { padding: 3.5rem 5%; }
    .pain-grid { gap: 1.5rem; }
    .bento-col { gap: 2.5rem; }
    .bento-text-block h3 { font-size: 1.5rem; }
    .bento-image-card { height: 200px !important; }
    .pricing-card { padding: 1.5rem; }
    .price { font-size: 2.5rem; }
    .faq-question { font-size: 1rem; }
}
