:root {
  color-scheme: dark;
  --bg: #03060d;
  --bg-2: #07101f;
  --surface: rgba(10, 18, 31, 0.78);
  --surface-strong: rgba(8, 15, 27, 0.92);
  --line: rgba(102, 147, 255, 0.16);
  --line-strong: rgba(66, 126, 255, 0.48);
  --text: #f3f7ff;
  --muted: #aab6ca;
  --accent: #1f86ff;
  --accent-2: #0f62ff;
  --glow: rgba(36, 132, 255, 0.26);
  --shadow: 0 32px 80px rgba(0, 0, 0, 0.44);
  --radius: 22px;
  --section-gap: 108px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 80% 22%, rgba(30, 114, 255, 0.18), transparent 16%),
    radial-gradient(circle at 72% 54%, rgba(33, 112, 255, 0.08), transparent 24%),
    radial-gradient(circle at 26% 72%, rgba(5, 30, 75, 0.34), transparent 22%),
    linear-gradient(180deg, #020409 0%, #03060d 38%, #03070f 100%);
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
  overflow-x: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  position: relative;
  isolation: isolate;
}

.page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 140px 140px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.52), transparent 88%);
  pointer-events: none;
  z-index: -4;
}

.ambient {
  position: fixed;
  pointer-events: none;
  filter: blur(20px);
  z-index: -3;
}

.ambient-one {
  inset: 0 auto auto 68%;
  width: 470px;
  height: 470px;
  background: radial-gradient(circle, rgba(34, 123, 255, 0.28), transparent 68%);
}

.ambient-two {
  inset: 32% auto auto -8%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(8, 72, 196, 0.12), transparent 70%);
}

.ambient-three {
  inset: auto 8% 2% auto;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(23, 112, 255, 0.1), transparent 65%);
}

.section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 8px;
  gap: 24px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

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

.brand-top {
  position: relative;
  gap: 12px;
  align-items: center;
  min-width: fit-content;
}

.brand-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-word {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.46rem;
  font-size: 1rem;
  color: #eef4ff;
  line-height: 1;
}

.brand-image {
  line-height: 0;
}

.brand-logo {
  display: block;
  width: min(100%, 182px);
  height: auto;
  object-fit: contain;
  object-position: center;
  image-rendering: -webkit-optimize-contrast;
}

.nav {
  display: flex;
  align-items: center;
  gap: 40px;
  color: rgba(243, 247, 255, 0.84);
}

.nav a {
  position: relative;
  font-size: 0.98rem;
  transition: color 180ms ease;
}

.nav a:hover,
.nav a.active {
  color: #ffffff;
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 18px;
  height: 2px;
  translate: -50% 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.98rem;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
  white-space: nowrap;
}

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

.btn-primary {
  background: linear-gradient(180deg, #2a93ff 0%, #135ff5 100%);
  box-shadow: 0 18px 34px rgba(20, 96, 255, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 22px 40px rgba(20, 96, 255, 0.38);
}

.btn-ghost {
  border-color: rgba(54, 132, 255, 0.28);
  background: rgba(5, 10, 18, 0.56);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  border-color: rgba(54, 132, 255, 0.5);
}

.lang-toggle {
  appearance: none;
  border: 1px solid rgba(54, 132, 255, 0.28);
  background: rgba(5, 10, 18, 0.56);
  color: inherit;
  border-radius: 999px;
  padding: 0;
  height: 52px;
  min-width: 94px;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.lang-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(54, 132, 255, 0.5);
}

.lang-toggle__track {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 4px;
}

.lang-toggle__thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  border-radius: 999px;
  background: linear-gradient(180deg, #2a93ff 0%, #135ff5 100%);
  box-shadow: 0 16px 26px rgba(20, 96, 255, 0.32);
  transition: transform 220ms ease;
}

.lang-toggle__label {
  position: relative;
  z-index: 1;
  text-align: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: rgba(238, 244, 255, 0.72);
  transition: color 180ms ease;
}

html[data-lang="fa"] .lang-toggle__thumb,
.lang-toggle[data-lang="fa"] .lang-toggle__thumb,
.lang-toggle[aria-pressed="true"] .lang-toggle__thumb {
  transform: translateX(100%);
}

html[data-lang="en"] .lang-toggle__thumb,
.lang-toggle[data-lang="en"] .lang-toggle__thumb,
.lang-toggle[aria-pressed="false"] .lang-toggle__thumb {
  transform: translateX(0);
}

html[data-lang="fa"] .lang-toggle__label-fa,
html[data-lang="en"] .lang-toggle__label-en {
  color: #ffffff;
}

.lang-toggle[data-lang="fa"] .lang-toggle__label-fa,
.lang-toggle[aria-pressed="true"] .lang-toggle__label-fa,
.lang-toggle[data-lang="en"] .lang-toggle__label-en,
.lang-toggle[aria-pressed="false"] .lang-toggle__label-en {
  color: #ffffff;
}

html[data-lang="fa"] .lang-toggle__label-en,
html[data-lang="en"] .lang-toggle__label-fa {
  color: rgba(238, 244, 255, 0.72);
}

.lang-toggle[data-lang="fa"] .lang-toggle__label-en,
.lang-toggle[aria-pressed="true"] .lang-toggle__label-en,
.lang-toggle[data-lang="en"] .lang-toggle__label-fa,
.lang-toggle[aria-pressed="false"] .lang-toggle__label-fa {
  color: rgba(238, 244, 255, 0.72);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  align-items: center;
  gap: 42px;
  padding: 74px 0 60px;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 22px;
  color: #1d86ff;
  letter-spacing: 0.22em;
  font-size: 0.8rem;
  font-weight: 800;
}

.hero h1,
.section-heading h2,
.projects-copy h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(3.2rem, 6vw, 5.55rem);
  max-width: 12ch;
}

.hero h1 span {
  color: #2f88ff;
}

.lede,
.projects-copy p,
.glass-card p,
.footer p,
.cta-shell p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1rem;
}

.lede {
  max-width: 520px;
  margin: 22px 0 0;
  font-size: 1.08rem;
}

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

.hero-visual {
  position: relative;
  min-height: 500px;
}

.hero-card {
  position: relative;
  margin: 72px 0 0 auto;
  width: min(100%, 540px);
  min-height: 250px;
  padding: 24px 28px;
  border-radius: 18px;
  border: 1px solid rgba(95, 149, 255, 0.5);
  background: linear-gradient(180deg, rgba(8, 16, 27, 0.82) 0%, rgba(6, 10, 16, 0.92) 100%);
  box-shadow:
    0 0 0 1px rgba(116, 166, 255, 0.08),
    0 0 80px rgba(35, 123, 255, 0.12),
    inset 0 0 48px rgba(25, 88, 190, 0.04);
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, transparent 0%, rgba(91, 140, 255, 0.06) 36%, transparent 72%);
  pointer-events: none;
}

.window-dots {
  display: flex;
  gap: 8px;
  margin-bottom: 38px;
}

.window-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(162, 183, 217, 0.28);
}

.hero-card pre {
  margin: 0;
  font-family: "Space Grotesk", "Cascadia Code", monospace;
  font-size: 1.06rem;
  line-height: 1.6;
  color: #78b7ff;
  white-space: pre-wrap;
}

.hero-card code {
  color: #9cc7ff;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(48, 130, 255, 0.24);
  filter: drop-shadow(0 0 18px rgba(44, 144, 255, 0.26));
}

.orbit::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: 18px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2d8dff;
  box-shadow: 0 0 20px 8px rgba(45, 141, 255, 0.35);
}

.orbit-one {
  top: 30px;
  right: -32px;
  width: 302px;
  height: 302px;
  border-color: rgba(33, 126, 255, 0.28);
}

.orbit-two {
  bottom: -58px;
  right: 104px;
  width: 710px;
  height: 210px;
  border-width: 1.5px;
  border-color: rgba(33, 126, 255, 0.62);
  border-left-color: transparent;
  border-top-color: transparent;
  transform: rotate(-12deg);
  border-radius: 999px;
}

.brands {
  padding: 18px 0 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section-kicker {
  margin: 0;
  text-align: center;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: rgba(196, 206, 223, 0.72);
}

.brand-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  align-items: center;
  margin-top: 28px;
  color: rgba(174, 187, 208, 0.36);
  font-size: clamp(1.6rem, 3vw, 2.05rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
}

.services,
.projects,
.cta {
  padding: var(--section-gap) 0 0;
}

.section-heading {
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(2.1rem, 3.9vw, 3.3rem);
}

.section-heading::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  margin: 18px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #2482ff, transparent);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 48px;
}

.glass-card {
  padding: 30px 26px 28px;
  min-height: 246px;
  border-radius: 16px;
  border: 1px solid rgba(97, 141, 255, 0.12);
  background: linear-gradient(180deg, rgba(10, 18, 31, 0.72) 0%, rgba(8, 12, 19, 0.9) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02),
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 55px rgba(0, 0, 0, 0.25);
}

.card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 54px;
  border-radius: 12px;
  background: rgba(18, 45, 89, 0.52);
  box-shadow: 0 0 22px rgba(35, 129, 255, 0.14);
}

.card-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #1d86ff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.glass-card h3,
.project-card h3 {
  margin: 0 0 14px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
  font-weight: 500;
}

.glass-card p {
  margin: 0;
}

.projects {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 48px;
  align-items: center;
}

.projects-copy h2 {
  font-size: clamp(2.4rem, 4.1vw, 3.7rem);
}

.projects-copy p {
  max-width: 360px;
  margin: 24px 0 0;
}

.projects-copy .btn {
  margin-top: 28px;
}

.showcase {
  position: relative;
  min-height: 420px;
}

.project-card {
  position: absolute;
  inset: 0 auto auto 0;
  width: min(100%, 560px);
  border-radius: 18px;
  border: 1px solid rgba(104, 147, 255, 0.18);
  background: linear-gradient(180deg, rgba(12, 21, 36, 0.92) 0%, rgba(8, 12, 19, 0.96) 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 68%, rgba(35, 132, 255, 0.2), transparent 24%),
    linear-gradient(130deg, rgba(36, 114, 255, 0.08), transparent 52%);
  pointer-events: none;
}

.project-card-main {
  top: 0;
  z-index: 2;
  padding: 18px 24px 24px;
}

.project-card-back {
  top: 52px;
  left: auto;
  right: 18px;
  width: min(100%, 540px);
  min-height: 300px;
  opacity: 0.45;
  transform: scale(0.94);
  filter: blur(0.1px);
  padding: 18px 24px;
}

.project-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(187, 201, 224, 0.62);
  text-transform: uppercase;
}

.project-body {
  display: grid;
  grid-template-columns: 1.12fr 0.9fr;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
}

.project-text h3 {
  max-width: 10ch;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
}

.project-text p {
  margin: 0;
  color: var(--muted);
}

.device {
  display: grid;
  place-items: center;
  min-height: 280px;
}

.device-screen {
  width: 190px;
  height: 300px;
  border-radius: 30px;
  border: 1px solid rgba(116, 166, 255, 0.5);
  background:
    radial-gradient(circle at 50% 18%, rgba(43, 140, 255, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(10, 19, 32, 0.96), rgba(6, 10, 18, 0.98));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 20px 56px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(29, 123, 255, 0.16);
  transform: rotate(18deg);
  position: relative;
}

.device-screen::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  width: 62px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  translate: -50% 0;
}

.device-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(45, 139, 255, 0.4), transparent 62%),
    radial-gradient(circle at center, rgba(34, 120, 255, 0.18), transparent 74%);
  filter: blur(2px);
}

.device-screen span {
  position: absolute;
  left: 22px;
  right: 22px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(27, 132, 255, 0.22), rgba(145, 193, 255, 0.08));
}

.device-screen span:nth-child(1) {
  top: 88px;
  width: 76%;
}

.device-screen span:nth-child(2) {
  top: 130px;
  width: 54%;
}

.device-screen span:nth-child(3) {
  top: 172px;
  width: 64%;
}

.cta-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 28px 0 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-shell p {
  margin: 0;
  text-align: center;
  font-size: 1.06rem;
}

.cta-shell .btn {
  justify-self: end;
}

.cta-brand .brand-word {
  font-size: 0.95rem;
}

.cta-brand .brand-logo {
  width: min(100%, 160px);
}

.btn-contact-jump {
  white-space: nowrap;
}

.contact-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 22px;
  align-items: center;
  margin-top: 20px;
  padding: 22px;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(8, 16, 28, 0.96), rgba(11, 20, 36, 0.88)),
    radial-gradient(circle at top left, rgba(18, 104, 255, 0.12), transparent 55%);
  border: 1px solid rgba(62, 136, 255, 0.24);
  box-shadow:
    0 0 0 1px rgba(40, 105, 206, 0.08) inset,
    0 24px 80px rgba(0, 0, 0, 0.45);
}

.contact-strip__copy {
  display: grid;
  gap: 10px;
}

.contact-strip__copy h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.contact-strip__copy p {
  margin: 0;
  max-width: 58ch;
  color: rgba(214, 223, 240, 0.84);
}

.contact-strip__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.contact-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 54px;
  height: 54px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(57, 124, 233, 0.28);
  background: linear-gradient(180deg, rgba(13, 20, 32, 0.92), rgba(8, 13, 22, 0.9));
  color: rgba(236, 242, 255, 0.95);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.contact-icon-btn:hover,
.contact-icon-btn:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(83, 145, 255, 0.58);
  color: #ffffff;
}

.contact-icon-btn svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.contact-icon-btn--phone {
  padding-inline: 18px;
}

.contact-icon-btn--phone span {
  font-size: 0.97rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0 40px;
  color: rgba(168, 180, 199, 0.75);
  font-size: 0.95rem;
}

.footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a {
  color: rgba(168, 180, 199, 0.9);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

[dir="rtl"] .nav {
  direction: rtl;
}

[dir="rtl"] .brand-top,
[dir="rtl"] .header-actions,
[dir="rtl"] .hero-actions,
[dir="rtl"] .footer-links,
[dir="rtl"] .cta-shell,
[dir="rtl"] .contact-strip {
  direction: rtl;
}

[dir="rtl"] .hero-copy,
[dir="rtl"] .projects-copy,
[dir="rtl"] .section-heading,
[dir="rtl"] .glass-card,
[dir="rtl"] .cta-shell p,
[dir="rtl"] .contact-strip__copy,
[dir="rtl"] .footer {
  text-align: right;
}

[dir="rtl"] .nav a.active::after {
  left: auto;
  right: 50%;
  translate: 50% 0;
}

[dir="rtl"] .project-card-header,
[dir="rtl"] .footer,
[dir="rtl"] .cta-shell {
  direction: rtl;
}

@media (max-width: 1080px) {
  .topbar {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px 18px;
  }

  .nav {
    width: 100%;
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

  .hero,
  .projects {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 420px;
  }

  .brand-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 20px;
  }

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

  .projects-copy p {
    max-width: 100%;
  }

  .showcase {
    min-height: 420px;
  }

  .cta-shell {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .cta-shell .btn {
    justify-self: center;
  }

  .contact-strip {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .contact-strip__actions {
    justify-content: center;
  }

  .footer {
    flex-direction: column;
  }

  .footer-links {
    justify-content: center;
  }

  .header-actions {
    margin-inline-start: 0;
    justify-content: flex-end;
  }
}

@media (max-width: 720px) {
  :root {
    --section-gap: 80px;
  }

  .section {
    width: min(100%, calc(100% - 28px));
  }

  .page-shell::before {
    content: none;
  }

  .ambient {
    display: none;
  }

  .topbar {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 16px;
  }

  .header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    justify-content: stretch;
  }

  .header-actions .btn,
  .header-actions .lang-toggle {
    width: 100%;
    min-width: 0;
  }

  .header-actions .btn {
    min-height: 46px;
    padding-inline: 12px;
    font-size: 0.84rem;
  }

  .header-actions .lang-toggle {
    grid-column: 1 / -1;
    height: 46px;
  }

  .btn-contact-jump {
    grid-column: 1 / 2;
  }

  .btn-admin {
    grid-column: 2 / 3;
  }

  .header-actions > a.btn-ghost:not(.btn-contact-jump):not(.btn-admin) {
    grid-column: 1 / -1;
  }

  .brand-top {
    gap: 10px;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
  }

  .brand-word {
    letter-spacing: 0.3rem;
    font-size: 0.85rem;
  }

  .nav {
    gap: 12px;
    padding-bottom: 0;
    scrollbar-width: none;
  }

  .nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.9rem;
  }

  .hero {
    padding-top: 34px;
    gap: 24px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.45rem, 10vw, 3.6rem);
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-card {
    width: 100%;
    min-height: 180px;
    margin-top: 8px;
    padding: 16px 16px 18px;
  }

  .hero-card pre {
    font-size: 0.86rem;
    line-height: 1.55;
  }

  .orbit {
    display: none;
  }

  .brands {
    padding: 14px 0 24px;
  }

  .brand-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    justify-content: flex-start;
    margin-top: 18px;
    padding-bottom: 4px;
    font-size: 1.05rem;
    scrollbar-width: none;
  }

  .brand-row span {
    flex: 0 0 auto;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(8, 14, 24, 0.42);
  }

  .section-heading h2 {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .glass-card {
    min-height: auto;
    padding: 22px 18px;
  }

  .card-icon {
    margin-bottom: 28px;
  }

  .projects {
    gap: 28px;
  }

  .showcase {
    min-height: 500px;
  }

  .project-card {
    width: 100%;
  }

  .project-section {
    gap: 20px;
  }

  .project-section .projects-copy {
    max-width: 100%;
  }

  .project-note {
    font-size: 0.92rem;
  }

  .project-marquee {
    gap: 14px;
    padding: 8px 0 18px;
  }

  .project-card-showcase {
    flex-basis: 84vw;
  }

  .project-media {
    min-height: 190px;
  }

  .project-content {
    padding: 0 18px 18px;
  }

  .project-content h3 {
    font-size: 1.25rem;
  }

  .cta-shell {
    padding: 22px 0 26px;
  }

  .contact-strip {
    padding: 18px;
    gap: 18px;
  }

  .contact-strip__actions {
    width: 100%;
    justify-content: stretch;
  }

  .contact-icon-btn {
    width: 100%;
    justify-content: flex-start;
  }

  .footer-links {
    gap: 18px;
  }

  .footer {
    align-items: flex-start;
    gap: 12px;
    padding: 20px 0 32px;
  }
}

.project-section {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 30px;
  align-items: start;
}

.project-section .projects-copy {
  max-width: 430px;
}

.project-note {
  margin: 18px 0 0;
  color: rgba(168, 180, 199, 0.76);
  line-height: 1.8;
  font-size: 0.98rem;
}

.project-carousel-shell {
  position: relative;
  min-width: 0;
}

.project-marquee {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  padding: 10px 6px 22px;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  touch-action: pan-x pinch-zoom;
  -webkit-overflow-scrolling: touch;
}

.project-marquee.is-autoplaying {
  scroll-snap-type: none;
  will-change: scroll-position;
}

.project-marquee.is-autoplaying:hover {
  scroll-behavior: auto;
}

html[dir="rtl"] .project-marquee {
  direction: ltr;
}

.project-marquee::-webkit-scrollbar {
  display: none;
}

.project-marquee.is-dragging {
  cursor: grabbing;
}

.project-card-showcase {
  flex: 0 0 clamp(290px, 60vw, 372px);
  scroll-snap-align: start;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  border: 1px solid rgba(97, 141, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(12, 20, 34, 0.96) 0%, rgba(7, 11, 18, 0.98) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02),
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 22px 60px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

html[dir="rtl"] .project-card-showcase {
  direction: rtl;
}

.project-card-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 70%, rgba(35, 132, 255, 0.18), transparent 26%),
    linear-gradient(145deg, rgba(35, 132, 255, 0.1), transparent 40%);
  pointer-events: none;
}

.project-card-showcase.has-image::before {
  background: none;
}

.project-card-showcase.has-image .project-image {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.project-card-showcase.has-image .project-placeholder {
  display: none;
}

.project-media {
  position: relative;
  min-height: 230px;
  padding: 0;
}

.project-image,
.project-placeholder {
  position: absolute;
  inset: 0;
  border-radius: 18px 18px 0 0;
}

.project-image {
  object-fit: contain;
  object-position: center;
  background: rgba(5, 10, 18, 0.96);
  border: 1px solid rgba(97, 141, 255, 0.18);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 14px 40px rgba(0, 0, 0, 0.3);
}

.project-placeholder {
  border: 1px solid rgba(97, 141, 255, 0.16);
  background:
    radial-gradient(circle at 50% 30%, rgba(43, 140, 255, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(10, 18, 31, 0.96), rgba(6, 10, 16, 0.98));
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
}

.project-placeholder-alt {
  background:
    radial-gradient(circle at 75% 20%, rgba(61, 190, 255, 0.2), transparent 24%),
    linear-gradient(180deg, rgba(9, 17, 29, 0.98), rgba(6, 9, 14, 0.98));
}

.project-placeholder-third {
  background:
    radial-gradient(circle at 22% 22%, rgba(31, 134, 255, 0.2), transparent 26%),
    linear-gradient(180deg, rgba(11, 17, 28, 0.98), rgba(6, 9, 14, 0.98));
}

.project-placeholder-lines {
  display: grid;
  gap: 10px;
}

.project-placeholder-lines span {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(32, 127, 255, 0.18), rgba(255, 255, 255, 0.08));
}

.project-placeholder-lines span:nth-child(1) {
  width: 72%;
}

.project-placeholder-lines span:nth-child(2) {
  width: 54%;
}

.project-placeholder-lines span:nth-child(3) {
  width: 64%;
}

.project-placeholder p {
  margin: 0;
  color: rgba(234, 242, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.6;
}

.project-upload {
  display: none;
}

.project-input {
  display: none;
}

.project-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 22px 22px;
}

.project-content h3 {
  margin-bottom: 0;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.project-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.project-actions {
  margin-top: 10px;
}

.project-view {
  width: 100%;
}

.project-card-showcase.is-clone .project-upload,
.project-card-showcase.is-clone .project-input {
  display: none;
}

@media (max-width: 1080px) {
  .project-section {
    grid-template-columns: 1fr;
  }

  .project-section .projects-copy {
    max-width: 100%;
  }

  .project-card-showcase {
    flex-basis: min(86vw, 390px);
  }
}

@media (max-width: 720px) {
  .project-marquee {
    padding-inline: 0;
  }

  .project-card-showcase {
    flex-basis: 90vw;
  }

  .project-media {
    min-height: 212px;
  }

  .project-content {
    padding-inline: 18px;
    padding-bottom: 18px;
  }
}

.btn-admin {
  min-height: 52px;
}

.admin-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 35;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border: 1px solid rgba(54, 132, 255, 0.34);
  border-radius: 999px;
  background: rgba(6, 12, 22, 0.86);
  color: #eef4ff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.admin-fab span:first-child {
  color: var(--accent);
}

.admin-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 4, 12, 0.62);
  backdrop-filter: blur(8px);
  z-index: 39;
}

.admin-panel {
  position: fixed;
  inset: 16px 16px 16px auto;
  width: min(100vw - 32px, 460px);
  z-index: 40;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

.admin-panel__surface {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  gap: 18px;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(97, 141, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(9, 16, 28, 0.98) 0%, rgba(5, 10, 17, 0.98) 100%);
  box-shadow:
    0 34px 100px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  pointer-events: auto;
  overflow: hidden;
}

.admin-panel__surface::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(34, 123, 255, 0.18), transparent 30%),
    radial-gradient(circle at 92% 24%, rgba(34, 123, 255, 0.12), transparent 24%);
  pointer-events: none;
}

.admin-panel__header,
.admin-panel__topline,
.admin-panel__footer {
  position: relative;
  z-index: 1;
}

.admin-panel__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.admin-panel__eyebrow {
  margin: 0 0 8px;
  color: #1d86ff;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-panel__header h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}

.admin-close {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(97, 141, 255, 0.22);
  background: rgba(8, 14, 24, 0.72);
  color: #f3f7ff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.admin-panel__topline {
  display: grid;
  gap: 12px;
}

.admin-panel__topline p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.admin-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(54, 132, 255, 0.24);
  background: rgba(7, 12, 20, 0.72);
  color: #cfe0ff;
  font-size: 0.85rem;
}

.admin-tabs {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.admin-tabs::-webkit-scrollbar {
  display: none;
}

.admin-tab {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(97, 141, 255, 0.18);
  background: rgba(5, 10, 18, 0.56);
  color: #dce7ff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.admin-tab.is-active {
  border-color: rgba(54, 132, 255, 0.5);
  background: linear-gradient(180deg, rgba(42, 147, 255, 0.22), rgba(19, 95, 245, 0.16));
  color: #ffffff;
}

.admin-panel__body {
  position: relative;
  z-index: 1;
  min-height: 0;
  overflow: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(54, 132, 255, 0.35) rgba(255, 255, 255, 0.03);
}

.admin-panel__body::-webkit-scrollbar {
  width: 10px;
}

.admin-panel__body::-webkit-scrollbar-thumb {
  background: rgba(54, 132, 255, 0.35);
  border-radius: 999px;
}

.admin-panel__pane {
  display: none;
  gap: 16px;
}

.admin-panel__pane.is-active {
  display: grid;
}

.admin-group {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(97, 141, 255, 0.12);
  background: rgba(7, 12, 19, 0.52);
}

.admin-group h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.admin-group p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-field {
  display: grid;
  gap: 8px;
}

.admin-field--full {
  grid-column: 1 / -1;
}

.admin-field label {
  color: rgba(238, 244, 255, 0.84);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.admin-field input,
.admin-field textarea,
.admin-json {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(97, 141, 255, 0.18);
  background: rgba(4, 8, 16, 0.86);
  color: #f3f7ff;
  padding: 12px 14px;
  font: inherit;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.admin-field textarea,
.admin-json {
  min-height: 112px;
  resize: vertical;
  line-height: 1.7;
}

.admin-field input:focus,
.admin-field textarea:focus,
.admin-json:focus {
  border-color: rgba(54, 132, 255, 0.54);
  box-shadow: 0 0 0 3px rgba(39, 123, 255, 0.12);
}

.admin-field small {
  color: rgba(168, 180, 199, 0.76);
  line-height: 1.55;
}

.admin-project-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(97, 141, 255, 0.14);
  background: rgba(5, 10, 18, 0.54);
}

.admin-project-card h4 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.96rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-panel__footer {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 2px;
}

.admin-import {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.admin-import input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

html.admin-open {
  overflow: hidden;
}

@media (max-width: 960px) {
  .admin-panel {
    inset: 8px;
    width: auto;
  }
}

@media (max-width: 720px) {
  .admin-fab {
    right: 14px;
    bottom: 14px;
    padding: 12px 16px;
  }

  .admin-panel__surface {
    padding: 18px;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-panel__footer {
    flex-direction: column;
  }

  .admin-panel__footer .btn {
    width: 100%;
  }
}
