/* ============================================================
   TAOJIN TECHNOLOGY LIMITED — Industrial theme (light default + dark)
   ============================================================ */
:root {
  --bg: #f4f6f9;
  --bg-2: #ffffff;
  --panel: #ffffff;
  --panel-2: #eef2f7;
  --line: rgba(15, 27, 45, .09);
  --line-2: rgba(15, 27, 45, .16);
  --text: #0f1b2d;
  --text-2: #33415a;
  --muted: #5d6a7e;
  --gold: #ffc61a;
  --gold-2: #f2a900;
  --gold-ink: #b67d00;          /* gold readable on light backgrounds */
  --gold-soft: rgba(255, 190, 0, .14);
  --red: #e3262f;
  --navy: #1d3f9a;
  --shadow: 0 18px 40px -22px rgba(15, 27, 45, .28);
  --shadow-lg: 0 30px 70px -30px rgba(15, 27, 45, .4);
  --hero-fade: 244, 246, 249;   /* rgb of --bg, used for the photo overlay */
  --header-bg: rgba(255, 255, 255, .88);
  --radius: 16px;
  --font-head: "Oswald", "Cairo", sans-serif;
  --font-body: "Inter", "Cairo", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 78px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0a0e15;
  --bg-2: #0f1520;
  --panel: #141c29;
  --panel-2: #1a2434;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .15);
  --text: #e8edf5;
  --text-2: #c6cfdd;
  --muted: #94a0b4;
  --gold-ink: #ffc61a;
  --shadow: 0 18px 40px -20px rgba(0, 0, 0, .7);
  --shadow-lg: 0 30px 70px -25px rgba(0, 0, 0, .8);
  --hero-fade: 10, 14, 21;
  --header-bg: rgba(10, 14, 21, .85);
  color-scheme: dark;
}

html[dir="rtl"] {
  --font-head: "Cairo", sans-serif;
  --font-body: "Cairo", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background .4s, color .4s;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); line-height: 1.15; }
p { margin: 0; }
::selection { background: var(--gold); color: #111; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }

/* ---------- Icons ---------- */
i[data-icon] { display: inline-flex; width: 1.25em; height: 1.25em; flex: none; }
i[data-icon] svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
html[dir="rtl"] i[data-icon="arrow"] svg { transform: scaleX(-1); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 15px 28px; border-radius: 10px; font-weight: 600; letter-spacing: .02em;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s, border-color .3s;
  overflow: hidden; isolation: isolate; white-space: nowrap;
}
.btn i[data-icon] { transition: transform .3s var(--ease); }
.btn:hover i[data-icon="arrow"] { transform: translateX(4px); }
html[dir="rtl"] .btn:hover i[data-icon="arrow"] { transform: translateX(-4px); }
.btn--gold { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #14100a; box-shadow: 0 12px 28px -12px rgba(242, 169, 0, .75); }
.btn--gold::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.6) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn--gold:hover::after { transform: translateX(120%); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -12px rgba(242, 169, 0, .85); }
.btn--ghost { border: 1px solid var(--line-2); background: var(--panel); color: var(--text); box-shadow: var(--shadow); }
.btn--ghost:hover { border-color: var(--gold-2); color: var(--gold-ink); transform: translateY(-2px); }
.btn--dark { background: #0f1b2d; color: #fff; }
.btn--dark:hover { background: #000; transform: translateY(-2px); }
.btn--sm { padding: 10px 18px; font-size: .9rem; }
.btn--block { width: 100%; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-content: center; gap: 22px; justify-items: center;
  background: var(--bg); transition: opacity .6s, visibility .6s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__bars { display: grid; grid-template-columns: repeat(6, 22px); grid-template-rows: 16px 16px; gap: 4px; }
.preloader__bars span {
  grid-column: span 2; background: linear-gradient(var(--gold), var(--gold-2)); border: 2px solid var(--navy);
  clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%); opacity: 0; transform: translateY(-30px);
  animation: barDrop 1.6s var(--ease) infinite;
}
.preloader__bars span:nth-child(1) { grid-row: 1; grid-column: 2 / span 2; animation-delay: .6s; }
.preloader__bars span:nth-child(2) { grid-row: 1; grid-column: 4 / span 2; animation-delay: .75s; }
.preloader__bars span:nth-child(3) { grid-row: 2; animation-delay: 0s; }
.preloader__bars span:nth-child(4) { grid-row: 2; animation-delay: .15s; }
.preloader__bars span:nth-child(5) { grid-row: 2; animation-delay: .3s; }
@keyframes barDrop {
  0% { opacity: 0; transform: translateY(-30px); }
  25%, 80% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: none; }
}
.preloader__text { font-family: "Oswald", sans-serif; letter-spacing: .5em; color: var(--muted); font-size: .85rem; padding-inline-start: .5em; }

.scroll-progress { position: fixed; top: 0; inset-inline-start: 0; height: 3px; width: 0; z-index: 200; background: linear-gradient(90deg, var(--red), var(--gold)); }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); transition: background .4s, box-shadow .4s, height .4s; }
.header.is-scrolled { --header-h: 66px; background: var(--header-bg); backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(15,27,45,.35); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand__mark { width: 54px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1; font-family: "Oswald", sans-serif; direction: ltr; }
.brand__text strong { font-size: 1.35rem; letter-spacing: .12em; color: var(--text); }
.brand__text small { font-size: .6rem; letter-spacing: .28em; color: var(--muted); margin-top: 4px; }

.nav { display: flex; gap: 2px; margin-inline: auto; }
.nav__link { position: relative; padding: 8px 12px; font-size: .92rem; font-weight: 600; color: var(--text-2); transition: color .25s; }
.nav__link::after {
  content: ""; position: absolute; inset-inline: 12px; bottom: 2px; height: 2px; background: var(--gold-2);
  transform: scaleX(0); transition: transform .35s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 10px; }
/* Language dropdown */
.lang-dd { position: relative; }
.lang-dd__toggle { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 12px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--panel); color: var(--text); font-size: .85rem; font-weight: 700; letter-spacing: .04em; transition: border-color .3s, box-shadow .3s; }
.lang-dd__toggle > i:first-child { font-size: 1.1rem; color: var(--gold-ink); }
.lang-dd__toggle:hover, .lang-dd.is-open .lang-dd__toggle { border-color: var(--gold-2); box-shadow: 0 0 0 4px var(--gold-soft); }
.lang-dd__chev { font-size: .85rem; color: var(--muted); transition: transform .3s var(--ease); }
.lang-dd.is-open .lang-dd__chev { transform: rotate(180deg); }
.lang-dd__menu { position: absolute; top: calc(100% + 10px); inset-inline-end: 0; min-width: 190px; padding: 6px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-lg); z-index: 10;
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98); transform-origin: top; transition: .25s var(--ease); }
.lang-dd.is-open .lang-dd__menu { opacity: 1; visibility: visible; transform: none; }
.lang-dd__item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; font-size: .92rem; font-weight: 500; color: var(--text-2); text-align: start; transition: background .2s, color .2s; }
.lang-dd__item:hover { background: var(--panel-2); color: var(--text); }
.lang-dd__code { width: 30px; padding: 3px 0; border-radius: 6px; text-align: center; font-size: .7rem; font-weight: 700; letter-spacing: .05em; background: var(--panel-2); color: var(--muted); font-family: "Inter", sans-serif; }
.lang-dd__item > span[lang="ar"] { font-family: "Cairo", sans-serif; font-weight: 600; }
.lang-dd__item > i { margin-inline-start: auto; color: var(--gold-ink); opacity: 0; }
.lang-dd__item.is-active { color: var(--text); font-weight: 600; }
.lang-dd__item.is-active .lang-dd__code { background: var(--gold); color: #111; }
.lang-dd__item.is-active > i { opacity: 1; }

/* Footer language links */
.lang-links { display: flex; align-items: center; gap: 4px; }
.lang-links > i { color: var(--gold); margin-inline-end: 6px; }
.lang-links .lang__btn { padding: 4px 10px; font-size: .85rem; color: var(--muted); border-radius: 6px; transition: color .2s; }
.lang-links .lang__btn + .lang__btn { border-inline-start: 1px solid var(--line-2); border-radius: 0; }
.lang-links .lang__btn:hover { color: #fff; }
.lang-links .lang__btn.is-active { color: var(--gold); font-weight: 600; }
.lang-links .lang__btn[lang="ar"] { font-family: "Cairo", sans-serif; }

.theme-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); font-size: 1.15rem; transition: transform .4s var(--ease), border-color .3s; }
.theme-btn:hover { border-color: var(--gold-2); transform: rotate(25deg); }
.theme-btn .i-moon { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-moon { display: inline-flex; }

.burger { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel); flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span { width: 20px; height: 2px; background: var(--text); transition: .3s var(--ease); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (photo) ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 50px) 0 110px; overflow: hidden; background: var(--bg); }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.08); animation: kenburns 22s ease-in-out infinite alternate; }
@keyframes kenburns { to { transform: scale(1.18) translate(-1.5%, -1%); } }
.hero__fade { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(var(--hero-fade), .97) 0%, rgba(var(--hero-fade), .9) 38%, rgba(var(--hero-fade), .35) 62%, rgba(var(--hero-fade), 0) 80%),
    linear-gradient(0deg, rgba(var(--hero-fade), 1) 0%, rgba(var(--hero-fade), 0) 22%); }
html[dir="rtl"] .hero__fade {
  background:
    linear-gradient(-90deg, rgba(var(--hero-fade), .97) 0%, rgba(var(--hero-fade), .9) 38%, rgba(var(--hero-fade), .35) 62%, rgba(var(--hero-fade), 0) 80%),
    linear-gradient(0deg, rgba(var(--hero-fade), 1) 0%, rgba(var(--hero-fade), 0) 22%); }
.hero__inner { position: relative; width: min(1200px, 100% - 40px); }
.hero__content { max-width: 640px; }

.tag { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; border-radius: 999px; font-size: .82rem; font-weight: 700;
  border: 1px solid rgba(242,169,0,.45); background: var(--panel); color: var(--gold-ink); box-shadow: var(--shadow); }
.tag__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 0 0 rgba(242,169,0,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(242,169,0,0); } 100% { box-shadow: 0 0 0 0 rgba(242,169,0,0); } }

.hero__title { margin: 22px 0 20px; font-size: clamp(2.3rem, 5vw, 4.2rem); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; color: var(--text); }
html[dir="rtl"] .hero__title { text-transform: none; font-weight: 900; line-height: 1.35; }
.hero__title span { display: block; }
.hero__title-accent { background: linear-gradient(90deg, #d99400, var(--gold) 45%, #c98500); -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% auto; animation: shine 5s linear infinite; }
@keyframes shine { to { background-position: 200% center; } }
.hero__sub { max-width: 580px; color: var(--text-2); font-size: 1.08rem; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 44px; }
.hero__stats { display: flex; gap: 40px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; padding-inline-start: 16px; border-inline-start: 3px solid var(--gold-2); }
.stat strong { font-family: "Oswald", sans-serif; font-size: 2rem; line-height: 1; direction: ltr; text-align: start; }
html[dir="rtl"] .stat strong { text-align: end; }
.stat > span { font-size: .85rem; color: var(--muted); margin-top: 6px; font-weight: 500; }

.hero__badges { position: absolute; inset-inline-end: 0; bottom: 0; display: grid; gap: 12px; justify-items: end; }
.float-card { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 14px; font-size: .9rem; font-weight: 600;
  background: rgba(255,255,255,.92); color: #0f1b2d; border: 1px solid rgba(255,255,255,.7); backdrop-filter: blur(10px); box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite; white-space: nowrap; }
:root[data-theme="dark"] .float-card { background: rgba(20,28,41,.85); color: var(--text); border-color: var(--line-2); }
.float-card i { width: 38px; height: 38px; padding: 9px; border-radius: 10px; background: var(--gold); color: #111; }
.float-card:nth-child(2) { animation-delay: -2s; margin-inline-start: 40px; }
.float-card:nth-child(3) { animation-delay: -4s; }
@keyframes float { 50% { translate: 0 -10px; } }

.scroll-hint { position: absolute; bottom: 28px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 2px solid var(--line-2); border-radius: 14px; }
.scroll-hint span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold-2); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Ticker ---------- */
.ticker { position: relative; overflow: hidden; background: var(--gold); color: #111; padding: 14px 0; transform: skewY(-1.5deg); margin: -10px 0; z-index: 2;
  box-shadow: 0 10px 40px -10px rgba(242,169,0,.45); }
.ticker__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
html[dir="rtl"] .ticker__track { animation-name: marqueeRtl; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { display: inline-flex; align-items: center; gap: 24px; padding-inline-end: 24px; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.ticker__item::after { content: ""; width: 10px; height: 10px; background: #111; transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marqueeRtl { to { transform: translateX(50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: 120px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-head__sub { color: var(--muted); margin-top: 16px; font-size: 1.05rem; }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--gold-ink); font-weight: 700; font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; }
html[dir="rtl"] .kicker { letter-spacing: 0; font-size: .95rem; }
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--red); }
.title { margin-top: 14px; font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 700; }
.lead { font-size: 1.12rem; color: var(--text-2); margin: 22px 0 14px; }

/* ---------- About ---------- */
.about { background: var(--bg-2); }
.about__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 70px; align-items: center; }
.about__content > p:not(.lead) { color: var(--muted); }
.about__media { position: relative; }
.about__photo { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 4.4; box-shadow: var(--shadow-lg); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.about__media:hover .about__photo img { transform: scale(1.05); }
.about__logo { position: absolute; top: 22px; inset-inline-start: -24px; width: 150px; padding: 14px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-lg); }
.about__badge { position: absolute; inset-inline-end: -20px; bottom: 30px; padding: 16px 22px; border-radius: 14px; background: var(--red); color: #fff; box-shadow: 0 20px 40px -10px rgba(227,38,47,.55); max-width: 220px; }
.about__badge strong { display: block; font-family: "Oswald", sans-serif; font-size: 1.8rem; line-height: 1; letter-spacing: .08em; }
.about__badge span { font-size: .82rem; }
.hazard { position: absolute; inset-inline-end: -16px; top: -16px; width: 110px; height: 110px; z-index: -1; border-radius: 12px;
  background: repeating-linear-gradient(-45deg, var(--gold) 0 12px, #111 12px 24px); }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; }
.pillar { padding: 22px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); transition: border-color .3s, transform .3s var(--ease), box-shadow .3s; }
.pillar:hover { border-color: rgba(242,169,0,.5); transform: translateY(-4px); box-shadow: var(--shadow); }
.pillar > i { font-size: 1.6rem; color: var(--gold-ink); }
.pillar h3 { margin: 12px 0 6px; font-size: 1.15rem; }
.pillar p { font-size: .9rem; color: var(--muted); }

/* ---------- Services cards ---------- */
.services { background: var(--bg); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { --mx: 50%; --my: 50%; position: relative; padding: 34px 30px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; transform-style: preserve-3d; will-change: transform; }
.card::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .35s; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(255,190,0,.13), transparent 45%); }
.card::after { content: ""; position: absolute; inset-inline-start: 0; top: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--red), var(--gold)); transition: width .5s var(--ease); }
.card:hover { border-color: rgba(242,169,0,.4); box-shadow: var(--shadow-lg); }
.card:hover::before { opacity: 1; }
.card:hover::after { width: 100%; }
.card__num { position: absolute; top: 18px; inset-inline-end: 24px; font-family: "Oswald", sans-serif; font-size: 3.2rem; font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--line-2); transition: -webkit-text-stroke-color .3s; }
.card:hover .card__num { -webkit-text-stroke-color: var(--gold-2); }
.card__icon { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 14px; font-size: 1.6rem; color: var(--gold-ink);
  background: var(--gold-soft); border: 1px solid rgba(242,169,0,.3); transition: transform .4s var(--ease), background .3s, color .3s; }
.card:hover .card__icon { background: var(--gold); color: #111; transform: rotate(-8deg) scale(1.06); }
.card h3 { margin: 24px 0 10px; font-size: 1.3rem; }
.card p { color: var(--muted); font-size: .95rem; }

/* ---------- Products ---------- */
.products { background: var(--bg-2); }
.tabs { position: relative; display: flex; width: fit-content; margin: 0 auto 44px; padding: 6px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.tabs__btn { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 12px 26px; border-radius: 10px; font-weight: 600; color: var(--muted); transition: color .3s; }
.tabs__btn.is-active { color: #111; }
.tabs__ink { position: absolute; top: 6px; bottom: 6px; left: 0; border-radius: 10px; background: linear-gradient(135deg, var(--gold), var(--gold-2)); transition: left .45s var(--ease), width .45s var(--ease); box-shadow: 0 8px 20px -10px rgba(242,169,0,.8); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: panelIn .6s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(20px); } }
.prod { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.prod__item { position: relative; padding: 36px 30px; background: var(--panel); transition: background .35s; overflow: hidden; }
.prod__item::before { content: ""; position: absolute; inset: auto -40% -60% auto; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(255,190,0,.2), transparent 70%); opacity: 0; transition: opacity .4s; }
html[dir="rtl"] .prod__item::before { inset: auto auto -60% -40%; }
.prod__item:hover { background: var(--panel-2); }
.prod__item:hover::before { opacity: 1; }
.prod__item > i { font-size: 2.2rem; color: var(--gold-ink); transition: transform .4s var(--ease); }
.prod__item:hover > i { transform: translateY(-4px) scale(1.1); }
.prod__item h3 { margin: 18px 0 8px; font-size: 1.2rem; }
.prod__item p { color: var(--muted); font-size: .92rem; }

/* ---------- Process ---------- */
.process { background: var(--bg); overflow: hidden; }
.process::before { content: ""; position: absolute; inset: 0; opacity: .6; pointer-events: none;
  background-image: radial-gradient(var(--line-2) 1px, transparent 1px); background-size: 26px 26px; }
.steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.steps__line { position: absolute; top: 36px; inset-inline: 10%; height: 2px; background: var(--line-2); }
.steps__fill { position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; background: linear-gradient(90deg, var(--red), var(--gold)); transition: width .6s var(--ease); }
html[dir="rtl"] .steps__fill { background: linear-gradient(-90deg, var(--red), var(--gold)); }
.step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 0 6px; }
.step__dot { width: 74px; height: 74px; display: grid; place-items: center; border-radius: 50%; font-size: 1.6rem; color: var(--muted);
  background: var(--panel); border: 2px solid var(--line-2); transition: .4s var(--ease); box-shadow: var(--shadow); }
.step__n { font-family: "Oswald", sans-serif; font-size: .8rem; color: var(--muted); letter-spacing: .15em; margin-top: 8px; }
.step__t { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; transition: color .3s; }
.step:hover .step__dot { border-color: var(--gold-2); color: var(--gold-ink); }
.step.is-active .step__dot { background: var(--gold); color: #111; border-color: var(--gold); box-shadow: 0 0 0 8px var(--gold-soft), 0 10px 30px -5px rgba(242,169,0,.55); transform: scale(1.06); }
.step.is-done .step__dot { border-color: var(--gold-2); color: var(--gold-ink); }
.step.is-active .step__t { color: var(--gold-ink); }
.step-detail { position: relative; display: flex; align-items: center; gap: 26px; max-width: 820px; margin: 54px auto 0; padding: 30px 36px; border-radius: 20px;
  background: var(--panel); border: 1px solid var(--line); border-inline-start: 4px solid var(--gold-2); box-shadow: var(--shadow); }
.step-detail__n { font-family: "Oswald", sans-serif; font-size: 3.4rem; font-weight: 700; color: var(--gold-2); line-height: 1; }
.step-detail p { color: var(--text-2); font-size: 1.05rem; transition: opacity .3s; }
.step-detail p.is-fading { opacity: 0; }

/* ---------- Why (photo background) ---------- */
.why { background: var(--bg-2); }
.why__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 22px; }
.checks li { display: flex; gap: 16px; }
.checks li > i { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--gold); color: #111; }
.checks h3 { font-size: 1.12rem; margin-bottom: 4px; }
.checks p { color: var(--muted); font-size: .95rem; }
.why__panel { position: relative; border-radius: 24px; overflow: hidden; min-height: 480px; display: flex; align-items: flex-end; padding: 30px; box-shadow: var(--shadow-lg); color: #fff; }
.why__panel > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.why__panel:hover > img { transform: scale(1.05); }
.why__panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,14,21,0) 30%, rgba(10,14,21,.85)); }
.why__panel::before { content: ""; position: absolute; inset: 0 0 auto; height: 8px; z-index: 2; background: repeating-linear-gradient(-45deg, var(--gold) 0 10px, #111 10px 20px); }
.why__overlay { position: relative; z-index: 1; width: 100%; display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.gauge { position: relative; width: 140px; }
.gauge svg { width: 100%; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 14; }
.gauge__track { stroke: rgba(255,255,255,.2); }
.gauge__val { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 528; stroke-dashoffset: 528; transition: stroke-dashoffset 2s var(--ease); }
.gauge__label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.gauge__label strong { font-family: "Oswald", sans-serif; font-size: 1.9rem; line-height: 1; direction: ltr; }
.why__mini { display: grid; gap: 10px; }
.why__mini div { display: flex; align-items: baseline; gap: 10px; }
.why__mini strong { font-family: "Oswald", sans-serif; font-size: 1.8rem; color: var(--gold); line-height: 1.1; }
.why__mini span { font-size: .9rem; color: rgba(255,255,255,.85); }
.why__gauge-t { grid-column: 1 / -1; font-size: .85rem; color: rgba(255,255,255,.8); }

/* ---------- Industries ---------- */
.industries { background: var(--bg); }
.ind { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ind__item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 34px 16px; border-radius: 18px; text-align: center;
  background: var(--panel); border: 1px solid var(--line); font-weight: 600; overflow: hidden; box-shadow: var(--shadow); transition: transform .35s var(--ease), border-color .35s; }
.ind__item::before { content: ""; position: absolute; inset: 100% 0 0; background: linear-gradient(180deg, transparent, rgba(255,190,0,.18)); transition: inset .45s var(--ease); }
.ind__item:hover { transform: translateY(-6px); border-color: rgba(242,169,0,.5); }
.ind__item:hover::before { inset: 0; }
.ind__item > i { position: relative; font-size: 2.3rem; color: var(--gold-ink); }
.ind__item > span { position: relative; }

/* ---------- CTA band (photo) ---------- */
.cta-band { position: relative; color: #fff; overflow: hidden; }
.cta-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,27,45,.92), rgba(15,27,45,.6)); }
html[dir="rtl"] .cta-band::before { background: linear-gradient(-90deg, rgba(15,27,45,.92), rgba(15,27,45,.6)); }
.cta-band::after { content: ""; position: absolute; inset: auto 0 0; height: 6px; background: linear-gradient(90deg, var(--red), var(--gold)); }
.cta-band__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 90px 0; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
.cta-band p { margin-top: 8px; font-weight: 500; opacity: .85; }

/* ---------- Contact ---------- */
.contact { background: var(--bg-2); }
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 34px; align-items: start; }
.contact__info { display: grid; gap: 14px; }
.info { display: flex; gap: 16px; padding: 20px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); transition: border-color .3s; }
.info:hover { border-color: rgba(242,169,0,.5); }
.info > i { width: 46px; height: 46px; padding: 11px; border-radius: 12px; background: var(--gold); color: #111; }
.info h3 { font-size: 1rem; margin-bottom: 4px; }
.info p { color: var(--muted); font-size: .94rem; }
.info a:hover { color: var(--gold-ink); }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 230px; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.3); }
:root[data-theme="dark"] .map iframe { filter: grayscale(1) invert(.92) contrast(.9) hue-rotate(180deg); }

.form { padding: 38px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); display: grid; gap: 18px; position: relative; box-shadow: var(--shadow-lg); }
.form::before { content: ""; position: absolute; top: 0; inset-inline: 38px; height: 3px; background: linear-gradient(90deg, var(--red), var(--gold)); border-radius: 0 0 3px 3px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: .85rem; font-weight: 600; color: var(--text-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: inherit; font-size: .95rem;
  transition: border-color .25s, box-shadow .25s, background .25s; resize: vertical;
}
html[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-2); background: var(--panel); box-shadow: 0 0 0 4px var(--gold-soft); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--red); box-shadow: 0 0 0 4px rgba(227,38,47,.15); }
.btn.is-loading { pointer-events: none; opacity: .75; }
.btn.is-loading i[data-icon] { animation: nudge .8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(6px); } }
.form__note { text-align: center; font-size: .85rem; color: var(--muted); }

/* ---------- Footer (always dark) ---------- */
.footer { --text: #e8edf5; --muted: #94a0b4; --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.15); --panel: rgba(255,255,255,.04);
  background: #0f1b2d; color: var(--text); padding-top: 70px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer__brand p { margin-top: 18px; color: var(--muted); max-width: 380px; font-size: .94rem; }
.footer h4 { font-size: 1rem; margin-bottom: 18px; color: var(--gold); letter-spacing: .05em; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--muted); font-size: .94rem; }
.footer ul a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.footer__credit { font-size: .75rem; }

/* ---------- Misc ---------- */
.to-top { position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 90; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px;
  background: var(--gold); color: #111; font-size: 1.3rem; box-shadow: 0 10px 30px -8px rgba(242,169,0,.6);
  opacity: 0; transform: translateY(20px); pointer-events: none; transition: .35s var(--ease); }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }
.toast { position: fixed; bottom: 24px; left: 50%; z-index: 300; translate: -50% 150%; padding: 14px 22px; border-radius: 12px; background: var(--panel); color: var(--text); border: 1px solid var(--gold-2);
  box-shadow: var(--shadow-lg); font-weight: 500; transition: translate .45s var(--ease); max-width: calc(100% - 32px); }
.toast.is-visible { translate: -50% 0; }
.toast.is-error { border-color: var(--red); }

.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; gap: 0; padding: 14px 20px 24px; margin: 0;
    background: var(--panel); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .35s var(--ease); }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__link { padding: 14px 6px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .header__actions { margin-inline-start: auto; }
  .burger { display: flex; }
  .hero__badges { display: none; }
}
@media (max-width: 960px) {
  .about__grid, .why__grid, .contact__grid { grid-template-columns: 1fr; }
  .hero { align-items: flex-end; }
  .hero__fade, html[dir="rtl"] .hero__fade { background: linear-gradient(0deg, rgba(var(--hero-fade), 1) 0%, rgba(var(--hero-fade), .92) 58%, rgba(var(--hero-fade), .15) 100%); }
  .hero { padding-top: calc(var(--header-h) + 160px); }
  .cards, .prod { grid-template-columns: repeat(2, 1fr); }
  .ind { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 14px; }
  .steps__line { display: none; }
  .step { flex-direction: row; text-align: start; gap: 16px; }
  .step__dot { width: 56px; height: 56px; font-size: 1.3rem; }
  .step__n { margin: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .about__badge { inset-inline-end: 10px; }
  .about__logo { inset-inline-start: 10px; }
  .why__panel { min-height: 380px; }
}
@media (max-width: 640px) {
  .section { padding: 84px 0; }
  .container, .hero__inner { width: calc(100% - 32px); }
  .header__cta { display: none; }
  .brand__text small { display: none; }
  .brand__mark { width: 44px; }
  .header__actions { gap: 6px; }
  .theme-btn { width: 36px; height: 36px; }
  .cards, .prod, .pillars, .form__row { grid-template-columns: 1fr; }
  .hero__stats { gap: 22px; }
  .stat strong { font-size: 1.6rem; }
  .form { padding: 26px 20px; }
  .step-detail { flex-direction: column; align-items: flex-start; gap: 10px; padding: 24px; }
  .tabs__btn { padding: 10px 14px; font-size: .9rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .lang-dd__toggle { height: 36px; padding: 0 10px; gap: 6px; }
  .lang-dd__chev { display: none; }
  .about__logo { width: 110px; }
  .why__overlay { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .brand__text { display: none; }
  .header__inner { gap: 10px; }
  .hero__title { font-size: 2rem; }
  .tag { font-size: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
