/* ============================================
   ManageMe - Premium Showcase Website
   Light-first with Dark Mode + Enhanced 3D
   ============================================ */

/* --- LIGHT THEME (Default) --- */
:root,
[data-theme="light"] {
    --orange: #FF7B35;
    --orange-light: #FF9F43;
    --orange-dark: #E65100;
    --teal: #11C1A3;
    --teal-light: #4DD4B8;
    --teal-dark: #0A9A81;

    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fc;
    --bg-tertiary: #f0f2f7;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-card-hover: rgba(255, 255, 255, 1);
    --border: rgba(0, 0, 0, 0.07);
    --border-hover: rgba(0, 0, 0, 0.14);

    --text-primary: #1a1a2e;
    --text-secondary: #5a5f7a;
    --text-tertiary: #8a8fa8;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
    --shadow-xl: 0 24px 60px rgba(0,0,0,0.1), 0 8px 20px rgba(0,0,0,0.06);
    --shadow-3d: 0 20px 50px rgba(0,0,0,0.12), 0 8px 16px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.04);
    --shadow-3d-hover: 0 30px 70px rgba(0,0,0,0.15), 0 12px 24px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.05);
    --shadow-float: 0 16px 40px rgba(255,123,53,0.12), 0 6px 12px rgba(0,0,0,0.06);

    --nav-bg: rgba(255, 255, 255, 0.85);
    --mobile-bg: rgba(255, 255, 255, 0.98);
    --cursor-glow: rgba(255, 123, 53, 0.04);
    --grid-line: rgba(0, 0, 0, 0.03);
    --orb-opacity: 0.15;
    --card-border-3d: rgba(0,0,0,0.08);
    --feature-shine-color: rgba(255, 123, 53, 0.04);
    --topbar-bg: rgba(0, 0, 0, 0.02);
    --fc-bg: rgba(255, 255, 255, 0.95);
    --preview-border: rgba(0,0,0,0.1);
    --reflection-bg: linear-gradient(180deg, rgba(0,0,0,0.03) 0%, transparent 100%);
    --screen-shadow-color: rgba(0,0,0,0.12);
}

/* --- DARK THEME --- */
[data-theme="dark"] {
    --bg-primary: #06060b;
    --bg-secondary: #0c0c14;
    --bg-tertiary: #12121c;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);

    --text-primary: #f0f0f5;
    --text-secondary: #8a8a9a;
    --text-tertiary: #5a5a6a;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.3);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.4);
    --shadow-xl: 0 24px 60px rgba(0,0,0,0.5);
    --shadow-3d: 0 20px 50px rgba(0,0,0,0.5), 0 8px 16px rgba(0,0,0,0.3), 0 2px 6px rgba(0,0,0,0.2);
    --shadow-3d-hover: 0 30px 70px rgba(0,0,0,0.6), 0 12px 24px rgba(0,0,0,0.4);
    --shadow-float: 0 16px 40px rgba(0,0,0,0.4), 0 6px 12px rgba(0,0,0,0.3);

    --nav-bg: rgba(6, 6, 11, 0.85);
    --mobile-bg: rgba(6, 6, 11, 0.98);
    --cursor-glow: rgba(255, 123, 53, 0.06);
    --grid-line: rgba(255, 255, 255, 0.02);
    --orb-opacity: 0.35;
    --card-border-3d: rgba(255,255,255,0.06);
    --feature-shine-color: rgba(255, 123, 53, 0.06);
    --topbar-bg: rgba(255, 255, 255, 0.03);
    --fc-bg: rgba(12, 12, 20, 0.92);
    --preview-border: rgba(255,255,255,0.08);
    --reflection-bg: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 100%);
    --screen-shadow-color: rgba(0,0,0,0.2);
}

/* --- Shared Constants --- */
:root {
    --section-padding: 120px;
    --container-width: 1200px;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.4s ease;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 24px; }

/* --- Theme Transition (for all themed elements) --- */
.nav, .feature-card, .mini-module, .industry-card, .integration-card,
.pricing-card, .floating-card, .stats-section, .footer, .mobile-menu,
.preview-frame, .module-screen-3d .screen-frame, .module-screen-mobile-3d .screen-frame {
    transition: background-color 0.5s ease, border-color 0.4s ease, box-shadow 0.4s ease, color 0.4s ease;
}


/* Magnetic element transitions */
.btn-primary, .btn-outline, .btn-ghost, .btn-whatsapp, .btn-form,
.nav-link, .theme-toggle, .mm-icon, .integration-icon,
.hero-badge, .module-badge, .zatca-feature-icon, .zatca-status-dot,
.fc-icon, .stat-item {
    will-change: transform;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* --- Cursor Glow --- */
/* cursor-glow and dotGridCanvas removed for performance */

/* --- Antigravity physics elements --- */
.floating-card {
    will-change: transform;
}
.feature-card,
.integration-card,
.mini-module,
.zatca-feature-item,
.industry-card,
.compliance-item {
    will-change: transform;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.module-screen-3d {
    will-change: transform;
    transition: transform 0.15s linear;
}

/* --- Theme Toggle --- */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    border-color: var(--orange);
    color: var(--orange);
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(255,123,53,0.15);
}

.theme-icon {
    position: absolute;
    transition: all 0.4s var(--ease-spring);
}

[data-theme="light"] .sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}
[data-theme="light"] .moon-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}
[data-theme="dark"] .sun-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}
[data-theme="dark"] .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s var(--ease-out-expo);
}

.nav.scrolled {
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; gap: 10px; z-index: 10; margin-right: 20px; }
.nav-links { display: flex; align-items: center; gap: 32px; }

.nav-link {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}
.nav-link:hover { color: var(--text-primary); }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--orange);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.3s var(--ease-out-expo);
}
.nav-link:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 10;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out-expo);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--mobile-bg);
    backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out-expo);
}
.mobile-menu.active { opacity: 1; pointer-events: all; }
.mobile-menu-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.mobile-link { font-size: 1.5rem; font-weight: 600; color: var(--text-secondary); transition: color 0.2s; }
.mobile-link:hover { color: var(--text-primary); }
.mobile-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; width: 100%; }

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--orange-dark), var(--orange));
    opacity: 0;
    transition: opacity 0.3s;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 123, 53, 0.3);
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary span, .btn-primary svg { position: relative; z-index: 1; }

/* 3D Button */
.btn-3d {
    box-shadow: 0 4px 0 var(--orange-dark), 0 6px 20px rgba(255,123,53,0.25);
    transform: translateY(0);
}
.btn-3d:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 var(--orange-dark), 0 10px 30px rgba(255,123,53,0.35);
}
.btn-3d:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 var(--orange-dark), 0 4px 12px rgba(255,123,53,0.2);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-hover);
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}
.btn-ghost:hover { color: var(--text-primary); }

.btn-sm { padding: 8px 18px; font-size: 0.8rem; }
.btn-lg { padding: 14px 28px; font-size: 0.95rem; }
.btn-xl { padding: 18px 36px; font-size: 1rem; }
.btn-block { display: flex; justify-content: center; width: 100%; }

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 140px;
    overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; overflow: hidden; }

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: var(--orb-opacity);
    animation: orbFloat 20s ease-in-out infinite;
}
/* orbs, orbFloat animation, and grid-overlay removed for performance */

.hero-content { text-align: center; max-width: 800px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 123, 53, 0.08);
    border: 1px solid rgba(255, 123, 53, 0.15);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--orange);
    margin-bottom: 28px;
}
.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--orange);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.5); } }

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}
.title-line { display: block; }
.title-gradient {
    background: linear-gradient(135deg, var(--orange), var(--orange-light), var(--teal));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-meta { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.meta-item { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--text-tertiary); }

/* --- Hero Preview (Enhanced 3D) --- */
.hero-preview { width: 100%; max-width: 1100px; margin: 60px auto 80px; padding: 0 24px; position: relative; z-index: 2; }

.preview-wrapper {
    position: relative;
    perspective: 2000px;
    transform-style: preserve-3d;
}

.preview-glow {
    position: absolute;
    inset: 20px -40px -40px -40px;
    background: radial-gradient(ellipse at center bottom, rgba(255, 123, 53, 0.08) 0%, transparent 60%);
    border-radius: 30px;
    z-index: -1;
}

.preview-reflection {
    position: absolute;
    bottom: -60%;
    left: 5%;
    right: 5%;
    height: 60%;
    background: var(--reflection-bg);
    border-radius: var(--radius-lg);
    transform: scaleY(-1) rotateX(20deg);
    opacity: 0.3;
    filter: blur(8px);
    pointer-events: none;
    z-index: -1;
}

.preview-frame {
    background: var(--bg-primary);
    border: 1px solid var(--preview-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-3d);
    transform: rotateX(4deg) rotateY(0deg);
    transform-style: preserve-3d;
    transition: transform 0.6s var(--ease-out-expo), box-shadow 0.6s var(--ease-out-expo);
}
.preview-frame:hover {
    transform: rotateX(0deg) rotateY(0deg);
    box-shadow: var(--shadow-3d-hover);
}

.preview-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--topbar-bg);
    border-bottom: 1px solid var(--border);
}
.topbar-dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }
.topbar-url {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    background: var(--bg-tertiary);
    padding: 4px 12px;
    border-radius: 6px;
    flex: 1;
    text-align: center;
}
.preview-content { position: relative; line-height: 0; }
.preview-img { width: 100%; height: auto; }

/* Floating Cards (3D) */
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--fc-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-float);
    animation: floatCard 6s ease-in-out infinite;
    z-index: 5;
    transform-style: preserve-3d;
}
.fc-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.fc-icon-green { background: rgba(17, 193, 163, 0.12); }
.fc-icon-orange { background: rgba(255, 123, 53, 0.12); }
.fc-icon-blue { background: rgba(25, 118, 210, 0.12); }
.fc-text { display: flex; flex-direction: column; }
.fc-label { font-size: 0.7rem; color: var(--text-tertiary); }
.fc-value { font-size: 1rem; font-weight: 700; }
.fc-1 { top: 20%; left: -30px; }
.fc-2 { top: 40%; right: -30px; animation-delay: -2s; }
.fc-3 { bottom: 15%; left: 5%; animation-delay: -4s; }

@keyframes floatCard { 0%, 100% { transform: translateY(0px) translateZ(30px); } 50% { transform: translateY(-14px) translateZ(40px); } }

/* --- Stats Section --- */
.stats-section {
    padding: 80px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
}
.stats-grid { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.stat-item { text-align: center; display: flex; align-items: baseline; gap: 2px; flex-wrap: wrap; justify-content: center; }
.stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--orange), var(--teal));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-suffix {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--orange), var(--teal));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-label { width: 100%; font-size: 0.85rem; color: var(--text-tertiary); margin-top: 4px; }
.stat-divider { width: 1px; height: 50px; background: var(--border); }

/* --- Section Header --- */
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(255, 123, 53, 0.08);
    border: 1px solid rgba(255, 123, 53, 0.15);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.text-gradient {
    background: linear-gradient(135deg, var(--orange), var(--teal));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-gradient-reverse {
    background: linear-gradient(135deg, var(--teal), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-desc { font-size: 1.05rem; color: var(--text-secondary); max-width: 560px; margin: 0 auto; line-height: 1.7; }

/* --- Features Section (3D Cards) --- */
.features-section { padding: var(--section-padding) 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.feature-card {
    position: relative;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.4s var(--ease-out-expo);
    overflow: hidden;
    transform-style: preserve-3d;
    box-shadow: var(--shadow-sm);
}
.feature-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-lg);
}
.feature-card-inner { position: relative; z-index: 1; }

.feature-shine {
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--feature-shine-color), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.feature-card:hover .feature-shine { opacity: 1; }

/* 3D Icon Container */
.feature-icon-3d {
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    perspective: 600px;
    transform-style: preserve-3d;
}
.icon-face {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--icon-bg);
    color: var(--icon-color);
    border: 1px solid var(--card-border-3d);
    box-shadow: 0 4px 0 rgba(0,0,0,0.05), 0 8px 16px rgba(0,0,0,0.06);
    transition: all 0.4s var(--ease-out-expo);
}
.feature-card:hover .icon-face {
    transform: translateZ(12px) rotateX(-5deg);
    box-shadow: 0 8px 0 rgba(0,0,0,0.06), 0 16px 24px rgba(0,0,0,0.08);
}

.feature-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.feature-desc { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.65; }

/* --- Modules Section (3D Screenshots) --- */
.modules-section { padding: var(--section-padding) 0; background: var(--bg-secondary); overflow: visible; }

.module-showcase {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
}
.module-showcase:last-child { margin-bottom: 0; }
.module-reverse { direction: rtl; }
.module-reverse > * { direction: ltr; }

.module-info { min-width: 0; }

.module-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 123, 53, 0.1);
    border: 1px solid rgba(255, 123, 53, 0.2);
    color: var(--orange);
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}
.module-badge-teal { background: rgba(17, 193, 163, 0.1); border-color: rgba(17, 193, 163, 0.2); color: var(--teal); }
.module-badge-blue { background: rgba(25, 118, 210, 0.1); border-color: rgba(25, 118, 210, 0.2); color: #1976d2; }

.module-title { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 16px; }
.module-desc { font-size: 1rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 24px; }
.module-features { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.module-features li { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--text-secondary); }
.module-features li svg { flex-shrink: 0; }

.module-preview { position: relative; perspective: 1200px; transform-style: preserve-3d; overflow: visible; padding-bottom: 40px; padding-right: 20px; }

/* 3D Screen Frames */
.module-screen-3d {
    position: relative;
    transform-style: preserve-3d;
}
.module-screen-3d .screen-shadow {
    position: absolute;
    bottom: -12px;
    left: 20%;
    right: 20%;
    height: 24px;
    background: var(--screen-shadow-color);
    border-radius: 50%;
    filter: blur(24px);
    opacity: 0.5;
    z-index: -1;
}
.module-screen-3d .screen-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-3d);
    will-change: transform;
    transition: box-shadow 0.4s ease;
}
.module-screen-3d:hover .screen-frame {
    box-shadow: var(--shadow-3d-hover);
}
.module-screen-3d .screen-frame img { width: 100%; }

.module-screen-mobile-3d {
    position: absolute;
    bottom: 10px;
    right: 0px;
    width: 130px;
    transform-style: preserve-3d;
    z-index: 5;
}
.module-screen-mobile-3d .screen-frame {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
    will-change: transform;
    transition: box-shadow 0.4s ease;
}
.module-screen-mobile-3d .screen-frame img { width: 100%; }

/* --- All Modules Grid --- */
.all-modules-section { padding: var(--section-padding) 0; }
.modules-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 16px; }

.mini-module {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all 0.3s var(--ease-out-expo);
    cursor: default;
    box-shadow: var(--shadow-sm);
    transform-style: preserve-3d;
}
.mini-module:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-lg);
}

.mm-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.5);
    color: var(--mc);
    transition: transform 0.4s var(--ease-spring);
    box-shadow: 0 3px 0 rgba(0,0,0,0.04);
}
[data-theme="dark"] .mm-icon { background: rgba(255, 255, 255, 0.04); }
.mini-module:hover .mm-icon { transform: translateY(-4px) scale(1.1); }
.mini-module span { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); }

/* --- Industries Section --- */
.industries-section { padding: var(--section-padding) 0; background: var(--bg-secondary); overflow: hidden; }
.industries-scroll {
    overflow: hidden;
    margin: 0 -24px;
    padding: 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
    cursor: grab;
}
.industries-scroll.dragging { cursor: grabbing; }
.industries-scroll::-webkit-scrollbar { display: none; }
.industries-track {
    display: flex;
    gap: 20px;
    padding: 20px 24px;
    min-width: max-content;
    animation: industryScroll 30s linear infinite;
}
.industries-track:hover {
    animation-play-state: paused;
}
@keyframes industryScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .industries-track { animation: none; }
}

.industry-card {
    flex-shrink: 0;
    width: 240px;
    padding: 28px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s var(--ease-out-expo);
    box-shadow: var(--shadow-sm);
}
.industry-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-lg);
}
.industry-emoji { font-size: 2.5rem; margin-bottom: 16px; }
.industry-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.industry-card p { font-size: 0.82rem; color: var(--text-tertiary); line-height: 1.5; }

/* --- Integrations Section --- */
.integrations-section { padding: var(--section-padding) 0; }
.integrations-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.integration-card {
    padding: 32px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.4s var(--ease-out-expo);
    box-shadow: var(--shadow-sm);
    transform-style: preserve-3d;
}
.integration-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-xl);
}
.integration-icon { width: 60px; height: 60px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; }
.integration-card h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.integration-card p { font-size: 0.82rem; color: var(--text-tertiary); line-height: 1.55; }

/* --- Parallax 3D Showcase --- */
.showcase-parallax { position: relative; padding: 160px 0; overflow: hidden; }
.parallax-bg { position: absolute; inset: 0; z-index: 0; }
.parallax-layer { position: absolute; border-radius: 50%; filter: blur(100px); }
.parallax-layer-1 { width: 600px; height: 600px; background: radial-gradient(circle, var(--orange) 0%, transparent 70%); top: -200px; right: -100px; opacity: var(--orb-opacity); }
.parallax-layer-2 { width: 500px; height: 500px; background: radial-gradient(circle, var(--teal) 0%, transparent 70%); bottom: -200px; left: -100px; opacity: calc(var(--orb-opacity) * 0.7); }

.showcase-content { position: relative; z-index: 1; text-align: center; }
.showcase-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 20px; }
.showcase-desc { font-size: 1.05rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto 60px; line-height: 1.7; }

.showcase-screens { max-width: 900px; margin: 0 auto; perspective: 2000px; }

.screen-stack-3d {
    position: relative;
    height: 500px;
    transform-style: preserve-3d;
}

.screen-3d {
    position: absolute;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-3d);
    transition: all 0.7s var(--ease-out-expo);
    transform-style: preserve-3d;
}
.screen-3d img { width: 100%; height: 100%; object-fit: cover; }

.screen-3d-back {
    width: 70%;
    height: 380px;
    left: 0;
    top: 20px;
    transform: rotateY(12deg) translateZ(-60px) scale(0.88);
    opacity: 0.7;
    z-index: 1;
}
.screen-3d-mid {
    width: 70%;
    height: 380px;
    right: 0;
    top: 20px;
    transform: rotateY(-12deg) translateZ(-60px) scale(0.88);
    opacity: 0.7;
    z-index: 1;
}
.screen-3d-front {
    width: 75%;
    height: 420px;
    left: 50%;
    top: 0;
    transform: translateX(-50%) translateZ(40px) scale(1);
    z-index: 3;
}

.screen-stack-3d:hover .screen-3d-back {
    transform: rotateY(20deg) translateZ(-100px) translateX(-40px) scale(0.82);
}
.screen-stack-3d:hover .screen-3d-mid {
    transform: rotateY(-20deg) translateZ(-100px) translateX(40px) scale(0.82);
}
.screen-stack-3d:hover .screen-3d-front {
    transform: translateX(-50%) translateZ(60px) scale(1.03);
    box-shadow: var(--shadow-3d-hover);
}

/* --- Pricing Section --- */
.pricing-section { padding: var(--section-padding) 0; background: var(--bg-secondary); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }

.pricing-card {
    position: relative;
    padding: 36px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.4s var(--ease-out-expo);
    box-shadow: var(--shadow-sm);
    transform-style: preserve-3d;
}
.pricing-card:hover { box-shadow: var(--shadow-lg); }

.pricing-card-featured {
    border-color: var(--orange);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(255,123,53,0.1);
}
.pricing-card-featured:hover {
    box-shadow: var(--shadow-xl), 0 0 40px rgba(255, 123, 53, 0.1);
}

.pricing-popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(255,123,53,0.3);
}

.pricing-header { text-align: center; margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.plan-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }
.plan-price { display: flex; align-items: baseline; justify-content: center; gap: 2px; margin-bottom: 8px; }
.price-currency { font-size: 1.5rem; font-weight: 600; color: var(--text-secondary); }
.price-amount { font-size: 3.5rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.price-period { font-size: 0.9rem; color: var(--text-tertiary); }
.plan-desc { font-size: 0.85rem; color: var(--text-tertiary); }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.plan-features li { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--text-secondary); }
.plan-features li svg { flex-shrink: 0; }

/* --- Pricing Offer Banner --- */
.pricing-offer {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(255,123,53,0.1), rgba(17,193,163,0.1));
    border: 1px solid rgba(255,123,53,0.2);
    border-radius: 100px;
}
.offer-badge {
    padding: 3px 10px;
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    color: white;
    font-size: 0.68rem;
    font-weight: 700;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.offer-text { font-size: 0.88rem; font-weight: 600; color: var(--text-primary); }
.price-original { font-size: 1.1rem; color: var(--text-tertiary); text-decoration: line-through; margin-right: 6px; font-weight: 500; }
.price-offer-note { display: block; font-size: 0.7rem; color: var(--orange); font-weight: 600; }

/* --- Contact Form --- */
.contact-form { max-width: 520px; margin: 0 auto 24px; }
.form-row {
    display: flex;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 6px;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-row:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,123,53,0.1); }
.form-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 16px;
    font-size: 0.92rem;
    font-family: inherit;
    color: var(--text-primary);
    outline: none;
}
.form-input::placeholder { color: var(--text-tertiary); }
.btn-form { padding: 12px 24px; white-space: nowrap; flex-shrink: 0; }
.form-success { display: none; align-items: center; justify-content: center; gap: 8px; padding: 14px; font-size: 0.9rem; font-weight: 500; color: var(--teal); }
.form-success.show { display: flex; }

.cta-divider { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-divider::before, .cta-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.cta-divider span { font-size: 0.8rem; color: var(--text-tertiary); white-space: nowrap; }

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: #25D366;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s var(--ease-out-expo);
    margin-bottom: 32px;
}
.btn-whatsapp:hover { background: #1fb855; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3); }

@media (max-width: 480px) {
    .form-row { flex-direction: column; }
    .btn-form { width: 100%; justify-content: center; }
    .pricing-offer { flex-direction: column; gap: 6px; padding: 12px 16px; }
}

/* --- CTA Section --- */
/* --- Demo Request Section --- */
.demo-section { padding: var(--section-padding) 0; background: var(--bg-secondary); }
.demo-form-wrapper { max-width: 680px; margin: 0 auto; }
.demo-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-lg); }
.demo-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 28px; }
.demo-field { display: flex; flex-direction: column; gap: 6px; }
.demo-field label { font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); }
.demo-field input, .demo-field select, .demo-field textarea {
    padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-md);
    font-size: 0.9rem; font-family: inherit; color: var(--text-primary); background: var(--bg-primary); outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.demo-field input:focus, .demo-field select:focus, .demo-field textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,123,53,0.1); }
.demo-field input::placeholder, .demo-field textarea::placeholder { color: var(--text-tertiary); }
.demo-submit { width: 100%; justify-content: center; font-size: 1rem; padding: 14px 24px; }
.demo-success { display: none; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; animation: fadeInUp 0.5s ease; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 600px) { .demo-form-grid { grid-template-columns: 1fr; } .demo-form { padding: 24px; } }

.cta-section { position: relative; padding: 140px 0; overflow: hidden; }
.cta-bg { position: absolute; inset: 0; }
.cta-orb { position: absolute; border-radius: 50%; filter: blur(120px); }
.cta-orb-1 { width: 500px; height: 500px; background: radial-gradient(circle, var(--orange) 0%, transparent 70%); bottom: -200px; left: 50%; transform: translateX(-50%); opacity: var(--orb-opacity); }
.cta-orb-2 { width: 400px; height: 400px; background: radial-gradient(circle, var(--teal) 0%, transparent 70%); top: -150px; left: 50%; transform: translateX(-30%); opacity: calc(var(--orb-opacity) * 0.7); }

.cta-content { text-align: center; position: relative; z-index: 1; }
.cta-title { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 20px; }
.cta-desc { font-size: 1.1rem; color: var(--text-secondary); max-width: 560px; margin: 0 auto 36px; line-height: 1.7; }
.cta-actions { margin-bottom: 32px; }
.cta-trust { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--text-tertiary); }

/* --- Footer --- */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 48px; margin-bottom: 56px; }
.footer-brand .nav-logo { margin-bottom: 20px; }
.footer-tagline { font-size: 0.88rem; color: var(--text-tertiary); margin-top: 0; line-height: 1.7; max-width: 280px; }
.footer-links h4 { font-size: 0.85rem; font-weight: 700; margin-bottom: 16px; }
.footer-links a { display: block; font-size: 0.82rem; color: var(--text-tertiary); padding: 4px 0; transition: color 0.2s; }
.footer-links a:hover { color: var(--text-primary); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; border-top: 1px solid var(--border); }
.footer-bottom p { font-size: 0.78rem; color: var(--text-tertiary); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 0.78rem; color: var(--text-tertiary); transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--text-primary); }

/* --- Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-up {
    opacity: 0;
    transform: translateY(60px) perspective(800px) rotateX(4deg);
    transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}
.reveal-up.visible { opacity: 1; transform: translateY(0) perspective(800px) rotateX(0deg); }

/* Stagger */
.features-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.features-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.features-grid .reveal:nth-child(4) { transition-delay: 0.15s; }
.features-grid .reveal:nth-child(5) { transition-delay: 0.25s; }
.features-grid .reveal:nth-child(6) { transition-delay: 0.3s; }

.modules-grid .reveal:nth-child(2) { transition-delay: 0.03s; }
.modules-grid .reveal:nth-child(3) { transition-delay: 0.06s; }
.modules-grid .reveal:nth-child(4) { transition-delay: 0.09s; }
.modules-grid .reveal:nth-child(5) { transition-delay: 0.12s; }
.modules-grid .reveal:nth-child(6) { transition-delay: 0.15s; }
.modules-grid .reveal:nth-child(7) { transition-delay: 0.18s; }
.modules-grid .reveal:nth-child(8) { transition-delay: 0.21s; }
.modules-grid .reveal:nth-child(9) { transition-delay: 0.24s; }
.modules-grid .reveal:nth-child(10) { transition-delay: 0.27s; }
.modules-grid .reveal:nth-child(11) { transition-delay: 0.3s; }
.modules-grid .reveal:nth-child(12) { transition-delay: 0.33s; }
.modules-grid .reveal:nth-child(13) { transition-delay: 0.36s; }
.modules-grid .reveal:nth-child(14) { transition-delay: 0.39s; }
.modules-grid .reveal:nth-child(15) { transition-delay: 0.42s; }
.modules-grid .reveal:nth-child(16) { transition-delay: 0.45s; }

/* --- Responsive --- */

/* Tablet landscape */
@media (max-width: 1024px) {
    :root { --section-padding: 80px; }
    .container { padding: 0 20px; }
    .nav-inner { padding: 0 20px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .module-showcase { grid-template-columns: 1fr; gap: 40px; }
    .module-reverse { direction: ltr; }
    .module-reverse .module-screen-3d .screen-frame { transform: rotateY(-4deg) rotateX(2deg); }
    .module-preview { max-width: 600px; }
    .module-screen-mobile-3d { width: 110px; bottom: 10px; right: 0; }
    .pricing-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .integrations-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .showcase-parallax { padding: 100px 0; }
    .screen-stack-3d { height: 350px; }
    .screen-3d-back, .screen-3d-mid { height: 280px; }
    .screen-3d-front { height: 320px; }
}

/* Tablet portrait */
@media (max-width: 768px) {
    :root { --section-padding: 60px; }
    .container { padding: 0 16px; }

    /* Nav */
    .nav { padding: 12px 0; }
    .nav.scrolled { padding: 8px 0; }
    .nav-inner { padding: 0 16px; }
    .nav-links { display: none; }
    .nav-actions .btn-ghost, .nav-actions .btn-primary { display: none; }
    .nav-actions { gap: 8px; }
    .nav-actions .theme-toggle { display: flex; }
    .nav-toggle { display: flex; }

    /* Hero */
    .hero { padding-top: 100px; min-height: auto; padding-bottom: 60px; }
    .hero-title { font-size: clamp(1.8rem, 7vw, 2.8rem); margin-bottom: 16px; }
    .hero-subtitle { font-size: 0.95rem; margin-bottom: 28px; }
    .hero-actions { gap: 12px; }
    .hero-meta { gap: 12px; flex-wrap: wrap; justify-content: center; }
    .hero-preview { margin-top: 32px; margin-bottom: 48px; padding: 0 8px; }
    .preview-frame { transform: none !important; }
    .floating-card { display: none; }

    /* Stats */
    .stats-section { padding: 48px 0; }
    .stats-grid { gap: 20px; flex-direction: row; flex-wrap: wrap; justify-content: center; }
    .stat-item { min-width: 120px; }
    .stat-divider { display: none; }

    /* Features */
    .features-grid { grid-template-columns: 1fr; gap: 16px; }
    .feature-card { padding: 24px; }

    /* Modules showcase */
    .module-showcase { gap: 32px; margin-bottom: 64px; }
    .module-title { font-size: 1.5rem; }
    .module-preview { max-width: 100%; }
    .module-screen-3d .screen-frame { transform: none !important; }
    .module-screen-3d .screen-shadow { display: none; }
    .module-screen-mobile-3d { width: 80px; bottom: 5px; right: 0; }
    .module-screen-mobile-3d .screen-frame { transform: translateZ(15px) !important; }

    /* Mini modules grid */
    .modules-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
    .mini-module { padding: 16px 10px; }
    .mm-icon { width: 36px; height: 36px; }
    .mini-module span { font-size: 0.7rem; }

    /* Industries */
    .industries-section { padding: var(--section-padding) 0; }
    .industry-card { width: 200px; padding: 22px 18px; }

    /* Integrations */
    .integrations-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .integration-card { padding: 24px 18px; }

    /* Showcase parallax */
    .showcase-parallax { padding: 80px 0; }
    .showcase-title { font-size: clamp(1.6rem, 5vw, 2.2rem); }
    .showcase-desc { font-size: 0.95rem; margin-bottom: 40px; }
    .screen-stack-3d { height: 220px; }
    .screen-3d-back, .screen-3d-mid { height: 180px; width: 65%; }
    .screen-3d-front { height: 200px; width: 80%; }

    /* Pricing */
    .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; gap: 16px; }
    .pricing-card { padding: 28px 24px; }
    .price-amount { font-size: 2.8rem; }

    /* CTA */
    .cta-section { padding: 80px 0; }
    .cta-title { font-size: clamp(1.6rem, 6vw, 2.5rem); }
    .cta-desc { font-size: 0.95rem; }
    .cta-trust { flex-direction: column; align-items: center; gap: 10px; }

    /* Footer */
    .footer { padding: 48px 0 24px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* Mobile */
@media (max-width: 480px) {
    :root { --section-padding: 48px; }

    .hero-title { font-size: clamp(1.6rem, 8vw, 2.2rem); }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn-primary, .hero-actions .btn-outline { width: 100%; justify-content: center; }
    .meta-item { font-size: 0.72rem; }

    .section-title { font-size: clamp(1.5rem, 6vw, 2rem); }
    .section-desc { font-size: 0.9rem; }
    .section-tag { font-size: 0.68rem; margin-bottom: 14px; }

    .stats-grid { gap: 16px; }
    .stat-number { font-size: 1.8rem; }
    .stat-suffix { font-size: 1.1rem; }
    .stat-label { font-size: 0.75rem; }

    .modules-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .mini-module { padding: 14px 8px; gap: 6px; }
    .mm-icon { width: 32px; height: 32px; }
    .mini-module span { font-size: 0.65rem; }

    .industry-card { width: 180px; padding: 20px 16px; }
    .industry-emoji { font-size: 2rem; margin-bottom: 12px; }

    .integrations-grid { grid-template-columns: 1fr; max-width: 100%; }

    .screen-stack-3d { height: 160px; }
    .screen-3d-back, .screen-3d-mid { height: 130px; width: 65%; }
    .screen-3d-front { height: 150px; width: 85%; }

    .pricing-grid { max-width: 100%; }

    .module-features li { font-size: 0.82rem; }
    .module-desc { font-size: 0.9rem; }

    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    .footer-links { display: grid; grid-template-columns: 1fr 1fr; }
    .footer-links h4 { grid-column: 1 / -1; }

    /* Contact form */
    .form-row { flex-direction: column; }
    .btn-form { width: 100%; justify-content: center; }
    .contact-form { margin: 0 auto 20px; }
    .btn-whatsapp { width: 100%; justify-content: center; font-size: 0.88rem; padding: 12px 24px; }

    /* Pricing offer */
    .pricing-offer { flex-direction: column; gap: 6px; padding: 10px 14px; border-radius: 12px; }
    .offer-text { font-size: 0.8rem; }
}

/* Small phones */
@media (max-width: 360px) {
    .hero-title { font-size: 1.5rem; }
    .modules-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { flex-direction: column; gap: 12px; }
    .footer-links { grid-template-columns: 1fr; }
}

/* --- Selection --- */
::selection { background: rgba(255, 123, 53, 0.2); color: var(--text-primary); }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); }

/* --- Logo Styles --- */
.logo-icon-img {
    height: 25px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo-text-gradient {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, #FF7B35 0%, #11C1A3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer .logo-icon-img { height: 22px; }
.footer .logo-text-gradient { font-size: 1rem; }

@media (max-width: 480px) {
    .nav .logo-text-gradient { display: none; }
}

/* --- Screenshot Light/Dark Switching --- */
.screenshot-dark { display: none; }
[data-theme="dark"] .screenshot-light { display: none; }
[data-theme="dark"] .screenshot-dark { display: block; }

/* Fallback: if dark screenshot fails to load, show light version with filter */
.screenshot-dark.img-error { display: none !important; }
[data-theme="dark"] .screenshot-light.dark-fallback { display: block !important; filter: brightness(0.85) contrast(1.05); }

/* --- ZATCA Section --- */
.zatca-section {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.zatca-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-top: 48px;
}

.zatca-status-banner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(17, 193, 163, 0.08);
    border: 1px solid rgba(17, 193, 163, 0.2);
    border-radius: 50px;
    margin-bottom: 32px;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.zatca-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #11C1A3;
    animation: zatcaPulse 2s ease-in-out infinite;
}

@keyframes zatcaPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(17, 193, 163, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(17, 193, 163, 0); }
}

.zatca-feature-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.zatca-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.zatca-feature-item:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.zatca-feature-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: color-mix(in srgb, var(--zf-color) 10%, transparent);
    color: var(--zf-color);
}

.zatca-feature-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.zatca-feature-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.zatca-preview {
    position: sticky;
    top: 100px;
}

.zatca-compliance-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px 40px;
    margin-top: 60px;
    padding: 28px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.compliance-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
}

@media (max-width: 900px) {
    .zatca-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .zatca-preview {
        position: static;
    }
    .zatca-compliance-bar {
        gap: 16px 24px;
    }
}

@media (max-width: 600px) {
    .zatca-section {
        padding: 60px 0;
    }
    .zatca-feature-item {
        flex-direction: column;
        gap: 12px;
    }
    .zatca-compliance-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* --- Page load --- */
body { animation: pageLoad 0.6s ease-out; }
@keyframes pageLoad { from { opacity: 0; } to { opacity: 1; } }
