/* ============================================================
   QUBITCODE — DESIGN TOKENS
   ============================================================ */
:root {
  --void: #060b14;
  --void-soft: #0a1220;
  --panel: #0e1a2c;
  --panel-light: #152439;
  --line: rgba(255, 255, 255, .09);
  --line-bright: rgba(255, 255, 255, .18);
  --steel: #8fa1b6;
  --steel-dim: #5e6f83;
  --steel-bright: #eaf0f6;
  --signal: #49c6f7;
  --signal-dim: #2a7fa0;
  --violet: #8b93ff;
  --gold: #e7c07a;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-arabic: 'Noto Kufi Arabic', sans-serif;

  --maxw: 1180px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--void);
  color: var(--steel-bright);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Arabic mode: switch typefaces ---- */
body.ar {
  font-family: var(--font-arabic);
}

body.ar h1,
body.ar h2,
body.ar h3,
body.ar h4,
body.ar .brand-name {
  font-family: var(--font-arabic);
}

body.ar .eyebrow,
body.ar .project-cat,
body.ar .from,
body.ar .amount .cur,
body.ar .price .unit,
body.ar .tag-float,
body.ar .core-cta,
body.ar .badge,
body.ar .nav-cta,
body.ar .lang-toggle {
  font-family: var(--font-arabic);
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* subtle grain / vignette base */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 8%, rgba(79, 198, 247, .07), transparent 40%),
    radial-gradient(circle at 90% 70%, rgba(139, 147, 255, .06), transparent 45%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   CUSTOM CURSOR — a white point with a trailing ring that reacts
   to interactive elements. Desktop / mouse only: real cursor and
   default touch behavior are left untouched on phones & tablets.
   ============================================================ */
@media (hover:hover) and (pointer:fine) {

  body,
  a,
  button,
  .project-card,
  .core-card,
  .service-row,
  .btn,
  .hero-visual {
    cursor: none;
  }
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0;
  mix-blend-mode: difference;
  transition: width .2s cubic-bezier(.4, 0, .2, 1), height .2s cubic-bezier(.4, 0, .2, 1), opacity .2s ease;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  background: transparent;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: width .3s cubic-bezier(.4, 0, .2, 1), height .3s cubic-bezier(.4, 0, .2, 1), border-color .3s ease, background-color .3s ease, opacity .2s ease;
}

.cursor-dot.hover {
  width: 0;
  height: 0;
}

.cursor-ring.hover {
  width: 60px;
  height: 60px;
  border-color: var(--signal);
  background: rgba(73, 198, 247, .12);
}

.cursor-ring.click {
  width: 26px;
  height: 26px;
}

/* ============================================================
   SIGNATURE ELEMENT — dash mark (echoes the two ticks in the logo)
   ============================================================ */
.dashmark {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  width: 5px;
  margin-right: 12px;
  flex-shrink: 0;
}

[dir="rtl"] .dashmark {
  margin-right: 0;
  margin-left: 12px;
}

.dashmark span {
  display: block;
  width: 5px;
  height: 11px;
  background: var(--signal);
  border-radius: 1px;
}

.dashmark span:last-child {
  opacity: .45;
}

.eyebrow {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 18px;
}

[dir="rtl"] .eyebrow {
  letter-spacing: 0;
  text-transform: none;
}

/* ============================================================
   CIRCUIT RAIL — the running node/line motif linking sections
   ============================================================ */
.rail {
  position: fixed;
  left: 40px;
  top: 0;
  height: 100%;
  width: 2px;
  z-index: 1;
  pointer-events: none;
  display: none;
}

[dir="rtl"] .rail {
  left: auto;
  right: 40px;
}

@media (min-width:1240px) {
  .rail {
    display: block;
  }
}

.rail-line {
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, var(--line) 8%, var(--line) 92%, transparent 100%);
}

.rail-node {
  position: absolute;
  left: -4.5px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--panel-light);
  border: 2px solid var(--steel-dim);
  transition: all .5s cubic-bezier(.4, 0, .2, 1);
}

[dir="rtl"] .rail-node {
  left: auto;
  right: -4.5px;
}

.rail-node.lit {
  background: var(--signal);
  border-color: var(--signal);
  box-shadow: 0 0 0 4px rgba(73, 198, 247, .18), 0 0 18px rgba(73, 198, 247, .6);
}

/* ============================================================
   NAV
   ============================================================ */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(6, 11, 20, .72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .02em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--steel);
  transition: color .2s;
  position: relative;
}

.nav-links a:hover {
  color: var(--steel-bright);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--signal);
  transition: width .25s;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border: 1px solid var(--line-bright);
  border-radius: 20px;
  color: var(--steel-bright);
  background: transparent;
  cursor: pointer;
  transition: all .25s;
  white-space: nowrap;
}

.lang-toggle:hover {
  border-color: var(--signal);
  background: rgba(73, 198, 247, .08);
}

.lang-toggle svg {
  flex-shrink: 0;
}

.nav-cta {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 18px;
  border: 1px solid var(--line-bright);
  border-radius: 7px;
  color: var(--steel-bright);
  transition: all .25s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-cta:hover {
  border-color: var(--signal);
  background: rgba(73, 198, 247, .08);
  box-shadow: 0 0 20px rgba(73, 198, 247, .15);
}

.cta-arrow {
  display: inline-block;
}

[dir="rtl"] .cta-arrow {
  transform: scaleX(-1);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--steel-bright);
  border-radius: 2px;
  transition: transform .28s ease, opacity .2s ease, top .28s ease;
}

.nav-toggle span:nth-child(1) {
  top: 0;
}

.nav-toggle span:nth-child(2) {
  top: 8px;
}

.nav-toggle span:nth-child(3) {
  top: 16px;
}

.nav-toggle.open span:nth-child(1) {
  top: 8px;
  transform: rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  top: 8px;
  transform: rotate(-45deg);
}

/* mobile dropdown panel */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  background: rgba(6, 11, 20, .98);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
  padding: 6px 24px 22px;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform .25s ease, opacity .25s ease;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu a {
  padding: 16px 2px;
  font-size: 16px;
  font-weight: 500;
  color: var(--steel-bright);
  border-bottom: 1px solid var(--line);
}

.mobile-menu a:last-of-type {
  border-bottom: none;
}

.mobile-menu-cta {
  margin-top: 16px;
  text-align: center;
  justify-content: center;
  border-bottom: none !important;
}

@media (max-width:820px) {
  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .mobile-menu {
    display: flex;
  }
}

@media (min-width:821px) {
  .mobile-menu {
    display: none !important;
  }
}

@media (max-width:420px) {
  .lang-toggle .lang-label {
    display: none;
  }

  .lang-toggle {
    padding: 8px 10px;
  }
}

@media (max-width:360px) {
  .brand-name {
    font-size: 15px;
  }

  nav {
    padding: 16px 18px;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 110px;
  padding-bottom: 80px;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .35;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 10%, transparent 75%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

@media (max-width:900px) {
  .hero-content {
    grid-template-columns: 1fr;
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(38px, 5.4vw, 66px);
  line-height: 1.12;
  letter-spacing: -.01em;
  color: var(--steel-bright);
  margin-bottom: 24px;
}

body.ar .hero h1 {
  font-weight: 700;
  letter-spacing: 0;
}

.hero h1 .accent {
  color: var(--signal);
  font-style: normal;
}

.hero p.lead {
  font-size: 18px;
  color: var(--steel);
  max-width: 460px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all .25s cubic-bezier(.4, 0, .2, 1);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--signal), var(--violet));
  color: #04101c;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px rgba(73, 198, 247, .5);
}

.btn-ghost {
  border-color: var(--line-bright);
  color: var(--steel-bright);
}

.btn-ghost:hover {
  border-color: var(--signal);
  background: rgba(73, 198, 247, .06);
}

/* animated node-link hero graphic */
.hero-visual {
  position: relative;
  aspect-ratio: 1/1;
  max-width: 420px;
  margin: 0 auto;
}

.hero-visual svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* always-on anchor nodes: gentle glow pulse */
.pulse-node {
  animation: pulseGlow 3.2s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.pulse-node.n2 {
  animation-delay: 1.1s;
}

.pulse-node.n3 {
  animation-delay: 2.1s;
}

@keyframes pulseGlow {

  0%,
  100% {
    filter: drop-shadow(0 0 0px rgba(73, 198, 247, 0));
  }

  50% {
    filter: drop-shadow(0 0 14px rgba(73, 198, 247, .75));
  }
}

/* always-on trace lines: traveling dash */
.trace-dash {
  stroke-dasharray: 6 10;
  animation: traceMove 6s linear infinite;
}

@keyframes traceMove {
  to {
    stroke-dashoffset: -320;
  }
}

/* flicker nodes: appear, hold, disappear, on loop — independent timing per node */
.flicker-node {
  animation-name: nodeFade, pulseGlow;
  animation-timing-function: ease-in-out, ease-in-out;
  animation-iteration-count: infinite, infinite;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes nodeFade {

  0%,
  100% {
    opacity: 0;
    transform: scale(.4);
  }

  18%,
  82% {
    opacity: 1;
    transform: scale(1);
  }
}

/* flicker connections: fade in/out in sync-ish with their node, plus a traveling dash */
.flicker-line {
  stroke-dasharray: 5 9;
  animation-name: lineFade, traceMove;
  animation-timing-function: ease-in-out, linear;
  animation-iteration-count: infinite, infinite;
}

@keyframes lineFade {

  0%,
  100% {
    opacity: 0;
  }

  18%,
  82% {
    opacity: .85;
  }
}

/* ---- interactive connections: press near the hero graphic to link nearby nodes to the cursor ---- */
.hero-visual svg {
  touch-action: none;
}

#lightningLayer {
  pointer-events: none;
}

.connect-line {
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 6 10;
  animation: traceMove 1.4s linear infinite, connectFade .65s ease-out forwards;
}

@keyframes connectFade {
  0% {
    opacity: 0;
  }

  12% {
    opacity: 1;
  }

  70% {
    opacity: .9;
  }

  100% {
    opacity: 0;
  }
}

.lightning-hit {
  animation: lightningNodeFlash .55s ease-out;
}

@keyframes lightningNodeFlash {
  0% {
    filter: drop-shadow(0 0 0px rgba(255, 255, 255, 0));
  }

  25% {
    filter: drop-shadow(0 0 24px rgba(255, 255, 255, .95));
  }

  100% {
    filter: drop-shadow(0 0 0px rgba(255, 255, 255, 0));
  }
}

.cursor-flash {
  fill: none;
  stroke: #ffffff;
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  animation: cursorFlash .45s ease-out forwards;
}

@keyframes cursorFlash {
  0% {
    transform: scale(.15);
    opacity: .9;
  }

  100% {
    transform: scale(1);
    opacity: 0;
  }
}

.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 56px;
  flex-wrap: wrap;
}

.hero-stats div {
  font-family: var(--font-mono);
}

.hero-stats .num {
  font-size: 26px;
  color: var(--signal);
  font-weight: 600;
}

.hero-stats .lbl {
  font-size: 12px;
  color: var(--steel-dim);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 4px;
}

body.ar .hero-stats .lbl {
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-arabic);
}

/* ============================================================
   SECTION SCAFFOLDING
   ============================================================ */
section {
  position: relative;
  z-index: 1;
  padding: 120px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 64px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--steel-bright);
}

.section-head p {
  color: var(--steel);
  font-size: 16.5px;
  margin-top: 16px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.4, 0, .2, 1);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   ABOUT
   ============================================================ */
/* #about {
  background: linear-gradient(to bottom, transparent, var(--void-soft) 20%, var(--void-soft) 80%, transparent);
} */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

@media (max-width:860px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

.about-copy p {
  color: var(--steel);
  font-size: 16px;
  margin-bottom: 18px;
  max-width: 480px;
}

.about-copy p strong {
  color: var(--steel-bright);
  font-weight: 600;
}

.pillars {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.pillar {
  display: flex;
  gap: 18px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.pillar:last-child {
  border-bottom: none;
}

.pillar-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--panel-light);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--signal);
}

.pillar h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--steel-bright);
}

.pillar p {
  color: var(--steel);
  font-size: 14.5px;
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

@media (max-width:820px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .3s, transform .3s;
}

.project-card:hover {
  border-color: var(--line-bright);
  transform: translateY(-4px);
}

.project-visual {
  position: relative;
  height: 200px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--project-c1, #10233a);
}

.project-visual .circuit-bg {
  position: absolute;
  inset: 0;
  opacity: .5;
}

.project-visual .tag-float {
  position: absolute;
  bottom: 14px;
  left: 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(6, 11, 20, .65);
  border: 1px solid var(--line-bright);
  color: var(--steel-bright);
  backdrop-filter: blur(6px);
}

[dir="rtl"] .project-visual .tag-float {
  left: auto;
  right: 16px;
}

.project-body {
  padding: 24px 26px 26px;
}

.project-cat {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 10px;
}

body.ar .project-cat {
  letter-spacing: 0;
  text-transform: none;
}

.project-body h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--steel-bright);
}

.project-body p {
  color: var(--steel);
  font-size: 14.5px;
  margin-bottom: 16px;
}

.project-stack {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.project-stack span {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 5px;
  background: var(--panel-light);
  color: var(--steel);
  border: 1px solid var(--line);
}

.projects-note {
  margin-top: 36px;
  font-size: 13.5px;
  color: var(--steel-dim);
  font-family: var(--font-mono);
  border-left: 2px solid var(--line-bright);
  padding-left: 16px;
}

[dir="rtl"] .projects-note {
  font-family: var(--font-arabic);
  border-left: none;
  border-right: 2px solid var(--line-bright);
  padding-left: 0;
  padding-right: 16px;
}

/* ============================================================
   PRICING
   ============================================================ */
/* #pricing {
  background: var(--void-soft);
} */

.currency-note {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--steel-dim);
  margin-top: 10px;
}

body.ar .currency-note {
  font-family: var(--font-arabic);
}

.core-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

@media (max-width:900px) {
  .core-grid {
    grid-template-columns: 1fr;
  }
}

.core-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
}

.core-card.featured {
  border-color: var(--signal);
  box-shadow: 0 0 0 1px rgba(73, 198, 247, .25), 0 20px 60px -20px rgba(73, 198, 247, .25);
  background: linear-gradient(160deg, var(--panel-light), var(--panel));
}

.core-card .badge {
  position: absolute;
  top: -12px;
  right: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--signal);
  color: #04101c;
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 600;
  white-space: nowrap;
}

[dir="rtl"] .core-card .badge {
  right: auto;
  left: 24px;
}

.discount-badge {
  position: absolute;
  top: -12px;
  left: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--gold);
  color: #1a1204;
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 6px 16px -4px rgba(231, 192, 122, .5);
}

[dir="rtl"] .discount-badge {
  left: auto;
  right: 24px;
}

.core-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 8px;
}

.core-card .desc {
  color: var(--steel);
  font-size: 14px;
  margin-bottom: 24px;
  min-height: 42px;
}

.core-price {
  margin-top: auto;
}

.core-price .from {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--steel-dim);
  text-transform: uppercase;
  letter-spacing: .06em;
}

body.ar .core-price .from {
  text-transform: none;
  letter-spacing: 0;
}

.core-price .old-price {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--steel-dim);
  text-decoration: line-through;
  margin-top: 3px;
}

body.ar .core-price .old-price .cur-small {
  font-family: var(--font-arabic);
  text-decoration: none;
}

.core-price .amount {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 600;
  color: var(--steel-bright);
  margin: 4px 0 18px;
}

.core-price .amount .cur {
  font-size: 16px;
  color: var(--signal);
  margin-left: 6px;
}

[dir="rtl"] .core-price .amount .cur {
  margin-left: 0;
  margin-right: 6px;
}

.core-feats {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 26px;
}

.core-feats li {
  display: flex;
  gap: 10px;
  font-size: 13.5px;
  color: var(--steel);
  align-items: flex-start;
}

.core-feats li::before {
  content: '—';
  color: var(--signal);
  flex-shrink: 0;
}

.core-cta {
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 500;
  border: 1px solid var(--line-bright);
  color: var(--steel-bright);
  transition: all .25s;
  width: 100%;
  background: none;
  cursor: pointer;
}

.core-card.featured .core-cta {
  background: var(--signal);
  color: #04101c;
  border-color: var(--signal);
  font-weight: 600;
}

.core-cta:hover {
  border-color: var(--signal);
  background: rgba(73, 198, 247, .08);
}

.core-card.featured .core-cta:hover {
  opacity: .9;
}

.services-head {
  margin-bottom: 28px;
}

.services-head h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--steel-bright);
  margin-bottom: 8px;
}

.services-head p {
  color: var(--steel);
  font-size: 14.5px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width:900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:620px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.custom-bundle-promo {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, var(--panel-light), var(--panel));
  border: 1px solid var(--line-bright);
  border-radius: 16px;
  padding: 28px 32px;
}

.custom-bundle-promo h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--steel-bright);
  margin-bottom: 6px;
}

.custom-bundle-promo p {
  color: var(--steel);
  font-size: 14px;
  max-width: 420px;
}

.custom-bundle-promo .btn {
  flex-shrink: 0;
}

.service-row {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
  transition: border-color .25s, transform .25s;
}

.service-row:hover {
  border-color: var(--line-bright);
  transform: translateY(-2px);
}

.service-row h4 {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  margin-bottom: 6px;
}

.service-row p {
  font-size: 13px;
  color: var(--steel);
  margin-bottom: 14px;
  min-height: 36px;
}

.service-row .price {
  font-size: 15px;
  color: var(--signal);
  font-weight: 600;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.service-row .price .num {
  font-family: var(--font-mono);
}

.service-row .price .unit {
  font-size: 11px;
  color: var(--steel-dim);
  font-weight: 400;
}

/* ============================================================
   CTA / CONTACT
   ============================================================ */
.contact-panel {
  background: linear-gradient(135deg, var(--panel-light), var(--panel));
  border: 1px solid var(--line-bright);
  border-radius: 22px;
  padding: 64px 56px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

@media (max-width:820px) {
  .contact-panel {
    grid-template-columns: 1fr;
    padding: 44px 30px;
  }
}

.contact-panel::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(73, 198, 247, .18), transparent 70%);
}

[dir="rtl"] .contact-panel::after {
  right: auto;
  left: -80px;
}

.contact-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 600;
  margin-bottom: 14px;
}

.contact-panel p {
  color: var(--steel);
  font-size: 15.5px;
  max-width: 440px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-links a {
  font-family: var(--font-mono);
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--steel-bright);
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid var(--line-bright);
  transition: all .25s;
  direction: ltr;
}

.contact-links a:hover {
  border-color: var(--signal);
  background: rgba(73, 198, 247, .08);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  padding: 44px 0 60px;
  border-top: 1px solid var(--line);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--steel-dim);
  font-size: 13.5px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13.5px;
  color: var(--steel-dim);
  transition: color .2s;
}

.footer-links a:hover {
  color: var(--steel-bright);
}