/* ===========================
   Musk Textile — Landing Page
   =========================== */

:root {
  --red: #e10600;
  --red-dark: #b00500;
  --red-soft: #ff2b22;
  --ink: #141414;
  --ink-2: #1f1f1f;
  --charcoal: #0e0e0e;
  --gray: #6b6b72;
  --line: #e7e7ea;
  --bg: #ffffff;
  --bg-soft: #f6f6f8;
  --white: #ffffff;
  /* Themed surfaces */
  --surface: #ffffff;
  --surface-2: #fafafb;
  --header-bg: rgba(14, 14, 14, .92);
  --topbar-bg: #0e0e0e;
  --footer-bg: #0e0e0e;
  --dark-bg: #0e0e0e;
  --dark-card: linear-gradient(180deg, #1b1b1b, #161616);
  --dark-card-border: rgba(255, 255, 255, .07);
  --note-bg: rgba(225, 6, 0, .08);
  --note-text: var(--red-dark);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -18px rgba(20, 20, 20, .35);
  --shadow-sm: 0 8px 24px -12px rgba(20, 20, 20, .28);
  --container: 1200px;
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: 'Poppins', var(--font);
}

/* ---------- Dark theme ---------- */
:root[data-theme="dark"] {
  --ink: #ededf0;
  --ink-2: #e3e3e7;
  --gray: #a7a7b2;
  --line: rgba(255, 255, 255, .1);
  --bg: #0d0d0f;
  --bg-soft: #141417;
  --white: #18181c;
  --surface: #18181c;
  --surface-2: #1f1f24;
  --header-bg: rgba(10, 10, 12, .92);
  --topbar-bg: #060608;
  --footer-bg: #060608;
  --dark-bg: #060608;
  --dark-card: linear-gradient(180deg, #1c1c21, #16161a);
  --dark-card-border: rgba(255, 255, 255, .08);
  --note-bg: rgba(225, 6, 0, .16);
  --note-text: #ff8a85;
  --shadow: 0 18px 44px -18px rgba(0, 0, 0, .7);
  --shadow-sm: 0 8px 24px -12px rgba(0, 0, 0, .6);
}

body { transition: background .35s ease, color .35s ease; }

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.text-red { color: var(--red); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .2px;
  padding: 14px 28px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 12px 26px -12px rgba(225, 6, 0, .8); }
.btn--primary:hover { background: var(--red-dark); transform: translateY(-3px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; transform: translateY(-3px); }
.btn--light { background: #fff; color: #14141a; }
.btn--light:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.btn--block { width: 100%; }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--topbar-bg);
  color: #cfcfd4;
  font-size: 13.5px;
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 42px;
}
.topbar__left { display: flex; align-items: center; gap: 16px; }
.topbar__left a:hover { color: #fff; }
.topbar__sep { opacity: .4; }
.topbar .ic { color: var(--red-soft); margin-right: 4px; }
.topbar__right { display: flex; align-items: center; gap: 18px; }
.topbar__right a:hover { color: #fff; }
.topbar__cta {
  background: var(--red);
  color: #fff !important;
  padding: 6px 16px;
  border-radius: 50px;
  font-weight: 600;
}
.topbar__cta:hover { background: var(--red-dark); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .3s ease, box-shadow .3s ease;
}
.header.scrolled { box-shadow: 0 10px 30px -18px rgba(0,0,0,.6); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand__badge {
  display: inline-flex;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}
.brand__badge img {
  height: 58px;
  width: auto;
}
.brand__badge--lg img { height: 76px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav__link {
  color: #e9e9ec;
  font-weight: 500;
  font-size: 15px;
  padding: 10px 16px;
  border-radius: 8px;
  position: relative;
  transition: color .2s ease;
}
.nav__link:not(.nav__link--btn)::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 6px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav__link:not(.nav__link--btn):hover { color: #fff; }
.nav__link:not(.nav__link--btn):hover::after { transform: scaleX(1); }
.nav__link--btn {
  background: var(--red);
  color: #fff;
  margin-left: 8px;
  font-weight: 600;
}
.nav__link--btn:hover { background: var(--red-dark); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  width: 26px; height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: transform .3s ease, opacity .3s ease;
}
.nav__toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Right-side header controls */
.header__actions { display: flex; align-items: center; gap: 10px; }

/* ---------- Theme toggle ---------- */
.theme-toggle {
  width: 42px; height: 42px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.theme-toggle:hover { background: rgba(225, 6, 0, .22); border-color: var(--red); transform: translateY(-2px); }
.theme-toggle svg { width: 20px; height: 20px; transition: transform .4s ease; }
.theme-toggle__sun { display: none; }
:root[data-theme="dark"] .theme-toggle__sun { display: block; }
:root[data-theme="dark"] .theme-toggle__moon { display: none; }

/* ---------- Language switcher ---------- */
.lang-switcher { position: relative; flex-shrink: 0; }
.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.lang-btn:hover { background: rgba(225, 6, 0, .22); border-color: var(--red); }
.lang-btn__icon { flex-shrink: 0; opacity: .85; }
.lang-btn__chevron { flex-shrink: 0; opacity: .6; transition: transform .25s ease; }
.lang-switcher.open .lang-btn__chevron { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 200;
}
.lang-switcher.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-menu__item {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.lang-menu__item:hover { background: rgba(225, 6, 0, .08); color: var(--red); }
.lang-menu__item.active { background: rgba(225, 6, 0, .12); color: var(--red); font-weight: 600; }

/* ---------- Hero (banner slider) ---------- */
.hero { position: relative; background: var(--dark-bg); }

.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #e9e9ec;
}
.hero-slider__track {
  display: flex;
  width: 100%;
  transition: transform .7s cubic-bezier(.65, .05, .36, 1);
}
.hero-slide {
  flex: 0 0 100%;
  width: 100%;
}
.hero-slide img {
  width: 100%;
  height: auto;
  display: block;
}

/* Arrows */
.hero-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(14, 14, 14, .45);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  transition: background .25s ease, transform .25s ease;
  backdrop-filter: blur(4px);
}
.hero-slider__arrow:hover { background: var(--red); }
.hero-slider__arrow--prev { left: 18px; }
.hero-slider__arrow--next { right: 18px; }

/* Dots */
.hero-slider__dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.hero-slider__dots button {
  width: 11px; height: 11px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, .85);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background .25s ease, transform .25s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
}
.hero-slider__dots button.active { background: var(--red); border-color: var(--red); transform: scale(1.15); }

/* Info bar under the slider */
.hero__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-top: 26px;
  margin-bottom: 0;
  padding: 34px 38px 14px;
  flex-wrap: wrap;
  background: transparent;
  z-index: 2;
}
.hero__bar-text { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; flex: 1 1 380px; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(225, 6, 0, .18);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #ffd9d7;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 50px;
}
.hero__eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red-soft);
  animation: hero-pulse 2s ease-in-out infinite;
}
@keyframes hero-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(225, 6, 0, .5); }
  70% { box-shadow: 0 0 0 7px rgba(225, 6, 0, 0); }
}
.hero__bar-tagline {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  line-height: 1.12;
  color: #fff;
  margin: 0;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 4px; }
.hero__stats {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  flex: 0 1 auto;
  padding: 10px 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .07);
}
.hero__stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 6px 26px;
  position: relative;
}
.hero__stats li + li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 46px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .18), transparent);
}
.hero__stats strong {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(180deg, #fff 35%, #ff6b66);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__stats span { color: #b6b6c0; font-size: 13px; margin-top: 8px; white-space: nowrap; }

/* ---------- Trust marquee ---------- */
.trust {
  background: var(--red);
  color: #fff;
  overflow: hidden;
  padding: 16px 0;
}
.trust__track {
  display: flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
  width: max-content;
  animation: marquee 34s linear infinite;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  font-size: 15px;
}
.trust__track span:nth-child(even) { opacity: .55; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--dark-bg); color: #fff; }

.eyebrow {
  display: inline-block;
  color: var(--red);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--red-soft); }
.section__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -.5px;
  margin-bottom: 16px;
}
.section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section__sub { color: var(--gray); font-size: 1.05rem; }
.section__sub--light { color: #b9b9c0; }

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.about__media { position: relative; }
.about__media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about__tag {
  position: absolute;
  top: 18px; left: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(13, 13, 15, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  padding: 10px 16px 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.7);
}
.about__tag img { height: 30px; width: auto; border-radius: 0; box-shadow: none; }
.about__tag span { font-size: 14px; font-weight: 700; line-height: 1.15; letter-spacing: .2px; }
.about__tag small { font-size: 11px; font-weight: 500; opacity: .8; }
.about__badge {
  position: absolute;
  right: -18px; bottom: -22px;
  background: var(--red);
  color: #fff;
  padding: 20px 26px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
}
.about__badge strong { font-family: var(--display); font-size: 2.4rem; line-height: 1; }
.about__badge span { font-size: 13px; line-height: 1.3; }
.about__content p { color: var(--gray); margin-bottom: 16px; }
.about__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 22px 0 30px;
}
.about__list li {
  position: relative;
  padding-left: 28px;
  font-weight: 500;
  font-size: 15px;
}
.about__list li::before {
  content: "\2713";
  position: absolute; left: 0; top: 0;
  width: 20px; height: 20px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  display: grid; place-items: center;
}

/* ---------- Products ---------- */
.products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.pcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.pcard:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.pcard__img { position: relative; aspect-ratio: 1/1; overflow: hidden; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.pcard:hover .pcard__img img { transform: scale(1.08); }
.pcard__body { padding: 18px 20px 22px; }
.pcard__body h3 { font-family: var(--display); font-size: 1.12rem; font-weight: 700; margin-bottom: 6px; }
.pcard__body p { color: var(--gray); font-size: 14px; }

/* ---------- Capabilities ---------- */
.caps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.cap {
  background: var(--dark-card);
  border: 1px solid var(--dark-card-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.cap:hover { transform: translateY(-6px); border-color: rgba(225,6,0,.6); }
.cap__icon {
  width: 60px; height: 60px;
  display: grid; place-items: center;
  font-size: 28px;
  background: rgba(225,6,0,.14);
  border-radius: 14px;
  margin-bottom: 18px;
}
.cap h3 { font-family: var(--display); font-size: 1.2rem; margin-bottom: 8px; }
.cap p { color: #b3b3ba; font-size: 14.5px; }

/* ---------- Why ---------- */
.why__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 60px;
  align-items: center;
}
.why__content > p { color: var(--gray); margin-bottom: 28px; max-width: 540px; }
.why__features { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.feature { display: flex; gap: 14px; }
.feature__num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--red);
  flex-shrink: 0;
}
.feature h4 { font-size: 1.02rem; margin-bottom: 4px; }
.feature p { color: var(--gray); font-size: 14px; }
.why__media img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Why: animated orbit ---------- */
.orbit {
  position: relative;
  width: 400px;
  height: 400px;
  max-width: 100%;
  margin: 0 auto;
}
.orbit__ring {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 1.5px dashed rgba(226, 3, 3, 0.35);
}
.orbit__ring--outer { width: 100%; height: 100%; animation: orbit-spin 26s linear infinite; }
.orbit__ring--inner {
  width: 62%; height: 62%;
  border-style: solid;
  border-color: rgba(226, 3, 3, 0.18);
  animation: orbit-spin 18s linear infinite reverse;
}
/* the orbiting dot travels along the outer ring */
.orbit__spinner {
  position: absolute;
  top: 50%; left: 50%;
  width: 100%; height: 100%;
  transform: translate(-50%, -50%);
  animation: orbit-spin 8s linear infinite;
}
.orbit__dot {
  position: absolute;
  top: -7px; left: 50%;
  width: 14px; height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 6px rgba(226, 3, 3, 0.18), 0 0 16px 2px rgba(226, 3, 3, 0.55);
}
.orbit__core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 42%; height: 42%;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  background: #15151a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.8);
}
.orbit__core img { height: 34px; width: auto; border-radius: 0; box-shadow: none; }
.orbit__core span { font-size: 12px; font-weight: 600; line-height: 1.25; color: rgba(255, 255, 255, 0.72); }
.orbit__node {
  position: absolute;
  top: 50%; left: 50%;
  width: 124px;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
  padding: 12px 10px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.7);
  animation: orbit-float 6s ease-in-out infinite;
}
.orbit__node strong {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--red);
  line-height: 1;
}
.orbit__node span { font-size: 12px; font-weight: 600; line-height: 1.2; }
.orbit__node--1 { top: 4%; }
.orbit__node--2 { left: 96%; animation-delay: -1.5s; }
.orbit__node--3 { top: 96%; animation-delay: -3s; }
.orbit__node--4 { left: 4%; animation-delay: -4.5s; }

@keyframes orbit-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes orbit-float {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, calc(-50% - 8px)); }
}
@media (max-width: 600px) {
  .orbit { width: 300px; height: 300px; }
  .orbit__node { width: 96px; padding: 9px 7px; gap: 1px; }
  .orbit__node span { font-size: 11px; }
  .orbit__node strong { font-size: 1rem; }
  .orbit__node--2 { left: 100%; }
  .orbit__node--4 { left: 0%; }
  .orbit__core span { font-size: 11px; }
  .orbit__core img { height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .orbit__ring, .orbit__spinner, .orbit__node { animation: none; }
}

/* ---------- Markets ---------- */
.worldmap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  margin-bottom: 40px;
}
.worldmap__map {
  width: 100%;
  height: 460px;
  background: #0e0e0f;
}
/* Leaflet overrides to match brand */
.worldmap .leaflet-container {
  background: #0e0e0f;
  font-family: var(--font);
}
.worldmap .leaflet-control-attribution {
  background: rgba(0, 0, 0, .55);
  color: #9a9aa2;
}
.worldmap .leaflet-control-attribution a { color: #c9c9d0; }
.worldmap .leaflet-bar a {
  background: #18181c;
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, .12);
}
.worldmap .leaflet-bar a:hover { background: var(--red); }

/* Pulsing market marker */
.map-pin {
  position: relative;
  width: 16px;
  height: 16px;
}
.map-pin__dot {
  position: absolute;
  inset: 0;
  width: 16px;
  height: 16px;
  background: var(--red);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(225, 6, 0, .7);
  z-index: 2;
}
.map-pin__ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(225, 6, 0, .5);
  transform: translate(-50%, -50%);
  animation: pinPulse 2.2s ease-out infinite;
}
@keyframes pinPulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: .7; }
  100% { transform: translate(-50%, -50%) scale(3.6); opacity: 0; }
}
.worldmap .leaflet-popup-content-wrapper {
  background: #18181c;
  color: #fff;
  border-radius: 10px;
}
.worldmap .leaflet-popup-content { font-weight: 600; margin: 10px 14px; }
.worldmap .leaflet-popup-tip { background: #18181c; }

.markets__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.market {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 18px;
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
}
.market:hover { transform: translateY(-6px); box-shadow: var(--shadow-sm); }
.market__icon { font-size: 40px; display: block; margin-bottom: 12px; }
.market h3 { font-family: var(--display); font-size: 1.1rem; }

/* ---------- CTA band ---------- */
.ctaband {
  background:
    linear-gradient(120deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.ctaband::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.18), transparent 45%);
}
.ctaband__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 60px 24px;
  flex-wrap: wrap;
}
.ctaband__inner h2 { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 8px; }
.ctaband__inner p { color: #ffe3e1; max-width: 620px; }

/* ---------- Contact ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact__info > p { color: var(--gray); margin-bottom: 28px; max-width: 460px; }
.contact__list { display: grid; gap: 18px; }
.contact__list li { display: flex; align-items: center; gap: 16px; }
.contact__ic {
  width: 48px; height: 48px;
  flex-shrink: 0;
  display: grid; place-items: center;
  background: rgba(225,6,0,.1);
  color: var(--red);
  border-radius: 12px;
  font-weight: 700;
  font-size: 18px;
}
.contact__ic--wa { background: rgba(37, 211, 102, .14); color: #25d366; }
.contact__list strong { display: block; font-size: 14px; }
.contact__list a, .contact__list span { color: var(--gray); font-size: 15px; }
.contact__list a:hover { color: var(--red); }

.contact__form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 15px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink);
  transition: border-color .2s ease, background .2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--gray); opacity: .8; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--red);
  background: var(--surface);
}
.field textarea { resize: vertical; }
.form__note {
  margin-top: 16px;
  background: var(--note-bg);
  color: var(--note-text);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 500;
}

/* ---------- Footer ---------- */
.footer { background: var(--footer-bg); color: #b9b9c0; padding-top: 64px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer__brand p { margin: 18px 0; font-size: 14.5px; max-width: 320px; }
.footer__social {
  display: inline-block;
  color: #fff;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.2);
  padding: 8px 18px;
  border-radius: 50px;
  transition: background .25s ease, border-color .25s ease;
}
.footer__social:hover { background: var(--red); border-color: var(--red); }
.footer__col h4 { color: #fff; font-family: var(--display); font-size: 1.05rem; margin-bottom: 16px; }
.footer__col a { display: block; padding: 6px 0; font-size: 14.5px; transition: color .2s ease, padding .2s ease; }
.footer__col a:hover { color: var(--red-soft); padding-left: 6px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; }
.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13.5px;
}

/* ---------- Back to top ---------- */
.backtop {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 48px; height: 48px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 20px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, background .25s ease;
  z-index: 90;
}
.backtop.show { opacity: 1; visibility: visible; transform: translateY(0); }
.backtop:hover { background: var(--red-dark); }

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed;
  right: 24px; bottom: 84px;
  width: 54px; height: 54px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 12px 28px -10px rgba(37, 211, 102, .8);
  z-index: 91;
  transition: transform .25s ease, box-shadow .25s ease;
  animation: waPulse 2.4s ease-out infinite;
}
.wa-float:hover { transform: translateY(-3px) scale(1.05); }
@keyframes waPulse {
  0% { box-shadow: 0 12px 28px -10px rgba(37,211,102,.8), 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 12px 28px -10px rgba(37,211,102,.8), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 12px 28px -10px rgba(37,211,102,.8), 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .products__grid { grid-template-columns: repeat(3, 1fr); }
  .caps__grid { grid-template-columns: repeat(2, 1fr); }
  .markets__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .topbar { display: none; }
  .nav {
    position: fixed;
    top: 76px; right: 0;
    width: min(80vw, 320px);
    height: calc(100vh - 76px);
    background: #121212;
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 4px;
    transform: translateX(110%);
    transition: transform .35s ease;
    box-shadow: -20px 0 50px -20px rgba(0,0,0,.6);
  }
  .nav.open { transform: translateX(0); }
  .nav__link { padding: 14px 16px; font-size: 16px; }
  .nav__link--btn { margin-left: 0; margin-top: 8px; text-align: center; }
  .nav__toggle { display: flex; }
  .lang-btn__label { display: none; }
  .lang-btn { padding: 0 10px; }

  .about__grid, .why__grid, .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__media { max-width: 520px; margin: 0 auto; }
  .why__media { order: -1; max-width: 520px; margin: 0 auto; }
  .about__list { grid-template-columns: 1fr; }
  .why__features { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 68px 0; }
  .products__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .caps__grid { grid-template-columns: 1fr; }
  .markets__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__bar { justify-content: center; text-align: center; gap: 24px; margin-top: 18px; padding: 26px 20px 14px; }
  .hero__bar-text { align-items: center; flex-basis: auto; }
  .hero__actions { justify-content: center; }
  .hero__stats { justify-content: center; width: 100%; }
  .hero__stats li { padding: 6px 16px; }
  .hero-slider__arrow { width: 38px; height: 38px; font-size: 22px; }
  .hero-slider__arrow--prev { left: 8px; }
  .hero-slider__arrow--next { right: 8px; }
  .field-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .about__badge { right: 12px; bottom: -16px; padding: 14px 18px; }
  .pcard__body { padding: 14px 14px 18px; }
}

@media (max-width: 420px) {
  .products__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .ctaband__inner { padding: 44px 4px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
