/* Global Settings & CSS Variables */
:root {
    --primary: #FF2D55;
    --primary-hover: #E8294D;
    
    --text-dark: #111827;
    --text-gray: #4B5563;
    --text-light: #9CA3AF;
    
    --bg-white: #FFFFFF;
    --bg-soft-gray: #F9FAFB;
    --bg-gray-dark: #F3F4F6;
    
    --border: #E5E7EB;
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

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

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

h2 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    letter-spacing: -0.01em;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-sm {
    max-width: 1000px;
}

.center {
    text-align: center;
}

.bg-soft-gray {
    background-color: var(--bg-soft-gray);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    gap: 0.5rem;
    line-height: 1;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 45, 85, 0.2);
}

.btn-secondary {
    background-color: var(--bg-white);
    color: var(--text-dark);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--text-gray);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-dark);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background-color: var(--bg-soft-gray);
    border-color: var(--text-gray);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
}

/* Navbar */
.navbar {
    padding: 1.25rem 0;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

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

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

.nav-link {
    font-weight: 500;
    color: var(--text-gray);
    font-size: 0.9375rem;
}

.nav-link:hover {
    color: var(--text-dark);
}

/* Hero Section */
.hero {
    padding: 5rem 0; /* Slightly tightened from 6rem */
    overflow: hidden;
    position: relative;
    background-color: var(--bg-white);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.hero-content p {
    color: var(--text-gray);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-mockup {
    position: relative;
    display: flex;
    justify-content: center;
}

/* Chat Mockup */
.chat-mockup {
    width: 380px;
    background: var(--bg-white);
    border-radius: 24px;
    box-shadow: 0 24px 48px -12px rgba(0,0,0,0.15), 0 0 1px rgba(0,0,0,0.1);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 2;
    position: relative;
}

.chat-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.875rem;
    background: var(--bg-soft-gray);
}

.chat-group-avatar {
    position: relative;
    width: 44px;
    height: 44px;
}
.chat-group-avatar .avatar {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--bg-soft-gray);
}
.chat-group-avatar .a1 { top: 0; left: 10px; background: #60A5FA; z-index: 1;}
.chat-group-avatar .a2 { bottom: 0; left: 0; background: #34D399; z-index: 2;}
.chat-group-avatar .a3 { bottom: 0; right: 0; background: #FBBF24; z-index: 3;}

.chat-info {
    flex: 1;
}

.chat-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9375rem;
    margin-bottom: 2px;
}

.chat-status {
    font-size: 0.75rem;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-actions {
    display: flex;
    gap: 0.75rem;
}
.action-icon {
    color: var(--text-light);
    cursor: pointer;
}

.chat-body {
    padding: 1.5rem;
    padding-bottom: 2.5rem; /* Exta breathing room below final message */
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background-color: var(--bg-white);
    height: 440px; /* Increased to avoid vertical overlap */
    overflow-y: auto;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.chat-body::-webkit-scrollbar {
    display: none;
}

.chat-body .message-wrapper:last-child {
    margin-bottom: 1.5rem;
}

.message-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

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

.message-wrapper.sent {
    align-self: flex-end;
    flex-direction: row-reverse;
    margin-right: 0.75rem; /* Better edge spacing to avoid cramping */
}

.msg-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
}
.avatar-alex { background: #60A5FA; }
.avatar-sarah { background: #34D399; }
.avatar-mike { background: #FBBF24; }

.message {
    max-width: 80%;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
    transform: translateY(10px);
}

.sender-name {
    font-size: 0.6875rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    font-weight: 500;
}
.received .sender-name { margin-left: 0.5rem; }

.message p {
    padding: 0.75rem 1rem;
    border-radius: 16px;
    font-size: 0.9375rem;
    margin: 0;
    line-height: 1.4;
}

.message-wrapper.received .message p {
    background-color: var(--bg-soft-gray);
    color: var(--text-dark);
    border-bottom-left-radius: 4px;
}

.message-wrapper.sent .message p {
    background-color: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
}

/* Media Preview */
.media-message p { padding: 0; background: transparent !important; }
.media-preview {
    background: var(--bg-gray-dark);
    border-radius: 12px;
    height: 120px;
    width: 200px;
    display: flex;
    overflow: hidden;
    border-bottom-left-radius: 4px;
}

.message .time {
    font-size: 0.6875rem;
    color: var(--text-light);
    margin-top: 0.35rem;
    display: flex;
    align-items: center;
}
.message-wrapper.received .time { align-self: flex-start; margin-left: 0.5rem; }
.message-wrapper.sent .time { align-self: flex-end; margin-right: 0.5rem; }

/* Typing Indicator */
.message.typing p {
    padding: 0.75rem 1rem;
    background-color: var(--bg-soft-gray);
    border-radius: 16px;
    border-bottom-left-radius: 4px;
}
.typing-indicator {
    background-color: var(--bg-soft-gray);
    padding: 0.75rem 1rem;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    display: flex;
    gap: 4px;
    align-items: center;
    height: 42px;
}
.typing-indicator span {
    display: block;
    width: 6px;
    height: 6px;
    background-color: var(--text-light);
    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); }
}

.chat-input-area {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
    background-color: var(--bg-white);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.input-actions, .input-send {
    color: var(--text-light);
    display: flex;
    cursor: pointer;
}

.chat-input {
    flex: 1;
    background-color: var(--bg-soft-gray);
    padding: 0.65rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Call Popup Overlay */
.call-popup {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    background: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 1rem;
    z-index: 10;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    color: white;
}
.call-popup-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.call-icon-pulse {
    width: 40px;
    height: 40px;
    background: #10B981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}
.call-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.call-info strong { font-size: 0.9375rem; font-weight: 600; }
.call-info span { font-size: 0.75rem; color: #9CA3AF; }
.call-action.decline {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.fade-in-up {
    animation-fill-mode: both;
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }


/* Benefits Section */
.benefits {
    padding: 4.5rem 0; /* Tightened from 6rem */
}

.benefits .section-header {
    max-width: 600px;
    margin: 0 auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3.5rem; /* Tightened from 4rem */
}

.card {
    background: var(--bg-white);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 12px 24px -10px rgba(0,0,0,0.05);
    transform: translateY(-4px);
    border-color: var(--text-light);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: rgba(255, 45, 85, 0.08); /* Soft primary */
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card p {
    margin-bottom: 0;
    font-size: 1rem;
}

/* Features Grid */
.features {
    padding: 4.5rem 0; /* Tightened from 6rem */
    background-color: var(--bg-white);
}

.features-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-dark);
}

.feature-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: var(--bg-soft-gray);
    border: 1px solid var(--border);
    color: var(--primary);
}

/* Why Us Section */
.why-us {
    padding: 4.5rem 0; /* Tightened from 6rem */
    overflow: hidden;
}

.why-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.check-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.125rem;
    color: var(--text-dark);
    font-weight: 500;
}

.check-icon-wrapper {
    color: var(--primary);
    background-color: rgba(255, 45, 85, 0.08);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.why-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 400px;
}

/* Chat Stack Graphic */
.chat-stack {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stack-card {
    position: absolute;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px -5px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transform-origin: center;
    transition: all 0.3s ease;
}

.bg-white { background: var(--bg-white); }
.bg-primary { background: var(--primary); }
.text-white { color: var(--bg-white); }

.bubble-1 {
    top: 25%;
    left: 10%;
    transform: rotate(-5deg);
    z-index: 1;
    width: 220px;
}

.bubble-2 {
    top: 45%;
    right: 5%;
    transform: rotate(3deg);
    z-index: 3;
    padding: 1.25rem;
}

.bubble-3 {
    bottom: 20%;
    left: 15%;
    transform: rotate(-2deg);
    z-index: 2;
    width: 200px;
}

.stack-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}
.a-pink { background: #F43F5E; }
.a-blue { background: #3B82F6; }

.stack-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.stack-lines div {
    height: 8px;
    border-radius: 4px;
    background: var(--border);
}
.stack-lines .l-1 { width: 100%; }
.stack-lines .l-2 { width: 70%; }
.stack-lines .short { width: 40%; }

.stack-icon {
    flex-shrink: 0;
}
.stack-text {
    font-weight: 600;
    font-size: 0.9375rem;
}

/* How It Works */
.how-it-works {
    padding: 4.5rem 0; /* Tightened from 6rem */
    background-color: var(--bg-white);
}

.steps-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.step {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.step-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--bg-white);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.step h3 {
    margin: 0;
    font-size: 1.125rem;
    max-width: 150px;
}

.step-divider {
    height: 1px;
    background-color: var(--border);
    flex: 1;
    margin: 32px 1rem 0; /* Align with middle of the 64px icon */
}

/* Trust Section */
.trust-section {
    padding: 4.5rem 0; /* Tightened from 6rem */
    background-color: var(--bg-white);
}

.trust-section h2 {
    margin-bottom: 3.5rem;
}

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

.trust-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: rgba(255, 45, 85, 0.08); /* Softened from 56px */
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
}

.trust-content span {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.05rem;
    display: block;
    margin-bottom: 0.25rem;
}
.trust-content p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* CTA Block */
.cta-block {
    padding: 6rem 0;
    background-color: var(--bg-soft-gray);
    border-top: 1px solid var(--border);
}

.cta-block h2 {
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.footer-logo {
    height: 28px;
    width: auto;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-brand .footer-text {
    color: var(--text-gray);
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 400;
}

.footer-brand .country-label {
    color: var(--text-light);
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 400;
    opacity: 0.8;
}

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

.footer-nav a {
    color: var(--text-gray);
    font-weight: 500;
    font-size: 0.9375rem;
}

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

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

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

/* Responsive Design */
@media (max-width: 900px) {
    .steps-container {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    .step-divider {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 4rem 0;
    }

    .hero-container, .why-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-content {
        text-align: center;
        margin: 0 auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .nav-links {
        display: none;
    }
    
    .why-visual {
        height: 300px;
    }
    
    .footer-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-brand {
        align-items: center;
    }
    
    .footer-nav {
        flex-direction: column;
        justify-content: center;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    
    .btn {
        width: 100%;
    }
}

/* Page & Form Layout Styles */
.contact-container {
    max-width: 700px;
    margin: 0 auto;
}

.contact-support {
    text-align: center;
    margin-bottom: 3.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-dark);
    outline: none;
    transition: all 0.2s ease;
    background-color: var(--bg-soft-gray);
}

.form-control:focus {
    border-color: var(--primary);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(255, 45, 85, 0.1);
}

textarea.form-control {
    min-height: 160px;
    resize: vertical;
}

.btn-block {
    width: 100%;
}
