/* GTS marketing site — plain CSS, no build step.
   Design tokens mirror apps/console/tailwind.config.ts (same brand navy +
   status palette as the product itself) so the marketing site and the app
   feel like one product family. */

:root {
  --brand: #1e4d8c;
  --brand-hover: #163a6a;
  --brand-soft: #eaf1f9;
  --brand-accent: #4c8dde;
  --sidebar: #0d1b2e;
  --sidebar-raised: #16283f;
  --sidebar-line: #1d3049;
  --surface: #ffffff;
  --surface-alt: #f0f2f5;
  --surface-bg: #f5f7fa;
  --ink: #1a2235;
  --ink-muted: #6b7a8d;
  --border: #e1e5ea;
  --success: #1a7a4a;
  --success-soft: #e3f3ea;
  --danger: #c0392b;
  --danger-soft: #fbeae8;
  --warning: #a05c00;
  --warning-soft: #fbf2dd;
  --shadow-card: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.07);
  --shadow-card-hover: 0 2px 4px rgba(16, 24, 40, 0.06), 0 4px 12px rgba(16, 24, 40, 0.09);
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-arabic: 'Segoe UI', Tahoma, 'Noto Sans Arabic', system-ui, sans-serif;
  --container: 1180px;
}

/* Dark mode: swap surfaces, keep the same brand hue family so it still reads
   as GTS (not a generic dark theme). Triggered purely by the OS/browser
   preference — this site has no manual theme toggle. */
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #4c8dde;
    --brand-hover: #6ba3ea;
    --brand-soft: #16283f;
    --brand-accent: #6ba3ea;
    --surface: #101b2d;
    --surface-alt: #16233a;
    --surface-bg: #0b1420;
    --ink: #eaf0f8;
    --ink-muted: #93a3bb;
    --border: #223047;
    --success-soft: rgba(26, 122, 74, 0.18);
    --danger-soft: rgba(192, 57, 43, 0.18);
    --warning-soft: rgba(160, 92, 0, 0.18);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.35);
    --shadow-card-hover: 0 2px 4px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.4);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface-bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

html[lang='ar'] body {
  font-family: var(--font-arabic);
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------------
   Bilingual toggle — the entire trick is these two rules. Every bilingual
   block is authored twice, once per lang, each carrying its own `lang`
   attribute; only the block matching <html lang> is shown. */
/* Hide ONLY the non-matching language, and never set `display` on the shown
   element — so each element keeps whatever display its own layout rule gives
   it (block for labels, grid for rows, inline for spans).
   Two bugs this shape avoids, both shipped on 2026-08-17:
   - `[lang='en'] {display:none}` unscoped also matched the ROOT <html lang>,
     blanking the entire page (hence `:not(html)` and the html-prefixed form);
   - a generic `display:revert` show-rule outranked `.form-row label
     {display:block}`, and a same-specificity hide-rule LOST to it, so both
     languages rendered at once in the form. !important + the descendant form
     settles it for good. */
html[lang='en'] [lang='ar']:not(html),
html[lang='ar'] [lang='en']:not(html) {
  display: none !important;
}

html[dir='rtl'] {
  direction: rtl;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------------------------------------------------------------
   Header / nav
   --------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 17px;
  color: var(--ink);
  flex: none;
}
.brand-mark:hover {
  text-decoration: none;
}
.brand-mark svg {
  width: 28px;
  height: 28px;
  flex: none;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-inline-start: 12px;
  flex: 1;
  min-width: 0;
}
.main-nav a {
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.main-nav a:hover {
  color: var(--brand);
  text-decoration: none;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-sm);
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
}
.nav-toggle svg {
  width: 18px;
  height: 18px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 2;
}

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
  font-family: inherit;
  line-height: 1.3;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-card);
}
.btn-primary:hover {
  background: var(--brand-hover);
  box-shadow: var(--shadow-card-hover);
}
.btn-secondary {
  background: var(--surface);
  color: var(--brand);
  border-color: var(--brand);
}
.btn-secondary:hover {
  background: var(--brand-soft);
}
.btn-ghost {
  background: transparent;
  color: var(--ink-muted);
}
.btn-ghost:hover {
  background: var(--surface-alt);
  color: var(--ink);
}
.btn-lg {
  padding: 13px 26px;
  font-size: 15.5px;
}
.btn-sm {
  padding: 6px 12px;
  font-size: 12.5px;
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
.lang-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.lang-toggle:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* ---------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */
.hero {
  background: linear-gradient(160deg, var(--sidebar) 0%, #122844 100%);
  color: #fff;
  padding: 76px 0 84px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9fb6d9;
  background: rgba(76, 141, 222, 0.12);
  border: 1px solid rgba(76, 141, 222, 0.35);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 20px;
}
.hero-eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5fd0a0;
  box-shadow: 0 0 0 3px rgba(95, 208, 160, 0.3);
}
.hero h1 {
  font-size: clamp(32px, 4vw, 48px);
  color: #fff;
  margin-bottom: 18px;
}
.hero p.lead {
  font-size: 18px;
  color: #b9c9df;
  max-width: 46ch;
  margin-bottom: 30px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 13px;
  color: #8fa4c4;
}
.hero-proof li {
  display: flex;
  align-items: center;
  gap: 7px;
  list-style: none;
}
.hero-proof svg {
  width: 15px;
  height: 15px;
  stroke: #5fd0a0;
  flex: none;
}
.hero-panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 22px;
  backdrop-filter: blur(6px);
}
.hero-panel .hp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13.5px;
}
.hero-panel .hp-row:last-child {
  border-bottom: 0;
}
.hero-panel .hp-label {
  color: #93a7c4;
}
.hero-panel .hp-value {
  font-weight: 700;
  color: #fff;
}
.hero-panel .hp-chip {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(95, 208, 160, 0.16);
  color: #5fd0a0;
}

/* ---------------------------------------------------------------------
   Generic section scaffolding
   --------------------------------------------------------------------- */
.section {
  padding: 76px 0;
}
.section-alt {
  background: var(--surface-alt);
}
.section-head {
  max-width: 640px;
  margin: 0 0 44px;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.eyebrow {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: clamp(26px, 3vw, 34px);
}
.section-head p {
  color: var(--ink-muted);
  font-size: 16px;
}

/* ---------------------------------------------------------------------
   Module grid / cards
   --------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: 20px;
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.module-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.module-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.module-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--brand);
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.module-card h3 {
  font-size: 17px;
  margin-bottom: 2px;
}
.module-card p {
  color: var(--ink-muted);
  font-size: 14px;
  margin-bottom: 10px;
  flex: 1;
}
.module-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-muted);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
}

/* ---------------------------------------------------------------------
   Feature list rows (Oman/GCC, deploy, security)
   --------------------------------------------------------------------- */
.feature-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.feature-row:first-child {
  border-top: 0;
}
.feature-row .f-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-row .f-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--brand);
  fill: none;
  stroke-width: 2;
}
.feature-row h4 {
  font-size: 15.5px;
  margin-bottom: 3px;
}
.feature-row p {
  color: var(--ink-muted);
  font-size: 14px;
  margin: 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

/* Deploy diagram-ish panel */
.deploy-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-card);
}
.deploy-step {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px dashed var(--border);
}
.deploy-step:first-child {
  border-top: 0;
  padding-top: 0;
}
.deploy-step .step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.deploy-step h4 {
  font-size: 14.5px;
  margin-bottom: 2px;
}
.deploy-step p {
  font-size: 13.5px;
  color: var(--ink-muted);
  margin: 0;
}

/* Security table */
.security-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.security-table th,
.security-table td {
  padding: 14px 16px;
  text-align: start;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.security-table th {
  background: var(--surface-alt);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink-muted);
}
.security-table tr:last-child td {
  border-bottom: 0;
}
.security-table .mech {
  font-weight: 700;
  white-space: nowrap;
}
.security-table .no {
  color: var(--ink-muted);
  font-size: 13px;
}
.table-scroll {
  overflow-x: auto;
}
.security-note {
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 13.5px;
  color: var(--ink);
  margin-top: 18px;
}

/* ---------------------------------------------------------------------
   Mobile apps section
   --------------------------------------------------------------------- */
.app-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-card);
}
.app-card .app-glyph {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--sidebar);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.app-card .app-glyph svg {
  width: 26px;
  height: 26px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.8;
}
.app-card h4 {
  font-size: 16px;
  margin-bottom: 2px;
}
.app-card p {
  font-size: 13.5px;
  color: var(--ink-muted);
  margin: 0;
}

/* ---------------------------------------------------------------------
   FAQ
   --------------------------------------------------------------------- */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child {
  border-top: 1px solid var(--border);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 4px;
  font-weight: 700;
  font-size: 15.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary .chev {
  flex: none;
  width: 18px;
  height: 18px;
  stroke: var(--ink-muted);
  fill: none;
  stroke-width: 2;
  transition: transform 0.15s ease;
}
.faq-item[open] summary .chev {
  transform: rotate(180deg);
}
.faq-item .faq-body {
  padding: 0 4px 20px;
  color: var(--ink-muted);
  font-size: 14.5px;
  max-width: 68ch;
}

/* ---------------------------------------------------------------------
   Contact / demo form
   --------------------------------------------------------------------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: start;
}
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.form-row {
  margin-bottom: 16px;
}
.form-row label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface-bg);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  font-size: 14.5px;
  font-family: inherit;
}
html[lang='ar'] .form-row input,
html[lang='ar'] .form-row textarea,
html[lang='ar'] .form-row select {
  font-family: var(--font-arabic);
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}
.form-row textarea {
  resize: vertical;
  min-height: 100px;
}
.form-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
/* Honeypot — hidden from sighted users AND screen readers, but still a real
   focusable-by-tab-order field a naive bot script will happily fill in. */
/* Honeypot: hidden with the clip technique, NOT left:-9999px — in RTL,
   leftward overflow is scrollable and a -9999px offset stretched the whole
   page to ~12,000px wide (found 2026-08-17). */
.hp-field {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}
.form-status {
  margin-top: 14px;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13.5px;
  display: none;
}
.form-status.show {
  display: block;
}
.form-status.ok {
  background: var(--success-soft);
  color: var(--success);
}
.form-status.err {
  background: var(--danger-soft);
  color: var(--danger);
}
.contact-side .feature-row {
  padding: 14px 0;
}

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.site-footer {
  background: var(--sidebar);
  color: #b9c9df;
  padding: 52px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.footer-brand .brand-mark {
  color: #fff;
}
.footer-brand p {
  color: #8fa4c4;
  font-size: 13.5px;
  max-width: 34ch;
  margin-top: 10px;
}
.footer-col h5 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6f88ac;
  margin-bottom: 12px;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-col a {
  color: #b9c9df;
  font-size: 13.5px;
}
.footer-col a:hover {
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid var(--sidebar-line);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: #6f88ac;
}

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
  .hero-panel {
    order: -1;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .two-col {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .contact-wrap {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }
  .main-nav {
    position: fixed;
    inset: 68px 0 auto 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 10px 24px 18px;
    display: none;
    box-shadow: var(--shadow-card-hover);
  }
  .main-nav.nav-open {
    display: flex;
  }
  .main-nav a {
    padding: 10px 0;
    width: 100%;
  }
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .form-two {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 52px 0;
  }
  .hero {
    padding: 56px 0 60px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Table overflow guard on very narrow screens */
@media (max-width: 640px) {
  .security-table {
    min-width: 640px;
  }
}
