/* =========================
   Themes
========================= */

:root,
html[data-theme="light"] {
  color-scheme: light;

  --bg: #f5f8fc;
  --panel: #ffffff;
  --text: #142e45;
  --muted: #586b7c;
  --accent: #126ca8;
  --line: rgba(20, 46, 69, .13);

  --header-bg: rgba(245, 248, 252, .96);
  --hover-bg: #e7eff7;
  --button-text: #ffffff;
  --button-hover: #0d588b;
  --input-bg: #f8fafd;
  --soft-bg: #edf3f9;
  --icon-bg: rgba(18, 108, 168, .09);

  --hero-glow: rgba(32, 150, 213, .13);
  --visual-start: #e8f2fb;
  --visual-end: #ffffff;
  --shadow: rgba(20, 46, 69, .09);

  --banner-start: #e0effb;
  --banner-end: #ffffff;

  --diagram-device: #deedf8;
  --diagram-border: #698ba4;
  --diagram-slot: #bed5e6;

  --radius: 22px;
}

html[data-theme="dark"] {
  color-scheme: dark;

  --bg: #081420;
  --panel: #102231;
  --text: #f4f8fb;
  --muted: #acbdcb;
  --accent: #68c7f3;
  --line: rgba(255, 255, 255, .12);

  --header-bg: rgba(8, 20, 32, .96);
  --hover-bg: #193347;
  --button-text: #081f30;
  --button-hover: #91d9fa;
  --input-bg: #0b1926;
  --soft-bg: #0b1927;
  --icon-bg: rgba(104, 199, 243, .09);

  --hero-glow: rgba(32, 150, 213, .14);
  --visual-start: #193448;
  --visual-end: #0d1c2a;
  --shadow: rgba(0, 0, 0, .27);

  --banner-start: #14334b;
  --banner-end: #112534;

  --diagram-device: #173346;
  --diagram-border: #7293ab;
  --diagram-slot: #081420;
}

/* =========================
   Base
========================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Tahoma, sans-serif;
  line-height: 1.7;
}

html[lang="ar"] body {
  font-family: Tahoma, Arial, sans-serif;
  line-height: 1.9;
}

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

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

button {
  cursor: pointer;
}

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

[hidden] {
  display: none !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}

::selection {
  background: var(--accent);
  color: var(--button-text);
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

section {
  padding-block: 78px;
}

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

h2 {
  margin: 10px 0 15px;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.3;
}

html[lang="ar"] h2 {
  line-height: 1.6;
}

h3 {
  margin: 18px 0 10px;
  font-size: 18px;
}

.muted {
  color: var(--muted);
}

.accent {
  color: var(--accent);
}

.section-soft {
  background: var(--soft-bg);
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

html[lang="ar"] .eyebrow {
  letter-spacing: 0;
}

/* =========================
   Shared components
========================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 19px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  transition: transform .2s, background .2s;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--hover-bg);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--button-text);
}

.btn-primary:hover {
  background: var(--button-hover);
  color: var(--button-text);
}

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

.section-head {
  margin-bottom: 32px;
}

.section-head p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
}

.section-head-row > .btn {
  flex-shrink: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  inset-inline-start: 20px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--button-text);
}

.skip-link:focus {
  top: 10px;
}

/* =========================
   Header
========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 94px;
}

.logo {
  display: block;
  flex-shrink: 0;
}

.logo img {
  display: block;
  width: 112px;
  height: 82px;
  object-fit: contain;
}

.navigation {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
}

.navigation > a:not(.btn):hover,
.footer-links a:hover {
  color: var(--accent);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 9px;
}

.control-button {
  min-height: 44px;
  padding: 9px 13px;
  font-size: 12px;
}

.language-button {
  min-width: 76px;
}

#themeIcon {
  font-size: 20px;
  line-height: 1;
}

.menu-button {
  display: none;
}

/* =========================
   Hero
========================= */

.hero {
  overflow: hidden;
  padding-block: 85px;
  background:
    radial-gradient(
      ellipse at 75% 35%,
      var(--hero-glow),
      transparent 60%
    );
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content,
.visual {
  min-width: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 30px;
  color: var(--muted);
  font-size: 12px;
}

.status-dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  margin: 24px 0;
  font-size: clamp(37px, 4.8vw, 64px);
  line-height: 1.13;
  letter-spacing: -2px;
}

.hero h1 span {
  display: block;
}

html[lang="ar"] .hero h1 {
  line-height: 1.45;
  letter-spacing: -.6px;
}

.hero-description {
  max-width: 550px;
  margin-bottom: 28px;
  color: var(--muted);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 25px;
  color: var(--muted);
  font-size: 12px;
}

.hero-tags span::before {
  content: "✓";
  margin-inline-end: 6px;
  color: var(--accent);
}

/* =========================
   Illustration
========================= */

.visual {
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(
      145deg,
      var(--visual-start),
      var(--visual-end)
    );
  box-shadow: 0 35px 90px var(--shadow);
}

.visual-header {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: var(--muted);
  font-size: 11px;
}

.technical-label {
  letter-spacing: 1px;
  font-size: 10px;
}

.network-diagram {
  display: block;
  width: 100%;
  height: auto;
  margin-block: 12px;
}

.glow-start {
  stop-color: var(--accent);
  stop-opacity: .22;
}

.glow-end {
  stop-color: var(--accent);
  stop-opacity: 0;
}

.diagram-lines {
  fill: none;
  stroke: var(--accent);
  stroke-opacity: .25;
}

.diagram-device rect {
  fill: var(--diagram-device);
  stroke: var(--accent);
}

.antenna {
  fill: none;
  stroke: var(--diagram-border);
  stroke-width: 6;
  stroke-linecap: round;
}

.diagram-wordmark {
  fill: var(--text);
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.diagram-slot {
  fill: var(--diagram-slot);
}

.diagram-lights {
  fill: var(--accent);
}

.diagram-node {
  fill: var(--diagram-device);
  stroke: var(--diagram-border);
}

.diagram-icons {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.visual-labels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.visual-labels span {
  padding: 10px 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--accent);
  text-align: center;
  font-size: 12px;
}

/* =========================
   Customer segments
========================= */

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

.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-block: 25px;
}

.audience-grid strong {
  display: block;
  font-size: 14px;
}

.audience-grid small {
  color: var(--muted);
  font-size: 12px;
}

/* =========================
   Solutions
========================= */

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: transform .2s, border-color .2s;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--icon-bg);
  color: var(--accent);
  font-size: 24px;
}

.card p {
  margin-top: 0;
  color: var(--muted);
  font-size: 13px;
}

.text-link {
  margin-top: auto;
  padding-top: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

/* =========================
   About
========================= */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
  align-items: center;
}

.about-panel {
  padding: 35px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.about-panel p {
  color: var(--muted);
  font-size: 14px;
}

.about-panel .btn {
  margin-top: 10px;
}

.process-title {
  font-size: clamp(25px, 2.6vw, 32px);
}

.steps {
  display: grid;
  gap: 15px;
}

.step {
  display: flex;
  gap: 17px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.step-number {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.step h3 {
  margin: 0 0 5px;
  font-size: 16px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* =========================
   Development partners
========================= */

.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 145px;
  padding: 25px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  text-align: center;
  transition: transform .2s, border-color .2s;
}

.partner-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.partner-card strong {
  direction: ltr;
  font-size: clamp(20px, 2vw, 26px);
}

.partner-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.partners-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-top: 25px;
}

.partners-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* =========================
   Store
========================= */

.store-section {
  padding-block: 15px 35px;
}

.store-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    linear-gradient(
      120deg,
      var(--banner-start),
      var(--banner-end)
    );
}

.store-banner p {
  margin: 0;
  color: var(--muted);
}

.store-banner .btn {
  flex-shrink: 0;
}

/* =========================
   Contact
========================= */

.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 25px;
  align-items: start;
}

.contact-card,
.form-card {
  min-width: 0;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.contact-card h3,
.form-card h3 {
  margin-top: 0;
}

.contact-links {
  display: grid;
  gap: 12px;
  margin-top: 23px;
}

.contact-links .btn {
  justify-content: flex-start;
}

.locations {
  margin-top: 25px;
}

.location {
  padding-block: 16px;
  border-top: 1px solid var(--line);
}

.location h4 {
  margin: 0;
  font-size: 14px;
}

.location p {
  margin: 6px 0;
  color: var(--muted);
  font-size: 13px;
}

.location a {
  color: var(--accent);
  font-size: 12px;
}

/* =========================
   Form
========================= */

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

.form-grid > div {
  min-width: 0;
}

label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--input-bg);
  color: var(--text);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: .85;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

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

.form-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 11px;
}

.status {
  color: var(--accent);
  font-size: 13px;
}

.status:empty {
  display: none;
}

.draft {
  margin-block: 15px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: var(--input-bg);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
}

/* =========================
   FAQ and footer
========================= */

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 850px;
}

details {
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel);
}

summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

details p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  padding-block: 30px;
  border-top: 1px solid var(--line);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.noscript-message {
  padding-block: 25px;
}

/* =========================
   Responsive
========================= */

@media (max-width: 1100px) {
  .header-row {
    gap: 12px;
  }

  .navigation {
    gap: 12px;
  }

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

  .hero-grid {
    gap: 30px;
  }
}

@media (max-width: 960px) {
  .menu-button {
    display: inline-flex;
  }

  .navigation {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    padding: 20px;
    border-bottom: 1px solid var(--line);
    background: var(--panel);
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100dvh - 94px);
    overflow-y: auto;
  }

  .navigation.open {
    display: flex;
  }

  .navigation a {
    padding: 10px;
  }

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

@media (max-width: 760px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-block: 50px;
  }

  .visual {
    width: 100%;
    max-width: 520px;
    margin-inline: auto;
  }

  .store-banner,
  .section-head-row,
  .partners-footer {
    flex-direction: column;
    align-items: flex-start;
  }

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

@media (max-width: 560px) {
  .container {
    width: calc(100% - 32px);
  }

  section {
    padding-block: 50px;
  }

  .header-row {
    min-height: 82px;
    gap: 8px;
  }

  .logo img {
    width: 86px;
    height: 72px;
  }

  .header-controls {
    gap: 6px;
  }

  .control-button {
    min-height: 42px;
    padding: 9px 10px;
    font-size: 12px;
  }

  .language-button {
    min-width: 64px;
  }

  .theme-label {
    display: none;
  }

  .solutions-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .full {
    grid-column: auto;
  }

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

  .hero h1 {
    letter-spacing: -1px;
  }

  .visual {
    padding: 20px;
  }

  .visual-header {
    flex-wrap: wrap;
  }

  .store-banner,
  .about-panel,
  .contact-card,
  .form-card {
    padding: 25px;
  }

  .store-section {
    padding-block: 15px;
  }

  .partner-card {
    min-height: 125px;
    padding: 20px 10px;
  }

  .partner-card strong {
    font-size: 20px;
  }

  .footer-row {
    flex-direction: column;
  }
}

@media (max-width: 360px) {
  .partners-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}