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

:root {
    --primary: #3B82F6;
    --primary-hover: #2563eb;
    --secondary: #10B981;
    --accent: #F59E0B;
    --dark: #0f172a;
    --dark-surface: #1e293b;
    --gray: #64748b;
    --light-gray: #f8fafc;
    --border-color: #e2e8f0;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
}

/* Arabic Font Override */
body.arabic, 
[lang="ar"] body {
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 16px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    transition: color 0.3s;
}

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

.nav-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 15px;
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.btn-outline {
    border: 2px solid var(--border-color);
    color: var(--dark);
    background: white;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(59, 130, 246, 0.04);
}

.btn-outline-white {
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
}

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

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

.btn-lang {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--light-gray);
    border: 1px solid var(--border-color);
    color: var(--dark);
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
}

.btn-lang:hover {
    background: white;
    border-color: var(--primary);
    color: var(--primary);
}

/* Hero Section */
.hero {
    padding: 150px 0 90px;
    background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    width: fit-content;
}

.hero h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--dark);
    letter-spacing: -1px;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 19px;
    color: var(--gray);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.stat h3 {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
}

.stat p {
    color: var(--gray);
    font-size: 14px;
    font-weight: 600;
}

/* Mockup UI Component Styling */
.dashboard-mockup {
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.hero-image-frame {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-image-frame:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 30px 60px -12px rgba(59, 130, 246, 0.25);
}

.hero-img-container {
    overflow: hidden;
    background: #0f172a;
    display: flex;
}

.hero-dashboard-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: top left;
}

.mockup-header {
    background: #f1f5f9;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 16px;
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
}

.mockup-dots span:nth-child(1) { background: #ef4444; }
.mockup-dots span:nth-child(2) { background: #f59e0b; }
.mockup-dots span:nth-child(3) { background: #10b981; }

.mockup-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray);
}

.mockup-content {
    display: flex;
    height: 380px;
}

.mockup-sidebar {
    width: 160px;
    background: var(--dark);
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-item {
    padding: 8px 12px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
}

.sidebar-item.active {
    background: var(--primary);
    color: white;
}

.mockup-main {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #f8fafc;
}

.mockup-grid-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mini-stat-card {
    background: white;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.mini-stat-card span {
    font-size: 11px;
    color: var(--gray);
}

.mini-stat-card strong {
    font-size: 18px;
    color: var(--dark);
}

.chart-preview {
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.chart-header {
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    height: 120px;
    padding-top: 10px;
}

.chart-bars span {
    flex: 1;
    background: var(--gradient);
    border-radius: 4px 4px 0 0;
}

/* Section Common */
section {
    padding: 90px 0;
}

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

.section-label {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.section-header p {
    font-size: 18px;
    color: var(--gray);
}

/* Features Overview Grid */
.features-overview {
    background: var(--light-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    width: 52px;
    height: 52px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}

.feature-card p {
    color: var(--gray);
    line-height: 1.6;
    font-size: 15px;
}

/* Platforms Section */
.platform-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 90px;
}

.platform-showcase.reverse .platform-content {
    order: 2;
}

.platform-showcase.reverse .platform-visual {
    order: 1;
}

.platform-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
}

.platform-content h3 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--dark);
}

.platform-content > p {
    font-size: 17px;
    color: var(--gray);
    margin-bottom: 32px;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.feature-list li svg {
    flex-shrink: 0;
    margin-top: 3px;
}

.feature-list li div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.feature-list strong {
    color: var(--dark);
    font-weight: 700;
    font-size: 16px;
}

.feature-list span {
    color: var(--gray);
    font-size: 14px;
}

.feature-list.compact {
    gap: 12px;
}

.feature-list.compact li {
    font-size: 14px;
    color: var(--dark);
    font-weight: 500;
}

.app-roles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 32px;
}

.role-section {
    background: var(--light-gray);
    padding: 20px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
}

.role-section h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--dark);
}

/* Rich Platform Mockups */
.browser-mockup {
    background: white;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.browser-header {
    background: #f1f5f9;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.browser-url {
    flex: 1;
    background: white;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--gray);
    border: 1px solid var(--border-color);
}

.admin-screenshot {
    height: 380px;
    background: #f8fafc;
    padding: 16px;
}

.admin-ui-preview {
    background: white;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    height: 100%;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.admin-brand {
    font-weight: 700;
    color: var(--dark);
    font-size: 15px;
}

.admin-badge-term {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.admin-metric-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.admin-metric-card {
    background: var(--light-gray);
    padding: 12px;
    border-radius: 8px;
}

.admin-metric-card span {
    font-size: 12px;
    color: var(--gray);
}

.admin-metric-card h4 {
    font-size: 20px;
    color: var(--dark);
    font-weight: 800;
}

.admin-table-preview {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.table-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    background: white;
    border: 1px solid var(--border-color);
}

.table-row.header {
    background: #f1f5f9;
    font-weight: 700;
    color: var(--gray);
    border: none;
}

.chip {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}

.chip-success {
    background: #d1fae5;
    color: #065f46;
}

/* Phone Mockup */
.phone-mockup {
    width: 280px;
    margin: 0 auto;
    background: #0f172a;
    border-radius: 36px;
    padding: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 4px solid #334155;
}

.phone-notch {
    width: 90px;
    height: 20px;
    background: #0f172a;
    border-radius: 0 0 14px 14px;
    margin: 0 auto 10px;
}

.phone-screen {
    height: 480px;
    background: white;
    border-radius: 26px;
    overflow: hidden;
}

.mobile-ui {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #f8fafc;
    height: 100%;
}

.mobile-ui.dark {
    background: #0f172a;
    color: white;
}

.mobile-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.child-picker {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.avatar {
    font-size: 24px;
}

.mobile-card {
    background: white;
    border-radius: 12px;
    padding: 14px;
    border: 1px solid var(--border-color);
}

.card-label {
    font-size: 11px;
    color: var(--gray);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.grade-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.grade-tag {
    color: var(--secondary);
    font-weight: 800;
}

.hw-item {
    display: flex;
    flex-direction: column;
}

.hw-item small {
    color: #ef4444;
    font-weight: 600;
}

.attendance-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.att-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1e293b;
    padding: 10px 14px;
    border-radius: 8px;
}

.att-btn {
    padding: 4px 10px;
    border-radius: 6px;
    border: none;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.att-btn.present { background: #10b981; color: white; }
.att-btn.absent { background: #ef4444; color: white; }

/* Features Detail Tabs */
.features-detail {
    background: var(--light-gray);
}

.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 24px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-weight: 700;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 15px;
}

.tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.features-two-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.feature-item {
    background: white;
    padding: 24px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
}

.feature-item h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}

.feature-item p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.6;
}

/* Stats Section */
.stats {
    background: var(--dark);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

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

.stat-card h3 {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-card p {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-card span {
    font-size: 13px;
    color: #94a3b8;
}

/* Use Cases */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.use-case-card {
    text-align: center;
    padding: 32px 24px;
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.use-case-icon {
    font-size: 44px;
    margin-bottom: 16px;
}

.use-case-card h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}

.use-case-card p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.6;
}

/* CTA Section */
.cta {
    background: var(--gradient);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-content > p {
    font-size: 19px;
    margin-bottom: 32px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.cta-note {
    font-size: 14px;
    opacity: 0.85;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 60px;
}

.contact-info h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--dark);
}

.contact-info > p {
    font-size: 17px;
    color: var(--gray);
    margin-bottom: 32px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-method {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.method-icon {
    font-size: 28px;
}

.contact-method h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray);
    margin-bottom: 2px;
}

.contact-method a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 700;
}

.contact-form-wrapper {
    background: white;
    padding: 36px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.05);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--dark);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.3s;
    background: var(--light-gray);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
}

.contact-form .btn {
    width: 100%;
    justify-content: center;
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 70px 0 28px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 16px;
}

.footer-col p {
    color: #94a3b8;
    line-height: 1.6;
    font-size: 14px;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.footer-col ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #94a3b8;
    font-size: 14px;
}

/* Clean Native RTL Support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .hero-text {
    text-align: right;
}

[dir="rtl"] .section-header {
    text-align: center;
}

[dir="rtl"] .stat-card {
    text-align: center;
}

[dir="rtl"] .use-case-card {
    text-align: center;
}

[dir="rtl"] .cta-content {
    text-align: center;
}

[dir="rtl"] .footer-bottom {
    text-align: center;
}

/* Responsive Rules */
@media (max-width: 1024px) {
    .hero-content,
    .platform-showcase,
    .platform-showcase.reverse {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .platform-showcase.reverse .platform-content {
        order: 1;
    }
    
    .platform-showcase.reverse .platform-visual {
        order: 2;
    }

    .hero-image {
        order: 2;
    }
    
    .features-grid,
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Mobile Menu Overlay */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    /* Mobile Menu Styles */
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        gap: 0;
        display: none;
        border-bottom: 1px solid var(--border-color);
        z-index: 1001;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-links li:last-child {
        border-bottom: none;
    }
    
    .nav-links a {
        display: block;
        padding: 14px 0;
        font-size: 16px;
    }
    
    .nav-cta {
        position: fixed;
        top: calc(70px + 165px);
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        gap: 12px;
        display: none;
        border-bottom: 1px solid var(--border-color);
        z-index: 1001;
    }
    
    .nav-cta.active {
        display: flex;
        animation: slideDown 0.3s ease-out 0.1s backwards;
    }
    
    .nav-cta .btn {
        width: 100%;
        justify-content: center;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Adjust hero for mobile */
    .hero {
        padding: 110px 0 60px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
    }
    
    .hero-stats {
        gap: 24px;
        flex-wrap: wrap;
    }
    
    .stat {
        flex: 1 1 45%;
    }
    
    .features-grid,
    .features-two-col,
    .use-cases-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .app-roles {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper,
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .section-header h2 {
        font-size: 30px;
    }
    
    .platform-content h3 {
        font-size: 26px;
    }
    
    .tabs-nav {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1 1 calc(50% - 6px);
        min-width: 140px;
        font-size: 14px;
        padding: 10px 16px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .phone-mockup {
        width: 240px;
    }
    
    .phone-screen {
        height: 420px;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .logo span {
        font-size: 18px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero-description {
        font-size: 15px;
    }
    
    .btn-lg {
        padding: 12px 24px;
        font-size: 15px;
    }
    
    .section-header h2 {
        font-size: 26px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    
    .tab-btn {
        flex: 1 1 100%;
    }
}

/* RTL Mobile Menu Support */
[dir="rtl"] .nav-links,
[dir="rtl"] .nav-cta {
    left: 0;
    right: 0;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}
