:root {
  --navy: #073763;
  --navy-2: #0d4f7a;
  --cyan: #18b7cf;
  --yellow: #f5e90b;
  --warm: #ef6c35;
  --green: #23a455;
  --violet: #7c3aed;
  --ink: #15202b;
  --muted: #5d6b78;
  --line: #d8e3ea;
  --soft: #eef7fa;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(7, 55, 99, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--white);
}

a { color: inherit; }

.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--yellow), var(--warm), var(--green), var(--violet));
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 260px;
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.brand strong, .brand small { display: block; }
.brand strong { color: var(--navy); font-size: 15px; }
.brand small { color: var(--muted); font-size: 12px; margin-top: 2px; }

.nav {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 14px;
  color: var(--navy);
}

.nav a {
  text-decoration: none;
  font-weight: 700;
}

.language-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

select, input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  font: inherit;
  background: var(--white);
}

button, .button {
  border: 0;
  border-radius: 6px;
  padding: 12px 16px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.primary { color: var(--navy); background: var(--yellow); }
.secondary { color: var(--white); background: var(--navy); }
.ghost { color: var(--navy); background: var(--soft); border: 1px solid var(--line); }

.button, button, .module-button, .filter-pill {
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover, button:hover, .module-button:hover, .filter-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(7, 55, 99, 0.16);
}

.hero {
  min-height: 88vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(36px, 6vw, 72px) clamp(16px, 5vw, 64px);
  background:
    radial-gradient(circle at 86% 20%, color-mix(in srgb, var(--yellow) 28%, transparent), transparent 26%),
    radial-gradient(circle at 12% 80%, color-mix(in srgb, var(--cyan) 25%, transparent), transparent 28%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), color-mix(in srgb, var(--soft) 85%, white));
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--navy-2);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1, h2, h3, p { overflow-wrap: anywhere; }

h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 20px;
}

.lead {
  max-width: 720px;
  color: #34495a;
  font-size: 19px;
  line-height: 1.6;
}

.hero-actions, .toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 34px 0 0;
}

.trust-strip div {
  border-left: 4px solid var(--cyan);
  padding: 10px 12px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.trust-strip div:nth-child(2) { border-left-color: var(--warm); }
.trust-strip div:nth-child(3) { border-left-color: var(--green); }

.trust-strip dt {
  font-weight: 900;
  color: var(--navy);
  font-size: 24px;
}

.trust-strip dd {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-media img {
  width: min(100%, 620px);
  max-height: 72vh;
  object-fit: contain;
  filter: drop-shadow(0 28px 40px rgba(7, 55, 99, 0.18));
}

.band, .portal, .ems, .contact {
  padding: clamp(46px, 7vw, 88px) clamp(16px, 5vw, 64px);
}

.alt { background: var(--soft); }

.section-heading {
  max-width: 920px;
  margin-bottom: 28px;
}

.section-heading p {
  color: var(--muted);
  line-height: 1.7;
}

.values-grid, .service-grid, .kpis, .timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.values-grid article, .service-card, .kpi-card, .timeline article, .deployment-note, .form-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.values-grid article, .service-card, .timeline article {
  position: relative;
  overflow: hidden;
}

.values-grid article::before, .service-card::before, .timeline article::before {
  content: "";
  display: block;
  height: 5px;
  margin: -20px -20px 16px;
  background: linear-gradient(90deg, var(--cyan), var(--yellow), var(--warm));
}

.service-card:nth-child(2n)::before { background: linear-gradient(90deg, var(--green), var(--cyan)); }
.service-card:nth-child(3n)::before { background: linear-gradient(90deg, var(--warm), var(--violet)); }

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.filter-pill {
  border: 1px solid var(--line);
  color: var(--navy);
  background: var(--white);
  padding: 10px 14px;
}

.filter-pill.active {
  color: var(--white);
  background: linear-gradient(90deg, var(--navy), var(--cyan));
}

.service-card p, .values-grid p, .timeline p {
  color: var(--muted);
  line-height: 1.55;
}

.service-card ul {
  padding-left: 18px;
  color: var(--muted);
}

.portal {
  background:
    linear-gradient(180deg, #ffffff, color-mix(in srgb, var(--soft) 80%, white)),
    linear-gradient(90deg, var(--yellow), var(--cyan));
}

.form-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label span {
  display: block;
  color: var(--navy);
  font-weight: 800;
  margin-bottom: 7px;
}

.wide { grid-column: 1 / -1; }

.ems { background: #f8fbfd; }

.dashboard {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
}

.module-list {
  display: grid;
  gap: 10px;
  align-content: start;
}

.module-button {
  text-align: left;
  width: 100%;
  justify-content: flex-start;
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--line);
}

.module-button.active {
  background: var(--navy);
  color: var(--white);
}

.dashboard-main {
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.module-detail {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--soft), #ffffff);
}

.module-detail p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 10px;
}

.module-detail strong {
  color: var(--navy);
}

.kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kpi-card strong {
  display: block;
  color: var(--navy);
  font-size: 28px;
}

.kpi-card:nth-child(1) { border-top: 5px solid var(--cyan); }
.kpi-card:nth-child(2) { border-top: 5px solid var(--warm); }
.kpi-card:nth-child(3) { border-top: 5px solid var(--yellow); }
.kpi-card:nth-child(4) { border-top: 5px solid var(--green); }

.kpi-card span {
  color: var(--muted);
  font-size: 13px;
}

.toolbar input, .toolbar select {
  width: auto;
  min-width: 190px;
}

.data-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th, td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--navy);
  background: var(--soft);
}

.timeline {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.timeline strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--navy);
  background: var(--yellow);
  margin-bottom: 12px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 24px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--navy) 95%, black), color-mix(in srgb, var(--cyan) 35%, var(--navy))),
    var(--navy);
  color: var(--white);
}

.contact h2, .contact h3, .contact .eyebrow { color: var(--white); }
.contact a { color: var(--yellow); }

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px clamp(16px, 5vw, 64px);
  color: var(--white);
  background: linear-gradient(90deg, #052943, var(--navy));
}

.translate-panel {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: 340px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: var(--shadow);
  z-index: 30;
}

[dir="rtl"] body { direction: rtl; }
[dir="rtl"] .brand, [dir="rtl"] .hero-actions, [dir="rtl"] .toolbar { flex-direction: row-reverse; }

@media (max-width: 1000px) {
  .topbar { align-items: flex-start; flex-wrap: wrap; }
  .nav { order: 3; width: 100%; overflow-x: auto; padding-bottom: 4px; }
  .hero, .dashboard, .contact { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .values-grid, .service-grid, .timeline, .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .brand { min-width: 0; }
  .brand img { width: 46px; height: 46px; }
  .language-tools { width: 100%; }
  .language-tools select, .language-tools button { flex: 1; }
  .values-grid, .service-grid, .timeline, .kpis, .form-panel, .trust-strip { grid-template-columns: 1fr; }
  h1 { font-size: 40px; }
  footer { flex-direction: column; }
  .toolbar input, .toolbar select { width: 100%; }
}
