/* =============================================================
   WAHAH — site stylesheet
   ============================================================= */

:root {
  --bg:            #ffffff;
  --bg-soft:       #f4f7fb;
  --bg-dark:       #0b1220;
  --bg-dark-2:     #111c30;
  --ink:           #0c1526;
  --ink-2:         #4b5768;
  --ink-3:         #7c8899;
  --line:          #e4e9f0;
  --line-dark:     rgba(255,255,255,.14);

  --brand:         #0a63f8;
  --brand-deep:    #0546b8;
  --cyan:          #00c2ff;
  --grad:          linear-gradient(120deg, #0a63f8 0%, #00c2ff 100%);

  --radius:        16px;
  --radius-sm:     10px;
  --wrap:          1240px;
  --header-h:      74px;

  --shadow-sm:     0 1px 2px rgba(12,21,38,.06);
  --shadow:        0 8px 28px rgba(12,21,38,.09);
  --shadow-lg:     0 18px 48px rgba(12,21,38,.14);

  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue",
          "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- typography ---------- */
.h2, .h3, .h4 { color: var(--ink); margin: 0; letter-spacing: -.02em; }
.h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.18; font-weight: 700; }
.h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.28; font-weight: 700; }
.h4 { font-size: 18px; line-height: 1.4; font-weight: 650; }

.kicker {
  display: inline-block;
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
}
.kicker-light { color: var(--cyan); }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 22px rgba(10,99,248,.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(10,99,248,.34); }

.btn-ghost {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.38);
  color: #fff;
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }

/* =============================================================
   HEADER
   ============================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.site-header.is-stuck {
  background: rgba(255,255,255,.94);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); }
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--grad);
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.55);
  flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 17px; letter-spacing: .06em; color: var(--ink); }
.brand-text em { font-size: 10px; font-style: normal; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }

.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a {
  position: relative;
  font-size: 14.5px;
  font-weight: 550;
  color: var(--ink-2);
  padding: 6px 0;
  transition: color .18s ease;
}
.nav a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; border-radius: 2px;
  background: var(--grad);
  transition: right .22s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a.is-active::after { right: 0; }
.nav a.is-active { color: var(--brand); }

.header-tools { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav + .header-tools { margin-left: 0; }

/* language switcher */
.lang-switcher { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  min-width: 46px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 13px; font-weight: 650;
  cursor: pointer;
  font-family: inherit;
}
.lang-btn::after {
  content: "";
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--ink-3);
  margin-left: 2px;
}
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  max-height: min(70vh, 520px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.lang-switcher.is-open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-group {
  padding: 8px 12px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
  position: sticky;
  top: -6px;
  background: #fff;
}
.lang-option {
  display: block; width: 100%;
  padding: 9px 12px;
  border: 0; border-radius: 8px;
  background: none;
  text-align: start;
  text-decoration: none;
  font-size: 14px; font-family: inherit;
  color: var(--ink-2);
  cursor: pointer;
}
.lang-option:hover { background: var(--bg-soft); color: var(--ink); }
.lang-option.is-active { color: var(--brand); font-weight: 650; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  margin: 3.5px auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* =============================================================
   HERO
   ============================================================= */
.hero {
  position: relative;
  min-height: clamp(620px, 92vh, 900px);
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 60px) 0 120px;
  overflow: hidden;
  background: var(--bg-dark);
}
.hero-media { position: absolute; inset: 0; }
.hero-media video,
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(6,12,24,.90) 0%, rgba(6,12,24,.68) 45%, rgba(6,12,24,.42) 100%),
    linear-gradient(to bottom, rgba(6,12,24,.55), rgba(6,12,24,.10) 40%, rgba(6,12,24,.85));
}

.hero-inner { position: relative; z-index: 2; max-width: 880px; }
.hero-title {
  margin: 0 0 22px;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #fff;
}
.hero-title span { display: block; }
.hero-sub {
  max-width: 660px;
  margin: 0 0 36px;
  font-size: clamp(16px, 1.5vw, 19px);
  color: rgba(255,255,255,.80);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.scroll-cue {
  position: absolute;
  left: 50%; bottom: 34px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.62);
}
.scroll-cue i {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, rgba(255,255,255,.7), transparent);
  animation: cue 2s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { opacity: .25; transform: scaleY(.6); transform-origin: top; }
  50%      { opacity: 1;   transform: scaleY(1);  transform-origin: top; }
}

/* =============================================================
   STATS
   ============================================================= */
.stats { background: var(--bg); padding: 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: -70px;
  position: relative;
  z-index: 5;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.stat {
  padding: 30px 26px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat strong {
  display: block;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { font-size: 13.5px; color: var(--ink-3); }

/* =============================================================
   SECTION SHELL
   ============================================================= */
.section { padding: clamp(64px, 8vw, 108px) 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--bg-dark); color: rgba(255,255,255,.72); }
.section-dark .h2 { color: #fff; }
.section-dark .section-sub { color: rgba(255,255,255,.62); }

.section-head { max-width: 760px; margin-bottom: 46px; }
.section-sub { margin: 14px 0 0; font-size: 16.5px; color: var(--ink-3); }

/* =============================================================
   ABOUT
   ============================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
}
.about-copy p { margin: 18px 0 0; }
.promise {
  display: flex; gap: 14px;
  margin-top: 28px;
  padding: 18px 20px;
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.promise p { margin: 0; font-weight: 600; color: var(--ink); }
.promise-icon {
  flex: none;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--grad);
  color: #fff; font-size: 13px; font-weight: 700;
}
.about-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

/* =============================================================
   CARDS
   ============================================================= */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d5deeb; }

.card-num {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: rgba(10,99,248,.09);
  color: var(--brand);
  font-size: 15px; font-weight: 800;
}
.card-adv { padding: 30px 26px 34px; }
.card-adv p { margin: 10px 0 0; font-size: 14.5px; }

.thumb { position: relative; overflow: hidden; background: var(--bg-soft); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .thumb img { transform: scale(1.045); }
.thumb { aspect-ratio: 16 / 10; }
.thumb-tall { aspect-ratio: 4 / 3; }

.card-body { padding: 22px 24px 28px; }
.card-body p { margin: 10px 0 0; font-size: 14.5px; }

.process-num {
  display: block;
  margin-bottom: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: .12em;
  color: var(--cyan);
}

.cards-process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cards-product { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card-product .thumb { aspect-ratio: 4 / 3; }

/* dark variant */
.card-info-dark {
  background: var(--bg-dark-2);
  border-color: var(--line-dark);
}
.card-info-dark .h4 { color: #fff; }
.card-info-dark p { color: rgba(255,255,255,.66); }
.card-info-dark:hover { border-color: rgba(255,255,255,.28); box-shadow: 0 18px 46px rgba(0,0,0,.4); }

/* =============================================================
   FLOW
   ============================================================= */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: f; }
.flow-step {
  position: relative;
  padding: 30px 26px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 52px; right: -14px;
  width: 8px; height: 8px;
  border-top: 2px solid var(--cyan);
  border-right: 2px solid var(--cyan);
  transform: rotate(45deg);
}
.flow-num {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 14px; font-weight: 800;
}
.flow-step p { margin: 8px 0 0; font-size: 14.5px; }

/* =============================================================
   FAQ
   ============================================================= */
.faq-wrap { max-width: 900px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item.is-open { border-color: #c9d8f2; box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 24px;
  border: 0; background: none;
  font-family: inherit; font-size: 16px; font-weight: 620;
  color: var(--ink); text-align: left;
  cursor: pointer;
}
.faq-q i {
  flex: none;
  position: relative;
  width: 18px; height: 18px;
}
.faq-q i::before, .faq-q i::after {
  content: "";
  position: absolute; inset: 50% 0 auto 0;
  height: 2px; background: var(--brand); border-radius: 2px;
  transition: transform .22s ease, opacity .22s ease;
}
.faq-q i::after { transform: rotate(90deg); }
.faq-item.is-open .faq-q i::after { transform: rotate(0); opacity: 0; }
.faq-a { padding: 0 24px 22px; }
.faq-a p { margin: 0; font-size: 15px; }

/* =============================================================
   CTA BAND
   ============================================================= */
.cta-band { background: var(--bg-dark); padding: 0; }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  padding: 54px 28px;
  flex-wrap: wrap;
}
.cta-inner .h3 { color: #fff; }
.cta-inner p { margin: 8px 0 0; color: rgba(255,255,255,.62); }

/* =============================================================
   CONTACT
   ============================================================= */
.section-head.is-center { margin-left: auto; margin-right: auto; text-align: center; }

.contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.contact-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #d5deeb;
}
.ci-icon {
  flex: none;
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: rgba(10,99,248,.09);
  color: var(--brand);
  font-size: 13px; font-weight: 800;
}
.ci-value {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
  word-break: break-word;
}
a.ci-value { transition: color .18s ease; }
a.ci-value:hover { color: var(--brand); }

/* =============================================================
   FOOTER
   ============================================================= */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,.60); padding: 70px 0 26px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line-dark);
}
.brand-light .brand-text strong { color: #fff; }
.brand-light .brand-text em { color: rgba(255,255,255,.45); }
.footer-brand p { margin: 18px 0 0; font-size: 14.5px; max-width: 380px; }
.footer-legal { margin-top: 10px !important; font-size: 13px; color: rgba(255,255,255,.46); }
.footer-title { margin: 0 0 16px; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.footer-links a { color: rgba(255,255,255,.60); transition: color .18s ease; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-top: 22px;
  font-size: 13.5px;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: rgba(255,255,255,.60); }
.footer-bottom a:hover { color: #fff; }

/* =============================================================
   REVEAL
   ============================================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1100px) {
  .nav { gap: 18px; }
  .nav a { font-size: 13.5px; }
  .cards-process, .cards-product { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 900px) {
  .nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 22px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .header-tools { margin-left: auto; }
  .nav a { width: 100%; padding: 13px 0; font-size: 15.5px; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .nav-toggle { display: block; }
  .header-tools .btn-primary { display: none; }

  .about-grid { grid-template-columns: 1fr; gap: 38px; }
  .about-media { order: -1; }
  .about-media img { aspect-ratio: 16 / 10; }

  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow-step:not(:last-child)::after { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .hero { min-height: 560px; padding-bottom: 96px; }
  .hero-actions .btn { width: 100%; }
  .cards-process, .cards-product { grid-template-columns: 1fr; }
  .cards-4, .flow { grid-template-columns: 1fr; }
  .contact-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-inner { padding: 40px 20px; }
  .cta-inner .btn { width: 100%; }
  .scroll-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue i { animation: none; }
}

/* ---------------------------------------------------------------
   RTL support (Arabic / Hebrew / Persian / Urdu)
   Flexbox and grid mirror automatically via dir="rtl"; these rules
   only fix hard-coded side-specific values.
   --------------------------------------------------------------- */
[dir="rtl"] .lang-btn::after { margin-left: 0; margin-right: 2px; }
[dir="rtl"] .lang-menu { right: auto; left: 0; }
[dir="rtl"] .brand-mark { margin-right: 0; margin-left: 10px; }
[dir="rtl"] .nav-list { padding-right: 0; }
[dir="rtl"] .hero-kicker::before { margin-right: 0; margin-left: 10px; }
[dir="rtl"] .section-kicker::before { margin-right: 0; margin-left: 10px; }
[dir="rtl"] .footer-col { text-align: right; }
[dir="rtl"] .contact-card { text-align: right; }
[dir="rtl"] .scroll-cue span { direction: rtl; }
