:root {
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --surface-muted: #E9EFF8;
  --brand-ink: #0E1A33;
  --ink: #0E1A33;
  --ink-muted: #475569;
  --primary: #1D4ED8;
  --primary-hover: #1E40AF;
  --secondary: #3B82F6;
  --lantern: #F2A93B;
  --accent-cta: #EA580C;
  --accent-cta-bg: #C2410C;
  --accent-cta-hover: #9A3412;
  --border: #E2E8F0;
  --border-strong: #64748B;
  --success: #16A34A;
  --shadow-sm: 0 2px 8px rgba(14, 26, 51, 0.05);
  --shadow-md: 0 12px 32px rgba(14, 26, 51, 0.08);
  --shadow-lg: 0 24px 56px rgba(14, 26, 51, 0.14);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --font-ltr: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-rtl: "Almarai", "Segoe UI", Tahoma, Arial, sans-serif;
  --font-mono: "JetBrains Mono", Consolas, ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 0%, rgba(29, 78, 216, 0.07), transparent 36%),
    radial-gradient(circle at 88% 8%, rgba(242, 169, 59, 0.06), transparent 30%);
  color: var(--ink);
  font-family: var(--font-ltr);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

html[dir="rtl"] body {
  font-family: var(--font-rtl);
  line-height: 1.8;
}

bdi[dir="ltr"],
.ltr-token,
.brand-name {
  font-family: var(--font-ltr);
  unicode-bidi: isolate;
  direction: ltr;
}

.ltr-token {
  white-space: nowrap;
}

.bidi-sep {
  display: inline-block;
  unicode-bidi: isolate;
  opacity: 0.72;
}

.bidi-part,
.spec-part {
  unicode-bidi: isolate;
}

html[dir="rtl"] .brand-name {
  direction: ltr;
  unicode-bidi: isolate;
}

html[dir="rtl"] .hero-title {
  letter-spacing: 0;
  line-height: 1.35;
}

html[dir="rtl"] .section-title {
  letter-spacing: 0;
  line-height: 1.38;
}

html[dir="rtl"] :is(.feature-desc, .check-list li, .faq-answer, .step-desc, .section-subtitle, .navy-subdesc) {
  font-size: 1rem;
}

html[dir="rtl"] :is(.trust-label, .brand-tag, .market-price-pill, .info-card-badge, .pricing-badge, .copy-hash-btn) {
  font-size: 0.8125rem;
}

html[dir="rtl"] .support-channel-val {
  text-align: right;
  unicode-bidi: isolate;
}

html[dir="rtl"] .form-field input[dir="ltr"] {
  text-align: right;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 6px;
}

.cta-box :focus-visible,
.specs-card :focus-visible,
.section-navy :focus-visible {
  outline-color: #FFFFFF;
}

.market-select {
  min-height: 40px;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.market-select:hover {
  border-color: var(--primary);
}

.container {
  width: min(1200px, calc(100% - 2rem));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.22);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.header-nav a {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--ink-muted);
  transition: color 0.16s ease, box-shadow 0.16s ease;
  white-space: nowrap;
  padding-block: 0.25rem;
}

.header-nav a:hover,
.header-nav a[aria-current="true"] {
  color: var(--primary);
}

.header-nav a[aria-current="true"] {
  box-shadow: inset 0 -2px 0 currentColor;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.header-selectors {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.header-actions .market-select {
  max-width: 170px;
  text-overflow: ellipsis;
}

.header-actions .header-lang-select {
  max-width: 118px;
}

.icon-btn.mobile-menu-btn {
  display: none;
}

.mobile-nav-drawer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.mobile-nav-drawer[hidden] {
  display: none;
}

.mobile-drawer-inner {
  padding: 0.85rem 0 1.1rem;
  display: grid;
  gap: 0.9rem;
}

.mobile-drawer-nav {
  display: grid;
  gap: 0.3rem;
}

.mobile-drawer-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  color: var(--ink);
}

.mobile-drawer-nav a:hover,
.mobile-drawer-nav a[aria-current="true"] {
  background: var(--surface-muted);
  color: var(--primary);
}

.mobile-drawer-controls {
  display: none;
  gap: 0.7rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
}

.drawer-field {
  display: grid;
  gap: 0.3rem;
}

.drawer-field label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.drawer-field .market-select {
  width: 100%;
  max-width: 100%;
}

.flag-svg {
  width: 18px;
  height: 13px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(14, 26, 51, 0.14);
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.14s ease, background-color 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, filter 0.14s ease;
  text-align: center;
}

.btn:active {
  transform: translateY(0);
  filter: brightness(0.94);
}

.btn[aria-disabled="true"],
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn[aria-busy="true"] {
  cursor: progress;
}

.btn-sm {
  min-height: 42px;
  padding: 0 0.95rem;
  font-size: 0.875rem;
}

.btn-lg {
  min-height: 52px;
  padding: 0.8rem 1.45rem;
  font-size: 1rem;
}

.btn-cta {
  background: var(--accent-cta-bg);
  color: #FFFFFF;
  border-color: var(--accent-cta);
  box-shadow: 0 10px 24px rgba(194, 65, 12, 0.24);
}

.btn-cta:hover {
  background: var(--accent-cta-hover);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(154, 52, 18, 0.3);
}

.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(29, 78, 216, 0.22);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #F8FBFF;
}

/* Hero Section */
.hero-section {
  padding: 2.8rem 0 3.75rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 2.5rem;
  align-items: start;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.55rem;
  max-width: 100%;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.05rem;
}

#versionBadge {
  min-width: 0;
}

.status-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.16);
}

.hero-title {
  margin: 0 0 0.9rem;
  font-size: clamp(1.95rem, 3.4vw, 2.9rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}

.hero-lead {
  margin: 0 0 1.45rem;
  max-width: 60ch;
  font-size: 1.0625rem;
  color: var(--ink-muted);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.hero-cta-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 1.1rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
  margin-bottom: 1.35rem;
}

.mirror-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mirror-link:hover {
  color: var(--primary-hover);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.trust-label {
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--primary);
}

.trust-value {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}

.checksum-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.84rem;
}

.copy-hash-btn {
  border: 1px solid var(--border-strong);
  background: var(--surface-muted);
  color: var(--ink);
  border-radius: 8px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  min-height: 36px;
}

.copy-hash-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #F8FBFF;
}

/* Mockup Window Card */
.app-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.app-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: #F1F5F9;
  border-bottom: 1px solid var(--border);
}

.window-controls-win {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-ltr);
}

.window-controls-win span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid #CBD5E1;
  background: rgba(255, 255, 255, 0.85);
  font-size: 0.68rem;
  line-height: 1;
  color: var(--ink-muted);
}

.window-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.24rem 0.65rem;
  border-radius: 999px;
}

.aspect-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--brand-ink);
  overflow: hidden;
}

.aspect-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

.hero-window-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  font-size: 0.86rem;
  color: var(--ink-muted);
}

/* Verification & Release Strip (inside #install) */
.verify-strip {
  margin-top: 1.35rem;
  padding: 1.05rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 0.75rem;
}

.verify-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}

.verify-meta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.85rem;
}

.verify-label {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--ink);
}

.verify-version {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary);
}

.release-notes-bar {
  padding: 0.75rem 0.95rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--ink-muted);
  overflow-wrap: anywhere;
}

/* Section Headers */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: #FFFFFF;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  max-width: 820px;
  margin-bottom: 2.15rem;
}

.section-title {
  margin: 0 0 0.55rem;
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.24;
  color: var(--ink);
  text-wrap: balance;
}

.section-subtitle {
  margin: 0;
  max-width: 68ch;
  font-size: 1rem;
  color: var(--ink-muted);
  text-wrap: pretty;
}

/* Markets Cards */
.markets-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.market-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: start;
  gap: 0.5rem;
  padding: 1.2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.market-card[data-market="DZ"] {
  grid-row: span 2;
  background: linear-gradient(180deg, #EFF6FF 0%, #FFFFFF 100%);
  border-color: rgba(29, 78, 216, 0.28);
}

.market-card:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow-sm);
}

.market-card.is-active {
  background: #EFF6FF;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.16);
}

.market-card:focus-visible,
.screen-tab:focus-visible {
  outline-offset: 3px;
}

.market-card-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.market-code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
}

.market-name {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--ink);
}

.market-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.market-shop,
.market-tax {
  display: block;
}

.market-tax {
  font-weight: 700;
  color: var(--ink);
}

.market-sample {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary);
}

.market-price-pill {
  margin-top: auto;
  display: inline-block;
  vertical-align: middle;
  line-height: 1.45;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 800;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
}

.market-price-pill.is-fixed {
  background: #DCFCE7;
  border-color: #86EFAC;
  color: #166534;
}

/* Interactive 12-Screen Tour */
.tour-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.screen-tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

.screen-tab {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: start;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-muted);
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.screen-tab:hover {
  border-color: var(--secondary);
  color: var(--ink);
}

.screen-tab.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
}

.screen-tab-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  opacity: 0.86;
  min-width: 1.5rem;
}

.screen-tab.is-active .screen-tab-num {
  opacity: 1;
}

.tour-stage-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.tour-stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: #F8FAFC;
}

.tour-stage-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--ink);
}

.tour-stage-desc {
  margin: 0.25rem 0 0;
  font-size: 0.94rem;
  color: var(--ink-muted);
  max-width: 65ch;
}

.tour-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
}

.icon-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Features Grid & DZ Fiscal Spotlight */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.dz-fiscal-spotlight {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, #F8FBFF 0%, #EFF6FF 100%);
  border: 1.5px solid rgba(29, 78, 216, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.fiscal-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--brand-ink);
  color: var(--lantern);
  font-size: 0.8125rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
}

.fiscal-title {
  margin: 0 0 0.5rem;
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--ink);
  text-wrap: balance;
}

.fiscal-desc {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--ink-muted);
  text-wrap: pretty;
}

.fiscal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.fiscal-chip {
  display: inline-block;
  padding: 0.28rem 0.68rem;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid rgba(29, 78, 216, 0.22);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
}

.fiscal-preview-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--brand-ink);
  box-shadow: var(--shadow-sm);
}

.fiscal-preview-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  cursor: zoom-in;
}

.fiscal-preview-btn {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 700;
  min-height: 40px;
  padding: 0.4rem 0.75rem;
}

.fiscal-preview-btn:hover {
  background: #F8FBFF;
}

.feature-card {
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface-muted);
  color: var(--primary);
  margin-bottom: 0.9rem;
}

.feature-title {
  margin: 0 0 0.45rem;
  font-size: 1.06rem;
  font-weight: 800;
  color: var(--ink);
}

.feature-desc {
  margin: 0;
  font-size: 0.96rem;
  color: var(--ink-muted);
  text-wrap: pretty;
}

/* Installation & Requirements */
.install-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1.5rem;
  align-items: start;
}

.steps-list {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.step-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--primary);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.92rem;
  flex-shrink: 0;
}

.step-title {
  margin: 0 0 0.25rem;
  font-size: 1.02rem;
  font-weight: 800;
}

.step-desc {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.specs-card {
  padding: 1.45rem;
  background: var(--brand-ink);
  color: #F8FAFC;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.2rem;
}

.specs-title {
  margin: 0 0 0.85rem;
  font-size: 1.15rem;
  font-weight: 800;
}

.specs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.specs-list li {
  display: grid;
  grid-template-columns: minmax(115px, 32%) minmax(0, 1fr);
  align-items: start;
  gap: 0.35rem 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  font-size: 0.9rem;
}

.specs-key {
  color: #94A3B8;
  padding-top: 0.15rem;
}

.specs-val {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  font-weight: 700;
  color: #FFFFFF;
  text-align: start;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.spec-chip {
  display: inline-block;
  padding: 0.16rem 0.54rem;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(148, 163, 184, 0.24);
  font-size: 0.84rem;
  line-height: 1.45;
  unicode-bidi: isolate;
}

/* Bottom CTA Band */
.cta-band {
  padding: 3.5rem 0;
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.25rem 2.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--brand-ink), var(--primary));
  color: #FFFFFF;
  box-shadow: var(--shadow-lg);
}

.cta-box h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  font-weight: 800;
  text-wrap: balance;
}

.cta-box p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  max-width: 58ch;
}

.cta-box-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  flex-shrink: 0;
}

.cta-box .btn-cta {
  box-shadow: 0 0 0 2px #FFFFFF, 0 10px 24px rgba(0, 0, 0, 0.28);
}

.btn-white-outline {
  background: rgba(15, 23, 42, 0.34);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.78);
}

.btn-white-outline:hover {
  background: rgba(15, 23, 42, 0.52);
}

/* Footer */
.site-footer {
  padding: 2.25rem 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links a:hover {
  color: var(--primary);
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(14, 26, 51, 0.88);
  backdrop-filter: blur(8px);
}

.lightbox.is-open {
  display: flex;
}

.lightbox-dialog {
  width: min(1160px, 100%);
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.2rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.lightbox-caption {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--ink);
}

.lightbox-stage {
  aspect-ratio: 16 / 10;
  max-height: calc(100vh - 6rem);
  background: var(--brand-ink);
}

.lightbox-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Download Status & Rate Limit Modal */
.status-modal {
  position: fixed;
  inset: 0;
  z-index: 65;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(14, 26, 51, 0.74);
  backdrop-filter: blur(8px);
}

.status-modal.is-open {
  display: flex;
}

.status-modal-dialog {
  width: min(520px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.65rem;
}

.status-modal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.status-modal-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
}

.status-modal-body {
  margin: 0 0 1.1rem;
  font-size: 0.96rem;
  color: var(--ink-muted);
}

.quota-pill {
  display: inline-block;
  vertical-align: middle;
  line-height: 1.45;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.quota-pill.is-ok {
  background: #DCFCE7;
  color: #166534;
}

.quota-pill.is-blocked {
  background: #FEE2E2;
  color: #991B1B;
}

.status-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Unified Dark Navy Band (Offline + Security) */
.section-navy {
  padding: 3.35rem 0;
  scroll-margin-top: 76px;
  background:
    radial-gradient(circle at 12% 10%, rgba(29, 78, 216, 0.28), transparent 42%),
    radial-gradient(circle at 88% 88%, rgba(242, 169, 59, 0.14), transparent 36%),
    var(--brand-ink);
  color: #F8FAFC;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.section-navy .section-header {
  margin-bottom: 1.65rem;
}

.section-navy .section-title {
  color: #FFFFFF;
}

.section-navy .section-subtitle {
  color: #CBD5E1;
}

.section-navy .info-card,
.section-navy .security-card {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  padding: 1.25rem;
}

.section-navy .info-card-title,
.section-navy .security-card .feature-title {
  color: #FFFFFF;
}

.section-navy .check-list {
  gap: 0.5rem;
}

.section-navy .check-list li,
.section-navy .security-card .feature-desc {
  color: #CBD5E1;
}

.section-navy .check-list li::before {
  color: #4ADE80;
}

.section-navy .check-list.is-online-list li::before {
  color: #93C5FD;
}

.section-navy .info-card-badge.is-offline {
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(134, 239, 172, 0.36);
  color: #86EFAC;
}

.section-navy .info-card-badge.is-online {
  background: rgba(96, 165, 250, 0.18);
  border: 1px solid rgba(147, 197, 253, 0.36);
  color: #93C5FD;
}

.navy-subblock {
  margin-top: 1.75rem;
  padding-top: 1.55rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  scroll-margin-top: 84px;
}

.navy-subhead {
  max-width: 820px;
  margin-bottom: 1.15rem;
}

.navy-subtitle {
  margin: 0 0 0.35rem;
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  font-weight: 800;
  line-height: 1.35;
  color: #FFFFFF;
  text-wrap: balance;
}

.navy-subdesc {
  margin: 0;
  max-width: 68ch;
  font-size: 0.96rem;
  color: #CBD5E1;
  text-wrap: pretty;
}

.section-navy .security-card .feature-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 0.7rem;
  background: rgba(242, 169, 59, 0.15);
  border: 1px solid rgba(242, 169, 59, 0.32);
  color: var(--lantern);
}

/* Offline vs Online, Security, Pricing, FAQ, Support & Legal */
.offline-grid,
.pricing-grid,
.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.info-card,
.pricing-card,
.contact-form,
.support-channel-card,
.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.info-card-badge,
.pricing-badge {
  display: inline-block;
  vertical-align: middle;
  line-height: 1.45;
  padding: 0.26rem 0.72rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 800;
  background: var(--surface-muted);
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.info-card-badge.is-offline {
  background: #DCFCE7;
  color: #166534;
}

.info-card-badge.is-online {
  background: #DBEAFE;
  color: #1E40AF;
}

.pricing-badge.is-primary {
  background: var(--primary);
  color: #FFFFFF;
}

.info-card-title,
.pricing-card-title,
.contact-form-title {
  margin: 0 0 0.7rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.check-list li {
  position: relative;
  padding-inline-start: 1.45rem;
  font-size: 0.96rem;
  color: var(--ink-muted);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  color: var(--success);
  font-weight: 800;
}

.check-list.is-online-list li::before {
  content: "○";
  color: #1E40AF;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.2rem;
}

.pricing-card.is-featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-md);
}

.pricing-amount {
  font-size: clamp(1.5rem, 2.5vw, 2.05rem);
  font-weight: 800;
  color: var(--ink);
  margin: 0.25rem 0;
}

.pricing-sub {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-muted);
}

.license-anchor {
  margin: 0.45rem 0 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
}

.payment-methods-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.payment-pill {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-weight: 700;
  color: var(--ink);
}

.pricing-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
}

.pricing-footnote {
  margin: 1.15rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.faq-header,
.faq-list {
  max-width: 900px;
  margin-inline: auto;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.25rem 1.25rem;
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  cursor: pointer;
  padding: 0.95rem 0;
  font-weight: 800;
  font-size: 1rem;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-q {
  min-width: 0;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.35rem;
  color: var(--primary);
  flex-shrink: 0;
  min-width: 28px;
  text-align: center;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 0 1rem;
  font-size: 0.96rem;
  color: var(--ink-muted);
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
}

.support-channels {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.support-channel-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.2rem;
}

.support-channel-card.is-whatsapp {
  border-color: #86EFAC;
  background: #F0FDF4;
  padding: 1.2rem;
}

.support-channel-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.support-channel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface-muted);
  color: var(--primary);
  flex-shrink: 0;
}

.support-channel-card.is-whatsapp .support-channel-icon {
  background: #DCFCE7;
  color: #15803D;
}

.support-channel-title {
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--ink);
}

.support-channel-val {
  font-size: 0.88rem;
  color: var(--ink-muted);
  overflow-wrap: anywhere;
}

.hero-grid > *,
.tour-layout > *,
.install-grid > *,
.offline-grid > *,
.security-grid > *,
.pricing-grid > *,
.support-grid > * {
  min-width: 0;
}

.contact-form {
  position: relative;
  display: grid;
  gap: 0.95rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.form-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
}

.req-mark {
  color: #B91C1C;
  margin-inline-start: 0.2rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: #FFFFFF;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field :is(input, select, textarea):hover {
  border-color: var(--ink);
}

.form-field :is(input, textarea):user-invalid {
  border-color: #B91C1C;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.15);
}

.hp-field {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

.consent-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.consent-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
}

.contact-feedback {
  display: none;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  line-height: 1.5;
}

.contact-feedback.is-visible {
  display: block;
}

.contact-feedback.is-ok {
  background: #DCFCE7;
  border: 1px solid #86EFAC;
  color: #166534;
}

.contact-feedback.is-err {
  background: #FEE2E2;
  border: 1px solid #FCA5A5;
  color: #991B1B;
}

.contact-fallback-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.7rem;
}

/* Footer */
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.footer-brand-block {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-legal-links,
.footer-contact-icons,
.footer-selectors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.15rem;
}

.footer-icon-link {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.82rem;
  min-height: 36px;
}

.footer-icon-link:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.mobile-cta-bar {
  display: none;
}

.legal-shell {
  padding: 3rem 0 4rem;
}

.legal-card {
  max-width: 860px;
  margin-inline: auto;
  padding: 2rem;
}

.legal-sections {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.25rem;
}

.legal-section h2 {
  margin: 0 0 0.4rem;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--ink);
}

.legal-section p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
  .header-nav {
    display: none;
  }
  .icon-btn.mobile-menu-btn {
    display: inline-flex;
  }
}

@media (max-width: 1040px) {
  .hero-grid,
  .install-grid,
  .offline-grid,
  .pricing-grid,
  .support-grid,
  .dz-fiscal-spotlight {
    grid-template-columns: 1fr;
  }
  .markets-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .market-card[data-market="DZ"] {
    grid-row: auto;
    grid-column: 1 / -1;
  }
  .security-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tour-layout {
    grid-template-columns: 1fr;
  }
  .screen-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 78px;
  }
  .container {
    width: min(1200px, calc(100% - 1.5rem));
  }
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(248, 250, 252, 0.97);
  }
  .header-inner {
    min-height: 58px;
    flex-wrap: nowrap;
    padding: 0.45rem 0;
  }
  .brand-tag {
    display: none;
  }
  .header-selectors,
  .header-cta {
    display: none;
  }
  .mobile-drawer-controls {
    display: grid;
  }
  .mobile-cta-bar {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 45;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
    background: #FFFFFF;
    border-top: 1px solid #CBD5E1;
    box-shadow: 0 -6px 20px rgba(14, 26, 51, 0.08);
  }
  .mobile-cta-bar .btn {
    flex: 1;
    min-height: 44px;
    font-size: 0.875rem;
    padding: 0.45rem 0.7rem;
  }
  .hero-section {
    padding: 1.75rem 0 2.75rem;
  }
  .section-navy {
    padding: 2.5rem 0;
  }
  .hero-eyebrow {
    max-width: 100%;
    flex-wrap: nowrap;
  }
  .hero-actions .btn,
  .pricing-card-actions .btn,
  .cta-box-actions .btn {
    width: 100%;
  }
  .specs-list li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  .support-channel-card,
  .tour-stage-header,
  .hero-window-footer,
  .verify-row {
    flex-wrap: wrap;
  }
  .trust-strip,
  .features-grid,
  .security-grid,
  .form-row-2 {
    grid-template-columns: 1fr;
  }
  .markets-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.75rem;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
  }
  .market-card {
    flex: 0 0 265px;
    scroll-snap-align: start;
    grid-row: auto !important;
  }
  .screen-tabs {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.5rem;
    padding-bottom: 0.35rem;
    scrollbar-width: thin;
  }
  .screen-tab {
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
    scroll-snap-align: start;
  }
  .cta-box {
    padding: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
