/* AL JABRAN LTD — site styles */
@import url('https://fonts.googleapis.com/css2?family=Michroma&display=swap');
:root {
  --navy: #0a1628;
  --navy-2: #0f2140;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --cyan: #22d3ee;
  --ink: #0f172a;
  --muted: #475569;
  --bg: #f8fafc;
  --card: #ffffff;
  --line: #e2e8f0;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --max: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 22, 40, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .65rem; color: #fff; font-weight: 800; letter-spacing: .02em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand-name {
  display: block; font-family: "Michroma", "Segoe UI", system-ui, sans-serif; font-size: 1.02rem; font-weight: 400; letter-spacing: .08em; line-height: 1.15;
  background: linear-gradient(90deg, #fff 0%, #7dd3fc 50%, #fff 100%); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: brand-shine 6s linear infinite;
}
.brand small { display: block; font-family: var(--font); font-weight: 500; font-size: .7rem; letter-spacing: .06em; font-style: italic; color: var(--cyan); margin-top: 3px; }
@keyframes brand-shine { to { background-position: -200% 0; } }
.nav-links { display: flex; align-items: center; gap: .25rem; }
.nav-links a {
  color: #cbd5e1; padding: .5rem .85rem; border-radius: 8px; font-weight: 500; font-size: .95rem;
  transition: color .2s, background-color .2s;
}
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .08); text-decoration: none; }
.nav-links .btn { margin-left: .5rem; color: #fff; }
.nav-toggle {
  display: none; background: none; border: 1px solid rgba(255, 255, 255, .25); color: #fff;
  border-radius: 8px; width: 44px; height: 44px; cursor: pointer; transition: background-color .2s, transform .1s;
}
.nav-toggle:hover { background: rgba(255, 255, 255, .1); }
.nav-toggle:active { transform: scale(.92); }
.nav-toggle svg { width: 22px; height: 22px; margin: auto; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: 10px; font-weight: 600; font-size: .98rem;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .2s ease, box-shadow .25s ease, background-color .25s ease, background-position .5s ease, border-color .25s ease;
}
.btn::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.96); transition-duration: .08s; }
.btn-primary {
  background: linear-gradient(90deg, var(--blue), #0ea5e9, var(--blue)); background-size: 200% 100%; background-position: 0 0;
  color: #fff; box-shadow: 0 8px 20px rgba(37, 99, 235, .35); animation: btn-pulse 2.8s ease-out infinite;
}
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 12px 28px rgba(37, 99, 235, .55); animation: none; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: var(--cyan); }
.btn-light { background: #fff; color: var(--navy); box-shadow: 0 6px 16px rgba(0, 0, 0, .15); }
.btn-light:hover { background: #e0f2fe; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }
@keyframes btn-pulse {
  0%, 100% { box-shadow: 0 8px 20px rgba(37, 99, 235, .35), 0 0 0 0 rgba(56, 189, 248, .45); }
  60% { box-shadow: 0 8px 20px rgba(37, 99, 235, .35), 0 0 0 12px rgba(56, 189, 248, 0); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(34, 211, 238, .22), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(37, 99, 235, .3), transparent 60%),
    var(--navy);
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 1rem;
}
.hero h1 { margin-bottom: .5em; }
.hero h1 span { background: linear-gradient(90deg, var(--cyan), #60a5fa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.15rem; color: #cbd5e1; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 2rem; color: #94a3b8; font-size: .9rem; }
.hero-badges li::before { content: "✓"; color: var(--cyan); margin-right: .4rem; font-weight: 700; }

.hero-visual {
  background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 20px; padding: 1.5rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}
.hero-visual svg { width: 100%; height: auto; }
.hero-visual { animation: hv-float 7s ease-in-out infinite; }
.hv-flow path { stroke-dasharray: 3 9; animation: hv-dash 1.4s linear infinite; }
.hv-orbit { transform-origin: 240px 210px; animation: hv-spin 60s linear infinite; }
.hv-orbit-rev { transform-origin: 240px 210px; animation: hv-spin 90s linear infinite reverse; }
.hv-pulse, .hv-ring { transform-box: fill-box; transform-origin: center; animation: hv-ping 3s ease-out infinite; }
.hv-spark { animation: hv-twinkle 3s ease-in-out infinite; }
@keyframes hv-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes hv-dash { to { stroke-dashoffset: -12; } }
@keyframes hv-spin { to { transform: rotate(360deg); } }
@keyframes hv-ping { 0% { transform: scale(1); opacity: .55; } 80%, 100% { transform: scale(1.7); opacity: 0; } }
@keyframes hv-twinkle { 0%, 100% { opacity: .15; } 50% { opacity: .9; } }

/* Page hero (inner pages) */
.page-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.page-hero .container { display: block; }
.page-hero p.lead { margin-bottom: 0; }

/* ---------- Sections ---------- */
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-head { max-width: 46rem; margin-bottom: 2.6rem; }
.section-head .eyebrow { color: var(--blue); }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-alt { background: #fff; border-block: 1px solid var(--line); }
.center { text-align: center; margin-inline: auto; }

.grid { display: grid; gap: 1.4rem; }
.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(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem; box-shadow: var(--shadow); transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); border-color: #bfdbfe; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }
.icon {
  position: relative; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.1rem;
  background: linear-gradient(135deg, var(--blue), #0ea5e9); color: #fff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, .3), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .3s ease, box-shadow .3s ease;
}
.icon::before {
  content: ""; position: absolute; inset: -5px; border-radius: 18px; border: 1.5px solid rgba(37, 99, 235, .35);
  animation: icon-ring 3s ease-out infinite;
}
.icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; animation: icon-bob 3.6s ease-in-out infinite; }
.card:hover .icon { transform: translateY(-3px) rotate(-6deg) scale(1.08); box-shadow: 0 14px 28px rgba(37, 99, 235, .45), inset 0 1px 0 rgba(255, 255, 255, .35); }
@keyframes icon-ring { 0% { transform: scale(.92); opacity: .8; } 70%, 100% { transform: scale(1.25); opacity: 0; } }
@keyframes icon-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
.js .icon svg > *, .js .tl-node svg > * { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s ease .15s; }
.js .icon.drawn svg > *, .js .tl-node.drawn svg > * { stroke-dashoffset: 0; }
.card .more { display: inline-block; margin-top: 1rem; font-weight: 600; font-size: .93rem; transition: transform .2s ease; }
.card .more:hover { transform: translateX(5px); text-decoration: none; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 3.4rem; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 0; left: 0; font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em;
  background: linear-gradient(90deg, var(--blue), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step p { color: var(--muted); margin: 0; font-size: .97rem; }

/* Feature split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.checks li { position: relative; padding-left: 1.9rem; margin-bottom: .9rem; color: var(--muted); }
.checks li strong { color: var(--ink); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.panel {
  background: var(--navy); color: #e2e8f0; border-radius: 20px; padding: 2rem;
  background-image: radial-gradient(500px 260px at 100% 0, rgba(34, 211, 238, .2), transparent 60%);
}
.panel h3 { color: #fff; }
.panel ul li { padding: .7rem 0; border-bottom: 1px solid rgba(255, 255, 255, .1); display: flex; gap: .8rem; }
.panel ul li:last-child { border: 0; }
.panel ul li span:first-child { color: var(--cyan); font-weight: 700; }

/* Tech strip */
.tech { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; }
.tech span {
  padding: .5rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  color: var(--muted); font-weight: 600; font-size: .92rem;
}

/* Home: see-all button + process timeline */
.section-cta { text-align: center; margin-top: 2.6rem; }
.timeline { list-style: none; margin: 1.6rem 0 0; padding: 0; }
.timeline li { position: relative; display: flex; gap: 1rem; align-items: flex-start; padding-bottom: 1.6rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:not(:last-child)::before {
  content: ""; position: absolute; left: 23px; top: 48px; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, var(--cyan) 50%, transparent 50%); background-size: 2px 12px;
  animation: tl-flow .8s linear infinite;
}
.tl-node {
  position: relative; flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), #0ea5e9); color: #fff; box-shadow: 0 0 0 4px rgba(34, 211, 238, .15), 0 8px 18px rgba(37, 99, 235, .4);
}
.tl-node::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--cyan);
  animation: hv-ping 3s ease-out infinite; animation-delay: calc(var(--i) * .7s);
}
.tl-node svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.timeline li > div { padding-top: .1rem; }
.tl-n { display: block; color: var(--cyan); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.timeline strong { display: block; color: #fff; font-size: 1.08rem; }
.timeline p { margin: .15rem 0 0; color: #cbd5e1; font-size: .95rem; }
.js .timeline li { opacity: 0; transform: translateX(-14px); transition: opacity .6s ease, transform .6s ease; transition-delay: calc(var(--i) * .25s + .2s); }
.js .panel.in .timeline li { opacity: 1; transform: none; }
@keyframes tl-flow { to { background-position: 0 12px; } }

/* Testimonials */
.quote { margin: 0; display: flex; flex-direction: column; gap: 1.1rem; }
.quote .icon { width: 44px; height: 44px; margin: 0; }
.quote .icon svg { width: 22px; height: 22px; }
.quote blockquote { margin: 0; }
.quote blockquote p { color: #334155; font-size: 1rem; line-height: 1.65; }
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: .8rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.avatar {
  flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: .85rem; letter-spacing: .04em; color: #fff;
  background: linear-gradient(135deg, var(--navy), #1d4ed8); box-shadow: 0 0 0 3px #dbeafe;
}
.quote figcaption strong { display: block; font-size: .98rem; }
.quote figcaption small { display: block; color: var(--muted); font-size: .84rem; }

/* CTA banner */
.cta {
  background:
    radial-gradient(600px 300px at 90% 0, rgba(34, 211, 238, .25), transparent 60%),
    linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff; border-radius: 24px;
  padding: clamp(2rem, 5vw, 3.5rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.cta h2 { margin: 0 0 .3em; }
.cta p { margin: 0; color: #cbd5e1; }

/* Service detail blocks */
.service { display: grid; grid-template-columns: 90px 1fr 1fr; gap: 2rem; padding: 2.4rem 0; border-top: 1px solid var(--line); align-items: start; }
.service:first-of-type { border-top: 0; padding-top: 0; }
.service .icon { width: 64px; height: 64px; margin: 0; }
.service .icon svg { width: 32px; height: 32px; }
.service p { color: var(--muted); }
.service ul li { position: relative; padding-left: 1.4rem; margin-bottom: .55rem; color: var(--muted); font-size: .97rem; }
.service ul li::before { content: "→"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }

/* Service catalogue */
.cat { display: flex; align-items: center; gap: 1rem; margin: 3.4rem 0 1.4rem; scroll-margin-top: 96px; }
.cat:first-child { margin-top: 0; }
.cat .icon { margin: 0; width: 48px; height: 48px; flex: none; }
.cat h2 { margin: 0; font-size: clamp(1.35rem, 2.6vw, 1.8rem); }
.svc { display: flex; align-items: flex-start; gap: 1rem; padding: 1.3rem 1.4rem; }
.svc .num { flex: none; min-width: 2rem; font-weight: 800; font-size: 1.05rem; color: var(--blue); }
.svc h3 { margin: 0 0 .3rem; font-size: 1.05rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2.5rem; align-items: start; }
.contact-list li { display: flex; gap: 1rem; margin-bottom: 1.4rem; }
.contact-list .icon { margin: 0; flex: none; width: 48px; height: 48px; }
.contact-list b { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-list a, .contact-list address { color: var(--ink); font-style: normal; font-weight: 600; }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
input, select, textarea {
  width: 100%; padding: .8rem 1rem; border: 1px solid #cbd5e1; border-radius: 10px;
  font: inherit; color: var(--ink); background: #fff; margin-bottom: 1.1rem;
}
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(37, 99, 235, .25); border-color: var(--blue); }
textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--muted); margin: .8rem 0 0; }
.hp { position: absolute; left: -9999px; }

/* Prose (legal pages) */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose p, .prose li { color: var(--muted); }
.prose ul { list-style: disc; padding-left: 1.3rem; margin-bottom: 1em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #94a3b8; padding: 4rem 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2.5rem; padding-bottom: 3rem; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color: #94a3b8; }
.site-footer a:hover { color: #fff; }
.site-footer li { margin-bottom: .55rem; }
.site-footer address { font-style: normal; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.3rem 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .85rem; }

/* Reveal animation */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .card .more { transition: none; }
  .btn::after { display: none; }
  .brand-name { animation: none; }
  .btn-primary, .hero-visual, .hv-flow path, .hv-orbit, .hv-orbit-rev, .hv-pulse, .hv-ring, .hv-spark, .icon::before, .icon svg, .tl-node::after, .timeline li::before { animation: none; }
  .hv-packet { display: none; }
  .js .icon svg > *, .js .tl-node svg > * { stroke-dasharray: none; stroke-dashoffset: 0; transition: none; }
  .js .timeline li { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .container, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service { grid-template-columns: 70px 1fr; }
  .service ul { grid-column: 2; }
}
@media (max-width: 820px) {
  .nav-toggle { display: grid; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--navy); padding: .8rem 1rem 1.2rem; border-bottom: 1px solid rgba(255, 255, 255, .1);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .8rem; }
  .nav-links .btn { margin: .5rem 0 0; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4, form .row, .footer-grid { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr; gap: 1rem; }
  .service ul { grid-column: auto; }
  .cta { flex-direction: column; align-items: flex-start; }
}
