:root {
    --primary: #0d7377;
    --primary-dark: #0a5c5f;
    --primary-light: #0d9da2;
    --accent: #e5a100;
    --bg: #f5f6fa;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --text: #1a1d26;
    --text-muted: #5a5f6d;
    --text-dim: #8c909a;
    --border: #e2e5eb;
    --success: #16a34a;
    --warning: #d97706;
    --gradient-start: #0d7377;
    --gradient-end: #0a9396;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(0,0,0,0.06);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Noto Sans Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

[dir="rtl"] body {
    font-family: 'Noto Sans Arabic', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.8;
}

h1, h2, h3, h4, .nav-brand, .hero-badge, .section-label,
.pricing-tier, .product-badge, .btn {
    font-family: 'Inter', 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
}

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4,
[dir="rtl"] .nav-brand, [dir="rtl"] .hero-badge, [dir="rtl"] .section-label,
[dir="rtl"] .pricing-tier, [dir="rtl"] .product-badge, [dir="rtl"] .btn {
    font-family: 'Cairo', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.demo-creds-value, code, pre {
    font-family: 'IBM Plex Sans', 'IBM Plex Sans Arabic', monospace;
}

[dir="rtl"] .demo-creds-value, [dir="rtl"] code, [dir="rtl"] pre {
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', monospace;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
}

.nav-brand-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); background: rgba(13, 115, 119, 0.06); }

.nav-cta {
    background: var(--primary) !important;
    color: #fff !important;
    font-weight: 600 !important;
    padding: 8px 18px !important;
}

.nav-cta:hover { background: var(--primary-dark) !important; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(13, 115, 119, 0.06);
    border-radius: 8px;
    padding: 2px;
}

.lang-switcher button {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.lang-switcher button:hover {
    color: var(--text);
}

.lang-switcher button.lang-active {
    background: var(--primary);
    color: #fff;
}

.hero {
    padding: 140px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(13, 115, 119, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    background: rgba(13, 115, 119, 0.08);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 24px;
    border: 1px solid rgba(13, 115, 119, 0.15);
}

.hero h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text);
}

[dir="rtl"] .hero h1 {
    letter-spacing: 0;
    line-height: 1.35;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

[dir="rtl"] .hero p {
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(13, 115, 119, 0.2);
}
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(13, 115, 119, 0.25); }

.btn-outline {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-lg { padding: 14px 32px; font-size: 16px; }

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-label {
    display: inline-block;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

[dir="rtl"] .section-label {
    letter-spacing: 0;
}

.section-header h2 {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    color: var(--text);
}

[dir="rtl"] .section-header h2 {
    letter-spacing: 0;
    line-height: 1.4;
}

.section-header p {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: all 0.3s;
    text-align: start;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 115, 119, 0.08);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(13, 115, 119, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}

.card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

[dir="rtl"] .card p {
    line-height: 1.8;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 48px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stat-item { text-align: center; }

.stat-value {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    display: flex;
    flex-direction: column;
    text-align: start;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: all 0.3s;
}

.product-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(13, 115, 119, 0.08);
}

.product-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 6px;
    margin-bottom: 16px;
    width: fit-content;
}

[dir="rtl"] .product-badge {
    letter-spacing: 0;
}

.product-badge-active { background: rgba(22, 163, 74, 0.1); color: var(--success); }
.product-badge-coming { background: rgba(217, 119, 6, 0.1); color: var(--warning); }

.product-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.product-card > p { color: var(--text-muted); font-size: 15px; margin-bottom: 20px; }

.product-domains {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.domain-tag {
    background: rgba(13, 115, 119, 0.08);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 6px;
}

.product-section-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

[dir="rtl"] .product-section-label {
    letter-spacing: 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.pricing-card:hover { border-color: var(--primary); transform: translateY(-2px); }

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(13, 115, 119, 0.12);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 20px;
    white-space: nowrap;
}

.pricing-tier {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 8px;
}

[dir="rtl"] .pricing-tier {
    letter-spacing: 0;
}

.pricing-price {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--text);
}

.pricing-price span { font-size: 16px; font-weight: 500; color: var(--text-muted); }

.pricing-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.pricing-features {
    list-style: none;
    text-align: start;
    margin-bottom: 28px;
}

.pricing-features li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li::before {
    content: '\2713';
    color: var(--success);
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.demo-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.demo-box h2 { font-size: 28px; font-weight: 800; margin-bottom: 16px; color: var(--text); }
.demo-box p { color: var(--text-muted); font-size: 16px; margin-bottom: 12px; }

.demo-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 32px 0;
    text-align: center;
}

.demo-step-num {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    margin: 0 auto 10px;
}

.demo-step-text { font-size: 14px; color: var(--text-muted); }

.demo-creds {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    text-align: start;
    max-width: 340px;
    margin: 0 auto;
}

.demo-creds-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

[dir="rtl"] .demo-creds-title {
    letter-spacing: 0;
}

.demo-creds-row {
    margin-bottom: 8px;
}

.demo-creds-row:last-child {
    margin-bottom: 0;
}

.demo-creds-label {
    color: var(--text-dim);
    font-size: 13px;
}

.demo-creds-value {
    color: var(--primary);
    font-size: 14px;
    font-family: monospace;
    margin-inline-start: 8px;
}

.contact-form {
    max-width: 560px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

[dir="rtl"] .form-group label {
    letter-spacing: 0;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 115, 119, 0.1);
}

.form-group textarea { min-height: 120px; resize: vertical; }

.cta-banner {
    text-align: center;
    padding: 80px 24px;
    background: linear-gradient(135deg, rgba(13, 115, 119, 0.06), rgba(10, 147, 150, 0.04));
    border-top: 1px solid var(--border);
}

.cta-banner h2 { font-size: 32px; font-weight: 800; margin-bottom: 14px; color: var(--text); }
.cta-banner p { color: var(--text-muted); font-size: 17px; margin-bottom: 28px; }

.site-footer {
    border-top: 1px solid var(--border);
    padding: 48px 0 32px;
    background: #fff;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 48px;
    flex-wrap: wrap;
}

.footer-brand { max-width: 280px; }
.footer-brand p { color: var(--text-dim); font-size: 13px; margin-top: 10px; line-height: 1.6; }

[dir="rtl"] .footer-brand p {
    line-height: 1.8;
}

.footer-links h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

[dir="rtl"] .footer-links h4 {
    letter-spacing: 0;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--text-dim); font-size: 14px; }
.footer-links a:hover { color: var(--text); }

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-dim);
    font-size: 13px;
}

.page-header {
    padding: 120px 0 48px;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

.page-header h1 {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
    color: var(--text);
}

[dir="rtl"] .page-header h1 {
    letter-spacing: 0;
    line-height: 1.4;
}

.page-header p {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
}

.contact-info-cards .card {
    text-align: center;
}

.contact-info-cards .card-icon {
    margin: 0 auto 20px;
}

.contact-success {
    display: none;
    text-align: center;
    padding: 40px 0;
}

.contact-success-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.contact-success h3 {
    margin-bottom: 8px;
    color: var(--text);
}

.contact-success p {
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        padding: 16px;
        gap: 4px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    }
    .card-grid-3, .card-grid-2 { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .demo-steps { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; gap: 32px; }
    .hero { padding: 110px 0 60px; }
}
