/* index.css — extracted from index.php */
:root {
    --bg: #050b14;
    --card: rgba(13, 22, 39, 0.6);
    --card-hover: rgba(19, 31, 55, 0.85);
    --accent: #8b5cf6;
    --accent-2: #38bdf8;
    --accent-glow: rgba(139, 92, 246, 0.4);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --border: rgba(255,255,255,0.08);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --whatsapp: #25D366;
    --font-primary: 'Plus Jakarta Sans', sans-serif;
}

* { box-sizing: border-box; }
html[dir="rtl"] * { letter-spacing: normal !important; }
html, body { max-width: 100vw; overflow-x: hidden; scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    background-image:
        radial-gradient(circle at 15% 20%, rgba(139, 92, 246, 0.10), transparent 40%),
        radial-gradient(circle at 85% 10%, rgba(16, 185, 129, 0.08), transparent 40%),
        radial-gradient(circle at 50% 100%, rgba(56, 189, 248, 0.08), transparent 45%),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 35px 35px, 35px 35px;
    background-attachment: fixed;
    font-family: var(--font-primary);
    color: var(--text-main);
    margin: 0;
    line-height: 1.6;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { transition: none; opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* Navbar */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 5%; background: rgba(5, 11, 20, 0.75);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border); position: fixed; width: 100%; top: 0; z-index: 1050; box-sizing: border-box;
    transition: background 0.3s, box-shadow 0.3s;
}
.navbar.scrolled { background: rgba(5, 11, 20, 0.92); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.3rem; text-decoration: none; color: var(--text-main); position: relative; z-index: 1060; }
.nav-links { display: flex; gap: 8px; align-items: center; transition: 0.3s ease; }
.nav-links a.nav-anchor { color: var(--text-muted); text-decoration: none; font-weight: 700; transition: 0.2s; font-size: 0.9rem; cursor: pointer; padding: 8px 14px; border-radius: 8px; }
.nav-links a.nav-anchor:hover { color: var(--text-main); background: rgba(255,255,255,0.05); }
.nav-links a.nav-anchor.active { color: var(--text-main); background: rgba(139, 92, 246, 0.15); }

/* Top-level page tabs — replace the nav bar's link list. Own selectors
   (.page-tab-btn / .page-view), never .tab-btn/.tier-tab-btn, so this
   switching never collides with the showcase or access-tier tab systems. */
.page-tab-bar { display: flex; gap: 6px; align-items: center; background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 14px; padding: 5px; }
.page-tab-btn { display: flex; align-items: center; gap: 8px; background: transparent; border: none; color: var(--text-muted); padding: 10px 18px; border-radius: 10px; font-weight: 800; font-size: 0.88rem; font-family: inherit; cursor: pointer; transition: 0.25s; white-space: nowrap; }
.page-tab-btn:hover { color: var(--text-main); }
.page-tab-btn.active { color: white; background: linear-gradient(135deg, var(--accent), #4f46e5); box-shadow: 0 6px 18px var(--accent-glow); }

.page-view { display: none; }
.page-view.active { display: block; animation: fadeSlideIn 0.5s cubic-bezier(0.4,0,0.2,1); }
.page-tab-only-system.pt-hidden { display: none !important; }

.btn-nav-login { background: rgba(139, 92, 246, 0.1); color: var(--accent) !important; padding: 10px 22px; border-radius: 10px; border: 1px solid rgba(139, 92, 246, 0.3); display: flex; align-items: center; gap: 8px; font-weight: 700 !important; font-size: 0.9rem; backdrop-filter: blur(10px); text-decoration: none;}
.btn-nav-login:hover { background: var(--accent); color: white !important; box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3); transform: translateY(-1px);}
.btn-nav-wa { background: rgba(37, 211, 102, 0.1); color: var(--whatsapp) !important; padding: 10px 22px; border-radius: 10px; border: 1px solid rgba(37, 211, 102, 0.2); display: flex; align-items: center; gap: 8px; font-weight: 700 !important; font-size: 0.9rem; backdrop-filter: blur(10px); text-decoration: none; cursor: pointer;}
.btn-nav-wa:hover { background: var(--whatsapp); color: white !important; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3); transform: translateY(-1px);}
.lang-switch { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); padding: 8px 14px; border-radius: 8px; font-size: 0.85rem; color: var(--text-muted); }
.lang-switch a { color: var(--text-muted); text-decoration: none; font-weight: 700; transition: 0.2s; }
.lang-switch a:hover { color: var(--text-main); }
.lang-switch a.active { color: var(--accent); }

.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 6px; z-index: 1060; }
.hamburger span { display: block; width: 26px; height: 3px; background-color: white; border-radius: 3px; transition: all 0.3s ease-in-out; }
.hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Hero */
.hero { padding: 170px 5% 60px; text-align: center; position: relative; overflow: hidden; }
.glow { position: absolute; width: 900px; height: 900px; background: var(--accent); filter: blur(260px); opacity: 0.15; z-index: -1; top: -150px; left: 50%; transform: translateX(-50%); border-radius: 50%; pointer-events: none;}
.badge-container { display: flex; justify-content: center; gap: 12px; margin-bottom: 24px; flex-wrap: wrap;}
.badge { padding: 8px 18px; border-radius: 30px; font-size: 0.8rem; font-weight: 800; border: 1px solid; display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; backdrop-filter: blur(10px);}
.badge.pos { background: rgba(16, 185, 129, 0.1); color: var(--success); border-color: rgba(16, 185, 129, 0.3); }
.badge.stock { background: rgba(245, 158, 11, 0.1); color: var(--warning); border-color: rgba(245, 158, 11, 0.3); }
.badge.sec { background: rgba(139, 92, 246, 0.1); color: var(--accent); border-color: rgba(139, 92, 246, 0.3); }
.badge.uni { background: rgba(245, 158, 11, 0.1); color: var(--warning); border-color: rgba(245, 158, 11, 0.3); }

.hero h1 { font-size: 4rem; font-weight: 800; margin: 0 0 22px; line-height: 1.25; }
.hero h1 span { background: linear-gradient(to right, #a78bfa, #38bdf8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { color: var(--text-muted); font-size: 1.2rem; max-width: 720px; margin: 0 auto 36px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 12px; background: linear-gradient(135deg, var(--accent), #4f46e5); color: white; padding: 18px 38px; border-radius: 16px; font-size: 1.05rem; font-weight: 800; text-decoration: none; cursor: pointer; transition: 0.3s; box-shadow: 0 10px 30px var(--accent-glow); border: 1px solid rgba(255,255,255,0.1);}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(139, 92, 246, 0.6); filter: brightness(1.1);}
.btn-outline { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: rgba(255,255,255,0.03); color: var(--text-main); padding: 18px 32px; border-radius: 16px; font-size: 1.05rem; font-weight: 700; text-decoration: none; cursor: pointer; transition: 0.3s; border: 1px solid var(--border);}
.btn-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); transform: translateY(-2px); }

/* Hero variant used by the 3D Printing / Custom Development page-views —
   same look as .hero but with extra bottom padding since these lack a
   .stats-strip beneath them to absorb the space before the next section. */
.hero-alt { padding-bottom: 90px; }

/* Stats strip */
.stats-strip { max-width: 1100px; margin: 70px auto 0; padding: 0 5%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-card { background: var(--card); backdrop-filter: blur(16px); border: 1px solid var(--border); border-radius: 18px; padding: 26px 20px; text-align: center; }
.stat-num { font-size: 2.4rem; font-weight: 800; background: linear-gradient(to right, #a78bfa, #38bdf8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--text-muted); font-size: 0.82rem; font-weight: 700; margin-top: 6px; }

/* Interactive Tab Showcase */
.showcase-section { padding: 120px 5% 60px; max-width: 1200px; margin: 0 auto; }
/* Same engine-row layout, used stand-alone (not inside a tab) on the 3D Print /
   Custom Dev pages — lighter top padding since the hero above already spaces it. */
.engine-section { padding: 10px 5% 70px; max-width: 1200px; margin: 0 auto; }
.tab-bar { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 60px; }
.tab-btn { background: var(--card); border: 1px solid var(--border); color: var(--text-muted); padding: 14px 24px; border-radius: 14px; font-weight: 800; font-size: 0.95rem; cursor: pointer; transition: 0.25s; font-family: inherit; backdrop-filter: blur(10px); }
.tab-btn:hover { color: var(--text-main); border-color: rgba(139, 92, 246, 0.4); }
.tab-btn.active { color: white; background: linear-gradient(135deg, var(--accent), #4f46e5); border-color: transparent; box-shadow: 0 10px 25px var(--accent-glow); }

.showcase-body { display: none; }
.showcase-body.active { display: block; animation: fadeSlideIn 0.5s cubic-bezier(0.4,0,0.2,1); }
@keyframes fadeSlideIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

.engine-row { display: flex; gap: 60px; align-items: center; }
.engine-row > * { flex: 1; width: 50%; }
.engine-content .system-tag { font-size: 0.85rem; font-weight: 800; text-transform: uppercase; margin-bottom: 16px; display: block; color: var(--accent); }
.engine-content h2 { font-size: 2.2rem; font-weight: 800; margin: 0 0 18px; line-height: 1.35;}
.engine-content h2 span { background: linear-gradient(to right, #a78bfa, #38bdf8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.engine-content p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 26px; }
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; font-size: 1rem; font-weight: 600; color: var(--text-main);}
.feature-list i { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; flex-shrink: 0; background: rgba(139, 92, 246, 0.1); color: var(--accent); border: 1px solid rgba(139, 92, 246, 0.2);}

.visual-box {
    background: var(--card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border); border-radius: 24px; padding: 28px;
    position: relative; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
    text-align: left;
}
html[dir="rtl"] .visual-box { direction: ltr; }
html[dir="rtl"] .visual-box .feature-text-rtl { direction: rtl; text-align: right; }
.window-controls { display: flex; gap: 8px; margin-bottom: 22px; }
.window-dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background-color: #ef4444; } .dot-yellow { background-color: #f59e0b; } .dot-green { background-color: #10b981; }

@keyframes scan { 0% { top: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.scanner-laser { position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: var(--success); box-shadow: 0 0 15px 5px rgba(16, 185, 129, 0.5); animation: scan 2.5s infinite linear; z-index: 10; }
.mock-card { background: rgba(255,255,255,0.03); border-radius: 8px; border: 1px solid rgba(255,255,255,0.05); padding: 15px; text-align: center; position: relative;}
@keyframes pulse-warn { 0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); } 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); } }
.pulse-icon { animation: pulse-warn 2s infinite; border-radius: 50%; }

/* Security tab mockup */
.perm-mock-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); }
.perm-mock-row:last-child { border-bottom: none; }
.perm-mock-name { color: var(--text-main); font-weight: 700; font-size: 0.95rem; }
.perm-mock-sub { color: var(--text-muted); font-size: 0.78rem; margin-top: 2px; }
.perm-toggle { width: 42px; height: 24px; border-radius: 20px; position: relative; cursor: pointer; transition: 0.2s; flex-shrink: 0; }
.perm-toggle.on { background: var(--success); }
.perm-toggle.off { background: rgba(255,255,255,0.1); }
.perm-toggle::after { content: ''; position: absolute; width: 18px; height: 18px; background: white; border-radius: 50%; top: 3px; transition: 0.2s; }
.perm-toggle.on::after { left: 21px; } .perm-toggle.off::after { left: 3px; }
html[dir="rtl"] .perm-toggle.on::after { left: auto; right: 21px; }
html[dir="rtl"] .perm-toggle.off::after { left: auto; right: 3px; }
.perm-hint { color: var(--text-muted); font-size: 0.78rem; text-align: center; margin-top: 16px; font-style: italic; }

/* Audit tab mockup */
.audit-row { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.audit-row:last-child { border-bottom: none; }
.audit-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.audit-text { color: var(--text-main); font-size: 0.9rem; font-weight: 600; }
.audit-text b { color: var(--accent-2); }
.audit-time { color: var(--text-muted); font-size: 0.78rem; margin-left: auto; font-family: monospace; }
html[dir="rtl"] .audit-time { margin-left: 0; margin-right: auto; }

/* 3D Print console mockup — a rising build-plate visual with a moving printhead,
   plus live-looking readouts, so this reads as an actual 3D printer, not a to-do list. */
.printer-readout { display: flex; gap: 10px; margin-bottom: 18px; }
.printer-stat { flex: 1; background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; text-align: center; }
.printer-stat span { display: block; font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; font-weight: 800; letter-spacing: 0.3px; margin-bottom: 4px; }
.printer-stat b { font-size: 0.92rem; color: var(--text-main); font-variant-numeric: tabular-nums; }
.print-bed { position: relative; height: 190px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: rgba(0,0,0,0.2); }
.print-bed-grid { position: absolute; inset: 0; background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 19px), repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 19px); }
/* The object itself is a fixed-size, fixed-position vase silhouette; only the
   clipping wrap's height animates, so it reveals bottom-up like a real print
   instead of stretching/squishing a shape as it "grows". */
.print-object-wrap { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); width: 110px; height: 110px; overflow: hidden; animation: printReveal 18s ease-in-out infinite; }
.print-object {
    /* A hand-drawn gear (not the fa-cog webfont glyph): font icons carry
       internal em-box padding that doesn't line up with the reveal mask's
       box edges, which was leaving a visible gap between the nozzle and the
       actual visible gear pixels. This SVG's viewBox touches its own edges,
       so revealed-height == visible-height exactly, at every frame. */
    position: absolute; bottom: 0; left: 0; width: 110px; height: 110px;
    filter: drop-shadow(0 0 12px rgba(139,92,246,0.5));
}
@keyframes printReveal { 0%, 4% { height: 8px; } 60%, 88% { height: 110px; } 100% { height: 8px; } }

/* Printer frame: two side rails + a gantry beam that rises with the print,
   plus a nozzle that sweeps left-right along it — reads as an actual printer
   in motion, not just an abstract progress line. */
.printer-rail { position: absolute; top: 14px; bottom: 10px; width: 3px; background: rgba(255,255,255,0.14); border-radius: 2px; }
.printer-rail-left { left: 16px; }
.printer-rail-right { right: 16px; }
.printer-gantry { position: absolute; left: 14px; right: 14px; height: 4px; background: rgba(255,255,255,0.22); border-radius: 2px; box-shadow: 0 0 8px rgba(255,255,255,0.15); animation: gantryRise 18s ease-in-out infinite; z-index: 2; }
@keyframes gantryRise { 0%, 4% { bottom: 24px; } 60%, 88% { bottom: 126px; } 100% { bottom: 24px; } }
/* Print head assembly: a small hotend body riding the gantry, with a glowing
   tip that touches the object's rising top surface — not just an abstract
   triangle, so it reads as a real nozzle sitting right on the print. */
.print-nozzle { position: absolute; top: 0; left: 38%; width: 16px; margin-left: -8px; animation: nozzleSweep 4s ease-in-out infinite alternate; }
.nozzle-body { width: 16px; height: 11px; background: linear-gradient(180deg, #94a3b8, #475569); border-radius: 3px 3px 2px 2px; box-shadow: 0 2px 5px rgba(0,0,0,0.4); }
.nozzle-tip { width: 0; height: 0; margin: 0 auto; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 6px solid #38bdf8; filter: drop-shadow(0 0 6px rgba(56,189,248,0.85)); }
@keyframes nozzleSweep { 0% { left: 36%; } 100% { left: 60%; } }
.print-job-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 0 0; }
.print-job-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.print-job-info i { width: 36px; height: 36px; border-radius: 10px; background: rgba(139,92,246,0.1); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; border: 1px solid rgba(139, 92, 246, 0.2); }
.print-job-name { font-weight: 700; font-size: 0.9rem; color: var(--text-main); white-space: nowrap; }
.print-job-sub { font-size: 0.76rem; color: var(--text-muted); margin-top: 2px; }
.print-job-pct { font-size: 0.92rem; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }

/* Custom Dev code-editor mockup — reads unmistakably as "we write code",
   with a typing cursor and a terminal build-status line. */
.code-filename { margin-left: auto; font-size: 0.76rem; color: var(--text-muted); font-family: 'Courier New', monospace; }
html[dir="rtl"] .code-filename { margin-left: 0; margin-right: auto; }
.code-editor { font-family: 'Courier New', monospace; font-size: 0.8rem; line-height: 1.85; background: rgba(0,0,0,0.25); border-radius: 10px; padding: 16px; overflow-x: auto; }
.code-line { white-space: pre; color: var(--text-main); }
.code-ln { display: inline-block; width: 20px; color: rgba(255,255,255,0.22); user-select: none; }
.code-kw { color: #f472b6; font-weight: 700; }
.code-fn { color: #38bdf8; }
.code-str { color: #34d399; }
.code-var { color: var(--text-main); }
.code-cursor { display: inline-block; width: 7px; height: 14px; background: var(--accent); vertical-align: text-bottom; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.terminal-line { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); font-family: 'Courier New', monospace; font-size: 0.82rem; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }

/* Bento Grid */
.bento-section { padding: 60px 5% 70px; max-width: 1400px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; font-weight: 800; margin: 0 0 15px; }
.section-header h2 span { background: linear-gradient(to right, #a78bfa, #38bdf8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.bento-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.bento-card {
    background: var(--card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border); border-radius: 22px; padding: 34px; transition: 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.05);
    display: flex; flex-direction: column;
}
.bento-card:hover { border-color: rgba(139, 92, 246, 0.4); background: var(--card-hover); transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);}
.icon-box { width: 50px; height: 50px; background: rgba(139, 92, 246, 0.1); color: var(--accent); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; margin-bottom: 20px; border: 1px solid rgba(139, 92, 246, 0.2); }
.bento-card h3 { font-size: 1.2rem; margin: 0 0 8px; font-weight: 800; }
.bento-card p { color: var(--text-muted); margin: 0; font-size: 0.95rem; flex-grow: 1; }
.system-pill { display: inline-block; padding: 4px 10px; border-radius: 6px; font-size: 0.68rem; font-weight: 800; text-transform: uppercase; margin-bottom: 14px; align-self: flex-start;}
.pill-pwa { background: rgba(59, 130, 246, 0.1); color: var(--info); border: 1px solid rgba(59, 130, 246, 0.3); }
.pill-pos { background: rgba(16, 185, 129, 0.1); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.3); }
.pill-stock { background: rgba(245, 158, 11, 0.1); color: var(--warning); border: 1px solid rgba(245, 158, 11, 0.3); }
.pill-sec { background: rgba(239, 68, 68, 0.1); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.3); }
.pill-arch { background: rgba(56, 189, 248, 0.1); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.pill-audit { background: rgba(139, 92, 246, 0.1); color: var(--accent); border: 1px solid rgba(139, 92, 246, 0.3); }
.pill-data { background: rgba(16, 185, 129, 0.1); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.3); }

/* Access Tiers — all 5 cards laid out side by side in a grid. */
.tiers-section { padding: 60px 5% 100px; max-width: 1300px; margin: 0 auto; }

.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.tier-panel {
    display: flex; flex-direction: column;
    background: var(--card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border); border-radius: 22px; padding: 32px; transition: 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.05);
}
.tier-panel:hover { border-color: rgba(139, 92, 246, 0.4); transform: translateY(-4px); }
.tier-panel[data-tier-body="full"] { border-color: rgba(139, 92, 246, 0.5); background: linear-gradient(160deg, rgba(139,92,246,0.1), var(--card)); }
.tier-panel[data-tier-body="custom"] { border-style: dashed; }

.tier-panel-head { display: flex; align-items: center; gap: 18px; margin-bottom: 6px; }
.tier-badge-inline { display: inline-block; background: linear-gradient(135deg, var(--accent), #6d28d9); color: white; font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; padding: 4px 11px; border-radius: 20px; margin-bottom: 8px; }
.tier-icon { width: 54px; height: 54px; background: rgba(139, 92, 246, 0.1); color: var(--accent); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; border: 1px solid rgba(139, 92, 246, 0.2); flex-shrink: 0; }
.tier-panel h3 { font-size: 1.2rem; margin: 0; font-weight: 800; }
.tier-desc { color: var(--text-muted); font-size: 0.92rem; margin: 18px 0 22px; line-height: 1.6; }
.tier-features { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.tier-features-grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: 10px 20px; }
.tier-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; color: var(--text-main); font-weight: 600; line-height: 1.4; }
.tier-features li i { color: var(--success); font-size: 0.8rem; margin-top: 3px; flex-shrink: 0; }
.tier-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 12px; border: 1px solid var(--border); color: var(--text-main); font-weight: 700; font-size: 0.9rem; text-decoration: none; cursor: pointer; transition: 0.2s; background: rgba(255,255,255,0.03); margin-top: auto; }
.tier-btn:hover { border-color: var(--accent); color: var(--accent); }
.tier-btn-featured { background: linear-gradient(135deg, var(--accent), #6d28d9); color: white; border: none; }
.tier-btn-featured:hover { filter: brightness(1.1); color: white; transform: translateY(-2px); }

/* Shared billing-term toggle above the tier grid — switches every card's price at once
   instead of showing all three terms per card simultaneously. */
.pricing-toggle { display: inline-flex; gap: 4px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 14px; padding: 5px; margin-top: 24px; }
.pt-btn { display: inline-flex; align-items: center; gap: 8px; background: transparent; border: none; color: var(--text-muted); padding: 10px 20px; border-radius: 10px; font-weight: 800; font-size: 0.88rem; font-family: inherit; cursor: pointer; transition: 0.2s; white-space: nowrap; }
.pt-btn:hover { color: var(--text-main); }
.pt-btn.active { color: white; background: linear-gradient(135deg, var(--accent), #4f46e5); box-shadow: 0 6px 18px var(--accent-glow); }
.pt-star { font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.3px; opacity: 0.85; }

.tier-price-display { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 18px 0 22px; padding: 18px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 14px; }
.tp-total { font-family: monospace; font-weight: 800; display: flex; align-items: baseline; gap: 6px; }
.tp-num { font-size: 1.7rem; color: var(--text-main); }
.tp-currency { font-size: 0.85rem; color: var(--text-muted); font-weight: 700; }
.tp-save-badge { font-size: 0.72rem; font-weight: 800; color: var(--success); background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.25); padding: 4px 12px; border-radius: 20px; }

@media (max-width: 1150px) {
    .tier-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 650px) {
    .tier-grid { grid-template-columns: 1fr; }
    .tier-features-grid { grid-template-columns: 1fr; }
    .tier-panel { padding: 26px 22px; }
    .tier-panel-head { gap: 14px; }
    .tier-panel h3 { font-size: 1.15rem; }
    .pricing-toggle { width: 100%; box-sizing: border-box; }
    .pt-btn { flex: 1; justify-content: center; padding: 10px 8px; font-size: 0.8rem; }
    .pt-star { display: none; }
    .tp-num { font-size: 1.4rem; }
}

/* Data Entry Service — a separate one-time/per-job add-on, distinct from the recurring
   subscription tiers above (its own section so it never reads as a 5th subscription plan). */
.dataentry-section { padding: 20px 5% 100px; max-width: 1300px; margin: 0 auto; }
.dataentry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.dataentry-card {
    background: var(--card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border); border-radius: 20px; padding: 26px 22px; transition: 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.05);
}
.dataentry-card:hover { border-color: rgba(139, 92, 246, 0.4); transform: translateY(-4px); }
.dataentry-icon { width: 46px; height: 46px; background: rgba(139, 92, 246, 0.1); color: var(--accent); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; border: 1px solid rgba(139, 92, 246, 0.2); margin-bottom: 16px; }
.dataentry-card h3 { font-size: 1rem; margin: 0 0 8px; font-weight: 800; }
.dataentry-card p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.5; margin: 0 0 20px; min-height: 63px; }
.dataentry-rates { display: flex; flex-direction: column; gap: 10px; border-top: 1px dashed var(--border); padding-top: 16px; }
.de-rate { display: flex; justify-content: space-between; align-items: center; }
.de-rate-label { font-size: 0.72rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; }
.de-rate-value { font-size: 0.88rem; font-weight: 800; color: var(--text-main); font-family: monospace; }
.dataentry-note { text-align: center; color: var(--text-muted); font-size: 0.85rem; margin: 30px auto 0; max-width: 650px; line-height: 1.6; }
.dataentry-note i { color: var(--accent); margin-inline-end: 6px; }

@media (max-width: 1150px) {
    .dataentry-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 650px) {
    .dataentry-grid { grid-template-columns: 1fr; }
    .dataentry-section { padding: 10px 5% 70px; }
}

/* AAM Links promo — a distinct free product living inside the same app, so it gets its
   own visually-separate banner (accent-tinted border/glow) rather than blending into the
   subscription-tier or data-entry sections around it. */
.links-promo-section { padding: 20px 5% 80px; max-width: 1100px; margin: 0 auto; }
.links-promo-card {
    display: flex; align-items: center; gap: 32px;
    background: linear-gradient(120deg, rgba(139,92,246,0.1), var(--card) 60%);
    border: 1px solid rgba(139, 92, 246, 0.3); border-radius: 26px; padding: 40px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
}
.links-promo-icon {
    width: 80px; height: 80px; flex-shrink: 0; border-radius: 20px;
    background: rgba(139, 92, 246, 0.15); color: var(--accent);
    display: flex; align-items: center; justify-content: center; font-size: 2rem;
    border: 1px solid rgba(139, 92, 246, 0.3);
}
.links-promo-body { flex: 1; min-width: 0; }
.links-promo-badge { display: inline-block; background: linear-gradient(135deg, var(--accent), #4f46e5); color: white; font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; padding: 5px 12px; border-radius: 20px; margin-bottom: 12px; }
.links-promo-body h2 { font-size: 1.6rem; font-weight: 800; margin: 0 0 10px; }
.links-promo-body p { color: var(--text-muted); font-size: 0.98rem; line-height: 1.6; margin: 0 0 24px; max-width: 620px; }
.links-promo-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.links-promo-actions .btn-primary, .links-promo-actions .btn-outline { padding: 14px 26px; font-size: 0.95rem; }

@media (max-width: 800px) {
    .links-promo-card { flex-direction: column; align-items: flex-start; padding: 32px 26px; gap: 20px; }
    .links-promo-actions { width: 100%; }
    .links-promo-actions .btn-primary, .links-promo-actions .btn-outline { flex: 1; justify-content: center; }
}

/* CTA */
.cta-section { padding: 100px 5%; text-align: center; position: relative; border-top: 1px solid var(--border); background: linear-gradient(to top, rgba(13, 22, 39, 0.8), transparent);}
.cta-box { max-width: 800px; margin: 0 auto; position: relative; z-index: 2;}
footer { border-top: 1px solid var(--border); padding: 40px 5%; text-align: center; color: var(--text-muted); background: rgba(5, 11, 20, 0.9); backdrop-filter: blur(10px);}
.footer-legal-links { margin: 10px 0 0; font-size: 0.85rem; }
.footer-legal-links a { color: var(--text-muted); text-decoration: none; font-weight: 600; }
.footer-legal-links a:hover { color: var(--accent); text-decoration: underline; }

.back-to-top {
    position: fixed; bottom: 30px; right: 30px; background: var(--card); color: var(--accent);
    width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; text-decoration: none; border: 1px solid var(--border); box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    opacity: 0; visibility: hidden; transition: all 0.3s ease; z-index: 990; backdrop-filter: blur(10px);
}
html[dir="rtl"] .back-to-top { right: auto; left: 30px; }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--accent); color: white; transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 15px 30px rgba(139, 92, 246, 0.4);}
.swal2-container { z-index: 1070 !important; }

/* Contact Sales modal — overrides SweetAlert2's generic default chrome (system font,
   flat corners, plain white card) with the same card language the rest of the page
   uses (dark glass panel, accent border-radius, soft shadow), and replaces the default
   title/text fields with fully custom HTML so heading weight/spacing matches everywhere
   else on the page. */
.aam-contact-popup {
    border-radius: 24px !important;
    border: 1px solid var(--border) !important;
    box-shadow: 0 25px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.06) !important;
    padding: 0 !important;
}
.aam-contact-popup .swal2-html-container { margin: 0 !important; }
.aam-contact-popup .swal2-close {
    color: var(--text-muted) !important; font-size: 1.4rem !important;
    top: 18px !important; inset-inline-end: 18px !important;
}
.aam-contact-popup .swal2-close:hover { color: var(--text-main) !important; transform: none !important; }

.aam-contact-modal { padding: 36px 32px 30px; font-family: var(--font-primary); text-align: center; }
.aam-contact-icon-badge {
    width: 60px; height: 60px; margin: 0 auto 20px; border-radius: 18px;
    background: rgba(37, 211, 102, 0.12); border: 1px solid rgba(37, 211, 102, 0.3);
    display: flex; align-items: center; justify-content: center;
    color: var(--whatsapp); font-size: 1.6rem;
}
.aam-contact-modal h2 { margin: 0 0 10px; font-size: 1.5rem; font-weight: 800; color: var(--text-main); }
.aam-contact-modal p.aam-contact-desc { margin: 0 0 26px; color: var(--text-muted); font-size: 0.95rem; line-height: 1.55; }

.aam-contact-list { display: flex; flex-direction: column; gap: 12px; }
.aam-contact-row {
    display: flex; align-items: center; gap: 14px; text-align: start;
    background: var(--card); border: 1px solid var(--border); border-radius: 16px;
    padding: 14px 16px; text-decoration: none; transition: 0.2s;
}
.aam-contact-row:hover { border-color: rgba(37, 211, 102, 0.4); background: var(--card-hover); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.35); }
.aam-contact-avatar {
    width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
    background: var(--whatsapp); color: white; font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
}
.aam-contact-text { flex: 1; min-width: 0; }
.aam-contact-name { font-weight: 800; color: var(--text-main); font-size: 0.98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aam-contact-sub { font-size: 0.78rem; color: var(--whatsapp); font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; margin-top: 2px; }
.aam-contact-arrow { color: var(--text-muted); font-size: 0.85rem; flex-shrink: 0; transition: 0.2s; }
.aam-contact-row:hover .aam-contact-arrow { color: var(--whatsapp); transform: translateX(3px); }
html[dir="rtl"] .aam-contact-row:hover .aam-contact-arrow { transform: translateX(-3px) scaleX(-1); }
html[dir="rtl"] .aam-contact-arrow { transform: scaleX(-1); }

/* Mobile floating page switcher — hidden on desktop (the navbar tabs are already visible
   there); shown only under the same 900px breakpoint where the navbar tabs get tucked
   behind the hamburger menu, so switching pages never requires opening it first. */
.bottom-page-switcher { display: none; }

/* Other Services (3D Printing / Custom Development) — a visually distinct band
   (colored background, big side icons) so it reads as its own highlight rather
   than blending into the same dark background as every section around it. */
.services-section { padding: 50px 5% 70px; max-width: 1100px; margin: 0 auto; }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 900px; margin: 0 auto; }
.service-card {
    background: linear-gradient(160deg, rgba(139,92,246,0.08), var(--card));
    border: 1px solid var(--border); border-radius: 22px; padding: 30px;
    display: flex; align-items: flex-start; gap: 20px; transition: 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.05);
}
.service-card:hover { border-color: rgba(139, 92, 246, 0.4); transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.4);}
.service-icon { width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; flex-shrink: 0; }
.service-icon-purple { background: rgba(139, 92, 246, 0.15); color: var(--accent); border: 1px solid rgba(139, 92, 246, 0.3); }
.service-icon-blue { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.service-body h3 { font-size: 1.15rem; margin: 8px 0 8px; font-weight: 800; }
.service-body p { color: var(--text-muted); margin: 0; font-size: 0.92rem; line-height: 1.55; }

@media (max-width: 1000px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
    .services-grid { grid-template-columns: 1fr; }
    .service-card { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 900px) {
    .navbar { padding: 14px 5%; width: 100%; box-sizing: border-box; }
    .brand { font-size: 1.15rem; }
    .hamburger { display: flex; }
    .nav-links {
        position: absolute; top: 100%; left: 0; width: 100%;
        background: rgba(5, 11, 20, 0.98);
        backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
        border-bottom: 1px solid var(--border);
        flex-direction: column; padding: 20px 5%; gap: 8px;
        opacity: 0; visibility: hidden; transform: translateY(-10px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 30px rgba(0,0,0,0.8); box-sizing: border-box;
    }
    .nav-links.active { opacity: 1; visibility: visible; transform: translateY(0); }
    .nav-links a.nav-anchor { width: 100%; text-align: center; padding: 12px 0; }
    .btn-nav-login, .btn-nav-wa { justify-content: center; width: 100%; box-sizing: border-box; }
    .page-tab-bar { flex-direction: column; width: 100%; gap: 4px; }
    .page-tab-btn { width: 100%; justify-content: center; }

    .bottom-page-switcher {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
        background: rgba(5, 11, 20, 0.98); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
        border-top: 1px solid var(--border); box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
        padding: 6px calc(6px + env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) calc(6px + env(safe-area-inset-left));
        gap: 4px;
    }
    .bottom-switcher-btn {
        width: auto; flex: 1; flex-direction: column; gap: 3px;
        background: none; border: none; color: var(--text-muted);
        font-size: 0.66rem; font-weight: 700; padding: 8px 2px; border-radius: 10px;
        cursor: pointer; transition: 0.15s;
    }
    .bottom-switcher-btn i { font-size: 1.1rem; }
    .bottom-switcher-btn.active { color: var(--accent); background: rgba(139, 92, 246, 0.14); }
    .bottom-switcher-btn:hover { color: var(--text-main); }
    body { padding-bottom: 62px; }

    .hero { padding: 110px 5% 50px; overflow-x: hidden; }
    .hero h1 { font-size: 2.3rem; }
    .hero p { font-size: 1rem; padding: 0; margin-bottom: 28px; }
    .badge-container { flex-direction: column; align-items: center; gap: 10px; }
    .badge { width: 100%; max-width: 300px; justify-content: center; box-sizing: border-box; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .btn-primary, .btn-outline { width: 100%; max-width: 340px; margin: 0 auto; box-sizing: border-box; }

    .stats-strip { grid-template-columns: repeat(2, 1fr); margin-top: 45px; }
    .stat-num { font-size: 1.8rem; }

    .showcase-section { padding: 70px 5% 40px; }
    .tab-bar { gap: 8px; margin-bottom: 35px; }
    .tab-btn { padding: 11px 16px; font-size: 0.82rem; }
    .engine-row { flex-direction: column; gap: 35px; }
    .engine-row > * { width: 100%; }
    .engine-content h2 { font-size: 1.7rem; }

    .bento-grid { grid-template-columns: 1fr; }
    .bento-card { padding: 24px; }
    .tier-grid { grid-template-columns: 1fr; }
    .tier-panel { padding: 26px 22px; }
    .cta-section { padding: 60px 5%; }
    .cta-box h2 { font-size: 1.8rem; }
    /* bottom raised above the mobile-only bottom-page-switcher dock so the two never overlap */
    .back-to-top { bottom: 78px; right: 20px; width: 45px; height: 45px; font-size: 1rem; }
    html[dir="rtl"] .back-to-top { right: auto; left: 20px; }
}

/* RTL overrides for language-dependent font/line-height */
html[dir="rtl"] { --font-primary: 'Noto Sans Arabic', sans-serif; }
html[dir="rtl"] body { line-height: 1.8; }
