/* FuelNex service pages. Base rules are copied from public/index.html; keep them in sync if the home page styles change. */
[hidden]{display:none!important}
/* Brand fonts from the FuelNex brand kit (03_Fonts/Web) */
@font-face{font-family:"Archivo";src:url(/fonts/archivo.6042069c.woff2) format("woff2");font-weight:100 900;font-stretch:62% 125%;font-display:swap}
@font-face{font-family:"Readex Pro";src:url(/fonts/readex-pro.544232c4.woff2) format("woff2");font-weight:160 700;font-display:swap}
@font-face{font-family:"IBM Plex Mono";src:url(/fonts/ibm-plex-mono-400.0a45aad5.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"IBM Plex Mono";src:url(/fonts/ibm-plex-mono-500.148f5b69.woff2) format("woff2");font-weight:500;font-display:swap}
/* Layout: crude hero band with flow-line supergraphic, then sand sections separated by colour blocks and hairlines; near-square corners. Tokens from the FuelNex design system. */
:root {
  --surface:#f5f2ec; --surface-raised:#ffffff; --line:#d9d3c8; --line-strong:#7d898d;
  --ink:#0f1c22; --ink-muted:#566469; --crude:#0f1c22; --on-crude:#f5f2ec; --on-crude-muted:#b9c3c5;
  --flare:#f26b1d; --on-flare:#0f1c22; --flare-text:#b5470a; --flare-soft:#fde6d5;
  --petrol:#0b6b66; --petrol-soft:#dcefec; --danger:#b42318; --danger-soft:#fbe4e1;
  --flare-on-crude:#ff8a3d; --petrol-on-crude:#46c2b4;
  --focus-ring:0 0 0 2px #f5f2ec, 0 0 0 4px #0b6b66;
  --font-sans:"Archivo","Readex Pro",system-ui,sans-serif;
  --font-ar:"Readex Pro","Archivo",system-ui,sans-serif;
  --font-mono:"IBM Plex Mono",ui-monospace,Menlo,monospace;
  --r-sm:2px; --r-md:4px; --r-lg:8px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --surface:#0b1418; --surface-raised:#13212a; --line:#2a3a42; --line-strong:#6b7d85;
  --ink:#eef1ef; --ink-muted:#a3b0b4; --crude:#183039; --on-crude:#eef1ef; --on-crude-muted:#b3c0c3;
  --flare:#ff8a3d; --on-flare:#0f1c22; --flare-text:#ff9a57; --flare-soft:#3a1d0a;
  --petrol:#46c2b4; --petrol-soft:#0f2f2e; --danger:#ff6b5e; --danger-soft:#3a1311;
  --focus-ring:0 0 0 2px #0b1418, 0 0 0 4px #46c2b4; color-scheme:dark; } }
:root[data-theme="dark"] {
  --surface:#0b1418; --surface-raised:#13212a; --line:#2a3a42; --line-strong:#6b7d85;
  --ink:#eef1ef; --ink-muted:#a3b0b4; --crude:#183039; --on-crude:#eef1ef; --on-crude-muted:#b3c0c3;
  --flare:#ff8a3d; --on-flare:#0f1c22; --flare-text:#ff9a57; --flare-soft:#3a1d0a;
  --petrol:#46c2b4; --petrol-soft:#0f2f2e; --danger:#ff6b5e; --danger-soft:#3a1311;
  --focus-ring:0 0 0 2px #0b1418, 0 0 0 4px #46c2b4; color-scheme:dark; }

* { box-sizing:border-box; }
body { margin:0; background:var(--surface); color:var(--ink); font:400 16px/24px var(--font-sans); -webkit-font-smoothing:antialiased; }
html[lang="ar"] body { font-family:var(--font-ar); line-height:28px; }
body::before { content:""; position:fixed; inset:0 0 auto; height:env(safe-area-inset-top,0px); z-index:10; background:var(--surface); }
.wrap { max-width:1160px; margin:0 auto; padding-left:max(16px, env(safe-area-inset-left,0px)); padding-right:max(16px, env(safe-area-inset-right,0px)); }
h1,h2,h3 { margin:0; text-wrap:balance; }
p { margin:0; }
a { color:var(--flare-text); }
:focus-visible { outline:2px solid transparent; box-shadow:var(--focus-ring); border-radius:var(--r-sm); }

.label { font-size:12px; line-height:16px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-muted); }
html[lang="ar"] .label { letter-spacing:0; text-transform:none; font-size:13px; }
.mono { font-family:var(--font-mono); font-size:13px; line-height:20px; font-variant-numeric:tabular-nums; }

/* Header */
header { position:sticky; top:env(safe-area-inset-top,0px); z-index:9; background:var(--surface); border-bottom:1px solid var(--line); }
.bar { display:flex; align-items:center; gap:24px; min-height:68px; }
.logo { display:block; width:168px; height:auto; flex:none; --lw1:var(--ink); --lw2:var(--flare); }
nav { display:flex; gap:24px; margin-inline-start:auto; }
nav a { color:var(--ink); text-decoration:none; font-weight:600; font-size:15px; }
nav a:hover { color:var(--flare-text); }
.tools { display:flex; gap:12px; align-items:center; }
.lang { font:inherit; font-size:14px; font-weight:600; background:none; border:1px solid var(--line-strong); color:var(--ink); border-radius:var(--r-md); padding:6px 12px; cursor:pointer; }
.lang .ar-face { font-family:var(--font-ar); }

/* Buttons */
.btn { font:inherit; font-size:15px; font-weight:600; line-height:20px; padding:12px 18px; border-radius:var(--r-md); border:1px solid var(--line-strong); background:var(--surface-raised); color:var(--ink); cursor:pointer; display:inline-flex; align-items:center; gap:10px; text-decoration:none; }
.btn:hover { background:var(--surface); }
.btn-primary { background:var(--flare); border-color:var(--flare); color:var(--on-flare); }
.btn-primary:hover { background:var(--flare); filter:brightness(1.06); }
.btn-ghost-dark { background:transparent; border-color:var(--on-crude-muted); color:var(--on-crude); }
.btn-ghost-dark:hover { background:rgba(255,255,255,.06); }
.chev { width:12px; height:14px; flex:none; fill:currentColor; }
html[dir="rtl"] .chev { transform:scaleX(-1); }

/* Hero */
.hero { background:var(--crude); color:var(--on-crude); position:relative; overflow:hidden; }
.hero .wrap { position:relative; z-index:1; padding-block:72px 168px; display:grid; gap:28px; }
.hero .label { color:var(--on-crude-muted); }
.hero .display { font-weight:800; font-size:clamp(44px, 7vw, 84px); line-height:1; letter-spacing:-.02em; font-stretch:112%; }
html[lang="ar"] .hero .display { font-family:var(--font-ar); font-weight:700; letter-spacing:0; line-height:1.4; font-size:clamp(40px,6vw,68px); }
.hero .lead { max-width:58ch; font-size:18px; line-height:28px; color:var(--on-crude); }
.hero .ctas { display:flex; gap:12px; flex-wrap:wrap; }
.flow { position:absolute; inset:auto 0 0 0; width:100%; height:170px; }
.flow path { fill:none; stroke-width:8; stroke-linecap:round; }
html[dir="rtl"] .flow { transform:scaleX(-1); }
.p1 { stroke:var(--flare-on-crude); } .p2 { stroke:var(--petrol-on-crude); } .p3 { stroke:var(--on-crude); opacity:.85; }
@media (prefers-reduced-motion: no-preference) {
  .flow path { stroke-dasharray:1600; stroke-dashoffset:0; animation:run 1.6s cubic-bezier(.3,.7,.2,1) both; }
  .flow path:nth-child(2) { animation-delay:.12s; } .flow path:nth-child(3) { animation-delay:.24s; }
  @keyframes run { from { stroke-dashoffset:1600; } to { stroke-dashoffset:0; } }
}

/* Sections */
section.block { padding-block:80px; }
section.block + section.block { border-top:1px solid var(--line); }
.head { display:grid; gap:12px; margin-bottom:40px; max-width:680px; }
.head h2 { font-size:clamp(30px,4vw,40px); line-height:1.1; font-weight:800; letter-spacing:-.01em; }
html[lang="ar"] .head h2 { line-height:1.5; letter-spacing:0; font-weight:700; }
.head p { color:var(--ink-muted); font-size:17px; line-height:26px; }

/* Services */
.services { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); border-top:2px solid var(--ink); }
.svc { padding:28px 24px 32px; border-bottom:1px solid var(--line); display:grid; gap:12px; align-content:start; min-width:0; }
.svc:not(:nth-child(3n)) { border-inline-end:1px solid var(--line); }
.svc .code { font-family:var(--font-mono); font-size:12px; color:var(--flare-text); letter-spacing:.04em; font-weight:500; }
.svc h3 { font-size:20px; line-height:28px; font-weight:700; }
.svc p { color:var(--ink-muted); }
.svc h3 a { color:inherit; text-decoration:none; }
.svc h3 a:hover { color:var(--flare-text); text-decoration:underline; }
.svc .spec { font-family:var(--font-mono); font-size:12.5px; line-height:18px; color:var(--ink); padding-top:12px; border-top:1px dashed var(--line); direction:ltr; text-align:start; }
html[dir="rtl"] .svc .spec { text-align:end; }

/* Brand icons (FuelNex kit, 24px grid, 2px square-cap stroke) */
.ic { width:24px; height:24px; flex:none; color:var(--ink); }
.ic-48 { width:48px; height:48px; }
.svc-top { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
.notes li { align-items:flex-start; }
.notes .ic { color:var(--petrol); }

/* Process */
.process-band { background:var(--surface-raised); }
.steps { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(6, minmax(0,1fr)); gap:0; position:relative; }
.steps li { position:relative; padding-top:44px; padding-inline-end:20px; display:grid; gap:8px; align-content:start; min-width:0; }
.steps li::before { content:""; position:absolute; top:13px; inset-inline:0; height:6px; background:var(--flare); }
.steps li:last-child::before { inset-inline-end:auto; width:calc(100% - 20px); border-start-end-radius:9999px; border-end-end-radius:9999px; }
.steps li::after { content:""; position:absolute; top:6px; inset-inline-start:0; width:20px; height:20px; border-radius:9999px; background:var(--surface-raised); border:4px solid var(--ink); }
.steps .n { font-family:var(--font-mono); font-size:12px; color:var(--ink-muted); font-weight:500; }
.steps h3 { font-size:18px; line-height:26px; font-weight:700; }
.steps p { font-size:15px; line-height:22px; color:var(--ink-muted); }

/* Testing */
.test-grid { display:grid; grid-template-columns:minmax(0,5fr) minmax(0,7fr); gap:48px; align-items:start; }
.test-grid .head { margin-bottom:0; }
.notes { display:grid; gap:14px; margin-top:28px; padding:0; list-style:none; }
.notes li { display:flex; gap:12px; align-items:baseline; }
.record { background:var(--surface-raised); border:1px solid var(--line); border-radius:var(--r-md); overflow:hidden; }
.record-head { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; align-items:center; padding:16px 20px; background:var(--crude); color:var(--on-crude); }
.record-head .mono { color:var(--on-crude); }
.record-head .label { color:var(--on-crude-muted); }
.tablebox { overflow-x:auto; }
table { width:100%; border-collapse:collapse; min-width:520px; }
th, td { text-align:start; padding:14px 20px; border-bottom:1px solid var(--line); vertical-align:middle; }
th { font-size:12px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-muted); background:var(--surface); }
html[lang="ar"] th { letter-spacing:0; text-transform:none; font-size:13px; }
td.mono { direction:ltr; }
html[dir="rtl"] td.mono { text-align:right; unicode-bidi:plaintext; }
tr:last-child td { border-bottom:0; }
.tag { display:inline-flex; align-items:center; gap:6px; font-size:12px; line-height:16px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; padding:4px 8px; border-radius:var(--r-sm); white-space:nowrap; }
html[lang="ar"] .tag { letter-spacing:0; text-transform:none; }
.tag::before { content:""; width:6px; height:6px; border-radius:9999px; background:currentColor; }
.tag-passed { background:var(--petrol-soft); color:var(--petrol); }
.tag-progress { background:var(--flare-soft); color:var(--flare-text); }
.record-foot { padding:12px 20px; font-size:13px; line-height:20px; color:var(--ink-muted); border-top:1px solid var(--line); background:var(--surface); }

/* Clients */
.clients { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:32px; }
.client { display:grid; gap:10px; align-content:start; min-width:0; padding-top:20px; border-top:2px solid var(--ink); }
.client h3 { font-size:20px; line-height:28px; font-weight:700; }
.client p { color:var(--ink-muted); }

/* Contact */
.contact { background:var(--crude); color:var(--on-crude); position:relative; overflow:hidden; }
.contact .wrap { padding-block:80px; display:grid; grid-template-columns:minmax(0,5fr) minmax(0,7fr); gap:48px; position:relative; z-index:1; }
.contact h2 { font-size:clamp(30px,4vw,40px); line-height:1.1; font-weight:800; }
html[lang="ar"] .contact h2 { line-height:1.5; font-weight:700; }
.contact .label { color:var(--on-crude-muted); }
.contact .intro { color:var(--on-crude-muted); font-size:17px; line-height:26px; margin-top:12px; max-width:44ch; }
.details { margin-top:32px; display:grid; gap:18px; }
.details div { display:grid; gap:4px; }
.details a.val { text-decoration:none; }
.details .val { font-family:var(--font-mono); font-size:15px; color:var(--on-crude); direction:ltr; unicode-bidi:plaintext; text-align:start; }
html[dir="rtl"] .details .val { text-align:right; }
.details .todo { font-size:12px; color:var(--flare-on-crude); font-family:var(--font-sans); }
form { background:var(--surface-raised); color:var(--ink); border-radius:var(--r-md); padding:28px; display:grid; grid-template-columns:1fr 1fr; gap:18px; min-width:0; }
.field { display:grid; gap:6px; min-width:0; }
.field.full { grid-column:1 / -1; }
.field label { font-size:14px; font-weight:600; }
input, select, textarea { font:inherit; font-size:15px; color:var(--ink); background:var(--surface-raised); border:1px solid var(--line-strong); border-radius:var(--r-sm); padding:10px 12px; width:100%; }
textarea { min-height:104px; resize:vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline:2px solid transparent; box-shadow:var(--focus-ring); }
.form-foot { grid-column:1 / -1; display:flex; gap:16px; align-items:center; flex-wrap:wrap; }
.form-note { font-size:13px; line-height:20px; color:var(--ink-muted); flex:1 1 220px; }
.done { grid-column:1 / -1; background:var(--petrol-soft); color:var(--ink); border-radius:var(--r-sm); padding:12px 14px; font-size:14px; line-height:20px; }
.err { color:var(--danger); font-size:13px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.attach-label { font-size:14px; font-weight:600; }
.attach-label .opt { font-weight:400; color:var(--ink-muted); }
.drop { display:grid; justify-items:center; gap:4px; text-align:center; padding:20px 16px; border:1px dashed var(--line-strong); border-radius:var(--r-sm); cursor:pointer; color:var(--ink); transition:background-color .15s, border-color .15s; }
.drop:hover, .drop.over { background:var(--petrol-soft); border-color:var(--petrol); }
.drop:has(+ #f-files:focus-visible) { box-shadow:var(--focus-ring); }
.drop .ic { width:24px; height:24px; color:var(--petrol); }
.drop-main { font-size:14px; font-weight:600; }
.drop-hint { font-size:12px; line-height:18px; color:var(--ink-muted); }
.file-list { list-style:none; margin:0; padding:0; display:grid; gap:6px; }
.file-list:empty { display:none; }
.file-list li { display:flex; align-items:center; gap:10px; padding:8px 10px; border:1px solid var(--line); border-radius:var(--r-sm); font-size:14px; min-width:0; }
.file-list .fname { flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; direction:ltr; unicode-bidi:plaintext; text-align:start; }
.file-list .fsize { font-family:var(--font-mono); font-size:12px; color:var(--ink-muted); direction:ltr; }
.file-list button { font:inherit; font-size:13px; background:none; border:0; padding:2px 6px; color:var(--danger); cursor:pointer; border-radius:var(--r-sm); }
.file-list button:hover { text-decoration:underline; }

footer { background:var(--crude); color:var(--on-crude-muted); border-top:1px solid rgba(255,255,255,.1); }
footer .wrap { padding-block:28px; display:flex; gap:24px; justify-content:space-between; align-items:center; flex-wrap:wrap; font-size:13px; }
footer .logo { width:140px; --lw1:var(--on-crude); --lw2:var(--flare-on-crude); }
footer .mono { font-size:12px; }
footer .foot-links { display:flex; flex-direction:column; gap:4px; }
footer .foot-links a { color:inherit; text-decoration:none; }
footer .foot-links a:hover { color:var(--on-crude); text-decoration:underline; }
footer .legal { display:flex; flex-direction:column; gap:4px; }
footer .legal a { color:inherit; text-decoration:none; }
footer .legal a:hover { color:var(--on-crude); text-decoration:underline; }

@media (max-width: 960px) {
  nav { display:none; }
  .tools { margin-inline-start:auto; }
  .services { grid-template-columns:repeat(2, minmax(0,1fr)); }
  .svc:not(:nth-child(3n)) { border-inline-end:0; }
  .svc:nth-child(odd) { border-inline-end:1px solid var(--line); }
  .steps { grid-template-columns:repeat(3, minmax(0,1fr)); row-gap:36px; }
  .test-grid, .contact .wrap { grid-template-columns:1fr; }
  .clients { grid-template-columns:1fr; gap:24px; }
}
@media (max-width: 600px) {
  .logo { width:132px; }
  .tools .btn-primary { display:none; }
  .services { grid-template-columns:1fr; }
  .svc:nth-child(odd) { border-inline-end:0; }
  .svc { padding-inline:0; }
  .steps { grid-template-columns:1fr; row-gap:0; }
  .steps li { padding-top:0; padding-inline-start:40px; padding-bottom:28px; }
  .steps li::before { top:0; bottom:0; height:auto; width:6px; inset-inline-start:7px; inset-inline-end:auto; }
  .steps li:last-child::before { width:6px; bottom:auto; height:20px; border-radius:0; }
  .steps li::after { top:0; }
  form { grid-template-columns:1fr; padding:20px; }
  .hero .wrap { padding-block:48px 140px; }
  section.block { padding-block:56px; }
}

/* Service pages */
a.lang { text-decoration:none; display:inline-block; }
.page-hero .wrap { padding-block:56px 140px; gap:22px; }
.page-hero h1 { font-weight:800; font-size:clamp(34px, 5vw, 56px); line-height:1.08; letter-spacing:-.015em; font-stretch:108%; max-width:20ch; }
html[lang="ar"] .page-hero h1 { font-family:var(--font-ar); font-weight:700; letter-spacing:0; line-height:1.45; font-size:clamp(30px, 4.4vw, 48px); max-width:none; }
.crumbs { display:flex; flex-wrap:wrap; gap:6px; }
.crumbs a { color:inherit; text-decoration:none; }
.crumbs a:hover { color:var(--on-crude); text-decoration:underline; }
.crumbs .sep { opacity:.6; }
.split { display:grid; grid-template-columns:minmax(0,5fr) minmax(0,7fr); gap:48px; align-items:start; }
.split .head { margin-bottom:0; }
.checks { list-style:none; margin:0; padding:0; display:grid; border-top:2px solid var(--ink); }
.checks li { display:flex; gap:14px; align-items:flex-start; padding:16px 0; border-bottom:1px solid var(--line); font-size:17px; line-height:26px; min-width:0; }
.checks .ic { color:var(--petrol); margin-top:1px; }
.cols2 { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:48px; }
.cols2 > div { display:grid; gap:12px; align-content:start; padding-top:20px; border-top:2px solid var(--ink); min-width:0; }
.cols2 h2 { font-size:24px; line-height:32px; font-weight:700; }
.cols2 p { color:var(--ink-muted); font-size:17px; line-height:27px; }
.faq { display:grid; border-top:2px solid var(--ink); max-width:840px; }
.faq details { border-bottom:1px solid var(--line); }
.faq summary { cursor:pointer; list-style:none; padding:18px 0; font-weight:700; font-size:18px; line-height:26px; display:flex; justify-content:space-between; align-items:baseline; gap:16px; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content:"+"; font-family:var(--font-mono); font-weight:500; color:var(--flare-text); flex:none; }
.faq details[open] summary::after { content:"\2212"; }
.faq details p { padding:0 0 20px; color:var(--ink-muted); max-width:68ch; font-size:17px; line-height:27px; }
.others { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:24px; }
.other { display:grid; gap:8px; align-content:start; padding:20px; border:1px solid var(--line); border-radius:var(--r-md); background:var(--surface); color:var(--ink); text-decoration:none; min-width:0; }
.other:hover { border-color:var(--line-strong); }
.other .ic { color:var(--ink); }
.other strong { font-size:18px; line-height:26px; }
.other span { color:var(--ink-muted); font-size:15px; line-height:22px; }
.cta-band { background:var(--crude); color:var(--on-crude); }
.cta-band .wrap { padding-block:64px; display:flex; justify-content:space-between; align-items:center; gap:24px; flex-wrap:wrap; }
.cta-band h2 { font-size:clamp(26px, 3.5vw, 36px); line-height:1.15; font-weight:800; }
html[lang="ar"] .cta-band h2 { line-height:1.5; font-weight:700; }
.cta-band p { color:var(--on-crude-muted); margin-top:8px; max-width:52ch; font-size:17px; line-height:26px; }
@media (max-width: 960px) {
  .split, .cols2 { grid-template-columns:1fr; gap:28px; }
  .others { grid-template-columns:1fr; }
}
