
:root {
  --ink: #0f172a;
  --muted: #64748b;
  --soft: #f3f7f7;
  --line: #dce7e5;
  --brand: #0f766e;
  --brand-dark: #0a554f;
  --brand-light: #14b8a6;
  --gold: #d6ad55;
  --white: #fff;
  --shadow-sm: 0 12px 36px rgba(15, 23, 42, .07);
  --shadow-lg: 0 35px 90px rgba(8, 47, 44, .16);
  --radius: 24px;
  --font: "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: var(--font); -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img, svg { display: block; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; top: -80px; right: 20px; z-index: 9999; padding: 12px 18px; border-radius: 10px; background: var(--ink); color: #fff; transition: .2s; }
.skip-link:focus { top: 15px; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 100; border-bottom: 1px solid transparent; transition: background .25s, box-shadow .25s, border-color .25s; }
.site-header.scrolled { background: rgba(255,255,255,.93); border-color: rgba(15,118,110,.1); box-shadow: 0 8px 30px rgba(15,23,42,.05); backdrop-filter: blur(18px); }
.header-inner { height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand img { width: 43px; height: 43px; border-radius: 12px; box-shadow: 0 8px 20px rgba(15,118,110,.18); }
.brand span { display: grid; line-height: 1.05; }
.brand strong { font-size: 21px; letter-spacing: -.4px; }
.brand small { margin-top: 6px; color: var(--muted); font-size: 10.5px; font-weight: 600; letter-spacing: .15px; }
.desktop-nav { display: flex; align-items: center; gap: 29px; margin-inline-start: auto; }
.desktop-nav a { position: relative; color: #334155; font-size: 14px; font-weight: 700; }
.desktop-nav a::after { content: ""; position: absolute; right: 0; bottom: -9px; width: 0; height: 2px; background: var(--brand); transition: width .2s; }
.desktop-nav a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 13px; }
.text-login { color: var(--brand-dark); font-size: 13px; font-weight: 800; }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 10px; }
.menu-toggle span { width: 100%; height: 2px; display: block; margin: 4px 0; background: var(--ink); border-radius: 9px; transition: .2s; }
.mobile-nav { position: absolute; top: 78px; left: 20px; right: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-lg); }
.mobile-nav a, .mobile-nav button { display: block; width: 100%; padding: 12px; border: 0; border-bottom: 1px solid #eef2f2; background: none; text-align: right; font-weight: 700; }
.mobile-nav button { color: var(--brand); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 20px; border: 1px solid transparent; border-radius: 13px; font-weight: 800; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: linear-gradient(135deg, var(--brand), #0d9488); color: #fff; box-shadow: 0 12px 28px rgba(15,118,110,.22); }
.btn-primary:hover { box-shadow: 0 17px 32px rgba(15,118,110,.3); }
.btn-secondary { border-color: #cbdad8; background: rgba(255,255,255,.76); color: #1e3d3a; }
.btn-sm { min-height: 40px; padding-inline: 18px; font-size: 13px; }
.btn-lg { min-height: 54px; padding-inline: 27px; border-radius: 15px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-light { background: #fff; color: var(--brand-dark); }
.btn-outline-light { border-color: rgba(255,255,255,.48); color: #fff; background: rgba(255,255,255,.06); }

.hero { position: relative; overflow: hidden; min-height: 790px; padding: 146px 0 88px; background: radial-gradient(circle at 12% 20%, rgba(20,184,166,.09), transparent 31%), linear-gradient(180deg, #f8fdfc 0%, #fff 84%); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .28; background-image: linear-gradient(rgba(15,118,110,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(15,118,110,.055) 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(to bottom, #000 0, transparent 82%); }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.hero-orb-one { width: 360px; height: 360px; left: -170px; top: 160px; background: rgba(20,184,166,.09); }
.hero-orb-two { width: 250px; height: 250px; right: 42%; bottom: -110px; background: rgba(214,173,85,.11); }
.hero-grid { position: relative; display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; gap: 54px; }
.hero-copy { z-index: 2; }
.hero-badge { width: fit-content; display: flex; align-items: center; gap: 9px; padding: 8px 13px; border: 1px solid rgba(15,118,110,.16); border-radius: 99px; background: rgba(255,255,255,.78); color: var(--brand-dark); font-size: 12px; font-weight: 800; box-shadow: 0 7px 22px rgba(15,118,110,.06); }
.hero-badge span { width: 7px; height: 7px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 5px rgba(16,185,129,.12); }
.hero h1 { margin: 23px 0 22px; font-size: clamp(50px, 5vw, 78px); line-height: 1.03; letter-spacing: -2.6px; }
.hero h1 em { color: var(--brand); font-style: normal; position: relative; }
.hero h1 em::after { content: ""; position: absolute; right: 0; left: 0; bottom: 3px; height: 8px; z-index: -1; border-radius: 999px; background: rgba(214,173,85,.28); transform: rotate(-1deg); }
.hero-copy > p { max-width: 570px; margin: 0; color: #526171; font-size: 17px; line-height: 1.95; }
.hero-actions { display: flex; align-items: center; gap: 13px; margin-top: 31px; }
.hero-trust { display: flex; align-items: center; gap: 13px; margin-top: 30px; }
.avatar-stack { display: flex; direction: ltr; }
.avatar-stack span { width: 35px; height: 35px; display: grid; place-items: center; margin-left: -8px; border: 3px solid #fff; border-radius: 50%; background: #dcefeb; color: var(--brand-dark); font-size: 11px; font-weight: 900; }
.avatar-stack span:nth-child(2) { background: #e8e1f6; color: #6d4ca3; }
.avatar-stack span:nth-child(3) { background: #f8e8d4; color: #9a5e1c; }
.avatar-stack span:last-child { background: var(--ink); color: #fff; }
.hero-trust p { display: grid; margin: 0; line-height: 1.2; }
.hero-trust strong { font-size: 12px; }
.hero-trust span { margin-top: 5px; color: var(--muted); font-size: 10.5px; }

.hero-visual { position: relative; min-width: 0; perspective: 1000px; }
.dashboard-window { overflow: hidden; border: 1px solid rgba(15,118,110,.13); border-radius: 23px; background: #fff; box-shadow: 0 45px 100px rgba(15,68,63,.18), 0 4px 20px rgba(15,23,42,.06); transform: rotateY(-3deg) rotateX(1deg); transform-origin: center; }
.window-top { height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 19px; border-bottom: 1px solid #e9eeee; background: #fbfdfd; }
.window-brand { display: flex; align-items: center; gap: 9px; }
.window-brand img { width: 31px; height: 31px; border-radius: 8px; }
.window-brand span { display: grid; }
.window-brand b { font-size: 10px; }
.window-brand small { margin-top: 3px; color: #94a3b8; font-size: 7px; }
.window-tools { display: flex; gap: 6px; direction: ltr; }
.window-tools i { width: 8px; height: 8px; border-radius: 50%; background: #dde5e4; }
.window-tools i:first-child { background: #f59e0b; }
.window-tools i:nth-child(2) { background: #10b981; }
.window-body { min-height: 430px; display: grid; grid-template-columns: 130px 1fr; direction: ltr; }
.mock-sidebar { display: flex; flex-direction: column; gap: 7px; padding: 24px 13px; background: #0d3f3b; direction: rtl; }
.mock-sidebar span { display: flex; align-items: center; gap: 8px; padding: 10px 9px; border-radius: 8px; color: rgba(255,255,255,.56); font-size: 7.5px; font-weight: 700; }
.mock-sidebar span.active { background: rgba(255,255,255,.12); color: #fff; }
.mock-sidebar i { width: 10px; height: 10px; border: 1.5px solid currentColor; border-radius: 3px; }
.mock-content { min-width: 0; padding: 24px; background: #f7f9f9; direction: rtl; }
.mock-heading { display: flex; align-items: center; justify-content: space-between; }
.mock-heading div { display: grid; }
.mock-heading small { color: #94a3b8; font-size: 7px; }
.mock-heading strong { margin-top: 4px; font-size: 13px; }
.mock-heading > span { padding: 8px 11px; border-radius: 7px; background: var(--brand); color: #fff; font-size: 7px; font-weight: 800; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 19px; }
.mock-stats article { position: relative; min-height: 88px; display: grid; padding: 13px; border: 1px solid #e8efee; border-radius: 12px; background: #fff; }
.mock-stats i { position: absolute; top: 12px; left: 12px; width: 22px; height: 22px; border-radius: 7px; background: #dff4ef; }
.mock-stats i.blue { background: #e1edfa; }
.mock-stats i.gold { background: #f7edda; }
.mock-stats small { color: #64748b; font-size: 7px; }
.mock-stats b { margin-top: 6px; font-size: 18px; }
.mock-stats em { color: #10b981; font-size: 6.5px; font-style: normal; }
.mock-panels { display: grid; grid-template-columns: 1.12fr .88fr; gap: 11px; margin-top: 11px; }
.mock-panels article { min-width: 0; height: 210px; padding: 15px; border: 1px solid #e8efee; border-radius: 12px; background: #fff; }
.mock-panels article > div:first-child { display: flex; align-items: center; justify-content: space-between; }
.mock-panels strong { font-size: 8px; }
.mock-panels small { color: #94a3b8; font-size: 6.5px; }
.chart-panel svg { width: 100%; height: 150px; margin-top: 11px; overflow: visible; }
.chart-panel .grid-line { fill: none; stroke: #eef2f2; stroke-width: 1; }
.chart-panel .area { fill: url(#area); }
.chart-panel .line { fill: none; stroke: #0d9488; stroke-width: 3; stroke-linecap: round; }
.chart-panel circle { fill: #fff; stroke: #0d9488; stroke-width: 3; }
.task-panel ul { margin: 14px 0 0; padding: 0; list-style: none; }
.task-panel li { display: flex; align-items: center; gap: 7px; padding: 9px 0; border-bottom: 1px solid #eef2f2; }
.task-panel li:last-child { border-bottom: 0; }
.priority { width: 5px; height: 25px; flex: none; border-radius: 4px; background: #ef4444; }
.priority.medium { background: #f59e0b; }
.priority.low { background: #10b981; }
.task-panel p { min-width: 0; display: grid; flex: 1; margin: 0; }
.task-panel p b { overflow: hidden; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.task-panel p small { margin-top: 3px; font-size: 6px; }
.task-panel em { color: var(--brand); font-size: 6.5px; font-style: normal; font-weight: 800; }
.floating-card { position: absolute; z-index: 4; display: flex; align-items: center; gap: 11px; padding: 12px 14px; border: 1px solid rgba(15,118,110,.12); border-radius: 15px; background: rgba(255,255,255,.94); box-shadow: 0 18px 48px rgba(15,23,42,.13); backdrop-filter: blur(12px); }
.floating-card p { display: grid; margin: 0; }
.floating-card strong { font-size: 9px; }
.floating-card small { margin-top: 4px; color: var(--muted); font-size: 7px; }
.floating-progress { right: -35px; bottom: -25px; }
.ring { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--brand) 82%, #e5efed 0); }
.ring::before { content: ""; position: absolute; width: 32px; height: 32px; border-radius: 50%; background: #fff; }
.ring b { z-index: 1; color: var(--brand-dark); font-size: 10px; }
.floating-message { top: 91px; left: -40px; }
.floating-message > span { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 10px; background: #e5e0f4; color: #6d4ca3; font-size: 10px; font-weight: 900; }
.floating-message > i { width: 7px; height: 7px; border-radius: 50%; background: #10b981; }

.logo-strip { border-block: 1px solid #edf2f1; background: #fbfdfd; }
.logo-strip-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #58706d; font-size: 12px; font-weight: 800; }
.logo-strip-inner i { width: 4px; height: 4px; border-radius: 50%; background: #b7cac7; }

.section { padding: 105px 0; }
.section-heading { max-width: 700px; margin-bottom: 50px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-kicker { display: block; margin-bottom: 14px; color: var(--brand); font-size: 12px; font-weight: 900; letter-spacing: .3px; }
.section-heading h2, .workflow-copy h2, .security-copy h2 { margin: 0; font-size: clamp(34px, 4vw, 52px); line-height: 1.2; letter-spacing: -1.5px; }
.section-heading p, .workflow-copy > p, .security-copy > p { margin: 17px 0 0; color: var(--muted); font-size: 16px; line-height: 1.9; }
.features-section { background: #fff; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { position: relative; overflow: hidden; min-height: 330px; padding: 28px; border: 1px solid #e4eceb; border-radius: var(--radius); background: #fff; box-shadow: 0 10px 35px rgba(15,23,42,.035); transition: transform .25s, border-color .25s, box-shadow .25s; }
.feature-card:hover { transform: translateY(-6px); border-color: rgba(15,118,110,.25); box-shadow: var(--shadow-sm); }
.feature-card-wide { grid-column: span 2; }
.feature-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 14px; }
.feature-icon svg { width: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature-icon.teal { background: #e0f4f1; color: #0f766e; }
.feature-icon.violet { background: #eee9f8; color: #7151a3; }
.feature-icon.blue { background: #e5f0fb; color: #3a78b7; }
.feature-icon.orange { background: #fff0de; color: #c9761d; }
.feature-icon.rose { background: #fbe8ec; color: #b94b65; }
.feature-icon.gold { background: #f7eedb; color: #a47b24; }
.feature-card > span, .brand-feature-copy > span { color: var(--brand); font-size: 11px; font-weight: 900; }
.feature-card h3 { margin: 8px 0 11px; font-size: 23px; letter-spacing: -.5px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.85; }
.feature-card-wide:not(.brand-feature) { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; align-items: center; }
.feature-card-wide:not(.brand-feature) .feature-icon { grid-column: 1; margin-bottom: -10px; }
.feature-card-wide:not(.brand-feature) > div:nth-child(2) { grid-column: 1; }
.mini-kanban { grid-column: 2; grid-row: 1 / span 2; align-self: stretch; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 15px; border-radius: 16px; background: #f4f7f7; direction: rtl; }
.mini-kanban > div { padding: 8px; border-radius: 10px; background: rgba(255,255,255,.6); }
.mini-kanban b { display: block; margin-bottom: 9px; color: #58706d; font-size: 8px; }
.mini-kanban span { display: block; margin-bottom: 7px; padding: 9px 7px; border: 1px solid #e3e9e8; border-radius: 7px; background: #fff; color: #334155; font-size: 7px; font-weight: 800; box-shadow: 0 4px 10px rgba(15,23,42,.04); }
.mini-kanban span i { display: inline-block; width: 4px; height: 4px; margin-left: 4px; border-radius: 50%; background: #f59e0b; }
.mini-kanban span em { display: block; margin-top: 6px; color: var(--brand); font-size: 6px; font-style: normal; }
.mini-kanban span.done i { background: #10b981; }
.chat-preview { position: absolute; right: 28px; left: 28px; bottom: 25px; padding: 12px; border-radius: 14px; background: #f7f5fb; }
.chat-preview p { display: flex; align-items: center; gap: 8px; }
.chat-preview p span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: #7253a5; color: #fff; font-size: 8px; font-weight: 900; }
.chat-preview p b { color: #334155; font-size: 8px; }
.chat-preview > div { margin: 8px 34px 0 0; padding: 9px; border: 1px solid #ded6ee; border-radius: 8px; background: #fff; color: #5f4a81; font-size: 7px; font-weight: 800; }
.chat-preview > div i { float: left; padding: 2px 4px; border-radius: 3px; background: #eee8f6; font-size: 5px; font-style: normal; }
.report-bars { position: absolute; right: 30px; left: 30px; bottom: 28px; height: 88px; display: flex; align-items: end; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid #dde8e6; }
.report-bars i { flex: 1; border-radius: 7px 7px 2px 2px; background: linear-gradient(#5ca3df, #8bc0eb); opacity: .82; }
.report-bars i:nth-child(even) { background: linear-gradient(#0d9488, #5cc5ba); }
.notification-preview { position: absolute; right: 27px; left: 27px; bottom: 28px; display: flex; align-items: center; gap: 10px; padding: 13px; border: 1px solid #f6dfc3; border-radius: 13px; background: #fffaf3; }
.notification-preview > i { width: 9px; height: 9px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 5px rgba(245,158,11,.12); }
.notification-preview p { display: grid; flex: 1; }
.notification-preview p b { color: #6f4d23; font-size: 8px; }
.notification-preview p small { margin-top: 3px; font-size: 6.5px; }
.notification-preview time { color: #a98964; font-size: 6px; }
.role-pills { position: absolute; right: 27px; left: 27px; bottom: 28px; display: flex; flex-wrap: wrap; gap: 7px; }
.role-pills span { padding: 7px 9px; border: 1px solid #f0d9df; border-radius: 99px; background: #fff8fa; color: #9a4156; font-size: 7px; font-weight: 800; }
.brand-feature { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: center; background: linear-gradient(135deg, #fff 0%, #fffcf5 100%); }
.theme-preview { min-height: 245px; display: grid; place-items: center; padding: 22px; border-radius: 18px; background: #f4f1e9; }
.theme-window { width: 100%; height: 155px; display: grid; grid-template-columns: 25% 75%; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 17px 35px rgba(80,65,32,.12); direction: ltr; }
.theme-window aside { padding: 17px 10px; background: #123f3a; }
.theme-window aside i { display: block; height: 7px; margin-bottom: 10px; border-radius: 4px; background: rgba(255,255,255,.2); }
.theme-window main { padding: 14px; }
.theme-window header { height: 9px; width: 42%; border-radius: 5px; background: #dce6e4; }
.theme-window section { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 14px; }
.theme-window section span { height: 38px; border-radius: 7px; background: #edf3f2; }
.theme-window section span:nth-child(2) { background: #f6edda; }
.theme-window article { height: 50px; margin-top: 9px; border-radius: 7px; background: linear-gradient(135deg, #e2f0ed, #f7fbfa); }
.swatches { display: flex; gap: 8px; margin-top: 14px; direction: ltr; }
.swatches i { width: 20px; height: 20px; border: 3px solid #f4f1e9; border-radius: 50%; background: #0f766e; box-shadow: 0 0 0 1px #c8d6d3; }
.swatches i:nth-child(2) { background: #2563eb; }
.swatches i:nth-child(3) { background: #7c3aed; }
.swatches i:nth-child(4) { background: #c48a39; }
.swatches i:nth-child(5) { background: #be4f72; }
.swatches i:nth-child(6) { background: #1f2937; }
.swatches i.selected { box-shadow: 0 0 0 2px #0f766e; }

.workflow-section { background: #f5f9f8; }
.workflow-grid { display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; gap: 80px; }
.steps-list { margin: 35px 0 0; padding: 0; list-style: none; }
.steps-list li { display: flex; gap: 17px; padding: 17px 0; border-bottom: 1px solid #dfe9e7; opacity: .72; }
.steps-list li.active { opacity: 1; }
.steps-list li > span { width: 42px; height: 42px; display: grid; place-items: center; flex: none; border: 1px solid #cadbd8; border-radius: 13px; background: #fff; color: var(--brand); font-size: 10px; font-weight: 900; }
.steps-list li.active > span { background: var(--brand); color: #fff; box-shadow: 0 10px 24px rgba(15,118,110,.2); }
.steps-list h3 { margin: 1px 0 5px; font-size: 16px; }
.steps-list p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.route-demo { position: relative; padding: 20px 20px 66px; border-radius: 30px; background: linear-gradient(135deg, #0d3f3b, #0a2f2c); box-shadow: 0 34px 80px rgba(10,61,57,.2); }
.route-browser { overflow: hidden; border-radius: 16px; background: #fff; }
.browser-bar { height: 48px; display: flex; align-items: center; gap: 6px; padding: 0 13px; background: #eef3f2; direction: ltr; }
.browser-bar > span { width: 8px; height: 8px; border-radius: 50%; background: #d0dcda; }
.browser-bar > span:first-child { background: #f87171; }
.browser-bar > span:nth-child(2) { background: #fbbf24; }
.browser-bar > span:nth-child(3) { background: #34d399; }
.browser-bar > div { min-width: 0; display: flex; align-items: center; flex: 1; margin-left: 10px; padding: 8px 12px; border-radius: 7px; background: #fff; font-size: 8px; }
.browser-bar i { margin-right: 7px; font-size: 7px; font-style: normal; }
.browser-bar b { color: #64748b; font-weight: 500; }
.browser-bar em { color: var(--brand); font-style: normal; font-weight: 900; }
.tenant-login-preview { min-height: 340px; display: grid; grid-template-columns: 1.05fr .95fr; direction: ltr; }
.preview-cover { display: flex; flex-direction: column; justify-content: center; padding: 32px; background: linear-gradient(145deg, #0e5d56, #083934); color: #fff; direction: rtl; }
.preview-cover img { width: 48px; height: 48px; margin-bottom: 18px; border: 2px solid rgba(255,255,255,.18); border-radius: 14px; }
.preview-cover > small { color: rgba(255,255,255,.68); font-size: 7px; }
.preview-cover h3 { margin: 8px 0 9px; font-size: 20px; }
.preview-cover p { margin: 0; color: rgba(255,255,255,.68); font-size: 8px; line-height: 1.7; }
.preview-cover > div { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 21px; }
.preview-cover > div span { font-size: 7px; }
.preview-form { display: flex; flex-direction: column; justify-content: center; padding: 35px; direction: rtl; }
.preview-form > span { color: var(--brand); font-size: 7px; font-weight: 900; }
.preview-form h3 { margin: 6px 0; font-size: 17px; }
.preview-form > p { margin: 0 0 18px; color: #94a3b8; font-size: 7px; }
.preview-form label { display: grid; gap: 5px; margin-bottom: 10px; color: #475569; font-size: 7px; font-weight: 800; }
.preview-form input { width: 100%; height: 32px; padding: 0 9px; border: 1px solid #dce5e4; border-radius: 7px; color: #64748b; background: #fafcfc; font-size: 8px; }
.preview-form button { height: 34px; margin-top: 4px; border: 0; border-radius: 7px; background: var(--brand); color: #fff; font-size: 7px; font-weight: 900; }
.route-label { position: absolute; right: 60px; bottom: -19px; display: flex; align-items: center; gap: 11px; min-width: 250px; padding: 14px 17px; border: 1px solid rgba(15,118,110,.12); border-radius: 15px; background: #fff; box-shadow: 0 16px 40px rgba(15,23,42,.13); }
.route-label svg { width: 28px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.route-label p { display: grid; margin: 0; }
.route-label strong { font-size: 10px; }
.route-label span { margin-top: 4px; color: var(--brand); font-size: 8px; direction: ltr; text-align: right; }

.roles-section { background: #fff; }
.roles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 17px; }
.role-card { position: relative; min-height: 430px; padding: 30px 25px; border: 1px solid #e4eceb; border-radius: 23px; background: #fff; transition: transform .25s, box-shadow .25s; }
.role-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-sm); }
.role-card.featured { border-color: rgba(15,118,110,.28); background: linear-gradient(180deg, #f4fbfa, #fff); box-shadow: 0 20px 50px rgba(15,118,110,.09); }
.role-number { position: absolute; top: 26px; left: 24px; color: #c8d6d4; font-size: 11px; font-weight: 900; }
.role-avatar { width: 57px; height: 57px; display: grid; place-items: center; margin-bottom: 26px; border-radius: 17px; }
.role-avatar svg { width: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.role-avatar.system { background: #e0f3f0; color: #0f766e; }
.role-avatar.owner { background: #e6effa; color: #356fa8; }
.role-avatar.supervisor { background: #f0eafa; color: #7250a5; }
.role-avatar.employee { background: #f9ecd8; color: #a36b20; }
.role-card h3 { margin: 0; font-size: 22px; }
.role-card > p { min-height: 76px; margin: 12px 0 20px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.role-card ul { margin: 0; padding: 18px 0 0; border-top: 1px solid #e7eeee; list-style: none; }
.role-card li { position: relative; margin: 11px 0; padding-right: 20px; color: #475569; font-size: 11px; font-weight: 700; }
.role-card li::before { content: "✓"; position: absolute; right: 0; color: var(--brand); font-weight: 900; }

.security-section { overflow: hidden; background: #f6faf9; }
.security-grid { display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: 85px; }
.security-visual { min-height: 500px; display: grid; place-items: center; }
.shield-wrap { position: relative; width: 420px; height: 420px; display: grid; place-items: center; }
.shield-wrap::before, .shield-wrap::after { content: ""; position: absolute; border: 1px dashed rgba(15,118,110,.22); border-radius: 50%; }
.shield-wrap::before { inset: 50px; }
.shield-wrap::after { inset: 5px; }
.shield { position: relative; z-index: 3; width: 145px; height: 145px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.5); border-radius: 42px; background: linear-gradient(145deg, #0f766e, #075b55); color: #fff; box-shadow: 0 30px 70px rgba(15,118,110,.3); transform: rotate(-4deg); }
.shield svg { width: 70px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transform: rotate(4deg); }
.orbit { position: absolute; width: 15px; height: 15px; border: 4px solid #f6faf9; border-radius: 50%; background: var(--gold); box-shadow: 0 8px 20px rgba(15,23,42,.16); }
.orbit.one { top: 57px; right: 83px; }
.orbit.two { bottom: 92px; left: 55px; background: #6f55ac; }
.orbit.three { top: 180px; left: 15px; background: #4b91cf; }
.secure-chip { position: absolute; padding: 11px 14px; border: 1px solid #e0eae8; border-radius: 12px; background: #fff; color: #334155; font-size: 9px; font-weight: 900; box-shadow: 0 14px 36px rgba(15,23,42,.09); }
.chip-one { top: 105px; left: 22px; }
.chip-two { right: 5px; bottom: 100px; }
.chip-three { left: 93px; bottom: 24px; }
.security-points { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 25px; margin-top: 34px; }
.security-points article { display: flex; gap: 12px; }
.security-points article > span { width: 29px; height: 29px; display: grid; place-items: center; flex: none; border-radius: 9px; background: #dff2ef; color: var(--brand); font-size: 11px; font-weight: 900; }
.security-points h3 { margin: 1px 0 6px; font-size: 14px; }
.security-points p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }

.cta-section { padding: 30px 0 100px; }
.cta-card { position: relative; overflow: hidden; min-height: 250px; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 55px 65px; border-radius: 30px; background: linear-gradient(135deg, #0d554f, #083a36); color: #fff; box-shadow: 0 30px 80px rgba(8,64,59,.22); }
.cta-pattern { position: absolute; inset: 0; opacity: .14; background-image: radial-gradient(circle at 20% 30%, #fff 1.5px, transparent 2px); background-size: 27px 27px; mask-image: linear-gradient(90deg, transparent, #000); }
.cta-card > div:not(.cta-pattern) { position: relative; z-index: 1; }
.cta-card span { color: #7ee1d5; font-size: 11px; font-weight: 900; }
.cta-card h2 { max-width: 640px; margin: 10px 0; font-size: clamp(30px, 4vw, 46px); letter-spacing: -1px; }
.cta-card p { margin: 0; color: rgba(255,255,255,.66); font-size: 14px; }
.cta-actions { display: flex; gap: 11px; flex: none; }

.site-footer { padding: 65px 0 25px; background: #081f1d; color: #fff; }
.footer-top { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 50px; padding-bottom: 50px; }
.brand.inverse small { color: rgba(255,255,255,.5); }
.footer-brand > p { max-width: 340px; margin: 21px 0 0; color: rgba(255,255,255,.55); font-size: 12px; line-height: 1.9; }
.footer-top > div:not(.footer-brand) { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-top h3 { margin: 0 0 8px; color: #fff; font-size: 13px; }
.footer-top a, .footer-top button, .footer-top span { padding: 0; border: 0; background: none; color: rgba(255,255,255,.55); font-size: 11px; transition: color .2s; }
.footer-top a:hover, .footer-top button:hover { color: #77d8cd; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 23px; border-top: 1px solid rgba(255,255,255,.09); color: rgba(255,255,255,.38); font-size: 10px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; background: rgba(4,19,18,.68); backdrop-filter: blur(8px); animation: fadeIn .2s ease; }
.modal-backdrop[hidden] { display: none; }
.tenant-modal { position: relative; width: min(460px, 100%); padding: 38px; border: 1px solid rgba(255,255,255,.55); border-radius: 25px; background: #fff; box-shadow: 0 40px 100px rgba(0,0,0,.3); animation: modalIn .25s ease; }
.modal-close { position: absolute; top: 17px; left: 17px; width: 36px; height: 36px; border: 1px solid #e4eceb; border-radius: 11px; background: #f8fbfa; color: #64748b; font-size: 22px; line-height: 1; }
.modal-icon { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 16px; background: #e0f3f0; color: var(--brand); }
.modal-icon svg { width: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.modal-kicker { color: var(--brand); font-size: 11px; font-weight: 900; }
.tenant-modal h2 { margin: 7px 0 9px; font-size: 28px; }
.tenant-modal > p { margin: 0 0 24px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.tenant-modal > p b { color: var(--brand); direction: ltr; }
.tenant-modal form label { display: block; margin-bottom: 8px; color: #334155; font-size: 12px; font-weight: 800; }
.slug-input-wrap { height: 55px; display: flex; align-items: center; overflow: hidden; margin-bottom: 13px; border: 1px solid #cbdad8; border-radius: 14px; background: #fbfdfd; direction: ltr; transition: border-color .2s, box-shadow .2s; }
.slug-input-wrap:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(15,118,110,.09); }
.slug-input-wrap span { padding-left: 15px; color: #94a3b8; font-size: 12px; white-space: nowrap; }
.slug-input-wrap input { min-width: 0; height: 100%; flex: 1; padding: 0 15px 0 3px; border: 0; outline: 0; background: transparent; color: var(--brand-dark); font-weight: 900; }
.modal-error { margin: 0 0 13px !important; color: #b42318 !important; font-size: 11px !important; }
.modal-footer { display: flex; justify-content: center; gap: 5px; margin-top: 20px; padding-top: 19px; border-top: 1px solid #e7eeee; font-size: 11px; }
.modal-footer span { color: var(--muted); }
.modal-footer a { color: var(--brand); font-weight: 900; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.97); } }

@media (max-width: 1100px) {
  .desktop-nav { gap: 18px; }
  .hero-grid { grid-template-columns: 1fr 1.15fr; gap: 30px; }
  .hero h1 { font-size: 58px; }
  .window-body { grid-template-columns: 100px 1fr; }
  .mock-content { padding: 18px; }
  .floating-message { left: -15px; }
  .floating-progress { right: -10px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card-wide { grid-column: span 2; }
  .roles-grid { grid-template-columns: repeat(2, 1fr); }
  .role-card { min-height: 380px; }
}

@media (max-width: 900px) {
  .desktop-nav, .text-login { display: none; }
  .menu-toggle { display: block; }
  .hero { padding-top: 125px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-badge, .hero-copy > p { margin-inline: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .hero-visual { width: min(680px, 100%); margin: 35px auto 0; }
  .workflow-grid, .security-grid { grid-template-columns: 1fr; gap: 55px; }
  .workflow-copy { text-align: center; }
  .steps-list { text-align: right; }
  .route-demo { width: min(720px, 100%); margin-inline: auto; }
  .security-copy { order: -1; text-align: center; }
  .security-points { text-align: right; }
  .security-visual { min-height: 400px; }
  .cta-card { flex-direction: column; align-items: flex-start; }
  .footer-top { grid-template-columns: 2fr 1fr 1fr; }
  .footer-top > div:last-child { display: none; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, 1180px); }
  .header-inner { height: 72px; }
  .brand img { width: 38px; height: 38px; }
  .brand strong { font-size: 18px; }
  .header-actions .btn { display: none; }
  .hero { min-height: 0; padding: 111px 0 67px; }
  .hero h1 { margin-top: 18px; font-size: 45px; letter-spacing: -1.8px; }
  .hero-copy > p { font-size: 14px; line-height: 1.85; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-trust { align-items: flex-start; }
  .dashboard-window { transform: none; border-radius: 16px; }
  .window-body { min-height: 310px; grid-template-columns: 70px 1fr; }
  .mock-sidebar { padding: 15px 7px; }
  .mock-sidebar span { justify-content: center; padding: 8px 4px; font-size: 0; }
  .mock-sidebar i { width: 13px; height: 13px; }
  .mock-content { padding: 12px; }
  .mock-stats { gap: 5px; }
  .mock-stats article { min-height: 75px; padding: 9px; }
  .mock-stats i { display: none; }
  .mock-panels { grid-template-columns: 1fr; }
  .task-panel { display: none; }
  .mock-panels article { height: 150px; padding: 10px; }
  .chart-panel svg { height: 100px; }
  .floating-card { display: none; }
  .logo-strip-inner { min-height: 65px; overflow-x: auto; justify-content: flex-start; white-space: nowrap; scrollbar-width: none; }
  .section { padding: 75px 0; }
  .section-heading { margin-bottom: 35px; }
  .section-heading h2, .workflow-copy h2, .security-copy h2 { font-size: 34px; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card, .feature-card-wide { grid-column: auto; min-height: 320px; }
  .feature-card-wide:not(.brand-feature), .brand-feature { display: block; }
  .mini-kanban { display: none; }
  .brand-feature-copy { margin-bottom: 25px; }
  .theme-preview { min-height: 200px; }
  .route-demo { padding: 11px 11px 62px; }
  .tenant-login-preview { grid-template-columns: 1fr; }
  .preview-cover { display: none; }
  .preview-form { min-height: 295px; padding: 30px; }
  .route-label { right: 30px; left: 30px; min-width: 0; }
  .roles-grid { grid-template-columns: 1fr; }
  .role-card { min-height: 0; }
  .role-card > p { min-height: 0; }
  .shield-wrap { width: 320px; height: 320px; transform: scale(.9); }
  .security-points { grid-template-columns: 1fr; }
  .cta-section { padding-bottom: 70px; }
  .cta-card { padding: 38px 27px; border-radius: 23px; }
  .cta-actions { width: 100%; flex-direction: column; }
  .cta-actions .btn { width: 100%; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 35px; }
  .footer-brand { grid-column: span 2; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .tenant-modal { padding: 32px 22px 25px; }
  .tenant-modal h2 { font-size: 24px; }
  .slug-input-wrap span { max-width: 52%; overflow: hidden; padding-left: 8px; text-overflow: ellipsis; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* الإصدار 3.2.0: رابط إدارة المنصة في نهاية الصفحة فقط */
.footer-owner-login {
  color: rgba(255,255,255,.46);
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
  transition: color .2s ease;
}
.footer-owner-login:hover { color: #77d8cd; }
