:root {
  color-scheme: light dark;
  --primary: #0D9488;
  --primary-strong: #0F766E;
  --on-primary: #FFFFFF;
  --sky: #0EA5E9;
  --amber: #F59E0B;
  --success: #16A34A;
  --text: #0F172A;
  --muted: #475569;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --border: #E2E8F0;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --radius: 16px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #2DD4BF;
    --primary-strong: #2DD4BF;
    --on-primary: #0B1220;
    --text: #E2E8F0;
    --muted: #94A3B8;
    --bg: #0B1220;
    --surface: #111A2E;
    --border: #1E293B;
    --shadow: 0 10px 30px rgba(0, 0, 0, .4);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}
img { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.skip {
  position: absolute; inset-inline-start: 16px; top: 0; transform: translateY(-120%);
  background: var(--primary); color: var(--on-primary);
  padding: 8px 16px; border-radius: 0 0 8px 8px; z-index: 10;
}
.skip:focus { transform: none; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--text); white-space: nowrap; margin-inline-end: auto; }
.brand img { width: 32px; height: 32px; }
.brand:hover { text-decoration: none; }
.site-nav { order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--muted); font-weight: 500; font-size: .95rem; white-space: nowrap; }
.site-nav a:hover { color: var(--primary); text-decoration: none; }
@media (min-width: 900px) {
  .site-header .wrap { flex-wrap: nowrap; gap: 20px; }
  .brand { margin-inline-end: 0; }
  .site-nav { order: 0; flex-basis: auto; margin-inline-start: auto; }
}
.lang-switch { font-size: .9rem; font-weight: 600; white-space: nowrap; }
.site-header .cta { white-space: nowrap; }
@media (max-width: 520px) { .site-header .cta { display: none; } }

/* Buttons */
.cta {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-align: center;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease;
}
.cta--primary { background: var(--primary); color: var(--on-primary); }
.cta--primary:hover { background: var(--primary-strong); text-decoration: none; box-shadow: var(--shadow); }
.cta--store { background: var(--surface); color: var(--text); border-color: var(--border); }
.cta--store:hover { border-color: var(--primary); text-decoration: none; }
.cta--ghost { color: var(--primary); border-color: var(--primary); background: transparent; }
.cta--ghost:hover { background: var(--primary); color: var(--on-primary); text-decoration: none; }
.cta--sm { padding: 8px 16px; font-size: .9rem; }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.15fr .85fr; }
  .hero { padding: 72px 0 56px; }
}
.hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.3; margin: 0 0 16px; }
.hero p.lede { font-size: 1.12rem; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.phone-frame {
  border: 8px solid #0F172A; border-radius: 36px; overflow: hidden;
  box-shadow: var(--shadow); max-width: 300px; margin-inline: auto; background: #000;
}
@media (prefers-color-scheme: dark) { .phone-frame { border-color: #1E293B; } }
.phone-frame img { display: block; width: 100%; }

/* Sections */
section { padding: 48px 0; }
.section-alt { background: var(--surface); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 12px; }
.section-lede { color: var(--muted); margin: 0 0 32px; max-width: 40em; }

/* Feature grid */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.section-alt .card { background: var(--bg); }
.card h3 { margin: 12px 0 6px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.feat-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary);
}
.feat-icon svg { width: 24px; height: 24px; }

.region-strip {
  margin-top: 20px; padding: 18px 22px; border-radius: var(--radius);
  border: 1px dashed var(--border); color: var(--muted); font-size: .95rem;
  display: flex; flex-wrap: wrap; gap: 8px 24px;
}
.region-strip strong { color: var(--text); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { position: relative; padding: 22px 22px 22px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; background: var(--primary); color: var(--on-primary);
  font-weight: 700; font-variant-numeric: tabular-nums; margin-bottom: 12px;
}

/* Tenant section accent */
.tenant-sec h2 { color: var(--sky); }
.tenant-sec .card::before { background: var(--sky); }
.split { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { padding-inline-start: 30px; position: relative; color: var(--muted); }
.checklist li::before {
  content: ""; position: absolute; inset-inline-start: 4px; top: 8px;
  width: 12px; height: 7px; border-inline-start: 2.5px solid var(--sky);
  border-bottom: 2.5px solid var(--sky); transform: rotate(-45deg);
}

/* Plans */
.plans { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan-card { display: flex; flex-direction: column; }
.plan-card h3 { margin: 0 0 4px; font-size: 1.2rem; }
.plan-card .plan-code { color: var(--muted); font-size: .85rem; margin: 0 0 14px; }
.plan-card ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.plan-card li {
  font-variant-numeric: tabular-nums; color: var(--muted); font-size: .95rem;
  padding-inline-start: 22px; position: relative;
}
.plan-card li::before {
  content: ""; position: absolute; inset-inline-start: 2px; top: 10px;
  width: 9px; height: 5px; border-inline-start: 2px solid var(--success);
  border-bottom: 2px solid var(--success); transform: rotate(-45deg);
}
.plan-card--featured { border-color: var(--primary); border-width: 2px; }
.plan-note { color: var(--muted); font-size: .92rem; margin-top: 20px; }

/* Security */
.sec-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sec-list li { padding-inline-start: 30px; position: relative; color: var(--muted); }
.sec-list li::before {
  content: ""; position: absolute; inset-inline-start: 2px; top: 7px;
  width: 14px; height: 14px; border-radius: 4px;
  border: 2px solid var(--primary);
}

/* FAQ */
details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 0; margin-bottom: 12px;
}
.section-alt details { background: var(--bg); }
summary {
  cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none;
}
summary::marker, summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; float: inline-end; color: var(--primary); font-weight: 700;
}
details[open] summary::after { content: "−"; }
details p { margin: 0; padding: 0 20px 16px; color: var(--muted); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border); padding: 36px 0; margin-top: 24px;
  color: var(--muted); font-size: .92rem;
}
.site-footer .wrap { display: grid; gap: 20px; }
@media (min-width: 700px) { .site-footer .wrap { grid-template-columns: auto 1fr; align-items: center; } }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
@media (min-width: 700px) { .footer-links { justify-content: flex-end; } }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 28px; height: 28px; }

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

.cta--soon { cursor: default; opacity: .75; }
.cta--soon:hover { box-shadow: none; text-decoration: none; }
.cta--primary.cta--soon:hover { background: var(--primary); }
.cta--store.cta--soon:hover { border-color: var(--border); }
.cta--soon small { font-weight: 500; font-size: .8em; }
