/* ================================================================
   ECOSYSTEM — partnerships & technology stack (EN + AR)
   .eco-section → About page: "Partnerships & Technology Ecosystem"
   .eco-strip   → compact "One partner for your whole stack" strip
                  (Business-Emails, Cloud-Services)
   Colours follow the site palette (cyan / blue / white on dark surfaces).
   Hostinger purple appears only as a soft glow around the official
   badge; the badge image itself is never filtered/recoloured.
   Note: base reset sets img { pointer-events: none }, so every badge
   link below is a block-level box that fully wraps its image.
================================================================ */

.eco-section,
.eco-strip {
  --eco-muted: #9a9ab2;
  --eco-badge-glow: rgba(103, 61, 230, 0.2);
  --eco-badge-glow-hover: rgba(103, 61, 230, 0.34);
}

/* ───────────────────────── About: full section ───────────────────────── */
.eco-section {
  background: var(--black);
  padding: var(--space-xl) 24px;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.eco-section::before {
  content: "";
  position: absolute;
  top: -280px;
  left: 50%;
  transform: translateX(-50%);
  width: 980px;
  height: 980px;
  background:
    radial-gradient(circle, rgba(0, 195, 255, 0.05) 0%, transparent 42%),
    radial-gradient(circle, rgba(0, 110, 255, 0.06) 0%, transparent 65%);
  pointer-events: none;
}
.eco-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.eco-header {
  max-width: 800px;
  margin: 0 auto 56px;
  text-align: center;
}
.eco-header h2 {
  margin-bottom: 18px;
}
.eco-lead {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.85;
}
.eco-lead strong {
  color: #fff;
  font-weight: 600;
}

/* ── Featured partner card (Hostinger) ── */
.eco-feature {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(230px, 270px);
  align-items: center;
  gap: 36px;
  padding: 38px 40px;
  margin-bottom: 24px;
  background:
    radial-gradient(130% 160% at 0% 0%, rgba(0, 195, 255, 0.08) 0%, transparent 55%),
    var(--surface);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  text-align: start;
}
html[dir="rtl"] .eco-feature {
  background:
    radial-gradient(130% 160% at 100% 0%, rgba(0, 195, 255, 0.08) 0%, transparent 55%),
    var(--surface);
}
.eco-feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--electric));
}
html[dir="rtl"] .eco-feature::before {
  background: linear-gradient(270deg, var(--cyan), var(--electric));
}
.eco-badge-link {
  display: block;
  line-height: 0;
  border-radius: 10px;
  box-shadow: 0 6px 24px var(--eco-badge-glow);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.eco-badge-link img {
  display: block;
  width: 168px;
  height: auto;
}
.eco-badge-link:hover {
  box-shadow: 0 10px 32px var(--eco-badge-glow-hover);
}
.eco-kicker {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 8px;
}
.eco-feature h3 {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.eco-feature p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--eco-muted);
}
.eco-feature-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.eco-code {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 12px;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(0, 195, 255, 0.45);
  border-radius: var(--radius-md);
}
.eco-code-label {
  grid-column: 1 / -1;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--eco-muted);
}
.eco-code code {
  direction: ltr;
  font-family: "Orbitron", monospace;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: #fff;
}
.eco-code-save {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
  white-space: nowrap;
}
.eco-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  background: rgba(0, 195, 255, 0.08);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: var(--t-base);
}
.eco-more:hover {
  background: rgba(0, 195, 255, 0.16);
  border-color: rgba(0, 195, 255, 0.6);
}

/* ── Platform cards ── */
.eco-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.eco-card {
  --eco-accent: var(--grad-cyan);
  display: flex;
  flex-direction: column;
  padding: 30px 30px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  text-align: start;
  transition: var(--t-slow);
}
.eco-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--eco-accent);
  opacity: 0.5;
  transition: opacity 0.25s var(--ease);
}
.eco-card:hover {
  border-color: var(--border-cyan);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}
.eco-card:hover::before {
  opacity: 1;
}
.eco-card--ms {
  --eco-accent: linear-gradient(90deg, #3a7bff, #00c3ff);
}
.eco-card--cloud {
  --eco-accent: linear-gradient(90deg, #00c3ff, #3a7bff);
}
.eco-card--web {
  --eco-accent: linear-gradient(90deg, #00ff88, #00c3ff);
}
.eco-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.eco-logo {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--cyan);
  font-size: 1.3rem;
}
.eco-logo img {
  width: 24px;
  height: 24px;
}
.eco-card--ms .eco-logo {
  color: #fff;
}
.eco-card--web .eco-logo {
  color: var(--green);
}
.eco-card h3 {
  font-size: 1rem;
  line-height: 1.35;
  color: var(--text-primary);
}
.eco-card p {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--eco-muted);
  margin-bottom: 16px;
}
.eco-card p a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-color: rgba(0, 195, 255, 0.5);
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}
.eco-card p a:hover {
  color: #fff;
}
.eco-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
}
.eco-chips li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-secondary);
}
.eco-chips i {
  color: var(--green);
  font-size: 0.78rem;
}
.eco-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.eco-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.eco-links a:hover {
  color: #fff;
}
.eco-links a i {
  font-size: 0.8rem;
}
.eco-note {
  margin-top: 30px;
  text-align: center;
  font-size: 0.74rem;
  line-height: 1.7;
  color: var(--eco-muted);
}

/* ─────────────────── Service pages: compact strip ─────────────────── */
.eco-strip {
  background: var(--deep);
  padding: 90px 24px;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.eco-strip::before {
  content: "";
  position: absolute;
  top: -320px;
  left: 50%;
  transform: translateX(-50%);
  width: 760px;
  height: 760px;
  background: radial-gradient(circle, rgba(0, 110, 255, 0.07) 0%, transparent 65%);
  pointer-events: none;
}
.eco-strip-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.eco-strip-head {
  max-width: 660px;
  margin: 0 auto 40px;
  text-align: center;
}
.eco-strip-head h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  margin-bottom: 12px;
}
.eco-strip-head p {
  font-size: 0.93rem;
  line-height: 1.8;
  color: var(--eco-muted);
}
.eco-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.eco-tile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "icon go"
    "text text";
  align-items: center;
  align-content: start;
  gap: 18px 12px;
  padding: 22px 22px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: inherit;
  text-align: start;
  text-decoration: none;
  transition: var(--t-slow);
}
a.eco-tile:hover {
  border-color: var(--border-cyan);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
}
.eco-tile-icon {
  grid-area: icon;
  justify-self: start;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 195, 255, 0.07);
  border: 1px solid rgba(0, 195, 255, 0.18);
  border-radius: 11px;
  color: var(--cyan);
  font-size: 1.2rem;
}
.eco-tile-badge {
  grid-area: icon;
  justify-self: start;
  display: block;
  width: auto;
  height: 38px;
}
.eco-tile-text {
  grid-area: text;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.eco-tile-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}
.eco-tile-sub {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--eco-muted);
}
.eco-tile-go {
  grid-area: go;
  color: var(--cyan);
  font-size: 1rem;
  transition: transform 0.2s var(--ease);
}
.eco-tile--hp {
  background: linear-gradient(160deg, rgba(0, 195, 255, 0.05) 0%, var(--surface) 65%);
}
.eco-tile--hp .eco-tile-badge {
  box-shadow: 0 4px 16px var(--eco-badge-glow);
}
a.eco-tile--hp:hover .eco-tile-badge {
  box-shadow: 0 6px 22px var(--eco-badge-glow-hover);
}
.eco-tile.is-current {
  background: rgba(255, 255, 255, 0.015);
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.16);
}
.eco-tile-here {
  grid-area: go;
  padding: 3px 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 100px;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* ── Shared: focus + motion ── */
.eco-badge-link:focus-visible,
.eco-more:focus-visible,
.eco-links a:focus-visible,
.eco-card p a:focus-visible,
a.eco-tile:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
.eco-more i,
.eco-links a i {
  transition: transform 0.2s var(--ease);
}
@media (prefers-reduced-motion: no-preference) {
  .eco-card:hover,
  a.eco-tile:hover {
    transform: translateY(-4px);
  }
  .eco-badge-link:hover {
    transform: translateY(-2px);
  }
  .eco-more:hover i,
  .eco-links a:hover i,
  a.eco-tile:hover .eco-tile-go {
    transform: translateX(3px);
  }
  html[dir="rtl"] .eco-more:hover i,
  html[dir="rtl"] .eco-links a:hover i,
  html[dir="rtl"] a.eco-tile:hover .eco-tile-go {
    transform: translateX(-3px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .eco-card,
  .eco-tile,
  .eco-badge-link,
  .eco-more {
    transition: none;
  }
}

/* ── Arabic ── */
html[dir="rtl"] .eco-kicker,
html[dir="rtl"] .eco-code-label,
html[dir="rtl"] .eco-tile-here {
  letter-spacing: 0;
  text-transform: none;
}
html[dir="rtl"] .eco-kicker,
html[dir="rtl"] .eco-code-label {
  font-size: 0.78rem;
}
html[dir="rtl"] .eco-tile-here {
  font-size: 0.72rem;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .eco-feature {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 28px 32px;
  }
  .eco-feature-side {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
  }
  .eco-code {
    flex: 1 1 260px;
  }
  .eco-more {
    flex: 1 1 220px;
  }
  .eco-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .eco-section {
    padding: var(--space-lg) 20px;
  }
  .eco-header {
    margin-bottom: 40px;
  }
  .eco-feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 30px 22px;
  }
  .eco-badge-link {
    justify-self: start;
  }
  .eco-badge-link img {
    width: 150px;
  }
  .eco-feature-side {
    flex-direction: column;
  }
  .eco-code,
  .eco-more {
    flex: none;
  }
  .eco-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .eco-card {
    padding: 26px 22px 22px;
  }
  .eco-strip {
    padding: 64px 20px;
  }
  .eco-strip-head {
    margin-bottom: 28px;
  }
}
@media (max-width: 480px) {
  .eco-tiles {
    gap: 12px;
  }
  .eco-tile {
    gap: 14px 8px;
    padding: 16px 14px;
  }
  .eco-tile-icon {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
  .eco-tile-badge {
    height: 32px;
  }
  .eco-tile-here {
    padding: 2px 7px;
    letter-spacing: 0.5px;
  }
}
@media (max-width: 359px) {
  .eco-tiles {
    grid-template-columns: minmax(0, 1fr);
  }
}
