/* Tekno IT Solutions website
   Theme: royal navy with red accents on white and light tints. */

:root {
  --navy-900: #071739;
  --navy-800: #0b2352;
  --navy-700: #12306e;
  --royal: #1a47a8;
  --red: #c8102e;
  --red-dark: #a50d26;
  --red-tint: #fdf2f4;
  --ink: #0f1b34;
  --text: #33405c;
  --muted: #64708b;
  --line: #e2e7f1;
  --soft: #f5f7fb;
  --white: #fff;

  --serif: 'Fraunces', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  /* Side margins are 5% of the screen each, down to 18px on a phone */
  --wrap: 1800px;
  --gutter: max(18px, 5vw);
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(11, 35, 82, .06), 0 4px 14px rgba(11, 35, 82, .05);
  --shadow-lg: 0 24px 60px -20px rgba(11, 35, 82, .28), 0 8px 20px -8px rgba(11, 35, 82, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  /* The heading font joins "ft", "fi" and "ff" into one shape, which reads as a misprint, so letters stay separate */
  font-variant-ligatures: no-common-ligatures;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, blockquote { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.ico { width: 1.25em; height: 1.25em; flex: none; }
.muted { color: var(--muted); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy-800); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* ---------- Type ---------- */

h1, h2, .h2 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--navy-800);
  letter-spacing: -.015em;
  line-height: 1.12;
}
h1 { font-size: clamp(2.2rem, 4.6vw + .4rem, 4rem); }
h2, .h2 { font-size: clamp(1.7rem, 2.4vw + .8rem, 2.75rem); }
h3 { font-size: 1.12rem; font-weight: 600; color: var(--ink); line-height: 1.35; }
h1 em { font-style: italic; color: var(--red); font-weight: 400; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .76rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: currentColor; }
.lead { font-size: clamp(1.02rem, .5vw + .95rem, 1.2rem); color: var(--text); max-width: 56ch; }

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px;
  border: 1.5px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: .95rem; line-height: 1.2;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 20px -8px rgba(200, 16, 46, .6); }
.btn-red:hover { background: var(--red-dark); }
.btn-line { border-color: var(--navy-800); color: var(--navy-800); }
.btn-line:hover { background: var(--navy-800); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy-800); border-color: #fff; }
.btn[disabled] { opacity: .6; cursor: default; transform: none; }

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: .93rem; color: var(--red);
}
.text-link .ico { transition: transform .2s; }
.text-link:hover .ico, a:hover > .text-link .ico { transform: translateX(4px); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 4px 12px; border-radius: 999px;
  font-size: .76rem; font-weight: 600; letter-spacing: .02em;
  color: var(--navy-700); background: #eaf0fb;
}

/* ---------- Top bar and header ---------- */

.topbar { background: var(--navy-900); color: rgba(255, 255, 255, .78); font-size: .78rem; letter-spacing: .04em; border-bottom: 2px solid var(--red); }
.topbar-in { display: flex; justify-content: space-between; gap: 16px; padding-block: 8px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: 0 6px 24px -12px rgba(11, 35, 82, .35); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand img { height: 66px; width: auto; }

.nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px); }
.nav a:not(.btn) {
  position: relative; padding-block: 8px;
  font-size: .93rem; font-weight: 500; color: var(--ink);
}
.nav a:not(.btn)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav a:not(.btn):hover::after, .nav a.active::after { transform: scaleX(1); }
.nav-cta { padding: 10px 20px; font-size: .88rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 11px 10px;
  background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy-800); border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* EN / AR language switch (added by main.js for GCC visitors only) */
.lang-switch { flex: none; display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.lang-switch button {
  min-width: 38px; padding: 6px 10px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font-family: var(--sans); font-size: .76rem; font-weight: 600; letter-spacing: .06em; color: var(--muted);
  transition: background-color .2s, color .2s;
}
.lang-switch button:hover { color: var(--navy-800); }
.lang-switch button[aria-pressed="true"] { background: var(--navy-800); color: #fff; }
.has-lang .header-in > .nav { margin-inline-start: auto; }
.nav a { white-space: nowrap; }
/* Small laptops: a slightly smaller logo and tighter menu make room for the switch */
@media (min-width: 961px) and (max-width: 1180px) {
  .has-lang .brand img { height: 54px; }
  .has-lang .nav { gap: 16px; }
  .has-lang .nav-cta { padding: 9px 14px; }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(64px, 8vw, 112px); }
.section-soft { background: var(--soft); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head p:not(.eyebrow) { margin-top: 16px; font-size: 1.06rem; color: var(--muted); }

.on-navy {
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(26, 71, 168, .55), transparent 70%),
    linear-gradient(160deg, var(--navy-800), var(--navy-900));
  color: rgba(255, 255, 255, .8);
}
.on-navy h1, .on-navy h2, .on-navy h3, .on-navy h4 { color: #fff; }
.on-navy .eyebrow { color: #ff8fa0; }
.on-navy .section-head p:not(.eyebrow), .on-navy .lead { color: rgba(255, 255, 255, .76); }
.on-navy .text-link { color: #ffb3bf; }
.on-navy .chip { background: rgba(255, 255, 255, .12); color: #fff; }

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 380px at 96% 8%, var(--red-tint), transparent 70%),
    radial-gradient(800px 460px at -6% 100%, #eaf0fb, transparent 70%),
    var(--white);
}
.hero-in {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: start;
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(24px, 2.6vw, 40px) clamp(44px, 5vw, 72px);
}
/* The copy starts level with the top of the panel beside it (the panel sits 58px down, under its small card) */
.hero-copy { padding-top: 62px; }
.hero h1 { margin-bottom: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; font-size: .9rem; color: var(--muted); }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points .ico { color: var(--red); }

.hero-visual { position: relative; padding: 58px 18px 36px; }
.hero-visual .pv-foot { margin-top: auto; text-align: end; }

/* The hero's previews share one grid cell. The change from one product to the next is
   instant, with no fade or movement: the user asked for the box to refill quietly. */
#hero-preview { display: grid; }
#hero-preview .preview { grid-area: 1 / 1; display: flex; flex-direction: column; visibility: hidden; }
#hero-preview .preview.is-active { visibility: visible; }
#hero-preview .pv-body { flex: 1; display: flex; flex-direction: column; }
#hero-preview .pv-rows-title { margin-top: 2px; }
.pv-pager { grid-area: 2 / 1; display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.pv-pager i { width: 8px; height: 8px; border-radius: 8px; background: #cdd6e8; }
.pv-pager i.is-active { width: 26px; background: var(--red); }
.float-card {
  position: absolute; z-index: 2;
  display: grid; gap: 2px;
  padding: 14px 18px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  font-size: .8rem;
}
.float-card[hidden], .float-card:empty { display: none; }
.float-card strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--navy-800); }
.float-label { font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.float-sub { color: var(--muted); }
.float-a { top: 0; right: 0; }
.float-b { bottom: 0; left: 0; }

/* Product "screen" illustration */
.preview { border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); color: var(--text); }
.pv-bar-top { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--navy-800); color: rgba(255, 255, 255, .85); font-size: .78rem; font-weight: 500; }
.pv-dots { display: flex; gap: 6px; }
.pv-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .3); }
.pv-dots i:first-child { background: var(--red); }
.pv-app { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-body { padding: 20px; }
.pv-title { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--navy-800); }
.pv-title .ico { color: var(--red); }
.pv-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-block: 16px 18px; }
.pv-kpi { padding: 12px 14px; border-radius: 10px; background: var(--soft); border: 1px solid var(--line); }
.pv-kpi span { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pv-kpi strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--navy-800); font-variant-numeric: tabular-nums; }
.pv-rows-title { font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.pv-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding-block: 7px; font-size: .86rem; }
.pv-row-plain { border-bottom: 1px dashed var(--line); }
.pv-row-value { font-weight: 600; color: var(--navy-800); font-variant-numeric: tabular-nums; }
.pv-bar { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: #e9eef8; overflow: hidden; }
.pv-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--navy-700), var(--royal)); }
.pv-bar i.is-red { background: linear-gradient(90deg, var(--red-dark), var(--red)); }
.pv-foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
.pv-caption { margin-top: 12px; text-align: center; font-size: .74rem; color: rgba(255, 255, 255, .55); }

/* ---------- Figures band ---------- */

.figures-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.figure { padding: 34px 26px; border-inline-start: 1px solid rgba(255, 255, 255, .14); }
.figure:first-child { border-inline-start: 0; padding-inline-start: 0; }
.figure strong { display: block; font-family: var(--serif); font-size: clamp(2rem, 2.6vw + 1rem, 3rem); font-weight: 500; color: #fff; line-height: 1.1; }
.figure span { display: block; margin-top: 8px; font-size: .88rem; max-width: 24ch; }

/* ---------- Product cards ---------- */

.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2.2vw, 28px); }
.product-card {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(24px, 2.6vw, 36px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.product-card::before {
  content: ''; position: absolute; inset: -1px -1px auto; height: 4px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--navy-800) 0 65%, var(--red) 65%);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #cfd8ea; }
.pc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.pc-ico {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px;
  background: var(--navy-800); color: #fff; font-size: 1.35rem;
}
.pc-no { font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: #dfe5f1; }
.pc-industry { font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.product-card h3 { font-family: var(--serif); font-size: clamp(1.35rem, 1vw + 1rem, 1.7rem); font-weight: 500; color: var(--navy-800); }
.product-card h3 a::after { content: ''; position: absolute; inset: 0; }
.pc-tagline { margin-top: 8px; color: var(--muted); }
.ticks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; margin-block: 22px 26px; font-size: .92rem; }
.ticks li, .comp-list li, .about-list li { display: flex; align-items: flex-start; gap: 10px; }
.ticks .ico, .comp-list .ico, .about-list .ico { color: var(--red); margin-top: .22em; }
.pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }

/* ---------- Why Tekno ---------- */

.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 26px); }
.why-card { padding: 30px 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.why-ico {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px;
  border-radius: 50%; background: var(--red-tint); color: var(--red); font-size: 1.2rem;
}
.why-card p { margin-top: 10px; font-size: .95rem; color: var(--muted); }

/* ---------- Analytics and reports ---------- */

/* On the home page the block sits inside "Our solutions", under the product cards */
.an-block { margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.an-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.an-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border: 1.5px solid var(--line); border-radius: 999px;
  background: #fff; font-weight: 600; font-size: .9rem; color: var(--ink); cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.an-tab:hover { border-color: var(--navy-800); }
.an-tab[aria-selected="true"] { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

.an-panel { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(24px, 3.5vw, 56px); align-items: start; }
.an-panel[hidden] { display: none; }
/* The chart tooltips rise above the frame, so this preview does not clip */
.an-screen { overflow: visible; }
.an-screen .pv-bar-top { border-radius: 15px 15px 0 0; }
.an-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-block: 16px 14px; }
.an-kpis small { display: block; font-size: .72rem; color: var(--muted); }
.an-charts { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.an-chart { margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 10px; }
.an-chart-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 14px; }
.an-chart-head .pv-rows-title { margin: 0; }
.an-legend { display: flex; gap: 14px; font-size: .74rem; color: var(--muted); }
.an-legend span { display: inline-flex; align-items: center; gap: 6px; }
.an-legend i, .an-tip i { width: 9px; height: 9px; border-radius: 3px; background: var(--royal); }
.an-legend i.is-red, .an-tip i.is-red { background: var(--red); }

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

/* Chart over time: one grid column for each period, with the marks standing on a shared baseline */
.an-cols { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.an-col { position: relative; border-radius: 6px; cursor: default; }
.an-col:focus-visible { outline-offset: 0; }
.an-bars {
  display: flex; align-items: flex-end; justify-content: center; gap: 2px;
  height: 150px; padding-inline: 12%;
  border-bottom: 1px solid #cdd6e8;
  background: linear-gradient(#eef1f7, #eef1f7) 0 0 / 100% 1px no-repeat,
    linear-gradient(#eef1f7, #eef1f7) 0 25% / 100% 1px no-repeat,
    linear-gradient(#eef1f7, #eef1f7) 0 50% / 100% 1px no-repeat,
    linear-gradient(#eef1f7, #eef1f7) 0 75% / 100% 1px no-repeat;
}
.an-bars i { flex: 1 1 0; max-width: 20px; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--royal); }
.an-bars i.is-red { background: var(--red); }
.an-col:hover .an-bars, .an-col:focus-visible .an-bars { background-color: var(--soft); }
.an-col-label { display: block; margin-top: 8px; text-align: center; font-size: .7rem; color: var(--muted); }
.an-tip {
  position: absolute; z-index: 3; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  display: grid; gap: 2px; padding: 8px 12px; border-radius: 8px;
  background: var(--navy-900); color: #fff; font-size: .74rem; line-height: 1.4; white-space: nowrap;
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; pointer-events: none;
}
.an-tip b { font-weight: 600; }
.an-tip span { display: flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .85); }
.an-col:hover .an-tip, .an-col:focus-visible .an-tip { opacity: 1; visibility: visible; }
.an-col:first-of-type .an-tip { left: 0; transform: none; }
.an-col:last-of-type .an-tip { left: auto; right: 0; transform: none; }

/* Stacked bars: the series pile up from the baseline, and only the top one is rounded */
.an-bars.is-stack { flex-direction: column-reverse; align-items: center; justify-content: flex-start; }
.an-bars.is-stack i { flex: none; width: 100%; max-width: 28px; border-radius: 0; }
.an-bars.is-stack i:last-child { border-radius: 4px 4px 0 0; }

/* Line and area: the SVG is stretched over the plot, and each period's dot is placed in its own column */
.an-bars.is-line { position: relative; padding-inline: 0; }
.an-lines { position: absolute; z-index: 1; top: 0; left: 0; width: 100%; height: 150px; max-width: none; overflow: visible; pointer-events: none; }
.an-line { fill: none; stroke: var(--royal); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.an-line.is-red { stroke: var(--red); }
.an-area { fill: var(--royal); opacity: .12; }
.an-area.is-red { fill: var(--red); }
.an-dot {
  position: absolute; z-index: 2; left: 50%; width: 10px; height: 10px; margin: 0 0 -5px -5px;
  border-radius: 50%; background: var(--royal); border: 2px solid #fff;
}
.an-dot.is-red { background: var(--red); }

/* Pie and ring. The four colours were checked for colour-blind separation; the key carries names and values */
.an-share { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 20px; }
.an-pie { position: relative; flex: none; width: 136px; }
.an-pie svg { width: 100%; height: auto; }
.an-pie path { fill: var(--c); stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; transition: opacity .2s; }
.an-pie path:hover { opacity: .8; }
.an-pie-centre { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.15; pointer-events: none; }
.an-pie-centre strong { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--navy-800); }
.an-pie-centre small { font-size: .68rem; color: var(--muted); }
.an-key { flex: 1 1 130px; display: grid; gap: 8px; font-size: .84rem; }
.an-key li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; }
.an-key i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.an-key b { font-weight: 600; color: var(--navy-800); font-variant-numeric: tabular-nums; }
.s0 { --c: var(--royal); }
.s1 { --c: var(--red); }
.s2 { --c: #4f9fd8; }
.s3 { --c: #d98a1e; }

.an-side h3 { font-family: var(--serif); font-size: clamp(1.3rem, 1vw + 1rem, 1.6rem); font-weight: 500; color: var(--navy-800); }
.an-side > p { margin-top: 10px; color: var(--muted); }
.an-side .ticks { margin-block: 22px; }
.an-side .chips { margin-bottom: 24px; }
.an-note { margin-top: 20px; font-size: .8rem; color: var(--muted); }

/* ---------- Industries ---------- */

.industry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 22px); }
.industry-card {
  display: flex; flex-direction: column;
  padding: 28px 24px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  transition: background-color .3s, border-color .3s, transform .3s;
}
.industry-card:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); transform: translateY(-3px); }
.ind-ico { font-size: 1.7rem; color: #ff8fa0; margin-bottom: 18px; }
.industry-card p { margin-block: 10px 20px; font-size: .93rem; }
.industry-card .text-link { margin-top: auto; }

/* ---------- Approach ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.4vw, 36px); counter-reset: step; }
.step { position: relative; padding-top: 26px; border-top: 2px solid var(--line); }
.step::before { content: ''; position: absolute; top: -2px; left: 0; width: 56px; height: 2px; background: var(--red); }
.step-no { display: block; font-family: var(--serif); font-size: 2.2rem; line-height: 1; color: var(--navy-800); margin-bottom: 14px; }
.step p { margin-top: 8px; font-size: .95rem; color: var(--muted); }

/* ---------- About ---------- */

.about-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.about-copy p:not(.eyebrow) { margin-top: 18px; max-width: 60ch; }
.about-copy .text-link { margin-top: 26px; }
.about-card {
  position: relative; padding: clamp(28px, 3vw, 44px);
  background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg);
}
.about-card::after { content: ''; position: absolute; inset: auto 28px -1px; height: 4px; border-radius: 4px 4px 0 0; background: var(--red); }
.about-card img { width: 72px; margin-bottom: 22px; }
.about-card blockquote { font-family: var(--serif); font-size: clamp(1.25rem, 1vw + 1rem, 1.6rem); line-height: 1.35; color: var(--navy-800); }
.about-list { display: grid; gap: 10px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .95rem; }

/* ---------- Contact ---------- */

.contact-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.contact-panel { padding: clamp(28px, 4vw, 56px); }
.contact-panel p:not(.eyebrow) { margin-top: 16px; }
.contact-list { display: grid; gap: 18px; margin-top: 30px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ico { font-size: 1.15rem; color: #ff8fa0; margin-top: .2em; }
.contact-list small { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.contact-list a:hover { text-decoration: underline; }

.contact-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 20px; padding: clamp(28px, 4vw, 56px); background: #fff; }
.field { display: grid; gap: 7px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  background: var(--soft); border: 1px solid var(--line); border-radius: 10px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--royal); box-shadow: 0 0 0 4px rgba(26, 71, 168, .12); }
.field .is-invalid { border-color: var(--red); box-shadow: 0 0 0 4px rgba(200, 16, 46, .1); }
.form-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; }
.form-note { flex: 1 1 220px; font-size: .88rem; color: var(--muted); }
.form-note.is-ok { color: #12703f; }
.form-note.is-error { color: var(--red-dark); }

/* ---------- Footer ---------- */

.site-footer { padding-top: clamp(48px, 6vw, 80px); font-size: .92rem; }
.footer-in { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); padding-bottom: 44px; }
.footer-brand img { height: 84px; width: auto; padding: 10px 16px; background: #fff; border-radius: 12px; box-sizing: content-box; }
.footer-brand p { margin-top: 18px; max-width: 34ch; }
.footer-col h4 { font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col li + li { margin-top: 10px; }
.footer-col a:hover, .footer-base a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .82rem; }

/* ---------- Product page ---------- */

.p-hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(36px, 4.5vw, 64px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .82rem; margin-bottom: 26px; color: rgba(255, 255, 255, .6); }
.crumbs a:hover { color: #fff; }
.p-hero h1 { font-size: clamp(2rem, 3.4vw + .6rem, 3.4rem); }
.p-tagline { margin-block: 14px 18px; font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, .8vw + 1rem, 1.4rem); color: #ffc2cb; }
.p-hero .chips { margin-top: 24px; }

.p-stats { border-bottom: 1px solid var(--line); background: #fff; }
.p-stats-in { display: grid; grid-template-columns: repeat(3, 1fr); }
.p-stat { padding: 30px 24px; text-align: center; border-inline-start: 1px solid var(--line); }
.p-stat:first-child { border-inline-start: 0; }
.p-stat strong { display: block; font-family: var(--serif); font-size: clamp(1.7rem, 2vw + 1rem, 2.6rem); font-weight: 500; color: var(--navy-800); line-height: 1.15; }
.p-stat span { font-size: .86rem; color: var(--muted); }

.hl-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(24px, 4vw, 64px); }
.hl-list li { display: flex; gap: 20px; padding-block: 22px; border-top: 1px solid var(--line); }
.hl-no { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; color: var(--red); min-width: 2ch; }

.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.module-card { padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-inline-start: 3px solid var(--navy-800); border-radius: 10px; transition: border-color .25s, box-shadow .25s; }
.module-card:hover { border-inline-start-color: var(--red); box-shadow: var(--shadow-sm); }
.module-card p { margin-top: 6px; font-size: .92rem; color: var(--muted); }

.comp-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.comp-in .muted { margin-top: 16px; }
.comp-list { display: grid; gap: 12px; }
.comp-list li { padding: 16px 20px; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; }

.cta-in { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding-block: clamp(40px, 5vw, 64px); }
.cta-in p { margin-top: 8px; }

.other-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.other-card { display: flex; flex-direction: column; gap: 10px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .3s, box-shadow .3s; }
.other-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.other-card h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; color: var(--navy-800); margin-top: 8px; }
.other-card p { color: var(--muted); font-size: .95rem; }
.other-card .text-link { margin-top: auto; padding-top: 8px; }

/* ---------- Scroll reveal (only when JavaScript is running) ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .industry-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .an-panel { grid-template-columns: minmax(0, 1fr); }
  .footer-in { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  html { scroll-padding-top: 76px; }
  .header-in { min-height: 66px; }
  .brand img { height: 50px; }
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 22px;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -20px rgba(11, 35, 82, .35);
    max-height: calc(100vh - 66px); overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding-block: 15px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav a.active { color: var(--red); }
  .nav-cta { margin-top: 18px; padding: 14px 20px; }
  /* Logo, then the language switch, then the menu button */
  .has-lang .header-in { gap: 12px; }
  .has-lang .header-in > .lang-switch { order: 2; margin-inline-start: auto; }
  .has-lang .nav-toggle { order: 3; }

  .hero-in, .p-hero-in, .about-in, .comp-in, .contact-in { grid-template-columns: minmax(0, 1fr); }
  .hero-visual, .p-hero-visual { max-width: 520px; width: 100%; margin-inline: auto; }
  .hero-copy { padding-top: 16px; }
  .figures-in { grid-template-columns: repeat(2, 1fr); }
  .figure { padding: 26px 20px; }
  .figure:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
  .figure:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, .14); }
  .hl-list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .topbar-right { display: none; }
  .topbar-in { justify-content: center; }
  .product-grid, .why-grid, .an-charts { grid-template-columns: minmax(0, 1fr); }
  .an-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-in { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .industry-grid, .steps, .contact-form, .ticks { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn, .form-foot .btn, .cta-in .btn { width: 100%; }
  .hero-visual { padding-inline: 0; }
  .pv-pager { justify-content: flex-end; padding-inline-end: 12px; }
  .float-a { right: 8px; }
  .float-b { left: 8px; }
  [dir="rtl"] .float-a { left: 8px; right: auto; }
  [dir="rtl"] .float-b { right: 8px; left: auto; }
  .has-lang .brand img { height: 42px; }
  .lang-switch button { min-width: 32px; padding: 5px 8px; }
  .p-stats-in { grid-template-columns: minmax(0, 1fr); }
  .p-stat { padding: 20px; border-inline-start: 0; border-top: 1px solid var(--line); }
  .p-stat:first-child { border-top: 0; }
  .pc-foot { flex-direction: column; align-items: flex-start; }
  .footer-in { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Arabic, right to left ---------- */

:root[lang="ar"] {
  --serif: 'Amiri', 'Fraunces', Georgia, serif;
  --sans: 'IBM Plex Sans Arabic', 'Inter', system-ui, 'Segoe UI', Arial, sans-serif;
}
:root[lang="ar"] body { line-height: 1.85; }
/* Letter-spacing and italics break up joined Arabic script */
:root[lang="ar"] body * { letter-spacing: 0 !important; }
:root[lang="ar"] em, :root[lang="ar"] .p-tagline { font-style: normal; }
:root[lang="ar"] h1, :root[lang="ar"] h2, :root[lang="ar"] .h2 { font-weight: 700; line-height: 1.45; }
:root[lang="ar"] .product-card h3, :root[lang="ar"] .an-side h3, :root[lang="ar"] .other-card h3,
:root[lang="ar"] .pv-title, :root[lang="ar"] .about-card blockquote { font-weight: 700; }
:root[lang="ar"] .eyebrow, :root[lang="ar"] .pc-industry, :root[lang="ar"] .float-label { font-size: .84rem; }
:root[lang="ar"] .pv-kpi span, :root[lang="ar"] .pv-rows-title, :root[lang="ar"] .contact-list small,
:root[lang="ar"] .footer-col h4 { font-size: .8rem; }

[dir="rtl"] .skip-link { left: auto; right: 12px; }
[dir="rtl"] .nav a:not(.btn)::after { transform-origin: right; }
[dir="rtl"] .text-link .ico { transform: scaleX(-1); }
[dir="rtl"] .text-link:hover .ico, [dir="rtl"] a:hover > .text-link .ico { transform: scaleX(-1) translateX(4px); }
[dir="rtl"] .step::before { left: auto; right: 0; }
[dir="rtl"] .float-a { right: auto; left: 0; }
[dir="rtl"] .float-b { left: auto; right: 0; }
[dir="rtl"] .product-card::before { background: linear-gradient(270deg, var(--navy-800) 0 65%, var(--red) 65%); }
[dir="rtl"] input[type="email"], [dir="rtl"] input[type="tel"] { direction: ltr; text-align: right; }
/* Time runs left to right in the charts (the lines are drawn that way); their labels stay Arabic */
.an-cols { direction: ltr; }
[dir="rtl"] .an-tip, [dir="rtl"] .an-col-label { direction: rtl; }
[dir="rtl"] .an-col:first-of-type .an-tip { right: auto; }
[dir="rtl"] .an-col:last-of-type .an-tip { left: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .topbar, .site-header, .nav-toggle, .contact-form, .hero-actions { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}
