/* =========================================================
   سمات التقنية — Cimaat Technology
   Landing page styles
   ========================================================= */

/* ---------- Fonts (self-hosted IBM Plex Sans Arabic) ---------- */
@font-face { font-family: "Plex Arabic"; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/plex-arabic-400.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: "Plex Arabic"; font-weight: 500; font-display: swap;
  src: url("../assets/fonts/plex-arabic-500.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: "Plex Arabic"; font-weight: 700; font-display: swap;
  src: url("../assets/fonts/plex-arabic-700.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: "Plex Arabic"; font-weight: 400 500; font-display: swap;
  src: url("../assets/fonts/plex-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Plex Arabic"; font-weight: 600 700; font-display: swap;
  src: url("../assets/fonts/plex-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }

/* ---------- Tokens ---------- */
:root {
  --night: #081426;
  --night-2: #0c1d36;
  --night-3: #12274a;
  --royal: #2457D6;
  --electric: #3B82F6;
  --sky: #38BDF8;
  --white: #FFFFFF;
  --light: #F4F7FC;
  --ink: #172033;
  --muted: #5d6a7e;        /* darker than #7B8798 for AA contrast on light */
  --muted-dark: #9fb0c8;   /* secondary text on dark */
  --line: #e2e8f3;
  --line-dark: rgba(148, 178, 230, .14);

  --grad: linear-gradient(135deg, var(--royal) 0%, var(--electric) 55%, var(--sky) 100%);
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(8, 20, 38, .04), 0 12px 32px -12px rgba(8, 20, 38, .14);
  --shadow-lg: 0 30px 60px -24px rgba(36, 87, 214, .35);
  --ease: cubic-bezier(.22, .8, .24, 1);

  --font: "Plex Arabic", "IBM Plex Sans Arabic", "Tajawal", "Segoe UI", Tahoma, "Geeza Pro", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --nav-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) - 4px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.8;
  color: var(--ink); background: var(--light); overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.35; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 8px; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }

.skip-link {
  position: fixed; top: 12px; right: 12px; z-index: 200; padding: 10px 18px;
  background: var(--white); color: var(--night); border-radius: 10px; font-weight: 700;
  transform: translateY(-160%); transition: transform .2s;
}
.skip-link:focus { transform: none; }

.text-gradient {
  background: linear-gradient(100deg, #ffffff 0%, #9fd8ff 35%, var(--sky) 70%, #7aa7ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px;
  font-size: .875rem; font-weight: 500; color: #cfe6ff; letter-spacing: 0;
  border: 1px solid var(--line-dark); border-radius: 999px;
  background: rgba(56, 189, 248, .06);
}
.eyebrow--dark { color: var(--royal); border-color: rgba(36, 87, 214, .18); background: rgba(36, 87, 214, .06); }
.eyebrow__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--sky);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, .18);
}
.eyebrow--dark .eyebrow__dot { background: var(--electric); box-shadow: 0 0 0 4px rgba(59, 130, 246, .15); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px; border-radius: 14px; border: 1px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1.2; cursor: pointer; white-space: nowrap;
  overflow: hidden; isolation: isolate;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, border-color .25s, color .25s;
}
.btn--sm { min-height: 44px; padding: 10px 20px; font-size: .9375rem; border-radius: 12px; }
.btn--primary {
  color: var(--white); background: var(--grad);
  box-shadow: 0 10px 24px -10px rgba(59, 130, 246, .7), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(135deg, var(--electric), var(--sky));
  opacity: 0; transition: opacity .3s;
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(56, 189, 248, .75), inset 0 1px 0 rgba(255,255,255,.3); }
.btn--primary:hover::before { opacity: 1; }
.btn--ghost {
  color: var(--white); background: rgba(255, 255, 255, .04);
  border-color: rgba(159, 216, 255, .28); backdrop-filter: blur(6px);
}
.btn--ghost:hover { transform: translateY(-2px); background: rgba(56, 189, 248, .1); border-color: rgba(56, 189, 248, .6); }
.btn:active { transform: translateY(0) scale(.97); }
.btn__icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn:hover .btn__icon { transform: translateX(-4px); }

/* click ripple */
.ripple {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: -1;
  background: rgba(255, 255, 255, .35); transform: scale(0);
  animation: ripple .6s var(--ease) forwards;
}
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }

/* =========================================================
   Navigation
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  transition: background-color .35s, box-shadow .35s, height .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  --nav-h: 66px;
  background: rgba(8, 20, 38, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--line-dark); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6);
}
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--white); }
.brand__mark { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 6px 18px -6px rgba(56, 189, 248, .6); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__ar { font-size: 1.2rem; font-weight: 700; }
.brand__en { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-dark); text-align: right; }

.nav__menu { display: flex; align-items: center; gap: 28px; }
.nav__links { display: flex; gap: 4px; }
.nav__links a {
  position: relative; display: block; padding: 8px 14px; border-radius: 10px;
  font-size: .975rem; font-weight: 500; color: #c9d6ea; transition: color .2s, background-color .2s;
}
.nav__links a::after {
  content: ""; position: absolute; right: 14px; left: 14px; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--white); }
.nav__links a.is-active::after, .nav__links a:hover::after { transform: scaleX(1); }

.nav__toggle {
  display: none; width: 46px; height: 46px; padding: 0; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .04);
  position: relative;
}
.nav__toggle span {
  position: absolute; right: 12px; width: 22px; height: 2px; border-radius: 2px; background: var(--white);
  transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 15px; }
.nav__toggle span:nth-child(2) { top: 22px; width: 16px; }
.nav__toggle span:nth-child(3) { top: 29px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--nav-h) + 48px) 0 96px; color: var(--white); background: var(--night); overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(rgba(120, 160, 230, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 230, .07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 35% 45%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 35% 45%, #000 20%, transparent 75%);
}
.hero__glow { position: absolute; border-radius: 50%; filter: blur(80px); }
.hero__glow--a { width: 560px; height: 560px; left: -120px; top: 6%; background: rgba(36, 87, 214, .55); animation: drift 16s ease-in-out infinite alternate; }
.hero__glow--b { width: 420px; height: 420px; right: -140px; bottom: -120px; background: rgba(56, 189, 248, .22); animation: drift 20s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate3d(60px, -40px, 0) scale(1.08); } }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 140px; pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(8, 20, 38, .9));
}

.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 48px; }
.hero__content { max-width: 660px; }
.hero__title { margin-top: 22px; font-size: clamp(2.05rem, 1.15rem + 3.1vw, 3.5rem); line-height: 1.3; text-wrap: balance; letter-spacing: -.01em; }
.hero__title .text-gradient { display: block; }
.hero__lead { margin-top: 22px; max-width: 540px; font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem); color: #b9c8de; }
.hero__actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__tags { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero__tags li { position: relative; padding-right: 16px; font-size: .9rem; color: var(--muted-dark); }
.hero__tags li::before {
  content: ""; position: absolute; right: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px;
  border-radius: 2px; background: var(--sky); transform: rotate(45deg);
}

/* entrance */
.hero__anim { opacity: 0; transform: translateY(22px); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 120ms + 150ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Hero visual ---------- */
.hero__visual { position: relative; display: flex; justify-content: center; }
.orbit { position: relative; width: min(520px, 100%); aspect-ratio: 1; }
.orbit__svg { width: 100%; height: 100%; overflow: visible; }
.orbit__ring { transform-origin: 260px 260px; transform-box: view-box; }
.orbit__ring--1 { animation: spin 26s linear infinite; }
.orbit__ring--2 { animation: spin 44s linear infinite reverse; }
.orbit__ring--3 { animation: spin 70s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.node { fill: var(--sky); filter: drop-shadow(0 0 6px rgba(56, 189, 248, .9)); }
.node--dim { fill: #7aa7ff; opacity: .7; }
.orbit__links path { fill: none; stroke: rgba(56, 189, 248, .25); stroke-width: 1; stroke-dasharray: 3 6; animation: dash 3s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -36; } }

.orbit__core {
  position: absolute; inset: 50% auto auto 50%; width: 132px; height: 132px; margin: -66px 0 0 -66px;
  display: grid; place-items: center; border-radius: 36px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .02));
  border: 1px solid rgba(159, 216, 255, .25);
  box-shadow: 0 0 0 10px rgba(56, 189, 248, .05), 0 30px 60px -20px rgba(36, 87, 214, .8);
  backdrop-filter: blur(8px);
  animation: float 6s ease-in-out infinite;
}
.orbit__core img { width: 88px; height: 88px; border-radius: 24px; }
@keyframes float { 50% { transform: translateY(-10px); } }

.float-card {
  position: absolute; padding: 14px 16px; border-radius: 16px; color: var(--white);
  background: linear-gradient(160deg, rgba(18, 39, 74, .82), rgba(8, 20, 38, .72));
  border: 1px solid rgba(159, 216, 255, .18);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .7);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.float-card__label { font-size: .82rem; font-weight: 500; color: #d7e6fb; }
.float-card--code { top: 4%; left: -4%; width: 236px; padding: 0; animation: float 7s ease-in-out infinite; }
.float-card__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line-dark); }
.float-card__bar i { width: 8px; height: 8px; border-radius: 50%; background: #2a4572; }
.float-card__bar i:first-child { background: var(--sky); }
.float-card__bar span { margin-inline-start: auto; font: 500 .7rem var(--mono); color: var(--muted-dark); }
.float-card pre { margin: 0; padding: 12px 14px 14px; font: .76rem/1.7 var(--mono); color: #cfe0f7; text-align: left; white-space: pre; overflow: hidden; }
.float-card .k { color: #7aa7ff; } .float-card .f { color: var(--sky); } .float-card .s { color: #a5f3fc; }

.float-card--server { bottom: 10%; left: 2%; display: flex; align-items: center; gap: 12px; animation: float 8s ease-in-out -2s infinite; }
.server { display: grid; gap: 5px; }
.server__row { display: flex; align-items: center; gap: 6px; width: 54px; height: 12px; padding: 0 6px; border-radius: 4px; background: rgba(59, 130, 246, .2); border: 1px solid rgba(59, 130, 246, .35); }
.server__row i { width: 5px; height: 5px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 6px #4ade80; animation: blink 2.4s infinite; }
.server__row:nth-child(2) i { animation-delay: .6s; } .server__row:nth-child(3) i { animation-delay: 1.2s; }
.server__row b { flex: 1; height: 2px; border-radius: 2px; background: rgba(159, 216, 255, .35); }
@keyframes blink { 50% { opacity: .3; } }

.float-card--device { top: 22%; right: -2%; display: flex; align-items: center; gap: 12px; animation: float 9s ease-in-out -4s infinite; }
.device { display: grid; gap: 4px; width: 30px; height: 46px; padding: 7px 5px; border-radius: 7px; border: 2px solid var(--sky); }
.device span { height: 4px; border-radius: 2px; background: rgba(56, 189, 248, .55); }
.device span:first-child { background: var(--sky); }

.hero__scroll {
  position: absolute; z-index: 2; left: 50%; bottom: 28px; width: 28px; height: 44px; margin-left: -14px;
  border: 2px solid rgba(159, 216, 255, .35); border-radius: 16px;
}
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--sky); animation: scroll 1.8s var(--ease) infinite; }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* =========================================================
   Sections
   ========================================================= */
.section { position: relative; padding: clamp(80px, 9vw, 128px) 0; }
.section--light { background: var(--light); }
.section--dark { background: var(--night); color: var(--white); overflow: hidden; }
.section__bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 400px at 85% 10%, rgba(36, 87, 214, .35), transparent 70%),
    radial-gradient(500px 360px at 10% 90%, rgba(56, 189, 248, .12), transparent 70%);
}
.section__bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(159, 216, 255, .12) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
}
.section__head { max-width: 720px; margin: 0 auto 56px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.section__head--start { margin: 0; text-align: right; align-items: flex-start; }
.section__title { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem); letter-spacing: -.005em; }
.section__lead { color: var(--muted); font-size: 1.0625rem; max-width: 620px; }
.section--dark .section__lead { color: var(--muted-dark); }
.section__head--start .btn { margin-top: 12px; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 30px 26px 26px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden; isolation: isolate;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.service::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.service::after {
  content: ""; position: absolute; z-index: -1; width: 220px; height: 220px; top: -110px; left: -80px; border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, .16), transparent 70%); opacity: 0; transition: opacity .4s;
}
.service:hover { transform: translateY(-8px); border-color: rgba(59, 130, 246, .35); box-shadow: var(--shadow-lg); }
.service:hover::before { transform: scaleX(1); }
.service:hover::after { opacity: 1; }
.service__icon {
  width: 58px; height: 58px; display: grid; place-items: center; border-radius: 16px; color: var(--white);
  background: linear-gradient(145deg, var(--night-3), var(--night));
  box-shadow: inset 0 0 0 1px rgba(159, 216, 255, .15), 0 10px 20px -10px rgba(8, 20, 38, .6);
  transition: transform .4s var(--ease);
}
.service:hover .service__icon { transform: rotate(-6deg) scale(1.05); }
.service__icon svg, .feature__icon svg, .step__icon svg {
  width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.service__icon svg { stroke: var(--sky); }
.service__title { font-size: 1.25rem; margin-top: 6px; }
.service__text { color: var(--muted); font-size: .98rem; flex: 1; }
.service__link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 700; font-size: .95rem; color: var(--royal);
  transition: gap .25s var(--ease), color .2s;
}
.service__link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.service__link:hover { gap: 12px; color: var(--electric); }

/* ---------- Why ---------- */
.why { position: relative; display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature {
  position: relative; padding: 24px 24px 22px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015));
  border: 1px solid var(--line-dark);
  transition: transform .4s var(--ease), border-color .4s, background-color .4s;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(56, 189, 248, .4); background-color: rgba(56, 189, 248, .04); }
.feature__icon {
  width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 14px; border-radius: 13px;
  color: var(--sky); background: rgba(56, 189, 248, .1); border: 1px solid rgba(56, 189, 248, .22);
}
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.08rem; margin-bottom: 6px; }
.feature p { font-size: .95rem; color: var(--muted-dark); line-height: 1.75; }

/* ---------- Process ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.steps::before {
  content: ""; position: absolute; top: 47px; right: 12%; left: 12%; height: 2px;
  background: linear-gradient(to left, var(--royal), var(--sky));
  mask-image: repeating-linear-gradient(to left, #000 0 10px, transparent 10px 18px);
  -webkit-mask-image: repeating-linear-gradient(to left, #000 0 10px, transparent 10px 18px);
  opacity: .5;
}
.steps::after {
  content: ""; position: absolute; top: 47px; right: 12%; height: 2px; width: 0; max-width: 76%;
  background: var(--grad); transition: width 1.6s var(--ease) .3s;
}
.steps.is-visible::after { width: 76%; }
.step { position: relative; z-index: 1; text-align: center; padding: 0 10px; }
.step__icon {
  position: relative; width: 96px; height: 96px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 50%;
  color: var(--white); background: var(--night);
  box-shadow: 0 0 0 8px var(--light), 0 0 0 9px rgba(59, 130, 246, .25), 0 20px 40px -18px rgba(36, 87, 214, .8);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.step__icon::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1px dashed rgba(56, 189, 248, .45); }
.step:hover .step__icon { transform: translateY(-6px); box-shadow: 0 0 0 8px var(--light), 0 0 0 9px rgba(56, 189, 248, .6), 0 26px 44px -18px rgba(56, 189, 248, .8); }
.step__icon svg { width: 30px; height: 30px; stroke: var(--sky); }
.step__num {
  position: absolute; top: -8px; left: 50%; z-index: 2; margin-left: 18px; padding: 2px 9px; border-radius: 999px;
  font: 700 .75rem/1.6 var(--font); color: var(--white); background: var(--grad); box-shadow: 0 6px 14px -6px rgba(59, 130, 246, .9);
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .97rem; }

/* ---------- CTA ---------- */
.cta { position: relative; padding: clamp(84px, 9vw, 128px) 0; background: var(--night); color: var(--white); overflow: hidden; }
.cta__bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 420px at 50% 0%, rgba(36, 87, 214, .5), transparent 70%),
    radial-gradient(480px 320px at 0% 100%, rgba(56, 189, 248, .18), transparent 70%),
    radial-gradient(420px 300px at 100% 100%, rgba(59, 130, 246, .2), transparent 70%);
}
.cta__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(120, 160, 230, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 160, 230, .06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 70% at 50% 40%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 40%, #000, transparent 75%);
}
.cta__inner { position: relative; display: grid; grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 48px; }
.cta__inner.has-form { grid-template-columns: 1.05fr .95fr; justify-items: stretch; text-align: right; align-items: center; }
.cta__content { display: flex; flex-direction: column; align-items: center; gap: 18px; max-width: 640px; }
.cta__inner.has-form .cta__content { align-items: flex-start; }
.cta__title { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.2rem); line-height: 1.3; }
.cta__lead { color: #b9c8de; font-size: 1.1rem; max-width: 560px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.channels { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.channels:empty { display: none; }
.channels a {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; font-size: .95rem;
  color: #d7e6fb; border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .03); transition: border-color .2s, color .2s;
}
.channels a:hover { border-color: rgba(56, 189, 248, .5); color: var(--white); }
.channels svg, .footer svg.ico { width: 18px; height: 18px; fill: none; stroke: var(--sky); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.request {
  display: grid; gap: 16px; padding: 32px; border-radius: var(--radius-lg); text-align: right;
  background: linear-gradient(160deg, rgba(18, 39, 74, .85), rgba(8, 20, 38, .7));
  border: 1px solid rgba(159, 216, 255, .18); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
  backdrop-filter: blur(12px);
}
.request__title { font-size: 1.4rem; }
.request__hint { color: var(--muted-dark); font-size: .95rem; margin-top: -8px; }
.field { display: grid; gap: 6px; }
.field__label { font-size: .9rem; font-weight: 500; color: #d7e6fb; }
.field__input {
  width: 100%; padding: 12px 14px; border-radius: 12px; font-size: 1rem;
  color: var(--white); background: rgba(8, 20, 38, .6); border: 1px solid rgba(159, 216, 255, .2);
  transition: border-color .2s, box-shadow .2s;
}
.field__input:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(56, 189, 248, .15); }
select.field__input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2338BDF8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 14px center; background-size: 18px; padding-left: 42px; }
select.field__input option { color: var(--ink); background: var(--white); }
textarea.field__input { resize: vertical; min-height: 110px; }
.request__error { color: #fca5a5; font-size: .92rem; }
.request__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.request__actions .btn { flex: 1 1 180px; }

/* =========================================================
   Footer
   ========================================================= */
.footer { background: #050e1c; color: var(--muted-dark); padding: 72px 0 0; border-top: 1px solid var(--line-dark); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer__brand p { margin-top: 18px; max-width: 420px; font-size: .97rem; }
.footer__heading { font-size: 1rem; color: var(--white); margin-bottom: 16px; }
.footer__col ul { display: grid; gap: 10px; }
.footer__col a, .footer__col span { display: inline-flex; align-items: center; gap: 8px; font-size: .97rem; transition: color .2s; }
.footer__col a:hover { color: var(--sky); }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 22px 0 26px; border-top: 1px solid var(--line-dark); font-size: .9rem;
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; left: 22px; bottom: 22px; z-index: 90; width: 50px; height: 50px; border-radius: 15px; cursor: pointer;
  display: grid; place-items: center; color: var(--white); background: var(--grad); border: 0;
  box-shadow: 0 14px 28px -12px rgba(59, 130, 246, .8);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .3s, transform .3s var(--ease), visibility .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); }
.to-top:active { transform: scale(.94); }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* =========================================================
   Scroll reveal (only when JS is active)
   ========================================================= */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: 1fr; gap: 44px; }
  .section__head--start { max-width: 640px; }
}

@media (max-width: 960px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 18px;
    padding: 20px 20px 28px; background: rgba(8, 20, 38, .97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-dark); box-shadow: 0 30px 40px -20px rgba(0, 0, 0, .7);
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .3s, transform .35s var(--ease), visibility .3s;
  }
  .nav.menu-open { background: rgba(8, 20, 38, .97); }
  .nav.menu-open .nav__menu { opacity: 1; visibility: visible; transform: none; }
  .nav__links { flex-direction: column; gap: 2px; }
  .nav__links a { padding: 14px 12px; font-size: 1.05rem; border-bottom: 1px solid var(--line-dark); border-radius: 0; }
  .nav__links a::after { display: none; }
  .nav__links a.is-active { color: var(--sky); }
  .nav__cta { width: 100%; }

  .hero { padding-top: calc(var(--nav-h) + 36px); }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero__content { margin-inline: auto; display: flex; flex-direction: column; align-items: center; }
  .hero__actions, .hero__tags { justify-content: center; }
  .hero__visual { order: 2; }
  .orbit { width: min(440px, 92%); }
  .hero__scroll { display: none; }

  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .steps::before, .steps::after { display: none; }

  .cta__inner.has-form { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .cta__inner.has-form .cta__content { align-items: center; }
  .request { width: 100%; max-width: 560px; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .container { width: calc(100% - 32px); }
  .brand__ar { font-size: 1.08rem; }
  .brand__mark { width: 36px; height: 36px; }
  .hero__actions { width: 100%; flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .hero__tags { gap: 8px 18px; }
  .orbit { width: 100%; }
  .float-card--code { width: 196px; left: -2%; top: 0; }
  .float-card pre { font-size: .66rem; }
  .float-card--device { right: 0; top: 26%; }
  .float-card--server { left: 0; bottom: 6%; }
  .float-card { padding: 10px 12px; }
  .float-card__label { font-size: .75rem; }
  .orbit__core { width: 104px; height: 104px; margin: -52px 0 0 -52px; border-radius: 28px; }
  .orbit__core img { width: 68px; height: 68px; border-radius: 18px; }

  .services, .features { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; row-gap: 40px; }
  .cta__actions { width: 100%; flex-direction: column; }
  .cta__actions .btn { width: 100%; }
  .request { padding: 24px 20px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; text-align: center; align-items: center; }
  .to-top { left: 16px; bottom: 16px; width: 46px; height: 46px; }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .hero__anim { opacity: 1; transform: none; animation: none; }
  .js .reveal { opacity: 1; transform: none; }
  .orbit__ring, .orbit__core, .float-card, .hero__glow { animation: none !important; }
  .steps::after { width: 76%; }
}
