:root {
  --bg: #06080c;
  --ink: #f4f2eb;
  --muted: #b8b1a5;
  --line: rgba(244, 242, 235, 0.11);
  --accent: #3ddc97;
  --accent-deep: #1f9a68;
  --mint: #8af0c4;
  --amber: #e8c07a;
  --surface: rgba(14, 17, 24, 0.82);
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.48);
  --font: "Tajawal", Tahoma, "Segoe UI", sans-serif;
  --max: min(1180px, calc(100vw - 32px));
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ——— Background (original Magalh atmosphere) ——— */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 80% -10%, rgba(61, 220, 151, 0.16), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 30%, rgba(232, 192, 122, 0.07), transparent 50%),
    linear-gradient(180deg, #080b11 0%, #06080c 55%, #05070a 100%);
}

.bg__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  animation: floaty 16s ease-in-out infinite alternate;
}

.bg__orb--a {
  width: 42vw;
  height: 42vw;
  max-width: 520px;
  max-height: 520px;
  top: 8%;
  left: -8%;
  background: rgba(61, 220, 151, 0.18);
}

.bg__orb--b {
  width: 36vw;
  height: 36vw;
  max-width: 420px;
  max-height: 420px;
  bottom: 12%;
  right: -6%;
  background: rgba(138, 240, 196, 0.1);
  animation-delay: -7s;
}

.bg__rail {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 12%;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(61, 220, 151, 0.22),
    transparent
  );
  opacity: 0.45;
}

@keyframes floaty {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(2%, -3%, 0);
  }
}

.shell {
  position: relative;
  z-index: 1;
  width: var(--max);
  margin: 0 auto;
  padding-bottom: 12px;
}

/* ——— Header ——— */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding: 10px 14px 10px 16px;
  border-radius: 999px;
  background: rgba(8, 10, 14, 0.62);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 34px;
  width: auto;
  max-height: 34px;
  display: block;
}

.name {
  font-weight: 800;
  font-size: 1.05rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  justify-content: flex-end;
}

nav a {
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: 0.2s ease;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--ink);
  background: rgba(244, 242, 235, 0.06);
}

nav a[aria-current="page"] {
  color: var(--accent);
}

/* ——— Hero ——— */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 6vh, 52px) 4px 18px;
  animation: rise 0.85s ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero h1 {
  margin: 0 0 10px;
  max-width: 36rem;
  white-space: normal;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  font-weight: 800;
  line-height: 1.45;
}

.lead {
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.trial-pill {
  display: inline-flex;
  margin: 16px 0 0;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(61, 220, 151, 0.35);
  background: rgba(61, 220, 151, 0.1);
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 700;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.84rem;
  transition: 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #04140e;
  box-shadow: 0 14px 34px rgba(61, 220, 151, 0.28);
}

.btn.ghost {
  border: 1px solid var(--line);
  background: rgba(244, 242, 235, 0.03);
}

.btn.ghost:hover {
  border-color: rgba(244, 242, 235, 0.28);
  background: rgba(244, 242, 235, 0.07);
}

.hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

/* Hero art — magazine frame + phone + abstract posters */
.hero__art {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
}

.devices {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
  margin-top: 48px;
  width: min(100%, 460px);
}

.poster-fan {
  position: absolute;
  inset: 8% 4% auto;
  height: 58%;
  pointer-events: none;
}

.poster {
  position: absolute;
  width: 28%;
  height: 0;
  padding-bottom: 42%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  overflow: hidden;
  background-color: #12161c;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.poster--a {
  right: 8%;
  top: 6%;
  transform: rotate(-11deg);
}

.poster--b {
  right: 28%;
  top: 0;
  transform: rotate(4deg);
}

.poster--c {
  left: 26%;
  top: 8%;
  transform: rotate(-5deg);
}

.poster--d {
  left: 6%;
  top: 14%;
  transform: rotate(10deg);
}

.frame {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  width: min(100%, 320px);
  margin-top: 0;
  border-radius: 20px;
  background: rgba(10, 13, 18, 0.92);
  border: 1px solid rgba(61, 220, 151, 0.22);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), var(--shadow);
  overflow: hidden;
  /* backdrop-filter يقطع رسم الصور أحياناً في Firefox */
  backdrop-filter: none;
}

.phone {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  width: 118px;
  height: 232px;
  padding: 10px 8px 12px;
  border-radius: 22px;
  background: linear-gradient(160deg, #1a1f28, #0b0e13 70%);
  border: 1px solid rgba(244, 242, 235, 0.16);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transform: translateY(8px) rotate(-4deg);
}

.phone__notch {
  width: 42px;
  height: 5px;
  margin: 0 auto 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.phone__screen {
  height: calc(100% - 22px);
  padding: 8px 7px;
  border-radius: 14px;
  background: #0a0d12;
  border: 1px solid rgba(61, 220, 151, 0.18);
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow: hidden;
}

.phone__top {
  display: flex;
  align-items: center;
  gap: 5px;
}

.phone__top img {
  height: 12px;
  width: auto;
  max-height: 12px;
}

.phone__top span {
  font-size: 0.62rem;
  font-weight: 800;
  color: rgba(244, 242, 235, 0.9);
}

.phone__hero {
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(61, 220, 151, 0.16);
  background-color: #10161a;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.phone__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.phone__row--sm {
  grid-template-columns: repeat(4, 1fr);
}

.phone__row i {
  display: block;
  height: 0;
  padding-bottom: 150%;
  border-radius: 5px;
  overflow: hidden;
  background-color: #14181e;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-style: normal;
}

.phone__home {
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  transform: translateX(-50%);
}

.frame__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.frame__bar img {
  height: 18px;
  width: auto;
}

.frame__bar span {
  font-size: 0.78rem;
  font-weight: 700;
  margin-inline-end: auto;
}

.frame__bar em {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-style: normal;
}

.frame__bar em:nth-child(3) {
  background: rgba(61, 220, 151, 0.55);
}

.frame__shelf {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shelf-card--wide {
  height: 96px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(61, 220, 151, 0.18);
  background-color: #10161a;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.shelf-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.shelf-row--sm {
  grid-template-columns: repeat(5, 1fr);
}

.shelf-row span {
  display: block;
  height: 0;
  padding-bottom: 150%;
  border-radius: 8px;
  overflow: hidden;
  background-color: #14181e;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ——— Showcase duo ——— */
.band,
.caps,
.offer,
.contact {
  padding: 28px 0;
}

.band__head {
  margin-bottom: 18px;
  padding: 0 4px;
}

.band__head h2,
.offer h2,
.contact h2 {
  margin: 0;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  font-weight: 800;
  max-width: none;
  white-space: nowrap;
  line-height: 1.45;
}

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.duo__pane {
  position: relative;
  overflow: hidden;
  padding: 22px 20px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  min-height: 220px;
}

.duo__pane h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 800;
}

.duo__pane p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  max-width: 36ch;
}

.duo__pane--viewer {
  background:
    linear-gradient(145deg, rgba(61, 220, 151, 0.1), transparent 45%),
    var(--surface);
}

.duo__pane--admin {
  background:
    linear-gradient(145deg, rgba(232, 192, 122, 0.1), transparent 45%),
    var(--surface);
}

.duo__shape {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 120px;
  height: 90px;
  opacity: 0.9;
  pointer-events: none;
}

.shape-ring {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 2px solid rgba(61, 220, 151, 0.35);
  animation: spin 18s linear infinite;
}

.shape-grid {
  position: absolute;
  inset: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.shape-grid b {
  border-radius: 5px;
  background: rgba(61, 220, 151, 0.22);
}

.shape-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 70px;
  padding: 10px;
}

.shape-bars i {
  display: block;
  width: 12px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--amber), rgba(232, 192, 122, 0.2));
}

.shape-bars i:nth-child(1) {
  height: 34%;
}
.shape-bars i:nth-child(2) {
  height: 62%;
}
.shape-bars i:nth-child(3) {
  height: 48%;
}
.shape-bars i:nth-child(4) {
  height: 78%;
}

.shape-pulse {
  position: absolute;
  right: 8px;
  top: 12px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(232, 192, 122, 0.45);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 16px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink);
  background: rgba(244, 242, 235, 0.06);
  border: 1px solid var(--line);
}

/* ——— Capabilities ——— */
.caps__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cap {
  padding: 18px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(244, 242, 235, 0.025);
  transition: 0.22s ease;
}

.cap:hover {
  transform: translateY(-3px);
  border-color: rgba(61, 220, 151, 0.28);
  background: rgba(61, 220, 151, 0.05);
}

.cap__mark {
  display: block;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: 12px;
  background:
    conic-gradient(from 210deg, var(--accent), transparent 70%),
    rgba(61, 220, 151, 0.15);
  border: 1px solid rgba(61, 220, 151, 0.3);
}

.cap__mark--2 {
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--mint), transparent 60%),
    rgba(61, 220, 151, 0.12);
}

.cap__mark--3 {
  clip-path: polygon(50% 0, 100% 38%, 82% 100%, 18% 100%, 0 38%);
  border: none;
  background: linear-gradient(160deg, var(--amber), rgba(61, 220, 151, 0.4));
}

.cap__mark--4 {
  border-radius: 8px;
  background: linear-gradient(135deg, #2a9d8f, transparent),
    rgba(42, 157, 143, 0.2);
}

.cap__mark--5 {
  transform: rotate(12deg);
  border-radius: 6px;
  background: linear-gradient(45deg, var(--amber), transparent 65%),
    rgba(232, 192, 122, 0.15);
}

.cap__mark--6 {
  border-radius: 14px 4px 14px 4px;
  background: linear-gradient(200deg, var(--accent), transparent),
    rgba(61, 220, 151, 0.12);
}

.cap h3 {
  margin: 0 0 5px;
  font-size: 0.92rem;
  font-weight: 800;
}

.cap p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.7;
}

/* ——— Offer / promo ——— */
.offer {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: center;
  margin: 8px 0;
  padding: 28px 24px;
  border-radius: 28px;
  border: 1px solid rgba(61, 220, 151, 0.22);
  background:
    linear-gradient(120deg, rgba(61, 220, 151, 0.12), transparent 40%),
    rgba(10, 13, 18, 0.9);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.offer__glow {
  position: absolute;
  width: 280px;
  height: 280px;
  right: -40px;
  bottom: -80px;
  border-radius: 50%;
  background: rgba(61, 220, 151, 0.18);
  filter: blur(50px);
}

.offer__body {
  position: relative;
  z-index: 1;
}

.offer p {
  margin: 8px 0 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.offer-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 14px 18px;
  margin: 18px 0 4px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.offer__stats {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.offer__stats div {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  white-space: nowrap;
}

.offer__stats strong {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.offer__stats span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 500;
}

.install-ways {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-top: 0;
}

.install-way {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.install-way__label {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.install-way .btn {
  padding: 8px 14px;
  font-size: 0.8rem;
}

.cmd-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px 6px 10px;
  border-radius: 12px;
  border: 1px solid rgba(61, 220, 151, 0.28);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.cmd-box code {
  direction: ltr;
  unicode-bidi: isolate;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--mint);
  white-space: nowrap;
}

.cmd-copy {
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(244, 242, 235, 0.05);
  color: var(--ink);
  cursor: pointer;
  transition: 0.18s ease;
}

.cmd-copy:hover {
  border-color: rgba(61, 220, 151, 0.4);
  color: var(--accent);
  background: rgba(61, 220, 151, 0.1);
}

.cmd-copy.is-copied {
  color: var(--accent);
  border-color: rgba(61, 220, 151, 0.5);
}

.offer__stack {
  position: relative;
  height: 180px;
  z-index: 1;
}

.stack-card {
  position: absolute;
  width: 58%;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
  right: 18%;
}

.stack-card--1 {
  top: 8%;
  transform: rotate(-8deg);
  background: linear-gradient(160deg, #1f3a32, #0e1514);
}

.stack-card--2 {
  top: 16%;
  transform: rotate(3deg);
  background: linear-gradient(160deg, #2c261c, #12100c);
  right: 28%;
}

.stack-card--3 {
  top: 24%;
  transform: rotate(12deg);
  background:
    linear-gradient(145deg, rgba(61, 220, 151, 0.35), transparent 50%),
    linear-gradient(160deg, #183028, #0c1412);
  right: 10%;
}

/* ——— Product page ——— */
.product-page {
  padding: 12px 0 28px;
}

.product-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: end;
  padding: 20px 4px 28px;
  animation: rise 0.75s ease both;
}

.product-hero h1 {
  margin: 0 0 10px;
  white-space: nowrap;
  font-size: clamp(1.08rem, 1.8vw, 1.32rem);
  font-weight: 800;
  line-height: 1.45;
}

.product-intro {
  max-width: 40rem;
  margin-bottom: 4px;
}

.product-jump {
  display: grid;
  gap: 10px;
}

.product-jump__card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 16px 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: 0.2s ease;
}

.product-jump__card:hover {
  transform: translateY(-2px);
  border-color: rgba(61, 220, 151, 0.3);
}

.product-jump__card--admin {
  background:
    linear-gradient(145deg, rgba(232, 192, 122, 0.1), transparent 50%),
    var(--surface);
}

.product-jump__card--viewer {
  background:
    linear-gradient(145deg, rgba(61, 220, 151, 0.1), transparent 50%),
    var(--surface);
}

.product-jump__kicker {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.product-jump__card strong {
  font-size: 0.95rem;
  font-weight: 800;
}

.product-jump__card em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.8rem;
}

.svc-section {
  margin: 8px 0 28px;
  padding: 22px 18px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(10, 13, 18, 0.55);
}

.svc-section--viewer {
  background:
    linear-gradient(180deg, rgba(61, 220, 151, 0.05), transparent 28%),
    rgba(10, 13, 18, 0.55);
}

.svc-section__head {
  margin-bottom: 18px;
  padding: 0 2px 14px;
  border-bottom: 1px solid var(--line);
}

.svc-section__head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  font-weight: 800;
  white-space: nowrap;
  line-height: 1.4;
}

.svc-section__head p {
  margin: 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.75;
}

.svc-group {
  margin-top: 18px;
}

.svc-group__title {
  margin: 0 0 10px;
  padding: 0 2px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.svc-section--viewer .svc-group__title,
.svc-section--viewer > .svc-grid {
  margin-top: 4px;
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.svc-card {
  padding: 14px 13px 13px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(244, 242, 235, 0.03);
  transition: 0.2s ease;
  min-height: 108px;
}

.svc-card:hover {
  border-color: rgba(61, 220, 151, 0.28);
  background: rgba(61, 220, 151, 0.05);
  transform: translateY(-2px);
}

.svc-card h4 {
  margin: 0 0 6px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ink);
}

.svc-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.65;
}

.product-cta {
  margin: 8px 0 12px;
}

.product-cta__inner {
  padding: clamp(22px, 3.5vw, 30px);
  border-radius: 22px;
  border: 1px solid rgba(61, 220, 151, 0.22);
  background:
    linear-gradient(120deg, rgba(61, 220, 151, 0.1), transparent 45%),
    var(--surface);
  box-shadow: var(--shadow);
}

.product-cta h2 {
  margin: 0 0 8px;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  font-weight: 800;
  white-space: nowrap;
}

.product-cta p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.86rem;
}

/* ——— Contact ——— */
.contact__panel {
  padding: clamp(24px, 4vw, 34px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(61, 220, 151, 0.07), transparent 50%),
    var(--surface);
  box-shadow: var(--shadow);
}

.contact__panel p:last-child {
  margin: 8px 0 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 18px 24px;
  margin: 12px 0 28px;
  padding: 20px 6px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 0;
  padding: 0;
}

.site-footer__links a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible,
.site-footer__links a[aria-current="page"] {
  color: var(--accent);
}

.legal-page {
  width: 100%;
  max-width: 100%;
  padding: clamp(18px, 4vw, 28px) 0 clamp(28px, 5vw, 40px);
  animation: rise 0.75s ease both;
}

.legal-hero {
  width: 100%;
  margin: 0 0 22px;
  padding: clamp(22px, 4vw, 36px) clamp(18px, 3vw, 28px);
  border-radius: clamp(18px, 3vw, 26px);
  border: 1px solid rgba(61, 220, 151, 0.2);
  background:
    linear-gradient(120deg, rgba(61, 220, 151, 0.1), transparent 55%),
    var(--surface);
}

.legal-page h1,
.legal-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.legal-intro {
  margin: 0;
  max-width: 48rem;
}

.legal-body {
  display: grid;
  gap: clamp(14px, 3vw, 20px);
  width: 100%;
  max-width: none;
  padding: clamp(18px, 3.5vw, 26px) clamp(16px, 3vw, 24px);
  border-radius: clamp(16px, 3vw, 22px);
  border: 1px solid var(--line);
  background: var(--surface);
}

.legal-body section {
  min-width: 0;
}

.legal-body h2 {
  margin: 0 0 6px;
  font-size: clamp(0.95rem, 2.8vw, 1.05rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.45;
}

.legal-body p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.86rem, 2.6vw, 0.94rem);
  line-height: 1.85;
  overflow-wrap: break-word;
}

.legal-body a {
  color: var(--accent);
  font-weight: 700;
}

.foot-logo {
  height: 28px;
  width: auto;
  max-height: 28px;
  display: block;
}

.site-footer__name {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--ink);
}

.site-footer__desc {
  color: var(--muted);
  font-size: 0.8rem;
}

.site-footer__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: left;
}

.site-footer__yemen {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.yemen-flag {
  display: inline-flex;
  line-height: 0;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.site-footer__meta a {
  color: var(--accent);
  font-weight: 700;
}

.site-footer__wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #25d366;
  line-height: 1;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-footer__wa span {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.site-footer__wa:hover,
.site-footer__wa:focus-visible {
  color: #4ae07f;
  transform: scale(1.04);
}

.site-footer__wa:hover span,
.site-footer__wa:focus-visible span {
  color: var(--accent);
}

.site-footer__domain {
  color: rgba(244, 242, 235, 0.45);
  font-size: 0.76rem;
}

.reveal {
  animation: rise 0.85s ease both;
  animation-delay: 0.08s;
}

@media (max-width: 1100px) {
  .svc-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  nav a {
    padding: 7px 9px;
    font-size: 0.84rem;
  }
}

@media (max-width: 960px) {
  :root {
    --max: min(1180px, calc(100vw - 24px));
  }

  .hero,
  .duo,
  .offer,
  .product-hero {
    grid-template-columns: 1fr;
  }

  .offer {
    padding: 22px 18px;
  }

  .offer-row {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .offer__stats,
  .install-ways {
    flex-wrap: wrap;
  }

  .svc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .caps__grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero__art {
    min-height: 320px;
    order: -1;
  }

  .devices {
    width: min(100%, 400px);
  }

  .phone {
    width: 102px;
    height: 200px;
  }

  .hero h1,
  .product-hero h1,
  .svc-section__head h2,
  .product-cta h2,
  .band__head h2,
  .offer h2,
  .contact h2 {
    white-space: normal;
  }

  .offer__stack {
    height: 140px;
    justify-self: center;
    width: min(100%, 280px);
  }

  .site-footer {
    gap: 16px;
  }
}

@media (max-width: 640px) {
  :root {
    --max: min(1180px, calc(100vw - 20px));
  }

  .top {
    flex-direction: column;
    align-items: stretch;
    border-radius: 20px;
    margin-top: 12px;
    padding: 12px;
  }

  nav {
    justify-content: center;
    gap: 4px;
  }

  nav a {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  .caps__grid,
  .svc-grid {
    grid-template-columns: 1fr;
  }

  .poster-fan {
    opacity: 0.55;
  }

  .svc-card {
    min-height: 0;
  }

  .hero {
    padding-top: 20px;
  }

  .hero__art {
    min-height: 280px;
  }

  .devices {
    gap: 10px;
    margin-top: 28px;
  }

  .phone {
    width: 88px;
    height: 172px;
    padding: 8px 6px 10px;
  }

  .actions {
    width: 100%;
  }

  .actions .btn {
    flex: 1 1 auto;
    min-width: min(100%, 10rem);
  }

  .cmd-box {
    max-width: 100%;
  }

  .cmd-box code {
    white-space: normal;
    word-break: break-all;
    font-size: 0.72rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .site-footer__brand {
    flex-wrap: wrap;
  }

  .site-footer__meta {
    align-items: flex-start;
    text-align: right;
    width: 100%;
  }

  .site-footer__wa {
    flex-wrap: wrap;
  }

  .offer-row,
  .install-ways,
  .offer__stats {
    width: 100%;
  }

  .install-way {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  :root {
    --max: calc(100vw - 16px);
  }

  .name {
    font-size: 0.95rem;
  }

  .brand-logo {
    height: 28px;
    max-height: 28px;
  }

  nav a {
    padding: 5px 8px;
    font-size: 0.74rem;
  }

  .btn {
    padding: 10px 14px;
    font-size: 0.8rem;
  }

  .offer {
    padding: 18px 14px;
    border-radius: 20px;
  }

  .legal-body {
    padding: 14px 12px;
  }

  .legal-hero {
    padding: 18px 14px;
  }

  .phone {
    display: none;
  }

  .devices {
    justify-content: center;
  }

  .frame {
    width: min(100%, 280px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero,
  .reveal,
  .bg__orb,
  .shape-ring,
  .shape-pulse {
    animation: none !important;
  }

  .btn:hover,
  .cap:hover {
    transform: none;
  }
}
