/* Techno Code — Brand & Web Design System */

:root {
  --circuit-navy: #0a0f1e;
  --signal-blue: #0089c7;
  --emerald-teal: #00966b;
  --volt-lime: #9dc320;
  --paper-white: #f5f7f6;
  --slate-ink: #1c2430;
  --muted: #5b6675;
  --border-light: rgba(28, 36, 48, 0.1);
  --border-dark: rgba(245, 247, 246, 0.12);
  --glass: rgba(245, 247, 246, 0.06);
  --brand-gradient: linear-gradient(135deg, #0089c7 0%, #00966b 50%, #9dc320 100%);
  --brand-gradient-hover: linear-gradient(225deg, #0089c7 0%, #00966b 45%, #9dc320 100%);
  --radius-card: 18px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 50px rgba(10, 15, 30, 0.08);
  --header-h: 84px;
  --container: 1160px;
  --font-ar-display: "Cairo", sans-serif;
  --font-ar-body: "Tajawal", sans-serif;
  --font-en: "Poppins", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper-white);
  color: var(--slate-ink);
  font-family: var(--font-ar-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

body[data-lang="en"] {
  font-family: var(--font-en);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--signal-blue);
  outline-offset: 3px;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

/* Typography */
.display,
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

body[data-lang="ar"] .display,
body[data-lang="ar"] h1,
body[data-lang="ar"] h2,
body[data-lang="ar"] h3 {
  font-family: var(--font-ar-display);
}

body[data-lang="en"] .display,
body[data-lang="en"] h1,
body[data-lang="en"] h2,
body[data-lang="en"] h3 {
  font-family: var(--font-en);
}

h1,
.display {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
}

h3 {
  font-size: 1.375rem;
  font-weight: 600;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 42rem;
}

.caption,
.mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  position: relative;
}

.section-head {
  margin-bottom: 2.5rem;
  max-width: 40rem;
}

.section-head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--emerald-teal);
  margin-bottom: 0.85rem;
}

.section-head .eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-gradient);
  box-shadow: 0 0 0 4px rgba(0, 150, 107, 0.12);
}

.section-head h2 {
  margin-bottom: 0.75rem;
}

.section--dark {
  background: var(--circuit-navy);
  color: var(--paper-white);
}

.section--dark .lead,
.section--dark .section-head .lead {
  color: rgba(245, 247, 246, 0.72);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.85rem 1.45rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
  color: #fff;
  background: var(--brand-gradient);
  background-size: 200% 200%;
  background-position: 0% 50%;
  box-shadow: 0 10px 30px rgba(0, 137, 199, 0.25);
}

.btn-primary:hover {
  background: var(--brand-gradient-hover);
  background-position: 100% 50%;
  transform: translateY(-2px);
}

.btn-secondary {
  color: var(--paper-white);
  border-color: rgba(245, 247, 246, 0.28);
  background: rgba(245, 247, 246, 0.06);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: rgba(157, 195, 32, 0.7);
  background: rgba(245, 247, 246, 0.1);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--slate-ink);
  border-color: var(--border-light);
  background: #fff;
}

.btn-ghost:hover {
  border-color: var(--signal-blue);
  color: var(--signal-blue);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--signal-blue);
  font-weight: 600;
  min-height: 44px;
}

.btn-link:hover {
  color: var(--emerald-teal);
}

.btn-link svg {
  transition: transform 0.25s var(--ease);
}

[dir="rtl"] .btn-link:hover svg {
  transform: translateX(-4px);
}

[dir="ltr"] .btn-link:hover svg {
  transform: translateX(4px);
}

/* Header */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  transition: height 0.3s var(--ease), background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  --header-h: 68px;
  background: rgba(10, 15, 30, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border-dark);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand img {
  width: 44px;
  height: auto;
  object-fit: contain;
}

.service-card[id] {
  scroll-margin-top: calc(var(--header-h) + 1.25rem);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--paper-white);
}

body[data-lang="ar"] .brand__name {
  font-family: var(--font-ar-display);
}

body[data-lang="en"] .brand__name {
  font-family: var(--font-en);
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(245, 247, 246, 0.55);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav a {
  color: rgba(245, 247, 246, 0.82);
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-weight: 500;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav a:hover,
.nav a.is-active {
  color: #fff;
  background: rgba(245, 247, 246, 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.phone-ltr {
  direction: ltr !important;
  unicode-bidi: isolate;
  display: inline-block;
  white-space: nowrap;
}

/* Keep phone aligned with RTL/LTR text column, while digits stay LTR */
a[href^="tel:"]:not(.btn) {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-inline-end: auto;
}

/* Floating contact buttons */
.float-buttons {
  position: fixed;
  inset-inline-end: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.float-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 8px 22px rgba(10, 15, 30, 0.28);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.float-btn svg {
  display: block;
  shape-rendering: geometricPrecision;
}

.float-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 28px rgba(10, 15, 30, 0.35);
}

.float-btn--whatsapp {
  background: #25d366;
}

.float-btn--instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.lang-switch {
  display: inline-flex;
  align-items: stretch;
  height: 34px;
  border: 1px solid rgba(245, 247, 246, 0.18);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(245, 247, 246, 0.05);
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: rgba(245, 247, 246, 0.7);
  padding: 0 0.75rem;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

.lang-switch button.is-active {
  background: var(--brand-gradient);
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(245, 247, 246, 0.2);
  background: rgba(245, 247, 246, 0.06);
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 2.5rem) 0 4.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(0, 137, 199, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(0, 150, 107, 0.18), transparent 50%),
    radial-gradient(ellipse 40% 40% at 85% 75%, rgba(157, 195, 32, 0.12), transparent 45%),
    var(--circuit-navy);
  color: var(--paper-white);
  overflow: hidden;
}

.hero__orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
  animation: orbFloat 12s ease-in-out infinite;
}

.orb-a {
  width: 280px;
  height: 280px;
  background: rgba(0, 137, 199, 0.45);
  top: 10%;
  inset-inline-end: 8%;
}

.orb-b {
  width: 220px;
  height: 220px;
  background: rgba(0, 150, 107, 0.35);
  bottom: 12%;
  inset-inline-start: 10%;
  animation-delay: -4s;
}

.orb-c {
  width: 160px;
  height: 160px;
  background: rgba(157, 195, 32, 0.28);
  top: 45%;
  inset-inline-end: 35%;
  animation-delay: -7s;
}

@keyframes orbFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(18px, -22px, 0) scale(1.08);
  }
}

.scroll-hint {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 28px;
  height: 44px;
  border: 1.5px solid rgba(245, 247, 246, 0.35);
  border-radius: 999px;
  display: grid;
  place-items: start center;
  padding-top: 8px;
}

.scroll-hint span {
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--volt-lime);
  animation: scrollDot 1.6s ease-in-out infinite;
}

@keyframes scrollDot {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(14px);
    opacity: 0;
  }
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__visual {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
}

.hero__image {
  width: min(100%, 460px);
  position: relative;
}

.hero__image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.hero__copy .brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero__copy .brand-mark strong {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body[data-lang="ar"] .hero__copy .brand-mark strong {
  font-family: var(--font-ar-display);
}

body[data-lang="en"] .hero__copy .brand-mark strong {
  font-family: var(--font-en);
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero .lead {
  color: rgba(245, 247, 246, 0.75);
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.circuit-board {
  width: min(100%, 420px);
  aspect-ratio: 1;
  position: relative;
}

.circuit-board svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.circuit-path {
  fill: none;
  stroke: url(#circuitGrad);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

.circuit-path.is-drawn {
  animation: drawCircuit 0.85s var(--ease) forwards;
}

.circuit-node {
  fill: var(--volt-lime);
  opacity: 0;
  transform-origin: center;
}

.circuit-node.is-drawn {
  animation: nodeIn 0.4s var(--ease) forwards;
}

.circuit-glow {
  position: absolute;
  inset: 15%;
  background: radial-gradient(circle, rgba(0, 137, 199, 0.25), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

@keyframes drawCircuit {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes nodeIn {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-line {
  opacity: 0;
  transform: translateY(18px);
}

.hero-line.is-in {
  animation: riseIn 0.55s var(--ease) forwards;
}

body:not(.is-ready) .hero-line {
  animation: riseIn 0.01s 1.2s forwards;
}

@keyframes riseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stats */
.stats {
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  margin-top: -1px;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.75rem 0;
}

.stat {
  text-align: center;
  padding: 0.75rem;
  position: relative;
}

.stat:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-inline-end: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(0, 137, 199, 0.35), transparent);
}

.stat__value {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 500;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.25rem;
}

.stat__label {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Circuit divider */
.circuit-divider {
  display: block;
  width: 100%;
  height: 48px;
  overflow: hidden;
}

.circuit-divider svg {
  width: 100%;
  height: 100%;
}

.circuit-divider .trace {
  fill: none;
  stroke: url(#dividerGrad);
  stroke-width: 1.5;
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
}

.circuit-divider.is-in .trace {
  animation: drawCircuit 0.8s var(--ease) forwards;
}

.circuit-divider .dot {
  fill: var(--volt-lime);
  opacity: 0;
}

.circuit-divider.is-in .dot {
  animation: nodeIn 0.35s 0.45s var(--ease) forwards;
}

/* Service cards */
.section--services {
  background:
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(0, 137, 199, 0.06), transparent 55%),
    var(--paper-white);
}

.section--about {
  background: #eef2f0;
}

.section--why {
  background: var(--paper-white);
}

.section--portfolio,
.section--contact {
  background: #eef2f0;
}

.about-intro {
  font-size: 1.1rem;
  max-width: 52rem;
  margin: 0 0 1.75rem;
  color: var(--muted);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-card {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f7faf8 100%);
  border: 1px solid rgba(28, 36, 48, 0.08);
  border-radius: 22px;
  padding: 1.45rem 1.4rem 1.35rem;
  box-shadow: 0 10px 30px rgba(10, 15, 30, 0.05);
  transition: transform 0.35s var(--ease), border-color 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
  isolation: isolate;
}

.service-card__shine {
  position: absolute;
  inset: auto -40% 40% -40%;
  height: 55%;
  background: linear-gradient(115deg, transparent, rgba(0, 137, 199, 0.08), rgba(157, 195, 32, 0.1), transparent);
  transform: translateX(-30%) rotate(8deg);
  transition: transform 0.6s var(--ease);
  pointer-events: none;
  z-index: 0;
}

.service-card > *:not(.service-card__shine) {
  position: relative;
  z-index: 1;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg, rgba(0, 137, 199, 0.15), transparent 40%, transparent 60%, rgba(157, 195, 32, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.55;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 55px rgba(10, 15, 30, 0.12);
  border-color: transparent;
}

.service-card:hover::before {
  opacity: 1;
  background: var(--brand-gradient);
}

.service-card:hover .service-card__shine {
  transform: translateX(35%) rotate(8deg);
}

.service-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.service-card__index {
  color: rgba(28, 36, 48, 0.28);
  font-size: 0.78rem;
}

.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(0, 137, 199, 0.12), rgba(0, 150, 107, 0.1));
  color: var(--signal-blue);
  position: relative;
  transition: transform 0.35s var(--ease), color 0.35s ease;
}

.service-card:hover .service-card__icon {
  transform: scale(1.06);
  color: var(--emerald-teal);
}

.service-card__icon .node {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--volt-lime);
  inset-inline-end: -2px;
  top: -2px;
  opacity: 0.7;
  box-shadow: 0 0 0 3px rgba(157, 195, 32, 0.15);
}

.service-card:hover .service-card__icon .node {
  animation: pulseNode 1s ease infinite;
}

@keyframes pulseNode {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.4);
    opacity: 1;
  }
}

.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 150, 107, 0.08);
  color: var(--emerald-teal);
  border: 1px solid rgba(0, 150, 107, 0.15);
}

.service-card h3 {
  margin-bottom: 0.55rem;
  font-size: 1.15rem;
}

.service-card p {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
  min-height: 4.2em;
}

/* Why us */
.why-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.why-list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.why-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border-light);
}

.why-list .bullet {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  background: var(--brand-gradient);
  box-shadow: 0 0 0 4px rgba(0, 137, 199, 0.1);
  position: relative;
}

.why-list .bullet::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #fff;
}

.why-visual {
  position: relative;
  min-height: 380px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 30% 30%, rgba(0, 137, 199, 0.35), transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(157, 195, 32, 0.25), transparent 40%),
    linear-gradient(160deg, #0f1729, #0a0f1e 70%);
  border: 1px solid rgba(245, 247, 246, 0.08);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.device-stack {
  width: min(100%, 320px);
  position: relative;
}

.device {
  border-radius: 18px;
  border: 1px solid rgba(245, 247, 246, 0.18);
  background: rgba(245, 247, 246, 0.04);
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 40px rgba(0, 137, 199, 0.15);
}

.device--laptop {
  aspect-ratio: 16 / 10;
  padding: 0.7rem;
}

.device--laptop .screen {
  height: 100%;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(0, 137, 199, 0.35), rgba(0, 150, 107, 0.25)),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 18px,
      rgba(245, 247, 246, 0.04) 18px,
      rgba(245, 247, 246, 0.04) 19px
    );
  position: relative;
  overflow: hidden;
}

.device--phone {
  width: 38%;
  aspect-ratio: 9 / 17;
  position: absolute;
  inset-inline-end: -4%;
  bottom: -8%;
  padding: 0.45rem;
  background: rgba(10, 15, 30, 0.85);
}

.device--phone .screen {
  height: 100%;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(157, 195, 32, 0.25), rgba(0, 137, 199, 0.3));
}

/* Process */
.process-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  position: relative;
}

.process-track::before {
  content: "";
  position: absolute;
  top: 28px;
  inset-inline: 8%;
  height: 2px;
  background: linear-gradient(90deg, #0089c7, #00966b, #9dc320);
  opacity: 0.35;
}

.process-step {
  position: relative;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 1.35rem 1.2rem;
}

.process-step__num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #fff;
  background: var(--brand-gradient);
  margin-bottom: 1rem;
  box-shadow: 0 0 0 6px rgba(0, 137, 199, 0.1);
}

.process-step h3 {
  margin-bottom: 0.45rem;
  font-size: 1.1rem;
}

.process-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* CTA banner */
.cta-banner {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: clamp(2.5rem, 5vw, 3.5rem);
  background:
    radial-gradient(circle at 85% 20%, rgba(157, 195, 32, 0.2), transparent 35%),
    radial-gradient(circle at 15% 80%, rgba(0, 137, 199, 0.25), transparent 40%),
    var(--circuit-navy);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border: 1px solid rgba(245, 247, 246, 0.08);
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}

.cta-banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(0, 137, 199, 0.2);
}

.cta-banner h2 {
  margin-bottom: 0.55rem;
}

.cta-banner p {
  margin: 0;
  color: rgba(245, 247, 246, 0.72);
  max-width: 34rem;
}

/* Page hero (inner pages) */
.page-hero {
  padding: calc(var(--header-h) + 3.5rem) 0 3.5rem;
  background:
    radial-gradient(ellipse 70% 80% at 80% 0%, rgba(0, 137, 199, 0.2), transparent 50%),
    radial-gradient(ellipse 50% 60% at 10% 100%, rgba(0, 150, 107, 0.15), transparent 45%),
    var(--circuit-navy);
  color: #fff;
}

.page-hero .lead {
  color: rgba(245, 247, 246, 0.72);
  margin-top: 0.85rem;
}

/* About */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.value-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 1.35rem;
}

.value-card h3 {
  margin: 0.75rem 0 0.45rem;
  font-size: 1.1rem;
}

.value-card p {
  margin: 0;
  color: var(--muted);
}

.vision-mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

.panel {
  border-radius: var(--radius-card);
  padding: 1.75rem;
  border: 1px solid var(--border-light);
  background: #fff;
}

.panel--accent {
  background:
    linear-gradient(160deg, rgba(0, 137, 199, 0.08), rgba(157, 195, 32, 0.08)),
    #fff;
  border-color: rgba(0, 137, 199, 0.15);
}

.panel h3 {
  margin-bottom: 0.65rem;
}

.panel p {
  margin: 0;
  color: var(--muted);
}

/* Portfolio empty */
.portfolio-empty {
  text-align: center;
  padding: 3.5rem 1.5rem;
  border-radius: 24px;
  border: 1px dashed rgba(0, 137, 199, 0.3);
  background: rgba(0, 137, 199, 0.04);
}

.portfolio-empty .mono {
  color: var(--emerald-teal);
  margin-bottom: 0.75rem;
  display: inline-block;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.contact-card {
  background: var(--circuit-navy);
  color: #fff;
  border-radius: 24px;
  padding: 1.75rem;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.contact-card a {
  color: #fff;
}

.contact-meta {
  display: grid;
  gap: 1.15rem;
  margin: 1.5rem 0;
}

.contact-meta div span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(245, 247, 246, 0.5);
  margin-bottom: 0.3rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.socials {
  display: flex;
  gap: 0.65rem;
}

.socials a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(245, 247, 246, 0.18);
  background: rgba(245, 247, 246, 0.05);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.socials a:hover {
  border-color: var(--volt-lime);
  transform: translateY(-2px);
}

.form {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-weight: 600;
  font-size: 0.92rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--border-light);
  background: var(--paper-white);
  padding: 0.75rem 0.95rem;
  color: var(--slate-ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--signal-blue);
  box-shadow: 0 0 0 4px rgba(0, 137, 199, 0.12);
}

.form-note {
  margin-top: 1rem;
  min-height: 1.5rem;
  font-size: 0.92rem;
}

.form-note.is-success {
  color: var(--emerald-teal);
}

.form-note.is-error {
  color: #c0392b;
}

.map-embed {
  margin-top: 1.5rem;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(245, 247, 246, 0.1);
  aspect-ratio: 16 / 10;
  background: rgba(245, 247, 246, 0.04);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.2) contrast(1.05);
}

/* Footer */
.site-footer {
  background: var(--circuit-navy);
  color: rgba(245, 247, 246, 0.78);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.site-footer .brand__name {
  color: #fff;
}

.site-footer h4 {
  margin: 0 0 1rem;
  color: #fff;
  font-size: 1rem;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
}

.footer-links a:hover {
  color: var(--volt-lime);
}

.footer-bottom {
  border-top: 1px solid rgba(245, 247, 246, 0.1);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.65s var(--ease),
    transform 0.65s var(--ease);
  transition-delay: calc(var(--d, 0) * 70ms);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

body:not(.is-ready) .reveal {
  opacity: 1;
  transform: none;
}

.value-card,
.process-step,
.panel,
.why-list li {
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease, border-color 0.3s ease;
}

.value-card:hover,
.process-step:hover,
.panel:hover,
.why-list li:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(10, 15, 30, 0.08);
  border-color: rgba(0, 137, 199, 0.2);
}

/* Mobile nav */
.nav-drawer {
  display: none;
}

@media (max-width: 980px) {
  .hero__grid,
  .why-grid,
  .contact-grid,
  .vision-mission {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-track {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-track::before {
    display: none;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(2)::after {
    display: none;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-actions > .lang-switch {
    display: none;
  }

  .hero .brand-mark {
    display: none;
  }

  .nav-drawer {
    display: block;
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(10, 15, 30, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-dark);
    padding: 1rem 1.25rem 1.25rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s ease;
    z-index: 99;
  }

  .nav-drawer.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-drawer a {
    display: block;
    padding: 0.9rem 0.4rem;
    color: #fff;
    border-bottom: 1px solid rgba(245, 247, 246, 0.08);
    font-weight: 500;
  }

  .nav-drawer__lang {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 0.85rem;
  }

  .nav-drawer__lang-label {
    color: rgba(245, 247, 246, 0.55);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
}

@media (min-width: 981px) {
  .nav-drawer__lang {
    display: none;
  }
}

@media (max-width: 640px) {
  .float-buttons {
    inset-inline-end: 0.65rem;
    gap: 0.55rem;
  }

  .float-btn {
    width: 44px;
    height: 44px;
  }

  .container {
    width: min(100% - 1.5rem, var(--container));
  }

  .services-grid,
  .values-grid,
  .form-grid,
  .footer-grid,
  .process-track {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-bottom: 3rem;
  }

  .hero__visual {
    min-height: 280px;
  }

  .cta-banner {
    border-radius: 20px;
  }

  .contact-card {
    position: static;
  }

  /* Simplify glass on mobile */
  .section--dark .service-card {
    backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .hero-line,
  .circuit-path,
  .circuit-node {
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
  }

}
