:root {
  --bg: #0b1020;
  --bg-2: #0f172a;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-2: rgba(255, 255, 255, 0.09);
  --card: rgba(255, 255, 255, 0.08);
  --border: rgba(148, 163, 184, 0.22);
  --text: #e5e7eb;
  --text-2: rgba(229, 231, 235, 0.78);
  --text-3: rgba(229, 231, 235, 0.6);
  --ink: #0f172a;
  --white: #ffffff;
  --primary: #2563eb;
  --primary-2: #06b6d4;
  --ok: #22c55e;
  --warn: #f59e0b;
  --err: #ef4444;
  --shadow: 0 18px 45px rgba(2, 6, 23, 0.55);
  --shadow-soft: 0 14px 30px rgba(2, 6, 23, 0.35);
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --transition: 180ms ease;
}

@font-face {
  font-family: 'SwissraLocal';
  src: local('Swissra Bold'), local('Swissra'), local('Swissra Medium');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: "Cairo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(1000px 700px at 0% 0%, rgba(37, 99, 235, 0.24), transparent 55%),
              radial-gradient(900px 650px at 100% 0%, rgba(6, 182, 212, 0.18), transparent 52%),
              linear-gradient(180deg, #050816, var(--bg));
  color: var(--text);
  line-height: 1.75;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Layout container (explicit L/R auto for RTL + Safari consistency) */
.tl-container {
  max-width: 1120px;
  width: calc(100% - 2.2rem);
  margin-left: auto;
  margin-right: auto;
}

body { overflow-x: hidden; }

.skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: 0.8rem;
  padding: 0.6rem 0.9rem;
  background: var(--white);
  color: var(--ink);
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform var(--transition);
  z-index: 999;
}
.skip:focus { transform: translateY(0); }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(5, 8, 22, 0.82), rgba(5, 8, 22, 0.62));
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}
.brand__logo {
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.4);
}
.brand__title { font-weight: 800; letter-spacing: 0.2px; }
.brand__subtitle { font-size: 0.92rem; color: var(--text-3); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.nav__link {
  font-size: 0.95rem;
  color: var(--text-2);
  padding: 0.35rem 0.2rem;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.nav__link:hover { color: var(--white); border-color: rgba(6, 182, 212, 0.8); }

.nav__link--cta {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  padding: 0.42rem 0.9rem;
  background: rgba(255, 255, 255, 0.05);
}
.nav__link--cta:hover { border-color: rgba(6, 182, 212, 0.65); }

.nav__toggle {
  display: none;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 0.5rem 0.55rem;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  margin: 4px 0;
}

.main { min-height: 70vh; }

.hero {
  padding: 3.6rem 0 2.4rem;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 520px at 20% 20%, rgba(37, 99, 235, 0.22), transparent 60%),
    radial-gradient(700px 520px at 80% 0%, rgba(6, 182, 212, 0.18), transparent 55%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 1.8rem;
  align-items: start;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
  color: var(--text-2);
  margin-bottom: 0.85rem;
}

.hero__title {
  margin: 0 0 0.8rem;
  font-size: clamp(1.75rem, 2.6vw, 2.35rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.hero__title span {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(186, 230, 253, 0.95));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  margin: 0 0 1rem;
  color: var(--text-2);
  max-width: 60ch;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.34rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--text);
  font-size: 0.9rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 0.95rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.62rem 1.1rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}

.btn:focus-visible {
  outline: 3px solid rgba(6, 182, 212, 0.55);
  outline-offset: 3px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: var(--white);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.38);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 20px 44px rgba(37, 99, 235, 0.48); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(148, 163, 184, 0.22);
  color: var(--text);
}
.btn--ghost:hover { border-color: rgba(6, 182, 212, 0.6); }

.hero__note {
  color: var(--text-3);
  font-size: 0.95rem;
}

.hero__card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1.2rem 1.15rem;
}

.hero__cardTitle { font-weight: 800; margin-bottom: 0.7rem; }

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-inline-start: 1.6rem;
  margin: 0.35rem 0;
  color: var(--text-2);
}

.checklist li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 1.2rem;
  height: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: rgba(167, 243, 208, 0.95);
  font-weight: 800;
  font-size: 0.82rem;
}

.divider {
  height: 1px;
  background: rgba(148, 163, 184, 0.18);
  margin: 1rem 0;
}

.mini__label { font-size: 0.85rem; color: var(--text-3); }
.mini__value { font-weight: 800; }

.section { padding: 2.6rem 0; }

.section--alt {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.section--dark {
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.95));
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.section__head {
  margin-bottom: 1.25rem;
}

.section__head--dark .section__desc { color: rgba(229, 231, 235, 0.75); }

.section__title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 2.1vw, 1.7rem);
  letter-spacing: -0.01em;
}

.section__desc {
  margin: 0;
  color: var(--text-2);
  max-width: 72ch;
}

.grid {
  display: grid;
  gap: 1rem;
}

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

.card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  box-shadow: 0 16px 34px rgba(2, 6, 23, 0.25);
}

.card__title { margin: 0 0 0.25rem; font-weight: 800; font-size: 1.02rem; }
.card__text { margin: 0; color: var(--text-2); }

.feature {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius-lg);
  padding: 1.05rem 1.1rem;
}

.feature__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(37, 99, 235, 0.28);
  margin-bottom: 0.65rem;
  font-weight: 800;
  color: rgba(191, 219, 254, 0.95);
}

.feature__title { margin: 0 0 0.2rem; font-weight: 800; }
.feature__text { margin: 0; color: var(--text-2); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.stat {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.05);
  padding: 1.05rem 1rem;
}

.stat__value {
  font-weight: 900;
  letter-spacing: 0.5px;
  font-size: 1.35rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(186, 230, 253, 0.95));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat__label { color: var(--text-2); margin-top: 0.25rem; font-size: 0.95rem; }

.hint { margin-top: 0.85rem; color: var(--text-3); font-size: 0.92rem; }

.brands {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0.75rem;
}

.brandCard {
  text-align: start;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 0.95rem;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}
.brandCard:hover { transform: translateY(-2px); border-color: rgba(6, 182, 212, 0.45); background: rgba(255, 255, 255, 0.075); }

.brandCard:focus-visible {
  outline: 3px solid rgba(6, 182, 212, 0.55);
  outline-offset: 3px;
}

.brandCard__logo {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.65rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(6, 182, 212, 0.18));
  border: 1px solid rgba(148, 163, 184, 0.18);
  font-weight: 900;
  font-size: 1.05rem;
}

.brandCard__name { font-weight: 900; margin-bottom: 0.2rem; }
.brandCard__meta { color: rgba(229, 231, 235, 0.74); font-size: 0.9rem; }

.cases {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.case {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.05);
  padding: 1.05rem;
}

.case__title { margin: 0 0 0.25rem; font-weight: 900; }
.case__text { margin: 0; color: rgba(229, 231, 235, 0.76); }

.contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}

.form {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.05);
  padding: 1.15rem;
}

.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.field { margin-bottom: 0.85rem; }

label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
  color: rgba(229, 231, 235, 0.86);
}

input, select, textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(2, 6, 23, 0.45);
  color: var(--text);
  padding: 0.75rem 0.8rem;
  font: inherit;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

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

input:focus, select:focus, textarea:focus {
  border-color: rgba(6, 182, 212, 0.55);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.16);
}

select { cursor: pointer; }

.form__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}

.form__meta { color: var(--text-3); font-size: 0.95rem; }

.email {
  border-bottom: 1px dashed rgba(148, 163, 184, 0.35);
  cursor: default;
}

.form__alert {
  margin-top: 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(229, 231, 235, 0.9);
}

.form__alert--ok { border-color: rgba(34, 197, 94, 0.35); background: rgba(34, 197, 94, 0.08); }
.form__alert--err { border-color: rgba(239, 68, 68, 0.35); background: rgba(239, 68, 68, 0.08); }
.form__alert--warn { border-color: rgba(245, 158, 11, 0.35); background: rgba(245, 158, 11, 0.08); }

.contact__side {
  position: sticky;
  top: 90px;
}

.sideCard {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.05);
  padding: 1.05rem;
}

.sideCard__title { font-weight: 900; margin-bottom: 0.55rem; }

.sideList {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sideList li {
  color: rgba(229, 231, 235, 0.78);
  padding-inline-start: 1.3rem;
  position: relative;
  margin: 0.35rem 0;
}

.sideList li::before {
  content: "•";
  position: absolute;
  inset-inline-start: 0;
  color: rgba(56, 189, 248, 0.95);
}

.sideCard__note { margin-top: 0.75rem; color: var(--text-3); }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.footer {
  padding: 1.35rem 0;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.6);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(229, 231, 235, 0.75);
}

.footer__links {
  display: inline-flex;
  gap: 0.9rem;
}
.footer__links a { color: rgba(229, 231, 235, 0.72); }
.footer__links a:hover { color: rgba(255, 255, 255, 0.92); }

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
}

.modal__panel {
  position: relative;
  width: min(560px, calc(100% - 1.6rem));
  margin: 10vh auto;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.15rem;
}

.modal__close {
  position: absolute;
  top: 0.6rem;
  inset-inline-end: 0.6rem;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
}

.modal__title { margin: 0 0 0.35rem; font-weight: 900; }
.modal__desc { margin: 0 0 0.7rem; color: rgba(229, 231, 235, 0.76); }

.modal__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.modal__list li {
  color: rgba(229, 231, 235, 0.82);
  padding-inline-start: 1.25rem;
  position: relative;
  margin: 0.35rem 0;
}
.modal__list li::before {
  content: "•";
  position: absolute;
  inset-inline-start: 0;
  color: rgba(56, 189, 248, 0.95);
}

/* Responsive */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero { padding-top: 3.1rem; }
  .contact { grid-template-columns: 1fr; }
  .contact__side { position: static; }
  .brands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cases { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .grid--3 { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .nav__toggle { display: inline-block; }
  .nav__links {
    position: absolute;
    top: calc(100% + 1px);
    inset-inline: 0;
    background: rgba(5, 8, 22, 0.94);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    padding: 0.75rem 1.1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .nav__links.is-open { display: flex; }
  .nav__link { padding: 0.55rem 0.25rem; }
}

/* -----------------------------
   Enhancements (3D ecosystem + app-like mobile nav + reveal)
-------------------------------- */

/* JS reveal (graceful fallback without JS)
   IMPORTANT: do NOT override `transform` here.
   Some components (radar/3D) rely on transforms and were getting hidden when reveal reset transforms.
*/
.reveal { opacity: 1; }
.js .reveal { opacity: 0; }
.js .reveal.is-in { opacity: 1; transition: opacity 650ms ease; }

/* Mobile view switch (3D Radar / List) – shown on small screens only */
.ecoViewToggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: fit-content;
  margin: 0.75rem auto 0.65rem;
  padding: 0.22rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.45);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.30);
}

.ecoViewTab {
  border: 1px solid transparent;
  background: transparent;
  color: rgba(229, 231, 235, 0.72);
  font-weight: 900;
  font-size: 0.88rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.ecoViewTab.is-active {
  background: rgba(37, 99, 235, 0.18);
  border-color: rgba(37, 99, 235, 0.32);
  color: rgba(255, 255, 255, 0.98);
}

.ecoViewTab:focus-visible {
  outline: 3px solid rgba(6, 182, 212, 0.55);
  outline-offset: 3px;
}

/* Bottom app navigation items */
.appNavItem {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.65rem 0.35rem;
  min-height: 58px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(229, 231, 235, 0.72);
  font-weight: 900;
  font-size: 0.78rem;
  line-height: 1;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  user-select: none;
}

.appNavItem svg { width: 22px; height: 22px; opacity: 0.92; flex: 0 0 auto; }
.appNavItem:hover { background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.95); }
.appNavItem:active { transform: translateY(1px); }

.appNavItem.is-active {
  background: rgba(37, 99, 235, 0.18);
  border-color: rgba(37, 99, 235, 0.36);
  color: rgba(255, 255, 255, 0.98);
}

.appNavItem:focus-visible {
  outline: 3px solid rgba(6, 182, 212, 0.55);
  outline-offset: 3px;
}

@media (max-width: 380px) {
  .appNavItem span { display: none; }
  .appNavItem { padding: 0.75rem 0.35rem; }
}

/* Ensure content not hidden under bottom nav (fallback) */
@media (max-width: 760px) {
  body { padding-bottom: 110px; }
}

/* 3D ecosystem */
.ecosystem {
  display: grid;
  gap: 1rem;
  margin-top: 0.9rem;
}

.ecoScene {
  --ringZ: 280px;
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.16);
  /* Allow 3D cards to extend beyond the frame (prevents clipping). */
  overflow: visible;
  min-height: 520px;
  box-shadow: var(--shadow-soft);
  background:
    radial-gradient(900px 620px at 20% 30%, rgba(37, 99, 235, 0.22), transparent 60%),
    radial-gradient(750px 560px at 82% 20%, rgba(6, 182, 212, 0.18), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

/* Prevent "stacked" flash before JS positions the radar nodes */
.ecoScene:not(.eco-ready) .ecoNode { opacity: 0; }
.ecoScene.eco-ready .ecoNode { opacity: 1; }

.ecoScene::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(148, 163, 184, 0.10) 0 1px, transparent 1px 54px),
    repeating-linear-gradient(0deg, rgba(148, 163, 184, 0.08) 0 1px, transparent 1px 54px);
  opacity: 0.22;
  mask-image: radial-gradient(circle at 50% 40%, rgba(0,0,0,0.9), transparent 72%);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.ecoScene::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.09), transparent 62%);
  opacity: 0.35;
  filter: blur(28px);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.ecoStage {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
  -webkit-perspective: 1400px;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  --tiltX: 0deg;
  --tiltY: 0deg;
  transform: rotateX(var(--tiltX)) rotateY(var(--tiltY));
  transition: transform 140ms ease;
  /* Do not clip 3D children */
  overflow: visible;
}


/* Radar visuals (rings + sweep) */
.ecoRadar {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  pointer-events: none;
  z-index: 1;
  opacity: 0.9;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.08) 0 1px, transparent 1px 100%),
    radial-gradient(circle at 50% 50%, transparent 0 18%, rgba(148,163,184,0.10) 18% 18.2%, transparent 18.2% 100%),
    radial-gradient(circle at 50% 50%, transparent 0 34%, rgba(148,163,184,0.09) 34% 34.2%, transparent 34.2% 100%),
    radial-gradient(circle at 50% 50%, transparent 0 50%, rgba(148,163,184,0.08) 50% 50.2%, transparent 50.2% 100%),
    radial-gradient(circle at 50% 50%, transparent 0 66%, rgba(148,163,184,0.07) 66% 66.2%, transparent 66.2% 100%);
  mask-image: radial-gradient(circle at 50% 50%, rgba(0,0,0,0.95), transparent 78%);
}

.ecoRadar::after {
  content: "";
  position: absolute;
  inset: -10%;
  border-radius: 999px;
  background: conic-gradient(from 0deg,
    rgba(6,182,212,0.0) 0deg,
    rgba(6,182,212,0.0) 290deg,
    rgba(6,182,212,0.25) 320deg,
    rgba(6,182,212,0.0) 360deg
  );
  filter: blur(8px);
  opacity: 0.55;
  animation: radarSweep 4.2s linear infinite;
  transform-origin: 50% 50%;
  pointer-events: none;
}

@keyframes radarSweep { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .ecoRadar::after { animation: none; opacity: 0.18; }
}

/* Dynamic spokes (SVG lines updated by JS) */
.ecoSpokes {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
}

.ecoSpokes line {
  stroke: rgba(148,163,184,0.20);
  stroke-width: 2;
}

/* Spokes from umbrella (hub) to subsidiaries (Safari-safe, no calc() angles) */
.ecoLinks {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%) translateZ(70px);
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  pointer-events: none;
  opacity: 0.95;
  z-index: 2;
  overflow: visible;
}

.ecoLink {
  position: absolute;
  left: 0;
  top: -1px;
  width: calc(var(--ringZ) * 0.78);
  height: 2px;
  transform-origin: 0% 50%;
  transform: rotateY(var(--spinY, 0deg)) rotateZ(var(--rot, 0deg));
  background: linear-gradient(90deg,
    rgba(255,255,255,0.18),
    rgba(var(--accent, 37,99,235), 0.55),
    rgba(var(--accent, 37,99,235), 0.10)
  );
  filter: drop-shadow(0 0 10px rgba(var(--accent, 37,99,235), 0.25));
}

.ecoLink::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: rgba(var(--accent, 37,99,235), 0.65);
  box-shadow: 0 0 0 5px rgba(var(--accent, 37,99,235), 0.12);
}

/* Hub (umbrella) */
.hubCard {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateZ(92px);

  /* ✅ Square hub card (smaller than subsidiary cards) */
  width: 140px;
  height: 140px;
  min-height: 140px;
  aspect-ratio: 1 / 1;

  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;

  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: 0 26px 60px rgba(2, 6, 23, 0.62), 0 0 0 1px rgba(148, 163, 184, 0.12);
  cursor: pointer;
  text-align: center;
  z-index: 5;
}

.hubCard__umbrella {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: 0 auto 0.6rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.20);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.40);
}

.hubCard__umbrella svg { width: 18px; height: 18px; opacity: 0.95; }

.hubCard::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.55), rgba(6, 182, 212, 0.35), rgba(168, 85, 247, 0.32));
  opacity: 0.22;
  pointer-events: none;
}

.hubCard:hover { transform: translate(-50%, -50%) translateZ(102px); }

.hubCard:focus-visible {
  outline: 3px solid rgba(6, 182, 212, 0.55);
  outline-offset: 4px;
}

.hubCard__logo {
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.45);
  margin: 0 auto 0.5rem;
}

.hubCard__title { font-weight: 900; font-size: 0.95rem; }
.hubCard__meta { margin-top: 0.18rem; color: rgba(229, 231, 235, 0.72); font-size: 0.78rem; }

.hubCard__badges {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: 0.55rem;
}


.hubBadge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.20);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(229, 231, 235, 0.85);
  font-size: 0.72rem;
  font-weight: 800;
}

/* Keep hub square: compact inner elements */
.hubCard__umbrella { width: 30px; height: 30px; margin: 0 auto 2px; border-radius: 12px; }
.hubCard__umbrella svg { width: 16px; height: 16px; }

.hubCard__logo { width: 44px; height: auto; margin: 0 auto 2px; }
.hubCard__title { font-size: 0.88rem; line-height: 1.1; }
.hubCard__meta { font-size: 0.72rem; margin-top: 0; }

/* Hide hub badges inside the square card (badges still available in modal) */
.hubCard__badges { display: none; }


/* Ring + nodes */

/* Nodes (positioned by JS for radar orbit; CSS provides fallback variables) */
.ecoNode {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 180px;
  height: 124px;
  padding: 0.95rem 0.95rem;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.45), 0 0 0 1px rgba(148, 163, 184, 0.10), 0 0 34px rgba(var(--accent, 37,99,235), 0.14);
  cursor: pointer;
  text-align: start;
  transform-style: preserve-3d;
  --x: 0px;
  --y: 0px;
  --tX: 0deg;
  --tY: 0deg;
  transform:
    translate(-50%, -50%)
    translate3d(var(--x), var(--y), 0px)
    rotateY(var(--tY))
    rotateX(var(--tX))
    scale(var(--scale, 1));
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
  z-index: 4;
}

@keyframes ecoSpin {
  from { transform: rotateX(-12deg) rotateY(0deg); }
  to   { transform: rotateX(-12deg) rotateY(360deg); }
}


.ecoRing {
  position: absolute;
  inset: 0;
  z-index: 4;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  overflow: visible;
}







.ecoNode:hover {
  border-color: rgba(var(--accent, 37,99,235), 0.45);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 22px 55px rgba(2, 6, 23, 0.52), 0 0 0 1px rgba(var(--accent, 37,99,235), 0.18), 0 0 44px rgba(var(--accent, 37,99,235), 0.16);
  transform:
    translate(-50%, -50%)
    translate3d(var(--x), var(--y), 0px)
    rotateY(var(--tY))
    rotateX(var(--tX))
    scale(var(--scale, 1))
    translateZ(18px);
}


.ecoNode:focus-visible {
  outline: 3px solid rgba(6, 182, 212, 0.55);
  outline-offset: 4px;
}

.ecoNode__badge {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.6rem;
  background: rgba(var(--accent, 37,99,235), 0.18);
  border: 1px solid rgba(var(--accent, 37,99,235), 0.35);
  font-weight: 900;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 26px rgba(2, 6, 23, 0.35);
}

.ecoNode__title { font-weight: 900; margin-bottom: 0.2rem; }
.ecoNode__meta { color: rgba(229, 231, 235, 0.74); font-size: 0.9rem; }

.ecoHint {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.45);
  color: rgba(229, 231, 235, 0.75);
  font-size: 0.9rem;
  backdrop-filter: blur(14px);
}

.ecoHint__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.9);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.18);
}

/* Mobile rail */
.ecoRail { display: none; }

.ecoRail__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
}

.ecoRail__title { font-weight: 900; }
.ecoRail__sub { color: rgba(229, 231, 235, 0.68); font-size: 0.92rem; }

.ecoRail__track {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.25rem 0.25rem 0.65rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.ecoRail__track::-webkit-scrollbar { height: 10px; }
.ecoRail__track::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.18);
  border-radius: 999px;
}

.ecoCard {
  flex: 0 0 78%;
  max-width: 360px;
  scroll-snap-align: start;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.06);
  padding: 1.05rem 1rem;
  cursor: pointer;
  text-align: start;
  box-shadow: 0 18px 44px rgba(2, 6, 23, 0.38), 0 0 0 1px rgba(148, 163, 184, 0.10);
  transform-style: preserve-3d;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
  will-change: transform;
}

.ecoCard:hover {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(var(--accent, 37,99,235), 0.35);
}

.ecoCard:active { transform: translateY(1px); }

.ecoCard__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.7rem;
}

.ecoCard__badge {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--accent, 37,99,235), 0.18);
  border: 1px solid rgba(var(--accent, 37,99,235), 0.35);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.92);
}

.ecoCard__pill {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.4);
  color: rgba(229, 231, 235, 0.78);
  font-size: 0.82rem;
  font-weight: 800;
}

.ecoCard__title { font-weight: 900; font-size: 1.08rem; margin-bottom: 0.2rem; }
.ecoCard__meta { color: rgba(229, 231, 235, 0.74); font-size: 0.92rem; }

@media (max-width: 980px) {
  .ecoScene { --ringZ: 220px; min-height: 460px; }
  .ecoNode { width: 165px; height: 118px; }
}

@media (max-width: 760px) {
  /* Mobile: keep 3D scene enabled; list view is optional via the toggle. */
  .ecoScene { --ringZ: 200px; touch-action: pan-y; }
  .ecoStage { perspective: 1200px; -webkit-perspective: 1200px; }
  /* ↓ Mobile 3D: cards scaled down ~20% */
  .ecoNode { width: 120px; height: 90px; padding: 0.65rem 0.65rem; border-radius: 20px; }
  .ecoNode__badge { width: 38px; height: 38px; border-radius: 14px; font-size: 0.95rem; margin-bottom: 0.45rem; }
  .ecoNode__title { font-size: 0.92rem; line-height: 1.12; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
  .ecoNode__meta { font-size: 0.78rem; line-height: 1.1; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
  .hubCard { width: 94px; height: 94px; min-height: 94px; padding: 8px; border-radius: 20px; gap: 4px; }
  .hubCard__logo { width: 36px; margin: 0 auto 0.15rem; }
  .hubCard__umbrella { width: 26px; height: 26px; margin: 0 auto 0.15rem; border-radius: 10px; }
  .hubCard__umbrella svg { width: 14px; height: 14px; }
  .hubCard__title { font-size: 0.78rem; line-height: 1.12; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
  .hubCard__meta { font-size: 0.64rem; line-height: 1.1; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
  .hubCard__badges { display: none; }
  .ecoHint { bottom: 0.7rem; font-size: 0.85rem; }

  /* Mobile view switch */
  .ecoViewToggle { display: flex; }
  .heroEco__ecosystem.eco-view-list .ecoScene { display: none; }
  .heroEco__ecosystem.eco-view-list .ecoRail { display: block; }
  .heroEco__ecosystem.eco-view-list .ecoHint { display: none; }
}

@media (max-width: 400px) {
  .ecoNode { width: 112px; height: 85px; padding: 0.58rem 0.58rem; }
  .ecoNode__badge { width: 34px; height: 34px; }
  .ecoNode__title { font-size: 0.88rem; }
  .ecoNode__meta { font-size: 0.74rem; }
  .hubCard { width: 88px; height: 88px; min-height: 88px; padding: 7px; }
  .hubCard__logo { width: 34px; }
  .hubCard__umbrella { width: 24px; height: 24px; }
}


/* Fallback: hide bottom nav on larger screens even if Tailwind fails */
@media (min-width: 761px) {
  #appNav { display: none; }
}

.ecoScene::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: var(--shadow-soft);
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 620px at 20% 30%, rgba(37, 99, 235, 0.22), transparent 60%),
    radial-gradient(750px 560px at 82% 20%, rgba(6, 182, 212, 0.18), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

/* =====================================
   HERO – Umbrella Ecosystem (AloTechGroup as hero)
   ===================================== */
.hero--eco {
  padding: 1.6rem 0 2.2rem;
}

.heroEco__ecosystem {
  position: relative;
  margin-top: 0.4rem;
}

/* Horizontal umbrella bar (under the 3D block) */
.heroEcoBar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
  padding: 1.05rem 1.1rem;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(2, 6, 23, 0.58);
  backdrop-filter: blur(16px);
  box-shadow: 0 26px 60px rgba(2, 6, 23, 0.55);
  overflow: hidden;
}

.heroEcoBar::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.45), rgba(6, 182, 212, 0.28), rgba(168, 85, 247, 0.22));
  opacity: 0.22;
  pointer-events: none;
}

.heroEcoBar > * { position: relative; z-index: 1; }

.heroEcoBar__main {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  min-width: 0;
}

.heroEcoBar__logo {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 16px 34px rgba(2, 6, 23, 0.35);
  flex: 0 0 auto;
}

.heroEcoBar__logo img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.heroEcoBar__text {
  min-width: 0;
}

.heroEcoBar__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(229, 231, 235, 0.78);
  font-size: 0.88rem;
  margin-bottom: 0.55rem;
}

.heroEcoBar__title {
  margin: 0 0 0.25rem;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  font-weight: 900;
}

.heroEcoBar__title span {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(186, 230, 253, 0.95));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.heroEcoBar__subtitle {
  margin: 0;
  color: rgba(229, 231, 235, 0.78);
  max-width: 72ch;
}

.heroEcoBar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  flex: 0 0 auto;
}

/* Floating overlay panel (does not block radar interaction) */
.heroEco__overlay {
  position: absolute;
  top: 1.1rem;
  inset-inline-end: 1.1rem;
  width: min(430px, calc(100% - 2.2rem));
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(2, 6, 23, 0.58);
  backdrop-filter: blur(16px);
  padding: 0.95rem 1rem;
  box-shadow: 0 26px 60px rgba(2, 6, 23, 0.55);
  z-index: 8;
  pointer-events: none;
}

.heroEco__overlay::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.45), rgba(6, 182, 212, 0.28), rgba(168, 85, 247, 0.22));
  opacity: 0.22;
  pointer-events: none;
}

.heroEco__overlay > * { position: relative; z-index: 1; }
.heroEco__overlay a,
.heroEco__overlay button { pointer-events: auto; }

.heroEco__title {
  margin: 0 0 0.55rem;
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  font-weight: 900;
}

.heroEco__title span {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(186, 230, 253, 0.95));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.heroEco__subtitle {
  margin: 0 0 0.9rem;
  color: rgba(229, 231, 235, 0.78);
  max-width: 62ch;
}

.heroEco__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Make the radar scene feel like a hero centerpiece */
.hero--eco .ecoScene {
  min-height: clamp(640px, calc(100vh - 180px), 820px);
}

@media (max-width: 980px) {
  .hero--eco { padding: 1.3rem 0 1.9rem; }
  .heroEcoBar {
    flex-direction: column;
    align-items: stretch;
  }
  .heroEcoBar__actions { justify-content: flex-start; }
  .hero--eco .ecoScene { min-height: 520px; }
}

@media (max-width: 760px) {
  .hero--eco { padding: 1.1rem 0 1.6rem; }

  /* Mobile hero bar polish */
  .heroEcoBar { padding: 0.95rem 0.95rem; border-radius: 22px; }
  .heroEcoBar__kicker { font-size: 0.78rem; }
  .heroEcoBar__title { font-size: 1.55rem; }
  .heroEcoBar__subtitle { font-size: 0.98rem; }
  .heroEcoBar__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .heroEcoBar__actions .btn { width: 100%; justify-content: center; }

  /* Make the 3D block feel app-like on phones */
  .hero--eco .ecoScene { min-height: 520px; }
  .ecoScene { border-radius: 24px; }
}

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

/* =====================================
   Polish v12 – TweetLife + corporate refinement
   ===================================== */

/* Self-hosted mobile app nav (replaces Tailwind dependency) */
.appNav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
}

.appNav__shell {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding: 0.5rem 0.75rem calc(env(safe-area-inset-bottom) + 0.75rem);
}

.appNav__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.55);
  padding: 0.5rem;
}

/* Corporate polish */
.card,
.feature,
.stat,
.case,
.form,
.sideCard,
.heroEcoBar {
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.card:hover,
.feature:hover,
.stat:hover,
.case:hover,
.sideCard:hover {
  transform: translateY(-3px);
  border-color: rgba(6, 182, 212, 0.32);
  box-shadow: 0 22px 48px rgba(2, 6, 23, 0.34);
}

.contact {
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
}

.form,
.sideCard {
  min-height: 100%;
}

.heroEcoBar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.heroEcoBar::after {
  content: "";
  position: absolute;
  inset-inline-end: -10%;
  top: -25%;
  width: 300px;
  height: 300px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.18), transparent 65%);
  filter: blur(10px);
  pointer-events: none;
}

.heroEcoBar__main {
  align-items: flex-start;
}

.heroEcoBar__text {
  display: grid;
  gap: 0.55rem;
}

.heroEcoBar__metaRow {
  display: grid;
  gap: 0.8rem;
  justify-items: end;
  align-self: stretch;
}

.heroEcoBar__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-start;
}

.heroEcoBar__tag {
  display: inline-flex;
  align-items: center;
  padding: 0.34rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(229, 231, 235, 0.82);
  font-size: 0.86rem;
  font-weight: 800;
}

.heroEcoBar__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  width: min(320px, 100%);
}

.heroMetric {
  padding: 0.7rem 0.6rem;
  text-align: center;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.22);
}

.heroMetric strong {
  display: block;
  font-size: 1.1rem;
  line-height: 1;
  margin-bottom: 0.25rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.98);
}

.heroMetric span {
  display: block;
  font-size: 0.77rem;
  color: rgba(229, 231, 235, 0.72);
}

.heroEcoBar__actions {
  grid-column: 1 / -1;
  margin-top: 0.15rem;
}

.ecoNode,
.ecoCard,
.hubCard {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.ecoNode__badge,
.ecoCard__badge {
  letter-spacing: 0.01em;
}

.ecoNode__badge {
  font-size: 0.98rem;
}

.ecoScene {
  min-height: clamp(650px, calc(100vh - 190px), 840px);
}

.hero--eco .ecoScene {
  min-height: clamp(650px, calc(100vh - 190px), 840px);
}

.ecoHint {
  z-index: 8;
}

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

  .heroEcoBar__metaRow {
    justify-items: stretch;
  }

  .heroEcoBar__metrics {
    width: 100%;
    max-width: none;
  }

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

@media (max-width: 760px) {
  .heroEcoBar {
    gap: 0.9rem;
  }

  .heroEcoBar__main {
    align-items: center;
  }

  .heroEcoBar__kicker {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .heroEcoBar__title,
  .heroEcoBar__subtitle {
    text-align: center;
  }

  .heroEcoBar__tags {
    justify-content: center;
  }

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

  .heroMetric {
    padding: 0.62rem 0.45rem;
  }

  .heroMetric strong {
    font-size: 1rem;
  }

  .heroMetric span {
    font-size: 0.72rem;
  }

  .ecoScene,
  .hero--eco .ecoScene {
    min-height: 540px;
  }

  .appNav__shell {
    padding-inline: 0.6rem;
  }

  .appNav__grid {
    gap: 0.4rem;
    padding: 0.42rem;
  }
}

@media (max-width: 480px) {
  .heroEcoBar__metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
  }

  .heroMetric span {
    font-size: 0.68rem;
  }

  .appNavItem {
    min-height: 54px;
    font-size: 0.74rem;
    border-radius: 14px;
  }

  .appNavItem svg {
    width: 20px;
    height: 20px;
  }
}



/* --- Brand logos inside 3D radar + mobile/company cards --- */
.ecoNode {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ecoNode__logoWrap {
  width: 74px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.62rem;
  padding: 0.38rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.035));
  border: 1px solid rgba(var(--accent, 37,99,235), 0.22);
  box-shadow: 0 12px 26px rgba(2, 6, 23, 0.30), inset 0 1px 0 rgba(255,255,255,0.05);
  overflow: hidden;
}

.ecoNode__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(2, 6, 23, 0.22));
}

.ecoNode__title,
.ecoNode__meta {
  width: 100%;
  text-align: center;
}
.ecoNode__title,
.ecoCard__title,
.hubCard__title {
  font-family: 'SwissraLocal', 'Swissra', 'Cairo', system-ui, sans-serif;
  font-weight: 800;
  color: #f4d47a;
  text-shadow: 0 1px 0 rgba(255,255,255,0.10), 0 0 14px rgba(205, 168, 74, 0.12);
}


.ecoCard__logoWrap {
  width: 54px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid rgba(var(--accent, 37,99,235), 0.22);
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.20);
  overflow: hidden;
  flex: 0 0 auto;
}

.ecoCard__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.modal__brandLogoWrap {
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.9rem;
  padding: 0.5rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.25);
}

.modal__brandLogo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.modal__title,
.modal__desc {
  text-align: center;
}

@media (max-width: 760px) {
  .ecoNode__logoWrap {
    width: 58px;
    height: 44px;
    border-radius: 14px;
    margin-bottom: 0.42rem;
    padding: 0.26rem;
  }

  .ecoCard__logoWrap {
    width: 48px;
    height: 38px;
    border-radius: 12px;
  }

  .modal__brandLogoWrap {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }
}

@media (max-width: 400px) {
  .ecoNode__logoWrap {
    width: 54px;
    height: 40px;
    border-radius: 12px;
  }

  .ecoCard__logoWrap {
    width: 44px;
    height: 34px;
  }
}
