:root {
  --ink: #1A1A1C;
  --ink-2: #49494C;
  --paper: #F4F7FB;
  --white: #FFFFFF;
  --blue: #215FA7;
  --blue-mid: #548DCA;
  --blue-light: #76ABDC;
  --deep: #123C6B;
  --line: #D3DCE6;
  --muted: #6B6B70;
  --display: "Archivo", system-ui, sans-serif;
  --body: "Archivo", system-ui, sans-serif;
  --wrap: 1160px;
}
html[lang="ar"] {
  --display: "Readex Pro", system-ui, sans-serif;
  --body: "Readex Pro", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.12; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
@media (max-width: 600px) { .wrap { padding-inline: 16px; } }

.skip { position: absolute; inset-inline-start: 12px; top: -48px; background: var(--ink); color: var(--white); padding: 8px 12px; z-index: 20; }
.skip:focus { top: 12px; }

/* Header */
.bar { position: sticky; top: 0; z-index: 10; background: rgba(244,247,251,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar-in { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.brand { display: flex; align-items: center; }
.brand img { height: 62px; width: auto; }
@media (max-width: 600px) { .brand img { height: 46px; } }
.nav { display: flex; gap: 28px; margin-inline-start: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: .96rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--blue-mid); }
.lang { font: 600 .95rem "Readex Pro", system-ui, sans-serif; background: transparent; color: var(--blue); border: 1.5px solid var(--blue); border-radius: 999px; padding: 6px 16px; cursor: pointer; }
.lang:hover { background: var(--blue); color: var(--white); }
@media (max-width: 860px) {
  .nav { display: none; }
  .lang { margin-inline-start: auto; }
}

/* Hero */
.hero { padding-block: 72px 88px; }
.hero-in { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.9rem);
  font-weight: 760;
  letter-spacing: -.015em;
  font-variation-settings: "wdth" 88;
  max-width: 15ch;
}
html[lang="ar"] .hero h1 { letter-spacing: 0; line-height: 1.3; font-weight: 650; max-width: 16ch; }
.lede { margin-top: 24px; font-size: 1.2rem; color: var(--ink-2); max-width: 44ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn { display: inline-flex; align-items: center; min-height: 50px; padding: 0 24px; border-radius: 6px; font-weight: 600; text-decoration: none; font-size: 1rem; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--deep); }
.btn-ghost { border: 1.5px solid var(--blue); color: var(--blue); }
.btn-ghost:hover { background: var(--white); }

.plan { margin: 0; background: var(--white); border: 1.5px solid var(--line); border-radius: 10px; padding: 14px; }
.plan svg { width: 100%; height: auto; }
.rooms text { font-family: var(--body); }
html[lang="ar"] .plan svg { direction: ltr; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 12px 4px 2px; font-size: .86rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 10px; }
.legend > span { display: inline-flex; align-items: center; gap: 8px; }
.k { display: inline-block; flex: none; }
.k-cable { width: 18px; height: 3px; background: var(--blue); border-radius: 2px; }
.k-ap { width: 12px; height: 12px; border-radius: 50%; background: var(--blue-mid); box-shadow: 0 0 0 3px rgba(84,141,202,.25); }
.k-cam { width: 14px; height: 12px; background: rgba(118,171,220,.6); clip-path: polygon(0 50%, 100% 0, 100% 100%); }
.k-rack { width: 12px; height: 12px; background: var(--ink-2); border-radius: 2px; }

/* The one orchestrated moment: cabling draws from the rack, then coverage appears */
.cables path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: run 1.5s cubic-bezier(.6,.05,.3,1) forwards; }
.cables path:nth-child(2) { animation-delay: .1s; }
.cables path:nth-child(3) { animation-delay: .2s; }
.cables path:nth-child(4) { animation-delay: .3s; }
.cables path:nth-child(5) { animation-delay: .35s; }
.cables path:nth-child(6) { animation-delay: .45s; }
.cables path:nth-child(7) { animation-delay: .5s; }
.cones, .wifi { opacity: 0; animation: show .6s ease-out 1.6s forwards; }
@keyframes run { to { stroke-dashoffset: 0; } }
@keyframes show { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cables path { animation: none; stroke-dashoffset: 0; }
  .cones, .wifi { animation: none; opacity: 1; }
}

@media (max-width: 920px) {
  .hero { padding-block: 40px 64px; }
  .hero-in { grid-template-columns: 1fr; gap: 40px; }
}

/* Sections */
section h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 720; letter-spacing: -.01em; font-variation-settings: "wdth" 92; }
html[lang="ar"] section h2 { letter-spacing: 0; line-height: 1.35; font-weight: 600; }
.section-lede { margin-top: 14px; color: var(--ink-2); max-width: 58ch; font-size: 1.1rem; }

.services { background: var(--white); border-block: 1px solid var(--line); padding-block: 88px; }
.svc-list { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; border-top: 3px solid var(--blue); }
.svc { display: grid; grid-template-columns: 52px 1fr; gap: 20px; padding: 32px 32px 36px 0; border-bottom: 1px solid var(--line); }
.svc:nth-child(even) { padding-inline: 32px 0; border-inline-start: 1px solid var(--line); }
.svc:nth-child(odd) { padding-inline: 0 32px; }
.ico { width: 44px; height: 44px; color: var(--blue); }
.svc h3 { font-size: 1.3rem; font-weight: 680; }
.svc p { margin-top: 10px; color: var(--ink-2); max-width: 52ch; }
.tags { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: .85rem; padding: 3px 10px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink-2); background: var(--paper); }
@media (max-width: 780px) {
  .svc-list { grid-template-columns: 1fr; }
  .svc, .svc:nth-child(even), .svc:nth-child(odd) { padding-inline: 0; border-inline-start: 0; grid-template-columns: 40px 1fr; gap: 16px; }
  .ico { width: 36px; height: 36px; }
}

.process { padding-block: 88px; }
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 19px; inset-inline: 20px 20px; height: 3px; background: var(--blue); }
.steps li { counter-increment: s; position: relative; padding-inline-end: 24px; }
.steps li::before {
  content: counter(s);
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--blue);
  font-family: var(--display); font-weight: 700; position: relative;
}
.steps h3 { margin-top: 20px; font-size: 1.15rem; font-weight: 680; }
.steps p { margin-top: 8px; color: var(--ink-2); font-size: 1rem; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { top: 20px; bottom: 20px; inset-inline: 18.5px auto; width: 3px; height: auto; }
  .steps li { padding-inline-start: 60px; padding-inline-end: 0; }
  .steps li::before { position: absolute; inset-inline-start: 0; top: 0; }
  .steps h3 { margin-top: 6px; }
}

.work { background: var(--white); border-block: 1px solid var(--line); padding-block: 88px; }
.work-table { width: 100%; margin-top: 40px; border-collapse: collapse; font-size: 1rem; }
.work-table th { text-align: start; font-weight: 600; color: var(--muted); font-size: .9rem; padding: 0 16px 12px 0; border-bottom: 3px solid var(--blue); }
.work-table td { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.work-table td:first-child { font-weight: 600; }
.work-table td:last-child, .work-table th:last-child { color: var(--muted); }
html[lang="ar"] .work-table th, html[lang="ar"] .work-table td { padding-inline: 0 16px; }
@media (max-width: 640px) {
  .work-table thead { display: none; }
  .work-table tr { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .work-table td { display: block; border: 0; padding: 0; }
  .work-table td + td { margin-top: 2px; }
}

.contact { background: var(--deep); color: var(--white); padding-block: 88px; }
.contact-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.contact .section-lede { color: #CFE0F2; }
.contact-list { margin: 0; display: grid; gap: 0; border-top: 3px solid var(--blue-light); }
.contact-list > div { padding: 18px 0; border-bottom: 1px solid #2E5585; }
.contact-list dt { font-size: .88rem; color: #A9C8E8; }
.contact-list dd { margin: 4px 0 0; font-size: 1.2rem; font-weight: 600; }
.contact-list a { text-decoration: none; border-bottom: 2px solid var(--blue-light); }
.contact-list a:hover { color: var(--blue-light); }
.contact :focus-visible, .foot :focus-visible { outline-color: var(--blue-light); }
@media (max-width: 860px) { .contact-in { grid-template-columns: 1fr; gap: 32px; } }

.foot { background: var(--deep); color: #A9C8E8; border-top: 1px solid #2E5585; font-size: .9rem; }
.foot-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 24px; }
.foot a { color: #CFE0F2; }
