@font-face { font-family: "Alexandria"; src: url("assets/alexandria-arabic.woff2") format("woff2"); font-style: normal; font-weight: 300 800; font-display: swap; unicode-range: U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF; }
@font-face { font-family: "Alexandria"; src: url("assets/alexandria-latin.woff2") format("woff2"); font-style: normal; font-weight: 300 800; font-display: swap; unicode-range: U+0000-05FF; }

:root {
  color-scheme: light;
  --navy: #111827;
  --navy-2: #182334;
  --teal: #14b8a6;
  --teal-dark: #0f766e;
  --teal-soft: #e6f8f5;
  --rose: #e11d48;
  --amber: #d97706;
  --blue: #2563eb;
  --violet: #7c3aed;
  --ink: #172033;
  --muted: #667085;
  --line: #d8dee6;
  --soft: #f5f7f9;
  --white: #ffffff;
  --shell: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--white); font-family: "Alexandria", "Segoe UI", Tahoma, sans-serif; letter-spacing: 0; }
body, button, input, textarea { font-family: "Alexandria", "Segoe UI", Tahoma, sans-serif; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
svg, [data-lucide] { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.section-shell { width: var(--shell); margin-inline: auto; }
.section { padding: 92px 0; }
.eyebrow { margin: 0 0 9px; color: var(--teal-dark); font-size: .78rem; font-weight: 800; }
.section-heading { max-width: 700px; margin-bottom: 42px; }
.section-heading h2, .cloud-copy h2, .roles-layout h2, .start-copy h2, .final-cta h2 { margin: 0; color: var(--navy); font-size: clamp(1.75rem, 3vw, 2.75rem); line-height: 1.35; }
.section-heading > p:last-child, .roles-intro, .start-copy > p, .cloud-copy > p { margin: 14px 0 0; color: var(--muted); line-height: 1.9; }

.site-header { position: sticky; top: 0; z-index: 30; min-height: 72px; display: flex; align-items: center; gap: clamp(18px, 3vw, 44px); padding: 10px clamp(18px, 5vw, 72px); color: #fff; background: rgba(17,24,39,.97); border-bottom: 1px solid rgba(255,255,255,.12); }
.brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; color: inherit; text-decoration: none; }
.brand img { width: 44px; height: 44px; object-fit: contain; background: #fff; border-radius: 6px; }
.brand b, .brand small { display: block; letter-spacing: 0; }
.brand b { font-size: .96rem; }
.brand small { margin-top: 2px; color: #aeb7c4; font-size: .68rem; }
.landing-nav { display: flex; align-items: center; gap: 24px; margin-inline: auto; }
.landing-nav a, .header-login { color: #cdd5df; text-decoration: none; font-size: .78rem; font-weight: 600; }
.landing-nav a:hover, .header-login:hover { color: #fff; }
.landing-header-actions { display: flex; align-items: center; gap: 14px; }
.header-trial { min-height: 40px; display: inline-flex; align-items: center; padding: 8px 15px; color: var(--navy); border-radius: 6px; background: var(--teal); text-decoration: none; font-size: .76rem; font-weight: 800; }
.header-state { display: none; align-items: center; gap: 9px; margin-inline-start: auto; font-size: .78rem; }
.is-authenticated .landing-nav, .is-authenticated .landing-header-actions { display: none; }
.is-authenticated .header-state { display: flex; }
.header-state > span { width: 8px; height: 8px; border-radius: 50%; background: #98a2b3; }
.header-state > span.is-online { background: #2dd4bf; box-shadow: 0 0 0 4px rgba(45,212,191,.12); }
.header-state > span.is-offline { background: #fb7185; }
.icon-button { width: 38px; height: 38px; display: inline-grid; place-items: center; padding: 0; color: inherit; border: 1px solid rgba(255,255,255,.16); border-radius: 6px; background: rgba(255,255,255,.06); cursor: pointer; }

.hero { position: relative; min-height: min(680px, calc(100vh - 118px)); display: flex; align-items: center; overflow: hidden; color: #fff; background: var(--navy); isolation: isolate; }
.hero-background { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; object-position: center top; opacity: .3; }
.hero-scrim { position: absolute; inset: 0; z-index: -2; background: rgba(17,24,39,.52); }
.hero-content { width: var(--shell); margin: 0 auto; padding-block: 45px 35px; }
.hero-content > * { max-width: 720px; }
.hero-kicker { display: flex; align-items: center; gap: 9px; margin: 0 0 13px; color: #c8fff8; font-size: .82rem; font-weight: 700; }
.hero-kicker span { width: 26px; height: 3px; background: var(--teal); }
.hero h1 { margin: 0; color: #fff; font-size: clamp(3.2rem, 7vw, 5.3rem); line-height: 1; font-weight: 800; }
.hero h2 { margin: 14px 0 0; color: #fff; font-size: clamp(1.65rem, 2.8vw, 2.35rem); line-height: 1.35; }
.hero-content > p:not(.hero-kicker) { margin: 14px 0 0; color: #e3e8ef; font-size: clamp(.9rem, 1.2vw, 1.04rem); line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.primary-button, .secondary-button, .light-button { min-height: 45px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 10px 17px; border-radius: 6px; cursor: pointer; text-decoration: none; font-weight: 800; border: 1px solid transparent; }
.primary-button { color: #fff; background: var(--teal-dark); }
.primary-button:hover { background: #0b625c; }
.hero .primary-button { color: var(--navy); background: var(--teal); }
.hero .primary-button:hover { background: #35d0bf; }
.light-button { color: #fff; border-color: rgba(255,255,255,.38); background: rgba(17,24,39,.42); }
.light-button:hover { border-color: #fff; background: rgba(17,24,39,.75); }
.secondary-button { color: #344054; border-color: #cfd6dd; background: #fff; }
.secondary-button:hover { color: var(--teal-dark); border-color: #8bd7ce; }
.primary-button:disabled, .secondary-button:disabled { opacity: .55; cursor: not-allowed; }
.full { width: 100%; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 22px; color: #e3e8ef; font-size: .78rem; }
.hero-facts span { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts [data-lucide] { color: var(--teal); }

.product-proof { position: relative; padding: 24px 0 90px; background: var(--white); }
.proof-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.proof-heading h2 { max-width: 680px; margin: 0; color: var(--navy); font-size: clamp(1.55rem, 2.6vw, 2.35rem); line-height: 1.45; }
.proof-heading > a { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; color: var(--teal-dark); text-decoration: none; font-size: .8rem; font-weight: 800; }
.product-frame { margin: 0; overflow: hidden; border: 1px solid #d9e0e7; border-radius: 8px; background: #eef2f5; box-shadow: 0 28px 70px rgba(17,24,39,.14); }
.product-frame img { display: block; width: 100%; aspect-ratio: 1520 / 752; object-fit: cover; object-position: top; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-right: 1px solid var(--line); }
.feature-grid article { min-width: 0; padding: 30px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.feature-icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 23px; border-radius: 7px; }
.feature-icon.teal { color: var(--teal-dark); background: #dff8f4; }
.feature-icon.rose { color: var(--rose); background: #fff0f3; }
.feature-icon.navy { color: #fff; background: var(--navy); }
.feature-icon.amber { color: var(--amber); background: #fff6e6; }
.feature-icon.blue { color: var(--blue); background: #edf4ff; }
.feature-icon.violet { color: var(--violet); background: #f4f0ff; }
.feature-grid h3 { margin: 0; color: var(--navy); font-size: 1.05rem; }
.feature-grid p { margin: 10px 0 0; color: var(--muted); font-size: .83rem; line-height: 1.8; }

.workflow-band { padding: 80px 0; color: #fff; background: var(--navy); }
.section-heading.inverse h2 { color: #fff; }
.section-heading.inverse .eyebrow { color: #59d6c8; }
.workflow-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 0; margin: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.18); }
.workflow-list li { min-width: 0; display: flex; gap: 16px; padding: 28px 20px; border-left: 1px solid rgba(255,255,255,.18); }
.workflow-list li:last-child { border-left: 0; }
.workflow-list > li > b { color: var(--teal); font-size: .75rem; }
.workflow-list h3 { margin: 0; font-size: 1rem; }
.workflow-list p { margin: 8px 0 0; color: #b9c2ce; font-size: .78rem; line-height: 1.75; }

.cloud-section { background: #edf4f5; }
.cloud-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(45px, 8vw, 100px); align-items: center; }
.cloud-copy ul { display: grid; gap: 13px; padding: 0; margin: 28px 0 0; list-style: none; }
.cloud-copy li { display: flex; align-items: center; gap: 10px; color: #344054; font-size: .85rem; }
.cloud-copy li [data-lucide] { width: 19px; height: 19px; padding: 3px; color: #fff; border-radius: 50%; background: var(--teal-dark); }
.sync-diagram { position: relative; display: grid; grid-template-columns: 1fr .85fr 1fr; gap: 12px; align-items: center; }
.sync-diagram::before { content: ""; position: absolute; top: 50%; right: 16%; left: 16%; height: 2px; background: #9bc9c4; }
.device-node, .sync-core { position: relative; z-index: 1; min-height: 170px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 18px; text-align: center; border: 1px solid #cddadd; border-radius: 8px; background: #fff; }
.sync-core { min-height: 200px; color: #fff; border-color: var(--navy); background: var(--navy); }
.device-node > [data-lucide], .sync-core > [data-lucide] { width: 38px; height: 38px; margin-bottom: 8px; color: var(--teal-dark); }
.sync-core > [data-lucide] { color: var(--teal); }
.sync-diagram b { color: inherit; font-size: .87rem; }
.sync-diagram small { color: var(--muted); font-size: .68rem; line-height: 1.6; }
.sync-core small { color: #b8c3d0; }

.roles-section { background: #fff; }
.roles-layout { display: grid; grid-template-columns: .65fr 1.35fr; gap: clamp(38px, 7vw, 90px); align-items: start; }
.roles-table { border: 1px solid var(--line); }
.roles-table > div { display: grid; grid-template-columns: minmax(155px,.55fr) 1.45fr; align-items: center; min-height: 64px; border-bottom: 1px solid var(--line); }
.roles-table > div:last-child { border-bottom: 0; }
.roles-table span, .roles-table b { padding: 14px 18px; }
.roles-table b { display: flex; align-items: center; gap: 9px; color: var(--navy); font-size: .8rem; }
.roles-table b [data-lucide] { color: var(--teal-dark); }
.roles-table span { color: var(--muted); font-size: .78rem; line-height: 1.7; }
.roles-table .roles-head { min-height: 50px; color: #fff; background: var(--navy); }
.roles-table .roles-head span { color: #fff; font-weight: 700; }

.facts-band { color: #fff; background: var(--teal-dark); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-grid div { min-width: 0; padding: 34px 24px; text-align: center; border-left: 1px solid rgba(255,255,255,.2); }
.facts-grid div:last-child { border-left: 0; }
.facts-grid strong, .facts-grid span { display: block; }
.facts-grid strong { font-size: clamp(1.6rem, 3vw, 2.6rem); }
.facts-grid span { margin-top: 5px; color: #d7fffa; font-size: .75rem; }

.start-section { background: var(--soft); }
.start-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(45px, 8vw, 96px); align-items: start; }
.start-links { display: grid; gap: 10px; margin-top: 30px; }
.start-links a { display: flex; align-items: center; gap: 13px; padding: 15px 16px; color: inherit; border: 1px solid var(--line); border-radius: 7px; background: #fff; text-decoration: none; }
.start-links a:hover { border-color: #8bd7ce; }
.start-links > a > [data-lucide] { flex: 0 0 auto; color: var(--teal-dark); }
.start-links span, .start-links b, .start-links small { display: block; }
.start-links b { color: var(--navy); font-size: .84rem; }
.start-links small { margin-top: 4px; color: var(--muted); font-size: .7rem; }
.auth-panel { padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: 0 22px 60px rgba(17,24,39,.09); }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 25px; border: 1px solid #e5e7eb; border-radius: 7px; background: #f4f6f8; }
.segmented button { min-height: 40px; padding: 6px 12px; color: var(--muted); border: 0; border-radius: 5px; background: transparent; cursor: pointer; font-weight: 800; }
.segmented button.is-active { color: var(--navy); background: #fff; box-shadow: 0 1px 3px rgba(17,24,39,.1); }
.auth-form { display: grid; gap: 17px; }
.auth-form h2 { margin: 0; color: var(--navy); font-size: 1.4rem; }
label { display: grid; gap: 7px; color: #344054; font-size: .78rem; font-weight: 700; }
label small, .muted { color: var(--muted); font-size: .7rem; font-weight: 400; }
input, textarea { width: 100%; min-height: 45px; padding: 10px 12px; color: var(--ink); border: 1px solid #cfd6dd; border-radius: 6px; outline: none; background: #fff; transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 88px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(20,184,166,.12); }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-message { min-height: 20px; margin: 14px 0 0; color: #b42318; font-size: .76rem; line-height: 1.6; }

.faq-section { background: #fff; }
.faq-layout { display: grid; grid-template-columns: .6fr 1.4fr; gap: clamp(35px, 7vw, 90px); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--navy); cursor: pointer; list-style: none; font-size: .88rem; font-weight: 800; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary [data-lucide] { flex: 0 0 auto; color: var(--teal-dark); transition: transform .2s; }
.faq-list details[open] summary [data-lucide] { transform: rotate(180deg); }
.faq-list p { margin: -4px 0 22px; color: var(--muted); font-size: .8rem; line-height: 1.8; }

.final-cta { padding: 54px 0; border-top: 1px solid #263346; background: var(--navy); }
.final-cta .section-shell { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.final-cta .eyebrow { color: var(--teal); }
.final-cta h2 { max-width: 720px; color: #fff; font-size: clamp(1.45rem, 2.6vw, 2.3rem); }
.final-cta .section-shell > div:last-child { display: flex; flex: 0 0 auto; gap: 10px; }
.site-footer { padding: 32px 0; color: #b8c1cd; background: #0b111d; }
.site-footer .section-shell { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.footer-brand { color: #fff; }
.site-footer .section-shell > div { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: #b8c1cd; text-decoration: none; font-size: .72rem; }

.portal-shell { width: var(--shell); margin: 0 auto; padding: clamp(30px, 6vw, 72px) 0; }
.dashboard { display: grid; gap: 24px; min-height: calc(100vh - 72px); }
.dashboard-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.dashboard-heading h1 { margin: 0; color: var(--navy); font-size: clamp(1.8rem, 3vw, 2.6rem); }
.dashboard-heading p:last-child { margin: 8px 0 0; color: var(--muted); }
.status-band { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 17px; align-items: center; padding: 22px 24px; color: #fff; border-radius: 8px; background: var(--navy); }
.status-band[data-state="trial"] { border-right: 5px solid var(--amber); }
.status-band[data-state="active"] { border-right: 5px solid var(--teal); }
.status-band[data-state="expired"], .status-band[data-state="suspended"] { border-right: 5px solid #fb7185; }
.status-icon, .section-icon { width: 46px; height: 46px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; border-radius: 7px; background: var(--teal-dark); }
.status-band small { color: #b7c0cd; }
.status-band h2 { margin: 2px 0; font-size: 1.2rem; }
.status-band p { margin: 0; color: #d1d5db; font-size: .78rem; }
.status-date { min-width: 190px; padding-right: 20px; border-right: 1px solid rgba(255,255,255,.14); }
.status-date b { display: block; margin-top: 3px; font-size: .8rem; }
.status-date small:last-child { display: block; margin-top: 5px; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dashboard-section, .maintenance-section { padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.dashboard-section > header, .maintenance-section > header { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.dashboard-section h2, .maintenance-section h2 { margin: 0; color: var(--navy); font-size: 1.12rem; }
.dashboard-section header p, .maintenance-section header p:last-child { margin: 5px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.7; }
.section-icon.teal { background: var(--teal); }
.section-icon.rose { background: var(--rose); }
.action-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 22px; }
.steps span { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .72rem; }
.steps b { width: 24px; height: 24px; display: grid; place-items: center; color: var(--teal-dark); border-radius: 5px; background: #ccfbf1; }
.subscription-data { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0 16px; }
.subscription-data span { padding: 12px; border: 1px solid #e5e7eb; border-radius: 6px; background: #f9fafb; }
.subscription-data small, .subscription-data b { display: block; }
.subscription-data small { color: var(--muted); font-size: .68rem; }
.subscription-data b { margin-top: 3px; color: var(--navy); }
.dashboard-section > .muted { display: block; margin-top: 9px; text-align: center; }
.maintenance-section form { display: grid; grid-template-columns: minmax(220px,.7fr) minmax(300px,1.5fr) auto; gap: 12px; align-items: end; margin-top: 20px; }
.maintenance-section .form-message { color: var(--teal-dark); }
.toast { position: fixed; inset: auto 22px 22px auto; z-index: 50; max-width: min(420px,calc(100% - 44px)); padding: 12px 16px; color: #fff; border-radius: 6px; background: var(--navy); box-shadow: 0 12px 36px rgba(17,24,39,.22); font-size: .78rem; }
.result-page { display: grid; place-items: center; padding: 20px; }
.payment-result { width: min(520px,100%); padding: 32px; text-align: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; }

@media (max-width: 980px) {
  .landing-nav { display: none; }
  .landing-header-actions { margin-inline-start: auto; }
  .feature-grid { grid-template-columns: repeat(2,1fr); }
  .workflow-list { grid-template-columns: repeat(2,1fr); }
  .workflow-list li:nth-child(2) { border-left: 0; }
  .cloud-layout, .roles-layout, .start-layout, .faq-layout { grid-template-columns: 1fr; }
  .sync-diagram { max-width: 700px; }
  .facts-grid { grid-template-columns: repeat(2,1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .maintenance-section form { grid-template-columns: 1fr; }
  .maintenance-section form button { width: 100%; }
}

@media (max-width: 650px) {
  :root { --shell: min(100% - 28px,1180px); }
  .section { padding: 66px 0; }
  .site-header { min-height: 64px; padding-inline: 14px; }
  .brand img { width: 39px; height: 39px; }
  .brand small { display: none; }
  .header-login { display: none; }
  .header-trial { min-height: 38px; padding-inline: 11px; font-size: .7rem; }
  .hero { min-height: calc(100svh - 106px); align-items: end; }
  .hero-background { object-position: 74% top; opacity: .24; }
  .hero-content { padding: 44px 0 34px; }
  .hero h1 { font-size: clamp(3rem,17vw,4.5rem); }
  .hero h2 { font-size: 1.65rem; }
  .hero-content > p:not(.hero-kicker) { font-size: .88rem; }
  .hero-actions { display: grid; }
  .hero-actions a { width: 100%; }
  .hero-facts { display: grid; gap: 12px; }
  .product-proof { padding: 20px 0 68px; }
  .proof-heading { align-items: flex-start; flex-direction: column; }
  .product-frame { overflow-x: auto; }
  .product-frame img { width: 900px; max-width: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article { padding: 25px; }
  .workflow-list { grid-template-columns: 1fr; }
  .workflow-list li { border-left: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .workflow-list li:last-child { border-bottom: 0; }
  .sync-diagram { grid-template-columns: 1fr; }
  .sync-diagram::before { top: 12%; bottom: 12%; right: 50%; left: auto; width: 2px; height: auto; }
  .device-node, .sync-core { min-height: 145px; }
  .roles-table > div { grid-template-columns: 1fr; padding: 12px 0; }
  .roles-table > div span, .roles-table > div b { padding-block: 5px; }
  .roles-table .roles-head { display: none; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .facts-grid div { padding: 25px 12px; }
  .facts-grid div:nth-child(2) { border-left: 0; }
  .two-fields, .subscription-data { grid-template-columns: 1fr; }
  .auth-panel { padding: 20px; }
  .final-cta .section-shell, .site-footer .section-shell { align-items: flex-start; flex-direction: column; }
  .final-cta .section-shell > div:last-child { width: 100%; display: grid; }
  .site-footer .section-shell > div { display: grid; gap: 10px; }
  .dashboard-heading { align-items: flex-start; flex-direction: column; }
  .status-band { grid-template-columns: auto 1fr; padding: 18px; }
  .status-date { grid-column: 1 / -1; padding: 14px 0 0; border-top: 1px solid rgba(255,255,255,.14); border-right: 0; }
  .steps { grid-template-columns: 1fr; }
  .header-state b { display: none; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
