:root {
  --bg: #ffffff;
  --surface: #f5f8fb;
  --surface-alt: #ebf1f6;
  --navy-deep: #061325;
  --navy-mid: #0b223d;
  --navy: #0f4c81;
  --navy-soft: #eff6ff;
  --green: #0d8254;
  --green-dark: #095e3c;
  --green-bright: #10b981;
  --green-soft: #ecfdf5;
  --border: rgba(15, 23, 42, 0.09);
  --border-strong: rgba(15, 23, 42, 0.16);
  --text: #0f172a;
  --text-muted: #475569;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(6, 19, 37, 0.04);
  --shadow-md: 0 12px 32px rgba(6, 19, 37, 0.08);
  --shadow-lg: 0 22px 50px rgba(6, 19, 37, 0.14);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; max-inline-size: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Arabic", "Noto Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  max-inline-size: 100%;
  overflow-x: clip;
}
main, header, section, footer { max-inline-size: 100%; }
img, video, svg { max-inline-size: 100%; block-size: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--green); }
:focus-visible { outline: 2px solid var(--green-bright); outline-offset: 3px; }

.container { max-inline-size: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: 76px; }
.section-sm { padding-block: 44px; }
.bg-surface { background: var(--surface); border-block: 1px solid var(--border); }
.bg-dark {
  background: linear-gradient(145deg, var(--navy-deep) 0%, var(--navy-mid) 60%, #092c2e 100%);
  color: #f1f5f9;
}
.bg-dark h1, .bg-dark h2, .bg-dark h3 { color: #ffffff; }
.bg-dark .lead { color: #cbd5e1; }

/* Topbar */
.topbar {
  background: var(--navy-deep);
  color: #cbd5e1;
  font-size: 12.5px;
  padding-block: 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.topbar-meta { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.topbar-meta strong { color: #ffffff; font-weight: 600; }
.topbar-meta a { color: #a7f3d0; font-weight: 600; }

.lang-switch { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.lang-pill {
  padding: 3px 10px;
  border-radius: 999px;
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 600;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.lang-pill.active, .lang-pill:hover {
  background: var(--green);
  border-color: var(--green);
  color: #ffffff;
}

/* Sticky Shrinking Header */
.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s var(--ease-out), background-color 0.25s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 8px 28px rgba(6, 19, 37, 0.08);
  background: rgba(255, 255, 255, 0.98);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 1.5vw, 24px);
  min-block-size: 76px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  flex-shrink: 0;
  min-width: 0;
}
.brand-logo img {
  block-size: 38px;
  inline-size: auto;
  flex-shrink: 0;
  object-fit: contain;
}
.brand-divider {
  inline-size: 1px;
  block-size: 28px;
  background: var(--border-strong);
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.brand-title {
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy-deep);
  letter-spacing: -0.02em;
}
.brand-sub { font-size: 10.5px; color: var(--text-muted); font-weight: 600; display: block; line-height: 1.2; letter-spacing: 0.02em; }

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  gap: clamp(10px, 1.25vw, 20px);
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.nav-links a {
  position: relative;
  color: var(--text);
  font-size: clamp(12.5px, 0.95vw, 13.8px);
  font-weight: 600;
  white-space: nowrap;
  padding-block: 8px;
}
.nav-links a.nav-cta {
  padding: 8px 15px;
  font-size: 13px;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  block-size: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s var(--ease-out);
}
.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn).active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--green); }
.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}

/* Typography & Badges */
h1, h2, h3 { line-height: 1.2; margin-top: 0; color: var(--text); letter-spacing: -0.02em; }
h1 { font-size: clamp(1.9rem, 3.3vw, 2.85rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 2.4vw, 2.05rem); font-weight: 800; margin-bottom: 14px; }
h3 { font-size: 1.12rem; font-weight: 700; }
.lead { font-size: 1.05rem; color: var(--text-muted); line-height: 1.65; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 32px;
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 8px;
}
.section-tag::before {
  content: "";
  inline-size: 18px;
  block-size: 2px;
  background: var(--green);
  border-radius: 2px;
}
.bg-dark .section-tag { color: #6ee7b7; }
.bg-dark .section-tag::before { background: #6ee7b7; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--green-soft);
  color: var(--green-dark);
  border: 1px solid #a7f3d0;
}
.badge-navy { background: var(--navy-soft); color: var(--navy); border-color: #bfdbfe; }
.badge-dark {
  background: rgba(16, 185, 129, 0.14);
  color: #6ee7b7;
  border: 1px solid rgba(110, 231, 183, 0.35);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none !important;
}
@media (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-1px); }
}
.btn-primary { background: var(--navy); color: #ffffff !important; box-shadow: 0 6px 16px rgba(15, 76, 129, 0.22); }
.btn-primary:hover { background: #0a3a65; }
.btn-green { background: var(--green); color: #ffffff !important; box-shadow: 0 6px 16px rgba(13, 130, 84, 0.22); }
.btn-green:hover { background: var(--green-dark); }
.btn-outline { background: #ffffff; color: var(--navy); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--navy); background: var(--navy-soft); }
.btn-ghost-light { background: rgba(255,255,255,0.08); color: #ffffff !important; border-color: rgba(255,255,255,0.28); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.16); }
.btn-sm { padding: 8px 15px; font-size: 13px; border-radius: 8px; }

/* Architectural Split Hero */
.hero-flagship {
  position: relative;
  background:
    radial-gradient(circle at 82% 24%, rgba(16, 185, 129, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 12% 85%, rgba(14, 165, 233, 0.14) 0%, transparent 42%),
    linear-gradient(135deg, #061325 0%, #0b223d 56%, #0a2d2f 100%);
  color: #f8fafc;
  padding-block: 64px 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-flagship h1 { color: #ffffff; }
.hero-flagship .lead { color: #cbd5e1; font-size: 1.08rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 44px;
  align-items: center;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.hero-stage {
  position: relative;
  background: radial-gradient(circle at 50% 52%, rgba(255,255,255,0.96) 0%, rgba(235,244,240,0.94) 55%, rgba(220,234,244,0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 22px;
  padding: 26px 24px 20px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
  color: var(--text);
}
.hero-stage-img-wrap {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.hero-stage-img-wrap img {
  max-block-size: 300px;
  inline-size: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 26px rgba(6, 19, 37, 0.2));
  transition: transform 0.35s var(--ease-out), opacity 0.25s ease;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-stage:hover .hero-stage-img-wrap img { transform: translateY(-4px) scale(1.03); }
}
.hero-stage-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
  flex-wrap: wrap;
}
.stage-tab {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-muted);
  cursor: pointer;
}
.stage-tab.active, .stage-tab:hover {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}
.hero-stage-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* KPI Authority Strip */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 36px;
}
.kpi-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 14px 16px;
}
.kpi-val { font-size: 1.35rem; font-weight: 800; color: #ffffff; letter-spacing: -0.02em; }
.kpi-lbl { font-size: 12px; color: #94a3b8; margin-top: 2px; }

/* Grids & Subgrid Cards (Zero Ragged Edges & Zero Mobile Overflow) */
.hero-grid > *, .pdp-grid > *, .selector-grid > *, .footer-grid > *,
.flagship-grid > *, .ecosystem-grid > *, .grid-2 > *, .grid-3 > *, .grid-4 > *,
.product-single-feature > * {
  min-width: 0;
}
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.25s ease;
}
@media (prefers-reduced-motion: no-preference) {
  .card-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(13, 130, 84, 0.32);
  }
}

/* Flagship 3-Model Subgrid Alignment */
.flagship-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.25s ease;
}
.product-card.is-hero-model {
  border: 2px solid var(--green);
  box-shadow: 0 12px 30px rgba(13, 130, 84, 0.1);
}
@media (prefers-reduced-motion: no-preference) {
  .product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
}

.product-stage {
  aspect-ratio: 4 / 3;
  background: radial-gradient(circle at 50% 56%, #e7f2ed 0%, #f4f7fa 66%, #ffffff 100%);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.05);
}
.product-stage img {
  max-block-size: 100%;
  max-inline-size: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(6, 19, 37, 0.14));
  transition: transform 0.35s var(--ease-out);
}
@media (prefers-reduced-motion: no-preference) {
  .product-card:hover .product-stage img { transform: scale(1.05); }
}
.product-body { flex: 1; display: flex; flex-direction: column; }
.product-specs-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-block: 10px 4px;
}
.spec-pill {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.product-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* Supporting Category Ecosystem (Zero-Orphan Symmetric Grid) */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}
.ecosystem-grid > .product-card {
  grid-column: span 4;
}
.ecosystem-grid.eco-count-7 > .product-card:nth-child(-n+4) {
  grid-column: span 3;
}
.ecosystem-grid.eco-count-7 > .product-card:nth-child(n+5) {
  grid-column: span 4;
}
.model-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-block: 8px 12px;
}
.model-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--navy);
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.model-chip:hover {
  background: var(--green-light);
  border-color: var(--green);
  color: var(--green-dark);
}
.product-single-feature {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 32px;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.catalog-jump-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.catalog-cat-block + .catalog-cat-block {
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.eco-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.eco-step-num {
  inline-size: 22px;
  block-size: 22px;
  border-radius: 50%;
  background: var(--green);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

/* Selector Box */
.selector-box {
  background: linear-gradient(135deg, #f0f7ff 0%, #f4fbf8 100%);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-top: 32px;
}
.selector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  gap: 16px;
  align-items: end;
}
.selector-result {
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}

.factory-video-frame {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #061325;
  box-shadow: var(--shadow-md);
}
.factory-video-frame video {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  display: block;
}

/* Factory & Expo Gallery */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.photo-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.photo-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  margin: 0;
}
.bg-dark .photo-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}
.photo-card-img { aspect-ratio: 4 / 3; overflow: hidden; cursor: zoom-in; }
.photo-card img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--ease-out);
}
@media (prefers-reduced-motion: no-preference) {
  .photo-card:hover img { transform: scale(1.04); }
}
.photo-card figcaption { padding: 12px 14px; font-size: 13px; color: var(--text-muted); font-weight: 500; }
.bg-dark .photo-card figcaption { color: #cbd5e1; }

/* Responsive Data Tables (Modern Web Guidance) */
.table-wrap {
  overflow: auto;
  max-inline-size: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
  container-type: inline-size;
  box-shadow: var(--shadow-sm);
}
table.spec-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.spec-table th, .spec-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  text-align: start;
  vertical-align: top;
}
.spec-table thead th {
  background: var(--surface-alt);
  font-weight: 700;
  color: var(--text);
  position: sticky;
  inset-block-start: 0;
  z-index: 2;
  white-space: nowrap;
}
.spec-table tbody tr:last-child td { border-bottom: none; }
.spec-table tbody tr:hover { background: #f8fafc; }

/* Product Detail Page */
.pdp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.pdp-main-img {
  background: radial-gradient(circle at 50% 54%, #e7f2ed 0%, #f4f7fa 68%, #ffffff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
}
.pdp-main-img img {
  max-block-size: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 26px rgba(6, 19, 37, 0.16));
}
.pdp-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pdp-thumb {
  inline-size: 80px;
  block-size: 80px;
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 6px;
  background: var(--surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pdp-thumb.active { border-color: var(--green); background: #ffffff; }
.pdp-thumb img { max-block-size: 64px; object-fit: contain; }

/* Inquiry Form */
.form-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
  scroll-margin-top: 96px;
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: end; }
.form-grid > div { min-width: 0; }
.form-full { grid-column: 1 / -1; }
label.field-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text); line-height: 1.35; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], select, textarea {
  inline-size: 100%;
  max-inline-size: 100%;
  box-sizing: border-box;
  min-block-size: 44px;
  padding: 10px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.4;
  font-family: inherit;
  color: var(--text);
  background: #ffffff;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], select {
  block-size: 44px;
}
textarea { display: block; min-block-size: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(15, 76, 129, .14); }
.radio-group { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-pill {
  flex: 1 1 200px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  background: var(--surface);
}
.radio-pill:has(input:checked) { border-color: var(--navy); background: var(--navy-soft); color: var(--navy); }
@keyframes alertPop {
  from { opacity: 0; transform: translateY(-4px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.alert { padding: 18px 20px; border-radius: 14px; margin-bottom: 20px; font-size: 14.5px; line-height: 1.55; border: 2px solid transparent; box-shadow: 0 10px 26px -8px rgba(15, 23, 42, .18); animation: alertPop .24s var(--ease-out); scroll-margin-top: 100px; }
.alert-inline { margin-top: 4px; margin-bottom: 14px; }
.alert-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.alert-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.alert-title { font-size: 17px; font-weight: 800; }
.alert-desc { margin: 4px 0 0; font-size: 14.5px; font-weight: 600; }
.alert-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; font-size: 12.5px; }
.alert-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 8px; background: rgba(255, 255, 255, .86); border: 1px solid rgba(15, 23, 42, .14); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; }
.alert-ok, .alert-delivered { background: linear-gradient(135deg, #d1fae5 0%, #ecfdf5 100%); border-color: #059669; border-left: 8px solid #047857; color: #064e3b; }
.alert-delivered .alert-pill { background: #047857; color: #fff; }
.alert-queued { background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%); border-color: #d97706; border-left: 8px solid #b45309; color: #78350f; }
.alert-queued .alert-pill { background: #b45309; color: #fff; }
.alert-conflict { background: linear-gradient(135deg, #e0e7ff 0%, #eef2ff 100%); border-color: #4f46e5; border-left: 8px solid #3730a3; color: #312e81; }
.alert-conflict .alert-pill { background: #3730a3; color: #fff; }
.alert-err { background: linear-gradient(135deg, #fee2e2 0%, #fef2f2 100%); border-color: #dc2626; border-left: 8px solid #b91c1c; color: #7f1d1d; }
.alert-err .alert-pill { background: #b91c1c; color: #fff; }
[dir="rtl"] .alert-delivered { border-left: 2px solid #059669; border-right: 8px solid #047857; }
[dir="rtl"] .alert-queued { border-left: 2px solid #d97706; border-right: 8px solid #b45309; }
[dir="rtl"] .alert-conflict { border-left: 2px solid #4f46e5; border-right: 8px solid #3730a3; }
[dir="rtl"] .alert-err { border-left: 2px solid #dc2626; border-right: 8px solid #b91c1c; }
.field-invalid { border-color: #dc2626 !important; background: #fef2f2 !important; box-shadow: 0 0 0 3px rgba(220, 38, 38, .18) !important; }
.contact-hint { grid-column: 1 / -1; background: #ecfeff; border: 1.5px solid #06b6d4; border-left: 5px solid #0e7490; color: #164e63; border-radius: 10px; padding: 12px 15px; font-size: 13.5px; font-weight: 600; line-height: 1.5; }
.privacy-note { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: #f8fafc; border: 1px solid #e2e8f0; font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }
.type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 10px; }

/* Native <dialog> Modal Lightbox (Modern Web Guidance) */
dialog.fomos-dialog {
  border: none;
  border-radius: 16px;
  padding: 0;
  max-inline-size: min(92vw, 960px);
  max-block-size: 90dvb;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
  overscroll-behavior: contain;
}
dialog.fomos-dialog::backdrop { background: rgba(6, 19, 37, 0.72); backdrop-filter: blur(4px); }
@media (prefers-reduced-motion: no-preference) {
  dialog.fomos-dialog {
    transition: opacity 0.22s ease, transform 0.22s var(--ease-out), display 0.22s allow-discrete, overlay 0.22s allow-discrete;
  }
  dialog.fomos-dialog[open] { opacity: 1; transform: scale(1); }
  @starting-style { dialog.fomos-dialog[open] { opacity: 0; transform: scale(0.96); } }
}
.dialog-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 14px;
}
.dialog-close {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  padding: 4px 10px;
  cursor: pointer;
  font-weight: 700;
}
.dialog-body { padding: 18px; max-block-size: 76dvb; overflow: auto; }

/* Scroll-Driven Reveal (Compositor-only, Progressive Enhancement) */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes fomos-reveal {
      from { opacity: 0.15; transform: translateY(22px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    .reveal-item {
      animation: fomos-reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 28%;
    }
  }
  .js-reveal .reveal-item-fallback { opacity: 0; transform: translateY(20px); transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out); }
  .js-reveal .reveal-item-fallback.is-visible { opacity: 1; transform: translateY(0); }
}

/* Footer */
.site-footer { background: var(--navy-deep); color: #cbd5e1; padding-block: 56px 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 28px; }
.site-footer h4 { color: #ffffff; margin: 0 0 14px; font-size: 15px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; font-size: 13px; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #6ee7b7; }
.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: #94a3b8;
}

.geo-callout {
  background: var(--green-soft);
  border: 1px solid #a7f3d0;
  border-inline-start: 4px solid var(--green);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--navy-deep);
}
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.faq-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.faq-card h3 {
  font-size: 1.02rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.faq-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.breadcrumbs { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.hidden { display: none !important; }

@media (max-width: 1140px) {
  .hero-grid, .pdp-grid, .selector-grid, .footer-grid, .product-single-feature { grid-template-columns: 1fr; }
  .flagship-grid, .ecosystem-grid, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .ecosystem-grid > .product-card,
  .ecosystem-grid.eco-count-7 > .product-card:nth-child(-n+4),
  .ecosystem-grid.eco-count-7 > .product-card:nth-child(n+5) { grid-column: auto; }
  .ecosystem-grid.eco-count-7 > .product-card:last-child { grid-column: 1 / -1; }
  .photo-grid-4, .kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .nav-links {
    display: none;
    position: absolute;
    inset-block-start: 100%;
    inset-inline: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px;
    gap: 10px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a.nav-cta { text-align: center; }
  .nav-toggle { display: inline-flex; flex-shrink: 0; }
}
@media (max-width: 640px) {
  .container { padding-inline: 16px; }
  .topbar { font-size: 11.5px; padding-block: 8px; }
  .topbar-inner { gap: 8px; }
  .topbar-meta { gap: 4px 10px; width: 100%; }
  .topbar-company-desktop { display: none; }
  .nav-inner { min-block-size: 62px; gap: 10px; }
  .brand-logo { flex: 1 1 auto; gap: 8px; }
  .brand-logo img { block-size: 28px; }
  .brand-divider { block-size: 22px; }
  .brand-title { font-size: 14px; }
  .brand-sub { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav-toggle { padding: 7px 11px; font-size: 13px; white-space: nowrap; }
  .hero-flagship { padding-block: 32px 36px; }
  .badge { max-inline-size: 100%; white-space: normal; line-height: 1.35; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-stage { padding: 14px; }
  .flagship-grid, .ecosystem-grid, .grid-2, .grid-3, .grid-4, .form-grid, .photo-grid, .photo-grid-4, .kpi-strip { grid-template-columns: 1fr; }
  .ecosystem-grid.eco-count-7 > .product-card:last-child { grid-column: auto; }
  .section { padding-block: 48px; }
}
