/* CSS Variables */
:root {
    --color-primary: #1a3a4a;
    --color-primary-light: #2d5a6e;
    --color-text: #1a2e3d;
    --color-text-secondary: #4a6572;
    --color-text-light: #7a9aaa;
    --gradient-hero: linear-gradient(180deg, #e8f4f6 0%, #d4e8ed 30%, #c8dfe8 60%, #d8e4f0 100%);
    --gradient-card: linear-gradient(135deg, #e0f2f4 0%, #d0eaef 50%, #c5e5ec 100%);
    --gradient-cta: linear-gradient(180deg, #d0eaef 0%, #b8dce6 100%);
    --shadow-soft: 0 4px 24px rgba(26, 58, 74, 0.08);
    --shadow-card: 0 8px 32px rgba(26, 58, 74, 0.1);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-xl: 40px;
    --font-family: 'Noto Kufi Arabic', sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: #f5f9fa;
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.4;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: var(--gradient-hero);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.hero-content {
    width: 100%;
    max-width: 480px;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.7) 0%, 
        rgba(255, 255, 255, 0.4) 50%,
        rgba(200, 230, 240, 0.3) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

/* Header */
.header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 32px;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

/* Hero Main Content */
.hero-main {
    text-align: center;
    margin-bottom: 32px;
}

.hero-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #b8d4dc 0%, #a0c8d4 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    box-shadow: 0 4px 16px rgba(26, 58, 74, 0.15);
}

.hero-icon span {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
}

.hero-title {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 16px;
    line-height: 1.5;
}

.hero-description {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 28px;
    padding: 0 8px;
}

/* CTA Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(26, 58, 74, 0.25);
}

.cta-button:hover {
    background: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(26, 58, 74, 0.3);
}

.cta-button-large {
    padding: 18px 48px;
    font-size: 1.125rem;
}

/* Chat Mockup */
.chat-mockup {
    background: linear-gradient(180deg, 
        rgba(200, 225, 235, 0.5) 0%, 
        rgba(180, 215, 230, 0.4) 100%
    );
    border-radius: var(--radius-lg);
    padding: 24px 16px;
    margin-top: 8px;
}

.chat-message {
    margin-bottom: 12px;
    animation: fadeInUp 0.5s ease forwards;
}

.chat-message.bot p {
    background: rgba(255, 255, 255, 0.85);
    padding: 14px 18px;
    border-radius: var(--radius-md);
    border-top-right-radius: 6px;
    font-size: 0.9rem;
    color: var(--color-text);
    line-height: 1.7;
    box-shadow: 0 2px 8px rgba(26, 58, 74, 0.06);
}

.chat-message.user {
    display: flex;
    justify-content: flex-start;
}

.chat-message.user p {
    background: linear-gradient(135deg, #e8f4f6 0%, #d8ecf0 100%);
    padding: 12px 18px;
    border-radius: var(--radius-md);
    border-top-left-radius: 6px;
    font-size: 0.9rem;
    color: var(--color-primary);
    font-weight: 500;
    border: 1px solid rgba(26, 58, 74, 0.1);
}

.chat-message.typing {
    position: relative;
}

.chat-message.typing p {
    color: var(--color-text-light);
    background: rgba(255, 255, 255, 0.6);
}

.typing-cursor {
    position: absolute;
    bottom: 16px;
    right: 18px;
    width: 2px;
    height: 16px;
    background: var(--color-primary);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.chat-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
}

.chat-dots span {
    width: 8px;
    height: 8px;
    background: rgba(26, 58, 74, 0.2);
    border-radius: 50%;
}

.chat-dots span:first-child {
    background: rgba(26, 58, 74, 0.5);
}

/* Features Section */
.features {
    padding: 80px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.features-header {
    text-align: center;
    margin-bottom: 48px;
}

.features-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 12px;
}

.features-subtitle {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* Feature Cards */
.feature-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.feature-card.gradient-card {
    background: var(--gradient-card);
}

.feature-content {
    text-align: right;
}

.feature-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 12px;
}

.feature-description {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
}

/* Feature Illustrations */
.feature-illustration {
    margin-top: 32px;
}

.chat-illustration {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chat-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-line {
    height: 12px;
    background: linear-gradient(90deg, #d0e8ed 0%, #e8f4f6 100%);
    border-radius: 6px;
}

.chat-line.short { width: 40%; }
.chat-line.medium { width: 60%; }
.chat-line.long { width: 85%; }

.chat-bubble-illustration {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    padding: 20px;
    background: linear-gradient(135deg, #c8e4ec 0%, #b8dce6 100%);
    border-radius: var(--radius-md);
}

.chat-line-right {
    height: 10px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 5px;
}

.chat-line-right.medium { width: 70%; }
.chat-line-right.long { width: 90%; }

.illustration-dots {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(26, 58, 74, 0.15);
    border-radius: 50%;
}

.dot.active {
    background: rgba(26, 58, 74, 0.4);
}

/* Metrics Illustration */
.metrics-illustration {
    padding: 24px;
    background: linear-gradient(135deg, #e8f4f6 0%, #d8ecf0 100%);
    border-radius: var(--radius-md);
}

.metric-bars {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 16px;
    height: 120px;
}

.bar {
    width: 32px;
    height: var(--height);
    background: linear-gradient(180deg, #7ab8c8 0%, #5a9eb0 100%);
    border-radius: 8px 8px 4px 4px;
    transition: height 0.5s ease;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-cta);
    padding: 80px 20px;
    text-align: center;
}

.cta-content {
    max-width: 480px;
    margin: 0 auto;
}

.cta-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 12px;
}

.cta-description {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

/* Footer */
.footer {
    background: var(--color-primary);
    padding: 40px 20px;
    text-align: center;
}

.footer-content {
    max-width: 480px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.footer-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (min-width: 768px) {
    .hero {
        padding: 40px;
        align-items: center;
    }

    .hero-content {
        padding: 48px 40px;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-description {
        font-size: 1.125rem;
    }

    .features {
        padding: 100px 40px;
    }

    .features-title {
        font-size: 2.25rem;
    }

    .feature-card {
        padding: 40px 32px;
    }

    .feature-title {
        font-size: 1.5rem;
    }

    .cta-section {
        padding: 100px 40px;
    }

    .cta-title {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .hero-content {
        max-width: 520px;
    }

    .features {
        max-width: 700px;
    }

    .feature-card {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        align-items: center;
    }

    .feature-card.gradient-card {
        grid-template-columns: 1fr;
    }

    .feature-illustration {
        margin-top: 0;
    }
}

/* Hover Effects */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(26, 58, 74, 0.12);
}

/* Selection Color */
::selection {
    background: rgba(90, 158, 176, 0.3);
    color: var(--color-text);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f5f9fa;
}

::-webkit-scrollbar-thumb {
    background: #c8dce4;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8c8d4;
}
