:root {
  --bg: #080b10;
  --bg-2: #0c1118;
  --elev: #10151f;
  --card: #141b27;
  --line: rgba(244, 241, 234, 0.1);
  --text: #f4f1ea;
  --muted: #9aa4b2;
  --brand: #be0b0c;
  --brand-hover: #d41516;
  --mint: #be0b0c;
  --mint-dim: rgba(190, 11, 12, 0.16);
  --gold: #e7c56a;
  --blue: #7aa2ff;
  --app: #54c5f8;
  --danger: #ff8b8b;
  --ok: #3ee0b0;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --header: 76px;
  --font: "Outfit", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --display: "Syne", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html[lang="ar"] {
  --font: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --display: "IBM Plex Sans Arabic", system-ui, sans-serif;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -40px;
  background: var(--brand);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 80;
}

.skip:focus {
  top: 12px;
}

.bit-field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

.page {
  position: relative;
  z-index: 1;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
  perspective: 1200px;
}

section {
  position: relative;
}

.orb-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.28;
  animation: orbfloat 22s ease-in-out infinite;
}

.orb-a {
  width: 320px;
  height: 320px;
  background: var(--brand);
  top: -100px;
  inset-inline-start: 6%;
  animation-duration: 24s;
}

.orb-b {
  width: 280px;
  height: 280px;
  background: var(--blue);
  top: 30%;
  inset-inline-end: -80px;
  animation-duration: 28s;
  animation-delay: -6s;
}

.orb-c {
  width: 220px;
  height: 220px;
  background: var(--gold);
  bottom: -70px;
  inset-inline-start: 38%;
  animation-duration: 20s;
  animation-delay: -3s;
}

@keyframes orbfloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(24px, -30px, 0) scale(1.08);
  }
}

[data-tilt] {
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
  will-change: transform;
  transform-style: preserve-3d;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header);
  display: flex;
  align-items: center;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(8, 11, 16, 0.78);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}

.header-inner {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.04em;
}

.brand-text span {
  color: var(--muted);
  font-size: 12px;
}

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

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

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

.lang-switch {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  min-width: 42px;
  height: 30px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.lang-switch button.is-active {
  background: var(--text);
  color: #0b0f14;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 20px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-hover);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(244, 241, 234, 0.28);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  position: relative;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  inset-inline-start: 11px;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span {
  top: 20px;
}

.nav-toggle::before {
  top: 14px;
}

.nav-toggle::after {
  top: 26px;
}

.nav-toggle.is-open span {
  opacity: 0;
}

.nav-toggle.is-open::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open::after {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-drawer {
  display: none;
}

body.nav-open .site-header {
  background: #080b10;
  border-bottom-color: var(--line);
}

.hero {
  padding: 48px 0 72px;
  position: relative;
}

.hero-3d {
  position: absolute;
  inset-inline-end: 2%;
  top: -10px;
  width: 380px;
  height: 420px;
  pointer-events: none;
  z-index: 0;
  perspective: 1400px;
}

.hero-3d-stage {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.mock {
  position: absolute;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(20, 27, 39, 0.9), rgba(16, 21, 31, 0.55));
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  overflow: hidden;
}

.mock-phone {
  width: 140px;
  height: 280px;
  inset-inline-start: 30px;
  top: 50px;
  border-radius: 28px;
  animation: floatPhone 7s ease-in-out infinite;
}

.mock-browser {
  width: 230px;
  height: 150px;
  inset-inline-end: 0;
  top: 130px;
  animation: floatBrowser 9s ease-in-out infinite;
}

.mock-cloud {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  inset-inline-end: 50px;
  top: 0;
  border-color: rgba(122, 162, 255, 0.35);
  background: radial-gradient(circle at 32% 32%, rgba(122, 162, 255, 0.55), rgba(122, 162, 255, 0.06));
  animation: floatCloud 6s ease-in-out infinite;
}

.mock-glow {
  position: absolute;
  inset: 20px 14px auto 14px;
  height: 46%;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(190, 11, 12, 0.4), transparent);
}

.mock-bar {
  position: absolute;
  inset-inline: 14px;
  top: 14px;
  height: 10px;
  border-radius: 6px;
  background: rgba(244, 241, 234, 0.16);
}

@keyframes floatPhone {
  0%,
  100% {
    transform: rotateY(-18deg) rotateX(6deg) translateZ(60px) translateY(0);
  }
  50% {
    transform: rotateY(-18deg) rotateX(6deg) translateZ(60px) translateY(-16px);
  }
}

@keyframes floatBrowser {
  0%,
  100% {
    transform: rotateY(14deg) rotateX(-4deg) translateZ(20px) translateY(0);
  }
  50% {
    transform: rotateY(14deg) rotateX(-4deg) translateZ(20px) translateY(12px);
  }
}

@keyframes floatCloud {
  0%,
  100% {
    transform: translateZ(90px) translateY(0);
  }
  50% {
    transform: translateZ(90px) translateY(-10px);
  }
}

@media (max-width: 1180px) {
  .hero-3d {
    display: none;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: end;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 16px;
}

.kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--gold);
}

[dir="rtl"] .kicker::before {
  order: 2;
}

h1,
h2,
h3 {
  font-family: var(--display);
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 72px);
  max-width: 14ch;
  font-weight: 700;
}

.lead {
  color: var(--muted);
  font-size: 18px;
  max-width: 52ch;
  margin: 22px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-panel {
  background: linear-gradient(180deg, rgba(20, 27, 39, 0.9), rgba(16, 21, 31, 0.72));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.hero-stats {
  display: grid;
  gap: 14px;
}

.stat {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
}

.stat strong {
  display: block;
  font-family: var(--display);
  font-size: 22px;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
}

.outcomes {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.outcomes li {
  position: relative;
  padding: 10px 12px 10px 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.025);
}

[dir="rtl"] .outcomes li {
  padding: 10px 28px 10px 12px;
}

.outcomes li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  position: absolute;
  inset-inline-start: 12px;
  top: 1em;
}

.who-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.who-list li {
  border: 1px solid var(--line);
  background: var(--elev);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 14px;
}

.marquee {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
  overflow: hidden;
  padding: 18px 0;
}

.marquee-label {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 10px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.marquee-viewport {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 42px;
  width: max-content;
  animation: marquee 42s linear infinite;
}

[dir="rtl"] .marquee-track {
  animation-direction: reverse;
}

.marquee-item {
  color: var(--text);
  font-family: var(--display);
  font-size: 15px;
  opacity: 0.72;
  white-space: nowrap;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

section {
  padding: 92px 0;
}

.section-head {
  max-width: 680px;
  margin-bottom: 42px;
}

@media (min-width: 981px) {
  .stack-grid .section-head {
    position: sticky;
    top: calc(var(--header) + 32px);
    align-self: start;
  }
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 48px);
}

.section-head .lead {
  font-size: 16px;
}

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

.service-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  min-height: 100%;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.22;
  inset-inline-end: -60px;
  top: -70px;
}

.service-card.mobile::after {
  background: var(--app);
}

.service-card.web::after {
  background: var(--mint);
}

.service-card.cloud::after {
  background: var(--blue);
}

.service-tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}

.service-card h3 {
  font-size: 28px;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--muted);
  margin: 0 0 18px;
}

.service-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.service-card li {
  padding-inline-start: 18px;
  position: relative;
  font-size: 14px;
}

.service-card li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
}

.service-tech {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.stack-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 28px;
  align-items: start;
}

.stack-visual {
  background: radial-gradient(circle at 20% 20%, rgba(190, 11, 12, 0.16), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(122, 162, 255, 0.14), transparent 42%),
    var(--elev);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-loop {
  position: relative;
  width: min(340px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
}

.flow-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.flow-ring-track {
  fill: none;
  stroke: var(--line);
  stroke-width: 1.5;
}

.flow-ring-progress {
  fill: none;
  stroke: var(--mint);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 16 24;
  transform-origin: 180px 180px;
  opacity: 0.85;
  animation: ringRotate 16s linear infinite;
}

@keyframes ringRotate {
  to {
    transform: rotate(360deg);
  }
}

.flow-node {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 1px solid var(--line);
  background: rgba(8, 11, 16, 0.7);
  border-radius: 20px;
  padding: 10px 12px;
  width: 100px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.25;
  animation: flowNodePulse 7.5s ease-in-out infinite;
}

.flow-node.n1 {
  left: 50%;
  top: 13.9%;
  color: var(--mint);
  border-color: rgba(190, 11, 12, 0.45);
  animation-delay: 0s;
}

.flow-node.n2 {
  left: 84.3%;
  top: 38.8%;
  color: var(--gold);
  border-color: rgba(231, 197, 106, 0.35);
  animation-delay: 1.5s;
}

.flow-node.n3 {
  left: 71.2%;
  top: 79.2%;
  color: var(--blue);
  border-color: rgba(122, 162, 255, 0.35);
  animation-delay: 3s;
}

.flow-node.n4 {
  left: 28.8%;
  top: 79.2%;
  animation-delay: 4.5s;
}

.flow-node.n5 {
  left: 15.7%;
  top: 38.8%;
  color: var(--mint);
  border-color: rgba(190, 11, 12, 0.45);
  animation-delay: 6s;
}

@keyframes flowNodePulse {
  0% {
    box-shadow: 0 0 0 rgba(190, 11, 12, 0);
    transform: translate(-50%, -50%) scale(1);
  }
  6% {
    box-shadow: 0 0 26px rgba(190, 11, 12, 0.5);
    transform: translate(-50%, -50%) scale(1.08);
  }
  20%,
  100% {
    box-shadow: 0 0 0 rgba(190, 11, 12, 0);
    transform: translate(-50%, -50%) scale(1);
  }
}

.flow-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: 130px;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 640px) {
  .flow-node {
    font-size: 10px;
    width: 86px;
    padding: 8px 9px;
  }
}

.stack-points {
  display: grid;
  gap: 14px;
}

.stack-point {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.02);
}

.stack-point h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.stack-point p {
  margin: 0;
  color: var(--muted);
}

.tech-panel {
  margin-top: 18px;
  border: 1px dashed rgba(190, 11, 12, 0.4);
  border-radius: 20px;
  padding: 22px;
  background: rgba(190, 11, 12, 0.06);
}

.tech-panel h3 {
  font-size: 22px;
  margin-bottom: 16px;
}

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

.tech-grid h4 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 16px;
}

.tech-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.work-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.chip {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
}

.chip.is-active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

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

.work-card {
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.work-card:hover {
  transform: translateY(-4px);
  border-color: rgba(190, 11, 12, 0.4);
}

.work-visual {
  height: 168px;
  position: relative;
  overflow: hidden;
}

.work-visual-frame,
.work-visual-ui {
  position: absolute;
}

.work-visual-icon {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  padding: 10px;
  box-sizing: border-box;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.4));
}

.work-visual-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-visual[data-visual="reciters"] {
  background: linear-gradient(160deg, #12352c, #1a1f18 60%, #0e2a33);
}

.work-visual[data-visual="rvqc"] {
  background: linear-gradient(160deg, #1d3a24, #102018);
}

.work-visual[data-visual="doctori"] {
  background: linear-gradient(160deg, #16344a, #0d1c2a);
}

.work-visual[data-visual="ipartner"] {
  background: linear-gradient(160deg, #1c2430, #0e1319);
}

.work-visual[data-visual="prices"] {
  background: linear-gradient(160deg, #14243a, #0c1420);
}

.work-visual[data-visual="pay"] {
  background: linear-gradient(160deg, #0f2f28, #173a22);
}

.work-visual[data-visual="arch"] {
  background: linear-gradient(160deg, #2a2a28, #151513);
}

.work-visual[data-visual="doobi"] {
  background: linear-gradient(160deg, #123a3a, #0c2226);
}

.work-visual[data-visual="serenia"] {
  background: linear-gradient(160deg, #1a2f5c, #0c1428);
}

.work-visual[data-visual="corp"] {
  background: linear-gradient(160deg, #1a2740, #10151f);
}

.work-visual[data-visual="fajr"] {
  background: linear-gradient(160deg, #3a2410, #1a140c);
}

.work-visual-frame {
  width: 86px;
  height: 150px;
  border: 3px solid rgba(244, 241, 234, 0.55);
  border-radius: 18px;
  inset-inline-start: 28px;
  bottom: -28px;
  background: rgba(8, 11, 16, 0.45);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.work-card[data-category="web"] .work-visual-frame {
  width: 150px;
  height: 96px;
  border-radius: 10px;
  inset-inline-start: 24px;
  bottom: 28px;
}

.work-visual-ui {
  inset-inline-start: 42px;
  top: 42px;
  width: 58px;
  display: grid;
  gap: 6px;
}

.work-visual-ui::before,
.work-visual-ui::after {
  content: "";
  height: 8px;
  border-radius: 99px;
  background: rgba(244, 241, 234, 0.55);
}

.work-visual-ui::after {
  width: 70%;
  background: var(--mint);
}

.work-card[data-category="web"] .work-visual-ui {
  inset-inline-start: 38px;
  top: 58px;
  width: 118px;
}

.work-body {
  padding: 20px 20px 22px;
  display: grid;
  gap: 8px;
}

.work-kicker {
  margin: 0;
  color: var(--gold);
  font-size: 12px;
}

.work-body h3 {
  font-size: 22px;
}

.work-body h3 a {
  color: inherit;
  text-underline-offset: 3px;
}

.work-body h3 a:hover,
.work-body h3 a:focus-visible {
  text-decoration: underline;
}

.work-link-arrow {
  display: inline-block;
  margin-inline-start: 6px;
  color: var(--mint);
  font-size: 0.75em;
}

.work-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.work-tags span {
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.step {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 18px;
  background: var(--elev);
}

.step-index {
  font-family: var(--mono);
  color: var(--mint);
  font-size: 12px;
  margin-bottom: 10px;
}

.step h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 36px;
}

.about-copy p {
  color: var(--muted);
  font-size: 17px;
}

.about-meta {
  display: grid;
  gap: 12px;
  align-content: start;
}

.meta-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: var(--card);
}

.meta-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
}

.contact-card,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--elev);
  padding: 26px;
}

.contact-list {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.contact-list a,
.contact-list p {
  margin: 0;
}

.contact-list span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.contact-form {
  display: grid;
  gap: 14px;
  position: relative;
}

label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  background: rgba(8, 11, 16, 0.65);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(190, 11, 12, 0.55);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-legal {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
}

.form-legal a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.grecaptcha-badge {
  visibility: hidden !important;
}

.contact-form .btn[disabled] {
  opacity: 0.65;
  cursor: wait;
}

.form-status {
  min-height: 1.4em;
  font-size: 13px;
  color: var(--muted);
}

.form-status.is-error {
  color: var(--danger);
}

.form-status.is-ok {
  color: var(--ok);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--elev);
  padding: 0 20px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  color: var(--brand);
  font-weight: 700;
  flex-shrink: 0;
}

.faq-list details[open] summary::after {
  content: "–";
}

.faq-list details p {
  margin: 0 0 16px;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px) rotateX(6deg);
  transform-origin: top center;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .nav-links,
  .header-tools .btn {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-drawer {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: fixed;
    top: var(--header);
    inset-inline: 0;
    bottom: 0;
    z-index: 45;
    background: #080b10;
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 32px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
    overflow-y: auto;
  }

  .nav-drawer.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-drawer a {
    display: flex;
    align-items: center;
    padding: 16px 2px;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 1px solid var(--line);
  }

  .nav-drawer .btn {
    display: flex;
    margin-top: 18px;
    border: 0;
  }

  .hero-grid,
  .service-grid,
  .stack-grid,
  .tech-grid,
  .work-grid,
  .timeline,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: none;
  }

  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .wrap,
  .header-inner,
  .marquee-label {
    width: min(1180px, calc(100% - 28px));
  }

  section {
    padding: 72px 0;
  }

  .hero {
    padding-top: 28px;
  }

  .work-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .marquee-track,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }

  .orb,
  .mock-phone,
  .mock-browser,
  .mock-cloud,
  .flow-node,
  .flow-ring-progress {
    animation: none !important;
  }

  [data-tilt] {
    transition: none !important;
  }
}
