:root {
  --maroon: #8A1538;
  --maroon-700: #6E102C;
  --maroon-900: #3D0818;
  --maroon-50: #FBF3F5;
  --maroon-100: #F4E1E7;
  --ink: #12141C;
  --ink-2: #3A3F4E;
  --muted: #646B7C;
  --line: #E6E2E4;
  --white: #FFFFFF;
  --brass: #CFAE4E;
  --ok: #1F7A4D;
  --ok-bg: #E7F4EC;
  --warn: #8A5A00;
  --warn-bg: #FBF0D9;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(18,20,28,.06), 0 12px 32px -12px rgba(18,20,28,.18);
  --display: "Schibsted Grotesk", "IBM Plex Sans", system-ui, sans-serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--ink); }
h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: 1.05rem; font-weight: 600; line-height: 1.35; }
p { margin: 0; }
code { font-family: var(--mono); font-size: .9em; background: var(--maroon-50); color: var(--maroon-700); padding: .1em .35em; border-radius: 5px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: .98rem;
  padding: 13px 22px; border-radius: 10px; text-decoration: none;
  border: 1.5px solid transparent; transition: background .15s, color .15s, border-color .15s, transform .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 16px; font-size: .9rem; }
.btn-primary { background: var(--maroon); color: var(--white); }
.btn-primary:hover { background: var(--maroon-700); }
.btn-ghost { color: var(--ink); border-color: var(--line); background: var(--white); }
.btn-ghost:hover { border-color: var(--maroon); color: var(--maroon); }
.btn-light { background: var(--white); color: var(--maroon); }
.btn-light:hover { background: var(--maroon-50); }
.btn-outline-light { color: var(--white); border-color: rgba(255,255,255,.45); }
.btn-outline-light:hover { border-color: var(--white); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.88); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.4rem; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-size: .93rem; font-weight: 500; }
.nav-links a:hover { color: var(--maroon); }

/* Hero */
.hero {
  position: relative;
  padding: 88px 0 96px;
  background:
    radial-gradient(900px 500px at 85% -10%, var(--maroon-100), transparent 60%),
    linear-gradient(180deg, var(--maroon-50), var(--white) 70%);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; opacity: .35;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 65%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--maroon); background: var(--white); border: 1px solid var(--maroon-100); padding: 6px 12px; border-radius: 999px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--maroon); box-shadow: 0 0 0 4px var(--maroon-100); }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.05; margin: 22px 0 20px; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: .88rem; color: var(--muted); }

/* Hero visual */
.hero-visual { position: relative; padding-bottom: 96px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 20px; }
.panel-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.panel-title { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctl-id { font-family: var(--mono); font-size: .8rem; font-weight: 500; color: var(--maroon); background: var(--maroon-50); border: 1px solid var(--maroon-100); padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.pill { font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-review { background: var(--warn-bg); color: var(--warn); }
.file-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; }
.file-icon { flex: none; width: 40px; height: 48px; border-radius: 6px; background: var(--maroon); color: var(--white); font-family: var(--mono); font-size: .7rem; font-weight: 500; display: grid; place-items: center; }
.file-meta { min-width: 0; }
.file-name { font-weight: 600; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-sub { font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checks li { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--ink-2); }
.ck { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--ok-bg); position: relative; }
.ck::after { content: ""; position: absolute; left: 6px; top: 3px; width: 4px; height: 8px; border: solid var(--ok); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.verdict { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: var(--maroon-50); border-left: 3px solid var(--maroon); font-size: .88rem; color: var(--ink-2); }
.verdict strong { color: var(--ink); }
.panel-float { position: absolute; right: -16px; bottom: 0; width: 280px; padding: 14px 16px; }
.float-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.panel-float p { font-size: .84rem; color: var(--ink-2); }

/* Facts */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-grid > div { padding: 28px 20px; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }
.facts-grid > div:first-child { border-left: 0; padding-left: 0; }
.facts strong { font-family: var(--display); font-weight: 800; font-size: 2rem; color: var(--maroon); line-height: 1.1; font-variant-numeric: tabular-nums; }
.facts span { font-size: .9rem; color: var(--muted); }

/* Sections */
.section { padding: 104px 0; }
.section-tint { background: var(--maroon-50); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.kicker { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--maroon); margin-bottom: 12px; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.12; }
.sub { margin-top: 16px; font-size: 1.08rem; color: var(--ink-2); }

/* Problem / solution */
.ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ps-card { border-radius: var(--radius); padding: 32px; border: 1px solid var(--line); }
.ps-card h3 { font-size: 1.15rem; margin-bottom: 18px; }
.ps-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ps-card li { position: relative; padding-left: 30px; color: var(--ink-2); }
.ps-card li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; }
.ps-problem { background: #FAFAFB; }
.ps-problem li::before { background: #ECECEF; }
.ps-problem li::after { content: ""; position: absolute; left: 5px; top: 12px; width: 8px; height: 2px; background: var(--muted); }
.ps-solution { background: var(--white); border-color: var(--maroon-100); box-shadow: var(--shadow); }
.ps-solution li::before { background: var(--maroon); }
.ps-solution li::after { content: ""; position: absolute; left: 6px; top: 7px; width: 4px; height: 8px; border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.feature:hover { border-color: var(--maroon-100); transform: translateY(-2px); box-shadow: var(--shadow); }
.feature h3 { margin: 18px 0 8px; }
.feature p { color: var(--ink-2); font-size: .95rem; }
.feature-wide { grid-column: span 3; display: grid; grid-template-columns: auto 1fr; column-gap: 20px; align-items: start; }
.feature-wide .ficon { grid-row: span 2; }
.feature-wide h3 { margin: 0 0 6px; }
.ficon { width: 44px; height: 44px; border-radius: 11px; background: var(--maroon); display: grid; place-items: center; }
.ficon svg { width: 22px; height: 22px; fill: none; stroke: var(--white); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; }
.steps::before { content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 2px; background: linear-gradient(90deg, var(--maroon), var(--maroon-100)); }
.step { position: relative; }
.step-n { position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 50%; background: var(--maroon); color: var(--white); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.1rem; box-shadow: 0 0 0 6px var(--white); }
.step:last-child .step-n { background: var(--ink); }
.step h3 { margin: 20px 0 8px; }
.step p { color: var(--ink-2); font-size: .93rem; }
.quote-verdict { margin-top: 56px; display: flex; align-items: flex-start; gap: 16px; padding: 22px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: #FAFAFB; }
.quote-verdict p { font-size: 1.05rem; color: var(--ink-2); }

/* Security */
.section-dark { background: var(--maroon-900); background: linear-gradient(160deg, #4A0A1E, var(--maroon-900) 60%); color: rgba(255,255,255,.82); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.kicker-light { color: var(--brass); }
.sec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sec { padding: 26px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); }
.sec h3 { margin-bottom: 10px; }
.sec h3::before { content: ""; display: block; width: 28px; height: 3px; background: var(--brass); border-radius: 2px; margin-bottom: 16px; }
.sec p { font-size: .94rem; }

/* Install */
.install-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.install { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; min-width: 0; }
.install-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; color: var(--maroon); }
.install-head svg { width: 26px; height: 26px; }
.install-head h3 { font-size: 1.2rem; }
.install p { color: var(--ink-2); }
.install pre { margin: 18px 0 0; background: var(--ink); color: #F2F2F5; border-radius: 10px; padding: 16px 18px; overflow-x: auto; }
.install pre code { background: none; color: inherit; padding: 0; font-size: .85rem; }
.reqs { margin-top: 28px; color: var(--ink-2); font-size: .95rem; }
.center { display: flex; justify-content: center; margin-top: 36px; }

/* Roadmap */
.road-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.road { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.road h3 { margin: 14px 0 8px; }
.road p { color: var(--ink-2); font-size: .93rem; }
.tag { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border: 1px dashed #C9C4C7; padding: 3px 9px; border-radius: 999px; }
.road-hl { border-color: var(--maroon); box-shadow: 0 0 0 3px var(--maroon-100); }
.road-hl .tag { color: var(--maroon); border-color: var(--maroon); border-style: solid; }

/* Final CTA */
.final { background: var(--maroon); color: var(--white); padding: 96px 0; position: relative; overflow: hidden; }
.final::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(255,255,255,.05); }
.final-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.final h2 { color: var(--white); font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 24px 0 12px; }
.final p { color: rgba(255,255,255,.85); font-size: 1.08rem; }
.final img { border-radius: 14px; box-shadow: 0 0 0 2px rgba(255,255,255,.3); }
.cta-center { justify-content: center; }

/* Footer */
.footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 40px 0 28px; font-size: .9rem; }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.brand-foot { color: var(--white); font-size: 1.15rem; }
.footer nav { margin-left: auto; display: flex; gap: 22px; }
.footer nav a { text-decoration: none; }
.footer nav a:hover { color: var(--white); }
.footer-fine { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; color: rgba(255,255,255,.5); }

/* Arabic and My work */
.show-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: start; }
.rtl-panel, .rtl-panel .file-sub { font-family: "IBM Plex Sans Arabic", var(--sans); }
.rtl-panel .verdict { border-left: 0; border-right: 3px solid var(--maroon); }
.show-side { display: grid; gap: 24px; min-width: 0; }
.bell { flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--maroon-50); color: var(--maroon); display: grid; place-items: center; }
.bell svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.count { font-size: .75rem; font-weight: 600; background: var(--maroon); color: var(--white); border-radius: 999px; padding: 2px 9px; }
.work { list-style: none; margin: 0; padding: 0; }
.work li { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.work-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.due { font-size: .75rem; color: var(--muted); white-space: nowrap; }
.due-soon { color: var(--warn); font-weight: 600; }
.mail-note { margin-top: 12px; font-size: .84rem; color: var(--muted); }
.show-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.show-list li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: .95rem; }
.show-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 2px; background: var(--maroon); }
.show-list strong { color: var(--ink); }

/* Check list */
.check-cloud { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: .82rem; color: var(--ink-2); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.chip::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); margin-right: 8px; vertical-align: middle; }

@media (max-width: 1000px) {
  .show-grid { grid-template-columns: 1fr; }
}

/* Responsive */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 520px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-wide { grid-column: span 2; }
  .sec-grid, .road-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { top: 22px; bottom: 22px; left: 22px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--maroon), var(--maroon-100)); }
  .step { display: grid; grid-template-columns: 46px 1fr; column-gap: 20px; padding-bottom: 28px; }
  .step-n { grid-row: span 2; }
  .step h3 { margin: 10px 0 4px; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-inner .btn { margin-left: auto; }
  .hero { padding: 56px 0 64px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .facts-grid > div { padding: 20px 16px; border-left: 0; }
  .facts-grid > div:nth-child(odd) { padding-left: 0; }
  .facts-grid > div:nth-child(even) { border-left: 1px solid var(--line); }
  .facts-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .ps-grid, .install-grid, .feature-grid, .sec-grid, .road-grid { grid-template-columns: 1fr; }
  .feature-wide { grid-column: auto; display: block; }
  .feature-wide h3 { margin: 18px 0 8px; }
  .ps-card, .install { padding: 24px; }
  .panel-float { position: relative; right: auto; width: auto; margin: 12px 0 0 24px; }
  .hero-visual { padding-bottom: 0; }
  .footer nav { margin-left: 0; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .cta-row .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
