:root {
  --ink: #f6f8fb;
  --muted: #aeb8c7;
  --soft: #d8e0ea;
  --bg: #07090c;
  --panel: #11161d;
  --panel-2: #171e26;
  --line: rgba(255, 255, 255, 0.13);
  --accent: #20d8a2;
  --accent-2: #69b7ff;
  --dark-text: #111820;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "IBM Plex Sans Arabic", system-ui, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body[dir="rtl"] {
  font-family: "IBM Plex Sans Arabic", Inter, system-ui, sans-serif;
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(7, 9, 12, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

.brand-logo {
  display: block;
  width: clamp(132px, 14vw, 190px);
  height: 44px;
  object-fit: contain;
  object-position: center;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.brand strong {
  color: var(--soft);
  font-size: 13px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 34px);
  color: var(--soft);
  font-size: 14px;
}

.nav-links a {
  transition: color 180ms ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.language-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  width: 94px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.lang-button {
  min-height: 38px;
  border: 0;
  background: transparent;
  color: var(--soft);
  cursor: pointer;
}

.lang-button.is-active {
  background: var(--ink);
  color: var(--dark-text);
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 96svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 118px clamp(18px, 5vw, 72px) 42px;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(7, 9, 12, 0.96) 0%, rgba(7, 9, 12, 0.75) 43%, rgba(7, 9, 12, 0.24) 100%),
    linear-gradient(0deg, rgba(7, 9, 12, 0.94) 0%, rgba(7, 9, 12, 0.1) 48%, rgba(7, 9, 12, 0.72) 100%);
}

body[dir="rtl"] .hero-shade {
  background:
    linear-gradient(270deg, rgba(7, 9, 12, 0.96) 0%, rgba(7, 9, 12, 0.75) 43%, rgba(7, 9, 12, 0.24) 100%),
    linear-gradient(0deg, rgba(7, 9, 12, 0.94) 0%, rgba(7, 9, 12, 0.1) 48%, rgba(7, 9, 12, 0.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  padding-bottom: 94px;
}

.eyebrow,
.section-label {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

body[dir="rtl"] .eyebrow,
body[dir="rtl"] .section-label {
  text-transform: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: break-word;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.96;
  letter-spacing: 0;
}

body[dir="rtl"] h1 {
  font-size: clamp(46px, 6vw, 82px);
  line-height: 1.08;
}

body[dir="rtl"] .hero-content {
  padding-bottom: 132px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.02;
}

h3 {
  font-size: 22px;
  line-height: 1.15;
}

.hero-copy {
  max-width: 620px;
  color: var(--soft);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.7;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--line);
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #04100c;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

.hero-metrics {
  position: absolute;
  z-index: 3;
  inset: auto clamp(18px, 5vw, 72px) 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: rgba(10, 14, 18, 0.68);
  backdrop-filter: blur(18px);
}

.hero-metrics div {
  padding: 20px;
  border-inline-end: 1px solid var(--line);
}

.hero-metrics div:last-child {
  border-inline-end: 0;
}

.hero-metrics strong {
  display: block;
  color: var(--ink);
  font-size: clamp(25px, 4vw, 42px);
}

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

section {
  padding: clamp(68px, 9vw, 128px) clamp(18px, 5vw, 72px);
}

.band {
  background:
    linear-gradient(135deg, rgba(32, 216, 162, 0.08), transparent 38%),
    linear-gradient(315deg, rgba(105, 183, 255, 0.1), transparent 42%),
    var(--panel);
}

.intro-grid,
.partners,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
}

.intro-grid p,
.partners-copy p {
  color: var(--soft);
  font-size: 18px;
  line-height: 1.8;
}

.section-head {
  max-width: 880px;
  margin-bottom: clamp(34px, 5vw, 64px);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

body[dir="rtl"] .product-grid {
  border-left: 0;
  border-right: 1px solid var(--line);
}

.product-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--panel);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition:
    background 180ms ease,
    transform 180ms ease;
}

body[dir="rtl"] .product-card {
  border-right: 0;
  border-left: 1px solid var(--line);
}

.product-card:hover {
  background: var(--panel-2);
  transform: translateY(-4px);
}

.card-topline {
  margin-bottom: 84px;
  color: var(--accent-2);
  font-weight: 800;
}

.product-card p,
.advantage-item p {
  color: var(--muted);
  line-height: 1.65;
}

.product-card span {
  margin-top: auto;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.visual-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr) minmax(280px, 0.9fr);
  gap: 18px;
  align-items: stretch;
}

.visual-feature,
.visual-card,
.warranty-strip {
  border: 1px solid var(--line);
  background: rgba(7, 9, 12, 0.58);
  overflow: hidden;
}

.visual-feature {
  grid-row: span 2;
  display: grid;
  min-height: 620px;
}

.visual-feature img,
.visual-card img,
.layer-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-feature img {
  min-height: 430px;
}

.visual-feature div,
.visual-card {
  position: relative;
}

.visual-feature div {
  align-self: end;
  padding: 28px;
  background: linear-gradient(0deg, rgba(7, 9, 12, 0.96), rgba(7, 9, 12, 0.72));
}

.visual-feature p {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.visual-card {
  display: grid;
  grid-template-rows: 230px auto auto;
  padding-bottom: 24px;
}

.visual-card h3,
.visual-card p {
  padding-inline: 22px;
}

.visual-card h3 {
  margin: 22px 0 10px;
}

.visual-card p {
  color: var(--muted);
  line-height: 1.6;
}

.warranty-strip {
  display: grid;
  grid-template-columns: minmax(280px, 1.25fr) minmax(260px, 0.9fr) minmax(220px, 0.72fr);
  gap: 24px;
  align-items: center;
  margin-top: 18px;
  padding: 18px;
}

.layer-image {
  max-height: 300px;
}

.warranty-copy {
  padding: 12px;
}

.warranty-copy h3 {
  font-size: clamp(25px, 3vw, 38px);
}

.warranty-copy p:last-child {
  color: var(--muted);
  line-height: 1.7;
}

.warranty-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.warranty-badges img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.advantage-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.advantage-item {
  min-height: 270px;
  padding: 30px;
  background: #0d1218;
}

.advantage-item span {
  display: inline-block;
  margin-bottom: 46px;
  color: var(--accent);
  font-weight: 800;
}

.partners {
  align-items: center;
}

.partner-panel {
  border: 1px solid var(--line);
  background: var(--panel);
}

.panel-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
  color: var(--soft);
}

.panel-row:last-child {
  border-bottom: 0;
}

.panel-row strong {
  color: var(--accent-2);
}

.contact {
  align-items: start;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--soft);
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  padding: 14px 14px;
  outline: 0;
}

select option {
  color: var(--dark-text);
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
}

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

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-logo {
  width: min(220px, 48vw);
  height: 52px;
  object-fit: contain;
  object-position: left center;
}

body[dir="rtl"] .footer-logo {
  object-position: right center;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .site-header {
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  body[dir="rtl"] .nav-links {
    justify-content: flex-end;
  }

  .product-grid,
  .advantage-list,
  .visual-grid,
  .warranty-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .visual-feature {
    grid-column: 1 / -1;
    min-height: 520px;
  }

  .warranty-strip {
    align-items: start;
  }

  .layer-image {
    grid-column: 1 / -1;
  }

  .intro-grid,
  .partners,
  .contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body[dir="rtl"] {
    direction: ltr;
  }

  .site-header {
    padding: 14px 16px;
  }

  body[dir="rtl"] .site-header,
  body[dir="rtl"] .hero,
  body[dir="rtl"] section,
  body[dir="rtl"] .site-footer {
    direction: ltr;
  }

  body[dir="rtl"] section:not(.hero) {
    padding-left: 30px;
    padding-right: 30px;
  }

  body[dir="rtl"] section:not(.hero) > * {
    transform: translateX(-12px);
  }

  body[dir="rtl"] section:not(.hero) > .section-label,
  body[dir="rtl"] section:not(.hero) .eyebrow {
    display: block;
    width: 100%;
    text-align: center;
    transform: none;
  }

  body[dir="rtl"] .nav-links,
  body[dir="rtl"] .language-switch,
  body[dir="rtl"] .hero-content,
  body[dir="rtl"] .hero-metrics,
  body[dir="rtl"] section > *,
  body[dir="rtl"] .site-footer > * {
    direction: rtl;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 118px;
    height: 38px;
  }

  .brand > span {
    display: none;
  }

  .brand strong {
    font-size: 12px;
  }

  .brand small {
    display: none;
  }

  .hero {
    display: block;
    min-height: auto;
    padding-inline: 16px;
    padding-top: 154px;
    padding-bottom: 28px;
  }

  .hero-content {
    padding-bottom: 0;
  }

  h1 {
    max-width: 10.5ch;
    font-size: clamp(40px, 12vw, 48px);
    line-height: 1.04;
  }

  body[dir="rtl"] h1 {
    max-width: 100%;
    font-size: clamp(34px, 9.5vw, 40px);
    line-height: 1.16;
  }

  body[dir="rtl"] .hero-content {
    width: 100%;
    padding-bottom: 0;
    text-align: center;
  }

  .hero-copy {
    max-width: 34ch;
    font-size: 16px;
  }

  body[dir="rtl"] .hero-copy {
    max-width: 100%;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: min(100%, 310px);
  }

  body[dir="rtl"] .hero-actions {
    margin-left: auto;
    margin-right: auto;
  }

  body[dir="rtl"] .hero-metrics {
    text-align: center;
  }

  body[dir="rtl"] h2 {
    max-width: 100%;
    font-size: 30px;
    line-height: 1.25;
    text-align: center;
  }

  body[dir="rtl"] .intro-grid p,
  body[dir="rtl"] .partners-copy p,
  body[dir="rtl"] .product-card,
  body[dir="rtl"] .advantage-item,
  body[dir="rtl"] .contact {
    text-align: center;
  }

  .button {
    width: 100%;
  }

  .hero-metrics {
    position: relative;
    grid-template-columns: 1fr;
    inset: auto;
    margin-top: 28px;
  }

  .hero-metrics div {
    padding: 12px 16px;
    border-inline-end: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-metrics div:last-child {
    border-bottom: 0;
  }

  .product-grid,
  .advantage-list,
  .visual-grid,
  .warranty-strip,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .visual-feature {
    min-height: auto;
  }

  .visual-feature img {
    min-height: 260px;
  }

  .visual-feature div {
    padding: 22px;
  }

  .visual-card {
    grid-template-rows: 220px auto auto;
  }

  .warranty-badges {
    max-width: 300px;
    margin: 0 auto;
  }

  .product-card {
    min-height: 300px;
  }

  .card-topline {
    margin-bottom: 48px;
  }

  .site-footer {
    display: grid;
  }
}
