/* ============================================================
   Naxput — bilingual site layer (Uyghur default, RTL)
   ============================================================ */

@font-face {
  font-family: "ALKATIP";
  src: url("/assets/fonts/ALKATIP-Basma-Tom.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

html[lang="zh"] body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
}

html[lang="ug"] body {
  font-family: "ALKATIP", "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.9;
}

html[lang="ug"] h1,
html[lang="ug"] h2,
html[lang="ug"] h3,
html[lang="ug"] .lead,
html[lang="ug"] .section-desc,
html[lang="ug"] .service-card p,
html[lang="ug"] .work-body p,
html[lang="ug"] .why-item small,
html[lang="ug"] .process-step small,
html[lang="ug"] .contact-copy p,
html[lang="ug"] .form-note,
html[lang="ug"] .faq-body {
  line-height: 1.9;
}

html[lang="ug"] .hero h1 {
  text-wrap: balance;
  line-height: 1.45;
  letter-spacing: 0;
  font-weight: 400;
}

html[lang="ug"] h2,
html[lang="ug"] h3,
html[lang="ug"] .brand-text,
html[lang="ug"] .eyebrow {
  letter-spacing: 0;
}

html[lang="ug"] .brand-text,
html[lang="ug"] .tech-track,
html[lang="ug"] .tags,
html[lang="ug"] .work-metric b,
html[lang="ug"] .work-tag,
html[lang="ug"] .copy-hint {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

html[lang="ug"] .eyebrow {
  font-size: 12px;
}

html[dir="rtl"] body {
  text-align: right;
}

html[dir="rtl"] .site-header {
  direction: ltr;
}

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

html[dir="rtl"] .nav a {
  text-align: center;
}

html[dir="rtl"] .btn .icon {
  transform: scaleX(-1);
}

html[dir="rtl"] .btn:hover .icon {
  transform: scaleX(-1) translate(2px, -2px);
}

html[dir="rtl"] .hero-copy,
html[dir="rtl"] .section-head,
html[dir="rtl"] .work-body,
html[dir="rtl"] .why,
html[dir="rtl"] .process,
html[dir="rtl"] .contact-copy {
  text-align: right;
}

html[dir="rtl"] .field input,
html[dir="rtl"] .field textarea {
  text-align: right;
}

html[dir="rtl"] .field select {
  background-position: left 13px center;
  padding-left: 34px;
  padding-right: 13px;
}

html[dir="rtl"] .form-head {
  direction: rtl;
}

html[dir="rtl"] .work-tag,
html[dir="rtl"] .collage-tile figcaption {
  right: 14px;
  left: auto;
}

html[dir="rtl"] .copy-hint {
  margin-left: 0;
  margin-right: auto;
}

html[dir="rtl"] .footer-bottom,
html[dir="rtl"] .footer-grid {
  text-align: right;
}

/* ---------- language toggle ---------- */

.lang-toggle {
  font-family: "ALKATIP", "Microsoft YaHei", sans-serif;
  min-width: 86px;
  text-align: center;
  height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease);
}

.lang-toggle:hover {
  border-color: rgba(60, 230, 196, 0.5);
  color: var(--mint);
  background: rgba(60, 230, 196, 0.07);
}

/* ---------- hero ---------- */

.hero {
  padding: 150px 0 0;
  overflow: hidden;
}

.hero-grid {
  grid-template-columns: 1.02fr 0.98fr;
  gap: 46px;
  min-height: 0;
  align-items: center;
}

.hero h1 {
  margin: 18px 0 20px;
  font-size: clamp(38px, 4.9vw, 62px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

html[lang="zh"] .hero h1 {
  font-size: clamp(36px, 4.2vw, 52px);
  line-height: 1.1;
}

.lead {
  max-width: 580px;
  font-size: 15.5px;
  line-height: 1.85;
}

.hero-cta {
  margin-top: 28px;
}

.hero-meta {
  margin-top: 34px;
  padding-top: 20px;
  gap: 26px;
}

.hero-collage {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 12px;
  height: 510px;
  direction: ltr;
}

.collage-tile {
  position: relative;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0b1220;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.collage-tile.tile-a {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.collage-tile.tile-d {
  grid-column: 1 / -1;
  grid-row: 3;
}

.collage-tile.tile-a img {
  object-position: left center;
}

.collage-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
  filter: saturate(0.9) contrast(1.05);
}

.collage-tile:hover img {
  transform: scale(1.045);
  filter: saturate(1.05) contrast(1.05);
}

.collage-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(5, 9, 16, 0.82) 100%);
  pointer-events: none;
}

.collage-tile figcaption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.86);
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(6, 11, 19, 0.55);
  backdrop-filter: blur(10px);
}

.collage-badge {
  position: absolute;
  left: 22px;
  bottom: -18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid rgba(60, 230, 196, 0.3);
  background: rgba(10, 17, 28, 0.92);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  font-size: 11px;
  color: var(--mint);
  white-space: nowrap;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px rgba(60, 230, 196, 0.8);
}

.tech-strip {
  margin-top: 58px;
  gap: 0;
}

.tech-label {
  display: none;
}

.tech-track {
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

/* ---------- compact sections ---------- */

.section {
  padding: 86px 0;
}

.section-head {
  margin-bottom: 34px;
  gap: 30px;
}

.section-head h2,
.split h2,
.contact h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.16;
}

.section-desc {
  font-size: 13px;
  line-height: 1.8;
}

/* ---------- services ---------- */

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

.service-card {
  padding: 20px 19px 18px;
  border-radius: 18px;
}

.service-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 11px;
}

.service-card h3 {
  font-size: 16px;
}

.service-card p {
  min-height: 0;
  margin-top: 7px;
  font-size: 12.5px;
}

.tags {
  margin-top: 12px;
}

/* ---------- cases ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
}

.filter {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  transition: all 0.22s var(--ease);
}

.filter:hover {
  color: var(--text);
  border-color: var(--line-2);
}

.filter.active {
  color: #04110e;
  background: var(--grad);
  border-color: transparent;
  font-weight: 600;
}

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

.work-card {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(12, 19, 31, 0.7);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), opacity 0.25s var(--ease);
}

.work-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.17);
}

.work-card.hidden {
  display: none;
}

.work-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0a1220;
}

.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.work-card:hover .work-media img {
  transform: scale(1.045);
}

.work-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6, 11, 19, 0.65) 100%);
}

.work-tag {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.8);
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(6, 11, 19, 0.55);
  backdrop-filter: blur(8px);
}

.work-body {
  padding: 16px 17px 18px;
}

.work-body h3 {
  font-size: 15px;
  letter-spacing: 0;
}

.work-body p {
  margin-top: 6px;
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--muted);
  min-height: 0;
}

.work-metric {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.work-metric b {
  font-size: 21px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.work-metric span {
  font-size: 9.5px;
  color: var(--muted-2);
}

/* ---------- why + process ---------- */

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

.why h2,
.process h2 {
  margin: 10px 0 24px;
}

.why-list,
.process-list {
  display: grid;
  gap: 10px;
}

.why-item,
.process-step {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(14, 22, 36, 0.5);
}

.why-item .check {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.why-item b,
.process-step b {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.why-item small,
.process-step small {
  display: block;
  margin-top: 3px;
  font-size: 10.5px;
  color: var(--muted-2);
}

.process-step > span {
  flex: none;
  width: 34px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mint);
  padding-top: 2px;
}

/* ---------- contact ---------- */

.contact {
  padding-top: 86px;
}

.contact-grid {
  gap: 46px;
}

.contact-copy h2 {
  margin: 12px 0 16px;
}

.contact-copy p {
  max-width: 420px;
  font-size: 13px;
}

.contact-list {
  margin-top: 22px;
}

.form-wrap {
  border-radius: 22px;
  padding: 24px;
}

.form-head h3 {
  font-size: 18px;
}

.form-note {
  font-size: 10px;
}

/* ---------- footer ---------- */

.site-footer {
  padding-top: 44px;
}

.footer-grid {
  gap: 32px;
}

.footer-brand p {
  margin-top: 12px;
}

/* ---------- mobile ---------- */

@media (max-width: 1080px) {
  .hero {
    padding-top: 132px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .hero-collage {
    height: 440px;
    max-width: 620px;
    margin: 0 auto;
  }

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

  .split-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }
}

@media (max-width: 760px) {
  html[lang="zh"] body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
}

html[lang="ug"] body {
    line-height: 1.85;
  }

  .hero {
    padding-top: 112px;
  }

  .hero h1 {
    font-size: clamp(28px, 8.8vw, 38px);
    line-height: 1.6;
  }

  html[lang="zh"] .hero h1 {
    font-size: clamp(26px, 7.6vw, 31px);
    line-height: 1.18;
  }

  .lead {
    font-size: 14px;
    line-height: 1.85;
  }

  .hero-meta {
    gap: 18px;
  }

  .hero-collage {
    height: 360px;
    gap: 8px;
  }

  .collage-tile {
    border-radius: 14px;
  }

  .collage-tile figcaption {
    font-size: 9px;
    padding: 3px 7px;
    left: 8px;
    bottom: 8px;
  }

  .collage-badge {
    left: 10px;
    bottom: -14px;
    height: 34px;
    font-size: 9.5px;
    padding: 0 11px;
  }

  .lang-toggle {
    min-width: 88px;
    height: 34px;
    padding: 0 10px;
    font-size: 12.5px;
  }

  .section {
    padding: 64px 0;
  }

  .section-head h2,
  .split h2,
  .contact h2 {
    font-size: clamp(26px, 7.4vw, 34px);
  }

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

  .work-media {
    aspect-ratio: 16 / 9;
  }

  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .filter {
    flex: none;
  }

  .form-wrap {
    padding: 20px;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .collage-tile img,
  .work-media img {
    transition: none;
  }
}
/* ---------- 10 mini programs ---------- */

.mini {
  padding-top: 70px;
}

.mini-scroll {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-flow: row;
  gap: 16px 14px;
  padding: 4px 2px 0;
}

.mini-scroll::-webkit-scrollbar {
  height: 6px;
}

.mini-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.mini-card {
  min-width: 0;
  scroll-snap-align: start;
  text-align: center;
}

.mini-phone {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 28px;
  border: 5px solid #0a1220;
  background: #08101c;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

.mini-card:hover .mini-phone {
  transform: translateY(-4px);
  border-color: rgba(60, 230, 196, 0.5);
}

.mini-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.05);
  transition: transform 0.6s var(--ease);
}

.mini-card:hover .mini-phone img {
  transform: scale(1.04);
}

.mini-phone::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 10, 18, 0.18) 0%, transparent 30%, rgba(5, 10, 18, 0.12) 55%, rgba(5, 10, 18, 0.92) 100%);
  pointer-events: none;
}

.mini-chip {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(5, 10, 18, 0.5);
  backdrop-filter: blur(8px);
  font-size: 8.5px;
  color: rgba(255, 255, 255, 0.86);
}

.mini-ui {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  text-align: right;
}

.mini-ui b {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: #fff;
}

.mini-ui small {
  display: block;
  margin-top: 2px;
  font-size: 8.5px;
  color: rgba(255, 255, 255, 0.6);
}

.mini-card h3 {
  margin-top: 9px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.mini-card h3::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin: 7px auto 0;
  border-radius: 999px;
  background: var(--grad);
  opacity: 0.7;
}

@media (max-width: 1080px) {
  .mini-scroll {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .mini-scroll {
    grid-auto-flow: column;
    grid-auto-columns: 172px;
    grid-template-columns: none;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .mini-scroll::-webkit-scrollbar {
    display: none;
  }

  .mini-phone {
    border-width: 4px;
    border-radius: 24px;
  }

  .mini-ui b {
    font-size: 11px;
  }

  .mini-ui small,
  .mini-chip {
    font-size: 8px;
  }

  .mini-card h3 {
    font-size: 11px;
  }
}
@media (max-width: 760px) {
  .work-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 78vw;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .work-grid::-webkit-scrollbar {
    display: none;
  }

  .work-card {
    scroll-snap-align: start;
  }
}

