* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', Helvetica, sans-serif;
}

:root {
    --bg-dark: #0b141d;
    --bg-navbar: #06111b;
    --cyan: #00d2ff;
    --cyan-hover: #00b9e6;
    --text-white: #ffffff;
    --text-gray: #9ca3af;
}

html,
body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}

/* --- NAVBAR --- */
.navbar {
    background-color: var(--bg-navbar);
    height: 80px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0px;
    text-decoration: none;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    color: var(--text-white);
}

.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 7px;
    background: var(--cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 0.85rem;
    color: #070d1b;
    flex-shrink: 0;
    overflow: hidden;
}

.mark-i {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-style: italic;
    color: #070d1b;
}

.mark-a {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    color: #070d1b;
}

.nav-links {
    display: flex;
    gap: 32px;
}

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

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

.nav-buttons {
    display: flex;
    gap: 16px;
}

.btn-outline-back {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    padding: 8px 20px;
    border-radius: 99px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline-back:hover {
    border-color: var(--text-white);
    background: rgba(255, 255, 255, 0.05);
}

.btn-solid {
    background: var(--cyan);
    border: none;
    color: #000;
    padding: 10px 24px;
    border-radius: 99px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-solid:hover {
    background: var(--cyan-hover);
}

.btn-solid.large {
    font-size: 1.1rem;
    padding: 16px 36px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

/* --- DEMO LAYOUT --- */
.screen {
    width: 100%;
    min-height: calc(100vh - 80px);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 40px 24px;
}

.demo-layout {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 80px;
}

.demo-content {
    flex: 1;
    max-width: 600px;
    min-width: 0;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid rgba(0, 210, 255, 0.2);
    color: var(--cyan);
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

.badge-pill .dot {
    width: 8px;
    height: 8px;
    background: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--cyan);
}

.demo-content h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.text-cyan {
    color: var(--cyan);
}

.subtitle {
    font-size: 1.15rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 40px;
}

.subtitle strong {
    color: var(--text-white);
    font-weight: 600;
}

/* Integrations Logogrid */
.integrations-section {
    margin-bottom: 40px;
}

.integrations-title {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.logos-marquee-wrapper {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logos-marquee {
    display: inline-flex;
    align-items: center;
    gap: 32px;
    animation: marquee 25s linear infinite;
    padding-right: 32px;
}

.logos-marquee:hover {
    animation-play-state: paused;
}

.logos-marquee img {
    height: 28px;
    filter: brightness(0) invert(1) opacity(0.5);
    transition: all 0.3s;
    cursor: default;
    flex-shrink: 0;
}

.logos-marquee img.wide-logo {
    height: 18px;
}

.logos-marquee img:hover {
    opacity: 1;
    filter: none;
    transform: translateY(-2px);
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.action-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px;
    border-radius: 16px;
    max-width: 420px;
}

.action-caption {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 4px;
}

.settings-btn-pro {
    background: transparent;
    border: 1px solid var(--cyan);
    color: var(--cyan);
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 12px 24px;
    border-radius: 99px;
    width: 100%;
    justify-content: center;
}

.settings-btn-pro i {
    font-size: 1.3rem;
}

.settings-btn-pro:hover {
    background: rgba(0, 210, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
    transform: translateY(-2px);
}

/* --- MOBILE FRAME & CHAT (Right Side) --- */
.demo-frame-container {
    flex: 0 0 320px;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.mobile-frame {
    width: 100%;
    height: 600px;
    background: white;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    border: 10px solid #1a232c;
}

.mobile-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 28px;
    background: #1a232c;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    z-index: 100;
}

.whatsapp-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.main-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
}

.chat-header {
    height: 80px;
    padding-top: 20px;
    background-color: #075e54;
    color: white;
    padding-left: 16px;
    padding-right: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

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

.chat-title-group {
    display: flex;
    flex-direction: column;
}

.chat-name {
    font-size: 16px;
    font-weight: 600;
}

.chat-status {
    font-size: 13px;
    opacity: 0.9;
}

.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 10px;
}

.header-actions i {
    cursor: pointer;
    font-size: 18px;
}

/* Chat Body area */
.chat-body {
    flex: 1;
    background-image: url('assets/bg.webp');
    background-color: #e5ded8;
    background-repeat: repeat;
    background-size: 300px;
    padding: 20px 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    position: relative;
}

.date-divider {
    background-color: #e1f3fb;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    color: #4a4a4a;
    align-self: center;
    margin-bottom: 20px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
    text-transform: uppercase;
}

/* Messages */
.message {
    display: flex;
    margin-bottom: 12px;
    flex-direction: column;
    max-width: 85%;
}

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

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

.bubble {
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.4;
    color: #111b21;
    position: relative;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .1);
    word-wrap: break-word;
    display: flex;
    flex-direction: column;
}

.message.sent .bubble {
    background-color: #dcf8c6;
    border-top-right-radius: 0;
}

.message.received .bubble {
    background-color: #ffffff;
    border-top-left-radius: 0;
}

.message.sent.start .bubble::before {
    content: '';
    position: absolute;
    top: 0;
    right: -8px;
    width: 0;
    height: 0;
    border-top: 0 solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 12px solid #dcf8c6;
}

.message.received.start .bubble::before {
    content: '';
    position: absolute;
    top: 0;
    left: -8px;
    width: 0;
    height: 0;
    border-top: 0 solid transparent;
    border-bottom: 12px solid transparent;
    border-right: 12px solid #ffffff;
}

.bubble .text {
    padding-bottom: 12px;
}

.bubble .time {
    position: absolute;
    bottom: 4px;
    right: 8px;
    font-size: 11px;
    color: rgba(0, 0, 0, 0.45);
}

.check-icon {
    margin-left: 4px;
    color: #34b7f1;
    font-size: 12px;
}

.typing-indicator {
    font-size: 14px;
    color: #667781;
    background: #fff;
    padding: 10px 16px;
    border-radius: 15px;
    border-top-left-radius: 0;
    align-self: flex-start;
    margin-bottom: 15px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .1);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

.chat-footer {
    min-height: 65px;
    background-color: #f0f0f0;
    padding: 10px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.footer-icon {
    font-size: 24px;
    color: #888;
    padding: 10px 4px;
    cursor: pointer;
}

.camera-icon {
    margin-right: 4px;
}

.input-wrapper {
    flex: 1;
    background-color: #ffffff;
    border-radius: 24px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    min-height: 44px;
    margin-bottom: 2px;
}

.input-wrapper input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 15px;
    background: transparent;
    color: #000;
    padding: 12px 0;
}

.inside-icon {
    color: #888;
    font-size: 20px;
    margin-left: 10px;
}

.send-btn {
    border: none;
    background: #00a884;
    color: white;
    min-width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    margin-bottom: 1px;
    transition: transform 0.1s;
}

.send-btn:active {
    transform: scale(0.95);
}

.send-btn i {
    font-size: 20px;
}

/* Floating Try me hint */
.try-me-hint {
    position: absolute;
    bottom: 85px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    z-index: 20;
    animation: floatTooltip 2.5s ease-in-out infinite;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.try-me-hint.hidden {
    opacity: 0;
    pointer-events: none;
}

.hint-bubble {
    background: #2a2a2a;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hint-arrow {
    color: #00a884;
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: -6px;
}

@keyframes floatTooltip {
    0% {
        transform: translateX(-50%) translateY(0);
    }

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

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


/* --- MODAL --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.3s;
}

.modal.hide {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: #111827;
    width: 90%;
    max-width: 500px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    color: var(--text-white);
}

.close-modal {
    cursor: pointer;
    font-size: 20px;
    color: var(--text-gray);
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--text-white);
}

.modal-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-gray);
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-white);
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 2px rgba(0, 210, 255, 0.2);
}

.modal-footer {
    padding: 20px 24px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.config-note {
    font-size: 0.85rem;
    color: var(--text-gray);
    max-width: 60%;
    line-height: 1.4;
}

.primary-btn {
    background: var(--cyan);
    color: #000;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.primary-btn:hover {
    background: var(--cyan-hover);
}

/* Responsiveness */
@media (max-width: 968px) {
    .demo-layout {
        flex-direction: column;
        gap: 32px;
    }

    .demo-content {
        width: 100%;
        max-width: 100%;
    }

    .demo-content h1 {
        font-size: 2.8rem;
    }

    .action-group {
        align-items: center;
        max-width: 100%;
    }

    .btn-outline-back {
        padding: 6px 14px;
        font-size: 0.85rem;
    }

    .demo-frame-container {
        flex: 0 0 auto;
        width: 100%;
        max-width: 380px;
    }

    .mobile-frame {
        height: 700px;
    }
}

@media (max-width: 480px) {
    .navbar {
        height: 70px;
    }

    .nav-container {
        padding: 0 16px;
    }

    .logo-text {
        display: none;
        /* Hide 'CRECE' on tiny screens to save space, only show IA box */
    }

    .btn-outline-back span {
        display: none;
        /* If there's a span, hide it. But we just have text. I will just shrink it further */
    }

    .btn-outline-back {
        font-size: 0.75rem;
        padding: 6px 12px;
        gap: 4px;
    }

    .screen {
        padding: 20px 16px;
    }

    .demo-content h1 {
        font-size: 2.2rem;
    }

    .subtitle {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .demo-frame-container {
        flex: 0 0 auto;
        width: 100%;
        max-width: 340px;
    }

    .mobile-frame {
        height: 700px;
    }

    .subtitle {
        margin-bottom: 16px;
    }

    .integrations-section {
        margin-bottom: 16px;
    }

    .demo-content h1 {
        margin-bottom: 16px;
    }

    .settings-btn-pro {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}