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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.7;
}

/* Animated gradient background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(239, 68, 68, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(34, 197, 94, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.1) 0%, transparent 70%),
        linear-gradient(135deg, #0a0a0a 0%, #1a0a1a 50%, #0a1a0a 100%);
    z-index: -2;
    animation: gradientShift 20s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(20deg); }
}

/* Floating round chat bubbles */
.bubbles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.chat-bubble {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(34, 197, 94, 0.15));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: float 15s infinite ease-in-out;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.chat-bubble:nth-child(1) { width: 80px; height: 80px; top: 10%; left: 5%; animation-delay: 0s; animation-duration: 18s; }
.chat-bubble:nth-child(2) { width: 120px; height: 120px; top: 20%; right: 10%; animation-delay: 2s; animation-duration: 22s; }
.chat-bubble:nth-child(3) { width: 60px; height: 60px; top: 50%; left: 8%; animation-delay: 4s; animation-duration: 16s; }
.chat-bubble:nth-child(4) { width: 100px; height: 100px; top: 70%; right: 5%; animation-delay: 6s; animation-duration: 20s; }
.chat-bubble:nth-child(5) { width: 90px; height: 90px; top: 85%; left: 40%; animation-delay: 8s; animation-duration: 19s; }
.chat-bubble:nth-child(6) { width: 70px; height: 70px; top: 35%; left: 60%; animation-delay: 3s; animation-duration: 17s; }
.chat-bubble:nth-child(7) { width: 110px; height: 110px; top: 60%; right: 30%; animation-delay: 5s; animation-duration: 21s; }
.chat-bubble:nth-child(8) { width: 50px; height: 50px; top: 15%; left: 45%; animation-delay: 7s; animation-duration: 15s; }
.chat-bubble:nth-child(9) { width: 140px; height: 140px; top: 130%; right: 15%; animation-delay: 1s; animation-duration: 23s; }
.chat-bubble:nth-child(10) { width: 75px; height: 75px; top: 160%; left: 20%; animation-delay: 4s; animation-duration: 18s; }
.chat-bubble:nth-child(11) { width: 95px; height: 95px; top: 200%; right: 25%; animation-delay: 6s; animation-duration: 20s; }
.chat-bubble:nth-child(12) { width: 65px; height: 65px; top: 240%; left: 50%; animation-delay: 2s; animation-duration: 17s; }

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    33% {
        transform: translate(30px, -40px) scale(1.1);
        opacity: 0.8;
    }
    66% {
        transform: translate(-20px, 30px) scale(0.95);
        opacity: 0.5;
    }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.25rem 2rem;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ef4444, #22c55e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: -0.01em;
}

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

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-btn {
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, #ef4444, #22c55e);
    border-radius: 50px;
    color: #ffffff !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 140px 2rem 4rem;
    position: relative;
    z-index: 1;
}

.hero-logo {
    width: 200px;
    height: 200px;
    border-radius: 30px;
    margin-bottom: 2rem;
    box-shadow: 0 20px 60px rgba(34, 197, 94, 0.25);
    animation: logoFloat 6s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.hero h1 {
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ef4444 0%, #f59e0b 50%, #22c55e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    line-height: 1.1;
    max-width: 1000px;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2.5rem;
    max-width: 700px;
    font-weight: 400;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 50px;
    font-size: 0.9rem;
    color: #22c55e;
    font-weight: 500;
    margin-bottom: 2rem;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 10px #22c55e;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.cta-primary {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #ef4444, #22c55e);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.25);
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(34, 197, 94, 0.4);
}

/* Content sections */
.content-section {
    padding: 5rem 2rem;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-label {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    color: #22c55e;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ef4444 0%, #f59e0b 50%, #22c55e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ef4444, #22c55e);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(34, 197, 94, 0.2));
    border: 1px solid rgba(34, 197, 94, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Highlighted section */
.highlight-section {
    padding: 5rem 2rem;
    position: relative;
    z-index: 1;
}

.highlight-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 4rem 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.highlight-card.reverse {
    direction: rtl;
}

.highlight-card.reverse > * {
    direction: ltr;
}

.highlight-content h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, #ef4444 0%, #f59e0b 50%, #22c55e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.highlight-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.highlight-content ul {
    list-style: none;
    margin-top: 1.5rem;
}

.highlight-content ul li {
    padding: 0.6rem 0;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.highlight-content ul li::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444, #22c55e);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.highlight-visual {
    aspect-ratio: 1;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(34, 197, 94, 0.15));
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    position: relative;
    overflow: hidden;
}

.highlight-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(34, 197, 94, 0.2), transparent 70%);
    animation: pulse-bg 4s ease-in-out infinite;
}

@keyframes pulse-bg {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.highlight-visual span {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 10px 30px rgba(34, 197, 94, 0.3));
}

/* CTA Section */
.cta-section {
    padding: 5rem 2rem;
    position: relative;
    z-index: 1;
}

.cta-card {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 4rem 3rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(34, 197, 94, 0.1));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cta-card h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ef4444 0%, #f59e0b 50%, #22c55e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.cta-card p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 3rem;
    background: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1;
}

footer p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

footer .footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

footer .footer-links a:hover {
    color: #22c55e;
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        padding: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .hero {
        padding: 100px 1rem 3rem;
    }

    .hero-logo {
        width: 140px;
        height: 140px;
    }

    .content-section,
    .highlight-section,
    .cta-section {
        padding: 3rem 1rem;
    }

    .highlight-card {
        grid-template-columns: 1fr;
        padding: 2.5rem 1.75rem;
        gap: 2rem;
    }

    .highlight-card.reverse {
        direction: ltr;
    }

    .highlight-visual {
        font-size: 5rem;
        order: -1;
    }

    .cta-card {
        padding: 3rem 1.75rem;
    }

    .feature-card {
        padding: 2rem 1.5rem;
    }
}

/* ---- Qasa additions ---- */
::selection { background: rgba(34, 197, 94, 0.35); color: #ffffff; }
html { scrollbar-color: rgba(255, 255, 255, 0.25) #0a0a0a; }
a:focus-visible, .cta-primary:focus-visible, .nav-btn:focus-visible {
    outline: 2px solid #22c55e; outline-offset: 3px; border-radius: 50px;
}
h1, h2, h3 { text-wrap: balance; }
.nav-logo { display: inline-flex; align-items: center; gap: 0.6rem; }
.nav-logo img { width: 34px; height: 34px; border-radius: 9px; display: block; }
.nav-logo span {
    background: linear-gradient(135deg, #ef4444, #22c55e);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nav-btn, .cta-primary { white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* use cases under the Persona section */
.usecases { margin-top: 2.5rem; }
.usecases-title { text-align: center; font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; letter-spacing: -0.02em; color: #ffffff; margin-bottom: 0.5rem; }
.usecases-sub { text-align: center; color: rgba(255, 255, 255, 0.7); max-width: 640px; margin: 0 auto; }
.usecases .features-grid { margin-top: 2rem; }
.highlight-content p.fine { font-size: 0.95rem; color: rgba(255, 255, 255, 0.7); }

/* /beta */
.beta-hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 96px 2rem 2.5rem; position: relative; z-index: 1; }
.beta-hero .hero-logo { width: 104px; height: 104px; border-radius: 22px; margin-bottom: 1.25rem; animation: none; }
.beta-hero .hero-badge { margin-bottom: 1.25rem; }
.beta-hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.75rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; max-width: 820px; margin-bottom: 1rem;
    background: linear-gradient(135deg, #ef4444 0%, #f59e0b 50%, #22c55e 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.beta-intro { font-size: clamp(1.1rem, 2vw, 1.3rem); color: rgba(255, 255, 255, 0.8); max-width: 620px; margin-bottom: 1.75rem; }
.beta-card { width: 100%; max-width: 620px; padding: 2rem 2rem; text-align: center; background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(34, 197, 94, 0.1)); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 30px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); }
.beta-card p { font-size: 1.1rem; color: rgba(255, 255, 255, 0.85); margin-bottom: 1.5rem; }
.beta-card .cta-primary { font-size: 1.15rem; padding: 1.05rem 3rem; }
.beta-card .beta-note { font-size: 0.875rem; color: rgba(255, 255, 255, 0.6); margin: 1.25rem 0 0; }
.beta-more { margin-top: 2rem; font-size: 0.95rem; }
.beta-more a { color: rgba(255, 255, 255, 0.75); text-underline-offset: 4px; }
.beta-more a:hover { color: #22c55e; }
@media (max-width: 768px) {
    .beta-hero { padding: 84px 1rem 2rem; }
    .beta-hero .hero-logo { width: 84px; height: 84px; border-radius: 18px; }
    .beta-card { padding: 2rem 1.25rem; }
}
