/* ============================================
   KEYFRAME ANIMATIONS
============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-12px); }
}
@keyframes pulseRing {
    0%   { transform: scale(0.85); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}
@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes shimmerText {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}
@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes bounceIn {
    0%   { transform: scale(0.6); opacity: 0; }
    60%  { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); }
}
@keyframes waveBar {
    0%, 100% { transform: scaleY(0.35); }
    50%       { transform: scaleY(1); }
}
@keyframes scrollLeft {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* SCROLL REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* STICKY HEADER */
#site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    max-width: 100%;
    padding: 0 2rem;
    transition: box-shadow 0.3s;
}
#site-header.scrolled { box-shadow: var(--shadow-md); }
#site-header .navbar { max-width: 1200px; margin: 0 auto; }

/* LANG SWITCHER */
.lang-switcher {
    display: flex;
    align-items: center;
}
.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    border-radius: 24px;
    background: rgba(0, 138, 126, 0.06);
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(0, 138, 126, 0.1);
    transition: all 0.3s ease;
}
.lang-btn:hover {
    background: rgba(0, 138, 126, 0.12);
    border-color: var(--primary);
    transform: translateY(-1px);
}
.lang-flag-img {
    width: 22px;
    height: 22px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.lang-label {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* HERO SECTION */
.hero-section {
    position: relative;
    overflow: hidden;
    padding: 8rem 0 5rem;
    text-align: center;
    background: linear-gradient(160deg, #f0fdfc 0%, #ffffff 55%, #f0fdf4 100%);
}
.hero-section::before {
    content: '';
    position: absolute;
    width: 650px; height: 650px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,138,126,0.07) 0%, transparent 70%);
    top: -120px; right: -80px;
    animation: rotateSlow 25s linear infinite;
}
.hero-section::after {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,138,126,0.05) 0%, transparent 70%);
    bottom: -100px; left: -80px;
}
.hero-inner { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(0,138,126,0.1);
    color: var(--primary);
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.6s ease both;
}
.hero-badge-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--primary);
    display: inline-block;
    position: relative;
}
.hero-badge-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--primary);
    animation: pulseRing 1.6s ease-out infinite;
}
.hero-title {
    font-size: 3.8rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.7s ease 0.2s both;
}
.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary) 0%, #00b4a0 50%, var(--primary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 3s linear infinite;
}
.hero-desc {
    font-size: 1.15rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.7s ease 0.4s both;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.7s ease 0.6s both;
}
.hero-wave {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 5px;
    margin-top: 3.5rem;
    height: 44px;
    animation: fadeInUp 0.7s ease 0.8s both;
}
.hero-wave span {
    display: inline-block;
    width: 5px;
    border-radius: 4px;
    background: var(--primary);
    opacity: 0.45;
    transform-origin: bottom;
}
.hero-wave span:nth-child(1) { height: 22px; animation: waveBar 1.3s ease-in-out 0.0s infinite; }
.hero-wave span:nth-child(2) { height: 36px; animation: waveBar 1.3s ease-in-out 0.1s infinite; }
.hero-wave span:nth-child(3) { height: 26px; animation: waveBar 1.3s ease-in-out 0.2s infinite; }
.hero-wave span:nth-child(4) { height: 44px; animation: waveBar 1.3s ease-in-out 0.3s infinite; }
.hero-wave span:nth-child(5) { height: 32px; animation: waveBar 1.3s ease-in-out 0.4s infinite; }
.hero-wave span:nth-child(6) { height: 22px; animation: waveBar 1.3s ease-in-out 0.5s infinite; }
.hero-wave span:nth-child(7) { height: 36px; animation: waveBar 1.3s ease-in-out 0.6s infinite; }

/* STATS SECTION */
.stats-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #008a7e 0%, #005f57 100%);
    position: relative;
    overflow: hidden;
}
.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
}
.stat-item { text-align: center; color: white; padding: 2rem 1rem; }
.stat-emoji {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    display: block;
}
.stat-item:nth-child(1) .stat-emoji { animation: float 3.2s ease-in-out 0.0s infinite; }
.stat-item:nth-child(2) .stat-emoji { animation: float 3.2s ease-in-out 0.4s infinite; }
.stat-item:nth-child(3) .stat-emoji { animation: float 3.2s ease-in-out 0.8s infinite; }
.stat-item:nth-child(4) .stat-emoji { animation: float 3.2s ease-in-out 1.2s infinite; }
.stat-count {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
    display: block;
}
.stat-label-text { font-size: 0.95rem; opacity: 0.85; font-weight: 500; }

/* FEATURES SECTION */
.features-section { padding: 5rem 0; background: var(--white); }
.feature-card {
    padding: 2.5rem 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    background: var(--white);
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0,138,126,0.11);
    border-color: rgba(0,138,126,0.35);
}
.feat-icon {
    width: 68px; height: 68px;
    border-radius: 50%;
    background: rgba(0,138,126,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    margin: 0 auto 1.5rem;
    transition: background 0.3s, transform 0.3s;
}
.feature-card:hover .feat-icon {
    background: var(--primary);
    transform: scale(1.1) rotate(-5deg);
}
.feature-title { font-size: 1.2rem; margin-bottom: 0.75rem; }
.feature-desc  { font-size: 0.93rem; color: var(--text-gray); }

/* HOW IT WORKS */
.how-section { padding: 5rem 0; background: var(--bg-light); }
.steps-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
}
.steps-wrapper::before {
    content: '';
    position: absolute;
    top: 48px;
    right: 12.5%; left: 12.5%;
    height: 2px;
    background: linear-gradient(to left, transparent, var(--primary) 20%, var(--primary) 80%, transparent);
    z-index: 0;
}
.step-card { text-align: center; position: relative; z-index: 1; }
.step-num {
    width: 62px; height: 62px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 0 8px rgba(0,138,126,0.12);
    transition: transform 0.3s, box-shadow 0.3s;
}
.step-card:hover .step-num {
    transform: scale(1.15);
    box-shadow: 0 0 0 14px rgba(0,138,126,0.15);
}
.step-emoji { font-size: 2rem; display: block; margin-bottom: 0.75rem; }
.step-title { font-size: 1.05rem; margin-bottom: 0.6rem; color: var(--text-dark); font-weight: 600; }
.step-desc  { font-size: 0.88rem; color: var(--text-gray); line-height: 1.65; }

/* TESTIMONIALS (auto-scroll) */
.testimonials-section { padding: 5rem 0; background: var(--bg-light); }
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}
@media (max-width: 900px) {
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .testimonials-grid { grid-template-columns: 1fr; }
}
.t-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
}
.t-card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.t-stars   { color: #f59e0b; font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 1rem; }
.t-text    { font-size: 1rem; color: var(--text-gray); line-height: 1.8; margin-bottom: 1.5rem; font-style: italic; }
.t-author  { display: flex; align-items: center; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.t-avatar  {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #00b4a0);
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 700; font-size: 1.1rem;
    flex-shrink: 0; box-shadow: 0 4px 10px rgba(0,138,126,0.2);
}
.t-name { font-weight: 700; font-size: 0.95rem; color: var(--text-dark); }
.t-role { font-size: 0.85rem; color: var(--text-gray); }

/* PRICING */
.pricing-section { padding: 5rem 0; background-color: var(--bg-light); }
.pricing-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 3rem 2rem;
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    position: relative;
}
.pricing-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-card); border-color: var(--primary); }
.pricing-card.popular { border-color: var(--primary); box-shadow: var(--shadow-md); }
.popular-badge {
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), #00b4a0);
    color: var(--white); padding: 0.28rem 1.1rem; border-radius: 20px;
    font-size: 0.85rem; font-weight: 600; white-space: nowrap;
}
.pricing-title { font-size: 1.5rem; color: var(--text-dark); margin-bottom: 1rem; }
.pricing-price {
    font-size: 3.5rem; font-weight: 700; color: var(--primary); margin-bottom: 0.5rem;
    display: flex; align-items: baseline; justify-content: center; gap: 0.25rem;
}
.pricing-price span { font-size: 1rem; color: var(--text-gray); font-weight: 500; }
.pricing-desc    { color: var(--text-gray); margin-bottom: 2rem; font-size: 0.95rem; min-height: 45px; }
.pricing-features { text-align: right; margin-bottom: 2.5rem; }
.pricing-features li { margin-bottom: 1rem; color: var(--text-dark); font-size: 0.95rem; display: flex; align-items: center; gap: 0.5rem; }
.pricing-features li::before { content: "✓"; color: var(--primary); font-weight: bold; }

/* FAQ SECTION */
.faq-section { padding: 5rem 0; background: var(--white); }
.faq-container { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; transition: border-color 0.3s, box-shadow 0.3s; }
.faq-item.open { border-color: var(--primary); box-shadow: 0 4px 20px rgba(0,138,126,0.1); }
.faq-q { display: flex; justify-content: space-between; align-items: center; padding: 1.35rem 1.75rem; cursor: pointer; user-select: none; background: var(--white); transition: background 0.2s; }
.faq-q:hover { background: #f8fafc; }
.faq-q h3 { font-size: 1.02rem; color: var(--text-dark); margin: 0; font-weight: 600; }
.faq-toggle { width: 28px; height: 28px; border-radius: 50%; background: var(--bg-light); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--text-gray); flex-shrink: 0; transition: background 0.3s, color 0.3s, transform 0.35s; }
.faq-item.open .faq-toggle { background: var(--primary); color: white; transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease; padding: 0 1.75rem; }
.faq-answer p { padding-bottom: 1.35rem; font-size: 0.93rem; color: var(--text-gray); line-height: 1.75; }
.faq-item.open .faq-answer { max-height: 220px; }

/* CTA SECTION */
.cta-section {
    padding: 7rem 2rem; text-align: center;
    background: linear-gradient(135deg, #008a7e, #006558, #004e49); background-size: 300% 300%;
    animation: gradientShift 9s ease infinite; position: relative; overflow: hidden;
}
.cta-section::before { content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%; border: 90px solid rgba(255,255,255,0.04); top: -130px; right: -130px; }
.cta-section::after { content: ''; position: absolute; width: 320px; height: 320px; border-radius: 50%; border: 70px solid rgba(255,255,255,0.04); bottom: -90px; left: -90px; }
.cta-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.cta-title    { font-size: 2.8rem; color: white; margin-bottom: 1rem; }
.cta-subtitle { font-size: 1.1rem; color: rgba(255,255,255,0.8); margin-bottom: 2.5rem; }
.cta-actions  { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-white { background: white; color: var(--primary); font-weight: 700; padding: 0.9rem 2.2rem; border-radius: var(--radius-sm); transition: transform 0.3s, box-shadow 0.3s; }
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,0.22); }
.btn-ghost { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.5); font-weight: 600; padding: 0.9rem 2.2rem; border-radius: var(--radius-sm); transition: border-color 0.3s, background 0.3s; }
.btn-ghost:hover { border-color: white; background: rgba(255,255,255,0.1); }

/* FLOATING CHATBOT */
@keyframes chatBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    30%       { transform: translateY(-8px) scale(1.05); }
    60%       { transform: translateY(-3px) scale(1.02); }
}
@keyframes chatPulse {
    0%   { box-shadow: 0 0 0 0 rgba(0,138,126,0.5); }
    70%  { box-shadow: 0 0 0 14px rgba(0,138,126,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,138,126,0); }
}
@keyframes chatSlideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.92); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes typingDot {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40%            { transform: scale(1);   opacity: 1;   }
}

/* FAB button */
.chat-fab { position: fixed; bottom: 2rem; left: 2rem; z-index: 999; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.chat-fab-tooltip { background: #1e293b; color: white; font-size: 0.78rem; font-weight: 600; padding: 0.35rem 0.85rem; border-radius: 20px; white-space: nowrap; opacity: 0; transform: translateY(4px); transition: opacity 0.25s, transform 0.25s; pointer-events: none; }
.chat-fab:hover .chat-fab-tooltip { opacity: 1; transform: translateY(0); }
.chat-fab-btn { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #00b4a0); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,138,126,0.4); animation: chatPulse 2.5s ease-out infinite, chatBounce 4s ease-in-out 3s infinite; transition: transform 0.2s, box-shadow 0.2s; position: relative; overflow: hidden; }
.chat-fab-btn:hover { transform: scale(1.1); box-shadow: 0 10px 28px rgba(0,138,126,0.5); animation: none; }
.chat-fab-btn svg { width: 28px; height: 28px; fill: white; transition: transform 0.3s; }
.chat-fab-btn.open svg.icon-chat  { display: none; }
.chat-fab-btn.open svg.icon-close { display: block !important; }
.chat-fab-btn svg.icon-close { display: none; }
.chat-notif { position: absolute; top: 6px; right: 6px; width: 12px; height: 12px; border-radius: 50%; background: #ef4444; border: 2px solid white; animation: chatPulse 2s ease-out infinite; }
.chat-fab-btn.open .chat-notif { display: none; }

/* Chat popup window */
.chat-popup { position: fixed; bottom: 6rem; left: 2rem; width: 330px; background: white; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.18); z-index: 998; display: none; flex-direction: column; overflow: hidden; border: 1px solid var(--border); }
.chat-popup.open { display: flex; animation: chatSlideUp 0.35s ease both; }
.chat-popup-header { background: linear-gradient(135deg, var(--primary), #006b62); padding: 1rem 1.25rem; display: flex; align-items: center; gap: 0.75rem; }
.chat-popup-avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.chat-popup-info { flex: 1; }
.chat-popup-name { color: white; font-weight: 700; font-size: 0.95rem; margin-bottom: 2px; }
.chat-popup-status { display: flex; align-items: center; gap: 0.35rem; font-size: 0.78rem; color: rgba(255,255,255,0.8); }
.chat-popup-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; display: inline-block; }
.chat-popup-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.85rem; max-height: 240px; overflow-y: auto; }
.chat-popup-body::-webkit-scrollbar { width: 4px; }
.chat-popup-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.chat-msg { display: flex; gap: 0.5rem; align-items: flex-start; }
.chat-msg.user { flex-direction: row-reverse; }
.chat-msg-avatar { width: 28px; height: 28px; border-radius: 50%; background: rgba(0,138,126,0.12); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; flex-shrink: 0; }
.chat-msg.user .chat-msg-avatar { background: linear-gradient(135deg, var(--primary), #00b4a0); color: white; }
.chat-bubble { max-width: 200px; padding: 0.6rem 0.9rem; border-radius: 12px; font-size: 0.85rem; line-height: 1.55; color: var(--text-dark); background: #f1f5f9; }
.chat-msg.user .chat-bubble { background: linear-gradient(135deg, var(--primary), #00b4a0); color: white; border-radius: 12px 12px 4px 12px; }
.chat-msg:not(.user) .chat-bubble { border-radius: 12px 12px 12px 4px; }
.chat-typing { display: flex; gap: 4px; padding: 0.5rem 0.9rem; background: #f1f5f9; border-radius: 12px 12px 12px 4px; width: fit-content; }
.chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--text-gray); display: inline-block; }
.chat-typing span:nth-child(1) { animation: typingDot 1.2s ease-in-out 0.0s infinite; }
.chat-typing span:nth-child(2) { animation: typingDot 1.2s ease-in-out 0.2s infinite; }
.chat-typing span:nth-child(3) { animation: typingDot 1.2s ease-in-out 0.4s infinite; }
.chat-popup-footer { padding: 0.85rem 1.25rem; border-top: 1px solid var(--border); display: flex; gap: 0.6rem; align-items: center; }
.chat-input { flex: 1; border: 1px solid var(--border); border-radius: 24px; padding: 0.55rem 1rem; font-family: var(--font-family); font-size: 0.88rem; outline: none; transition: border-color 0.2s; background: var(--bg-light); direction: rtl; }
.chat-input:focus { border-color: var(--primary); background: white; }
.chat-send-btn { width: 38px; height: 38px; border-radius: 50%; background: var(--primary); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.2s, transform 0.2s; }
.chat-send-btn:hover { background: var(--primary-hover); transform: scale(1.1); }
.chat-send-btn svg { width: 16px; height: 16px; fill: white; }
.chat-quick-replies { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0 1.25rem 0.75rem; }
.chat-qr-btn { background: rgba(0,138,126,0.08); color: var(--primary); border: 1px solid rgba(0,138,126,0.2); border-radius: 20px; padding: 0.3rem 0.85rem; font-size: 0.78rem; font-weight: 600; cursor: pointer; font-family: var(--font-family); transition: background 0.2s, color 0.2s; white-space: nowrap; }
.chat-qr-btn:hover { background: var(--primary); color: white; }


/* ============================================
   MOBILE NAV TOGGLE
============================================ */
.nav-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: none;
    border: 1.5px solid var(--border);
    cursor: pointer;
    padding: 7px 8px;
    border-radius: var(--radius-sm);
    transition: border-color 0.2s, background 0.2s;
}
.nav-toggle:hover { border-color: var(--primary); background: rgba(0,138,126,0.05); }
.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 4px;
    transition: transform 0.3s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--primary); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--primary); }

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10,15,30,0.55);
    z-index: 98;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}
.nav-overlay.open { display: block; }

/* ==============================================
   TABLET  <= 1024px
============================================== */
@media (max-width: 1024px) {
    .navbar-nav { gap: 1.25rem; }
    .navbar-actions { gap: 0.75rem; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ==============================================
   TABLET-SMALL  <= 900px
============================================== */
@media (max-width: 900px) {
    .hero-title { font-size: 2.5rem; }
    .stats-section .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .steps-wrapper { grid-template-columns: repeat(2, 1fr); }
    .steps-wrapper::before { display: none; }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-title { font-size: 2.2rem; }
    .cta-section { padding: 5rem 1.5rem; }
}

/* ==============================================
   MOBILE  <= 768px
============================================== */
@media (max-width: 768px) {

    /* Prevent any horizontal scroll */
    html, body { overflow-x: hidden; }

    /* Hide overflowing decorative blobs */
    .hero-section::before,
    .hero-section::after { display: none; }
    .cta-section::before,
    .cta-section::after { display: none; }

    /* Header */
    #site-header { padding: 0 1rem; }
    #site-header .navbar { padding: 0.9rem 0; }
    .nav-toggle { display: flex; }

    /* Nav: fully hidden by default, shown as drawer when .open */
    .navbar-nav {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: min(300px, 85vw);
        height: 100vh;
        background: var(--white);
        z-index: 99;
        flex-direction: column;
        gap: 0;
        padding: 5rem 1.5rem 10rem;
        overflow-y: auto;
        box-shadow: -6px 0 32px rgba(0,0,0,0.14);
        border-left: 1px solid var(--border);
    }
    [dir="ltr"] .navbar-nav {
        right: auto;
        left: 0;
        border-left: none;
        border-right: 1px solid var(--border);
        box-shadow: 6px 0 32px rgba(0,0,0,0.14);
    }
    .navbar-nav.open { display: flex; }

    .navbar-nav li { border-bottom: 1px solid var(--border); }
    .navbar-nav li:last-child { border-bottom: none; }
    .navbar-nav a {
        display: flex;
        align-items: center;
        padding: 1rem 0.35rem;
        font-size: 1.05rem;
        font-weight: 600;
        color: var(--text-dark);
        width: 100%;
    }
    .navbar-nav a:hover,
    .navbar-nav a.text-primary { color: var(--primary); }

    /* Actions pinned at bottom of drawer */
    .navbar-actions {
        display: none;
        position: fixed;
        bottom: 0;
        right: 0;
        width: min(300px, 85vw);
        background: var(--white);
        z-index: 100;
        flex-direction: column;
        gap: 0.75rem;
        padding: 1.25rem 1.5rem 1.75rem;
        border-top: 1px solid var(--border);
        box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
    }
    [dir="ltr"] .navbar-actions { right: auto; left: 0; }
    .navbar-actions.open { display: flex; }
    .navbar-actions .btn { width: 100%; justify-content: center; }
    .navbar-actions .lang-switcher { order: -1; }

    /* Container */
    .container { padding: 0 1.125rem; }

    /* Hero */
    .hero-section { padding: 5rem 0 3rem; }
    .hero-title { font-size: 2rem; line-height: 1.25; }
    .hero-desc  { font-size: 0.98rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn { width: 100%; max-width: 300px; justify-content: center; }

    /* Stats */
    .stats-section { padding: 3.5rem 0; }
    .stats-section .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
    .stat-item { padding: 1.75rem 0.75rem; }
    .stat-count { font-size: 2.2rem; }
    .stat-emoji { font-size: 1.8rem; }

    /* Features */
    .features-section { padding: 3.5rem 0; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

    /* How it works */
    .how-section { padding: 3.5rem 0; }
    .steps-wrapper { grid-template-columns: 1fr; gap: 1.5rem; }

    /* Testimonials */
    .testimonials-section { padding: 3.5rem 0; }
    .testimonials-grid { grid-template-columns: 1fr; gap: 1.25rem; }

    /* Pricing */
    .pricing-section { padding: 3.5rem 0; }
    .pricing-section .grid-3 { grid-template-columns: 1fr; gap: 2rem; }
    .pricing-card.popular { transform: none; }
    .pricing-card.popular:hover { transform: translateY(-8px); }

    /* FAQ */
    .faq-section { padding: 3.5rem 0; }

    /* CTA */
    .cta-section { padding: 4rem 1.25rem; }
    .cta-title   { font-size: 1.8rem; }
    .cta-subtitle { font-size: 0.95rem; }
    .cta-actions { flex-direction: column; align-items: center; }
    .cta-actions .btn-white,
    .cta-actions .btn-ghost { width: 100%; max-width: 300px; justify-content: center; }

    /* Section typography */
    .section-header { margin-bottom: 2rem; }
    .section-title  { font-size: 1.75rem; }

    /* Chatbot */
    .chat-fab { bottom: 1.25rem; left: 1.25rem; }
    .chat-popup { bottom: 5rem; left: 1.25rem; width: calc(100vw - 2.5rem); max-width: 360px; }
    [dir="ltr"] .chat-fab   { left: auto; right: 1.25rem; }
    [dir="ltr"] .chat-popup { left: auto; right: 1.25rem; }
}

/* ==============================================
   SMALL MOBILE  <= 480px
============================================== */
@media (max-width: 480px) {
    .hero-title    { font-size: 1.7rem; }
    .hero-badge    { font-size: 0.8rem; }
    .section-title { font-size: 1.5rem; }
    .cta-title     { font-size: 1.55rem; }
    .grid-4 { grid-template-columns: 1fr; gap: 0.875rem; }
    .stats-section .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-count    { font-size: 1.9rem; }
    .t-card        { padding: 1.75rem 1.25rem; }
    .pricing-card  { padding: 2.5rem 1.5rem; }
    .pricing-price .amount { font-size: 2.8rem; }
    .feature-card  { padding: 2rem 1.25rem; }
    .hero-wave     { display: none; }
}
