/* ============================================
   HOME.CSS — Home page section styles
   ============================================ */

main {
  padding-top: var(--header-height);
}

.section {
  padding: 50px 0;
  position: relative;
}

.section--tight {
  padding: 1px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 100px;
  background: rgba(14, 159, 110, 0.08);
  border: 1px solid rgba(14, 159, 110, 0.18);
  color: var(--teal-dark);
  font-family: var(--font-heading);
  font-size: 0.80rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

/* ---------- HERO (single full-length video) ---------- */

.hero {
  position: relative;
  width: 100%;
}

.hero-video-wrap {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 560px;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: -2;
}

@media (max-width: 768px) {
  .hero-video {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    object-fit: cover;
    object-position: center center;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(4, 20, 18, 0.55) 0%,
    rgba(4, 20, 18, 0.35) 45%,
    rgba(4, 20, 18, 0.65) 100%
  );
  z-index: -1;
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 0 20px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #4fb1c3;
  margin-bottom: 18px;
}

/* ---------- HERO HEADING ROTATOR ---------- */
.hero-heading-rotator {
  display: grid;
}

.hero-heading-item {
  grid-area: 1 / 1;
  opacity: 0;
}

.hero-heading-item.is-active {
  opacity: 1;
}

/* ---------- 3D CHAR FLIP (section headings) ---------- */
.section h2,
.cta-banner h2 {
  perspective: 700px;
}

.char-flip {
  display: inline-block;
  transform-style: preserve-3d;
}

.word-wrap {
  display: inline-block;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.8vw, 2.8rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  max-width: 780px;
}

.hero-content h1 .accent-teal {
  color: #4fb1c3;
}

.hero-content > p {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  opacity: 0.9;
  max-width: 520px;
  margin: 0 auto 34px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-tag {
  font-size: 0.9rem;
  opacity: 0.85;
}

@media (max-width: 768px) {
  .hero-video-wrap {
    height: 85vh;
    height: 85dvh;
    min-height: 480px;
  }

  .hero-content h1,
  .hero-content > p {
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    gap: 14px;
  }
}

.reveal-word {
  display: inline-block;
}

/* ---------- ECOSYSTEM / INTELLIGENT CORE ---------- */
.ecosystem { text-align: center; background: var(--bg-2); }

.ecosystem h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.ecosystem h2 .accent-orange {
  font-style: italic;
  background: linear-gradient(120deg, var(--orange-light), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ecosystem>p {
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto 64px;
  font-size: 1rem;
}

.eco-diagram {
  position: relative;
  width: 100%;
  max-width: 1000px;
  aspect-ratio: 16 / 12.5;
  min-height: 600px;
  margin: 14px auto 0;
}

.eco-diagram__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 44%, #000, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 44%, #000, transparent 72%);
}

.eco-diagram__blob {
  position: absolute;
  width: 340px;
  height: 340px;
  max-width: 58vw;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
}

.eco-diagram__blob--teal {
  top: 14%;
  left: 20%;
  background: radial-gradient(circle, rgba(14, 159, 110, 0.14), transparent 66%);
}

.eco-diagram__blob--orange {
  bottom: 2%;
  right: 19%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.12), transparent 66%);
}

.eco-diagram__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 2;
  pointer-events: none;
}

.eco-line-base {
  fill: none;
  stroke: var(--eco-line);
  stroke-width: 0.4;
}

.eco-line-flow {
  fill: none;
  stroke-width: 0.45;
  stroke-linecap: round;
  stroke-dasharray: 0.5 5;
  opacity: 0.55;
}

.eco-line-flow--teal {
  stroke: var(--teal-light);
}

.eco-line-flow--orange {
  stroke: var(--orange);
}

.eco-card {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: clamp(196px, 22vw, 254px);
  display: block;
  text-decoration: none;
  border-radius: 20px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--card-bd);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.eco-card--vodo {
  left: 18%;
  top: 26%;
}

.eco-card--vodo:hover {
  border-color: rgba(14, 159, 110, 0.5);
}

.eco-card--docexa {
  left: 82%;
  top: 26%;
  border-color: rgba(255, 122, 26, 0.3);
}

.eco-card--mediola {
  left: 50%;
  top: 90%;
}

.eco-card--mediola:hover {
  border-color: rgba(14, 159, 110, 0.5);
}

.eco-card__logo-pad {
  height: 104px;
  border-radius: 15px;
  background: var(--logo-pad, radial-gradient(circle at 50% 36%, rgba(14, 159, 110, 0.1), rgba(255, 255, 255, 0.9) 70%));
  border: 1px solid rgba(14, 159, 110, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  margin-bottom: 15px;
}

.eco-card__logo-pad img {
  max-width: 100%;
  max-height: 44px;
  object-fit: contain;
}

.eco-card--docexa .eco-card__logo-pad {
  border-color: rgba(255, 122, 26, 0.16);
}

.eco-card__name {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 5px;
}

.eco-card__badge {
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(255, 122, 26, 0.12);
  border: 1px solid rgba(255, 122, 26, 0.28);
  border-radius: 20px;
  padding: 2px 7px;
}

.eco-card p {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.5;
  margin: 0;
}

.eco-core {
  position: absolute;
  left: 50%;
  top: 49%;
  transform: translate(-50%, -50%);
  z-index: 8;
  width: clamp(214px, 28%, 288px);
  aspect-ratio: 1;
}

.eco-core__glow {
  position: absolute;
  inset: -46%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 159, 110, 0.20), rgba(14, 159, 110, 0.06) 44%, transparent 68%);
  pointer-events: none;
}

.eco-core__pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(14, 159, 110, 0.42);
  pointer-events: none;
}

.eco-core__spin-ring {
  position: absolute;
  inset: -16%;
  border-radius: 50%;
  border: 1px dashed rgba(14, 159, 110, 0.26);
  pointer-events: none;
}

.eco-core__inner-ring {
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  border: 1px solid rgba(14, 159, 110, 0.14);
  box-shadow: inset 0 0 30px rgba(14, 159, 110, 0.09);
  pointer-events: none;
}

.eco-core__inner {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: var(--core-bg);
  border: 2px solid rgba(14, 159, 110, 0.4);
  box-shadow: 0 0 40px rgba(14, 159, 110, 0.16), 0 10px 30px rgba(15, 40, 30, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16%;
  cursor: pointer;
  text-decoration: none;
}

.eco-core__inner:hover {
  box-shadow: 0 0 56px rgba(14, 159, 110, 0.24), 0 14px 38px rgba(15, 40, 30, 0.1);
}

.eco-core__inner img {
  width: 90%;
  object-fit: contain;
}

@media (max-width: 880px) {
  .eco-diagram {
    aspect-ratio: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .eco-card {
    position: static;
    transform: none;
    width: 100%;
    margin-bottom: 16px;
    order: 2;
  }

  .eco-diagram__lines {
    display: none;
  }

  .eco-core {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin: 40px auto 56px;
    order: 1;
  }
}

/* ---------- SOLUTIONS (divider intro merged with product briefs, one section) ---------- */
#solutions {
  background: var(--bg-2);
}

.solutions-divider {
  text-align: center;
  padding-bottom: 8px;
}

.solutions-divider h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 3.7vw, 2.75rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
  max-width: 780px;
  margin: 0 auto;
  text-wrap: balance;
}

.solutions-divider .kicker {
  display: block;
  font-size: 0.6em;
  color: var(--text-2);
  font-style: italic;
  margin-bottom: 8px;
}

/* ---------- PRODUCT BRIEFS ---------- */
.product-brief {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 56px 0;
}

.product-brief--reverse .product-brief__visual { order: -1; }

.product-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 100px;
  background: rgba(14, 159, 110, 0.08);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 16px;
}

.product-brief h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  line-height: 1.2;
}

.product-brief h3 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--teal-light), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.product-brief p {
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 20px;
  max-width: 480px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.pill {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 100px;
  background: var(--sub);
  border: 1px solid var(--sub-bd);
  color: var(--text-2);
}

.product-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 2;
}

.product-media__video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain; /* or cover */
}

@media (max-width: 880px) {
  .product-media {
    aspect-ratio: 2 / 4;
  }

  .product-media__video {
    object-fit: contain;
    background: var(--bg-card);
  }
}

.product-brief__visual {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  min-height: 280px;
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 2;
}

@media (max-width: 880px) {
  .product-media {
    aspect-ratio: 2 / 4;
  }

  .product-media__image,
  .product-media__video {
    object-fit: contain;
    background: var(--bg-card);
  }
}

@media (max-width: 880px) {
  .product-media {
    aspect-ratio: auto;
    height: auto;
    min-height: 220px;
  }

  .product-media__image {
    position: relative;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .product-media__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.product-media__image,
.product-media__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-media__image {
  z-index: 2;
}
.product-media__video {
  z-index: 1;
}

/* .product-media:hover .product-media__image,
.product-media.is-playing .product-media__image {
  opacity: 0;
} */

@media (max-width: 880px) {
  .product-brief { grid-template-columns: 1fr; gap: 32px; }
  .product-brief--reverse .product-brief__visual { order: 0; }
}

/* ---------- WHY GLOBALSPACE ---------- */
.why-us {
  background: var(--bg-2);
  text-align: center;
}

.why-us h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.why-us > .container > p {
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto 56px;
  font-size: 1rem;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: left;
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--card-bd);
  border-radius: var(--radius-md);
  padding: 26px;
}

.why-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(14, 159, 110, 0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--teal-dark);
}

.why-card h4 {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
}

.why-card p {
  font-size: 0.86rem;
  color: var(--text-2);
  line-height: 1.55;
}

@media (max-width: 880px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ---------- LEADERSHIP ---------- */
.leadership { text-align: center; background: var(--bg-2); }
.leadership h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.leadership > p { color: var(--text-2); max-width: 560px; margin: 0 auto 56px; }

.leadership-grid {
  display: flex;
  gap: 24px;
  text-align: left;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--teal) var(--bg-2);
}
.leadership-grid::-webkit-scrollbar { height: 8px; }
.leadership-grid::-webkit-scrollbar-track { background: var(--bg-2); border-radius: 10px; }
.leadership-grid::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 10px; }

.leader-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
}

.leader-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--card-bd);
  box-shadow: var(--shadow);
}

.leader-card__photo {
  position: relative;
  aspect-ratio: 3 / 3.4;
  overflow: hidden;
}
.leader-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leader-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10,20,16,0.92) 0%, rgba(10,20,16,0.55) 55%, rgba(10,20,16,0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
}
.leader-card:hover .leader-card__overlay {
  opacity: 1;
}
.leader-card__overlay p {
  color: rgba(255,255,255,0.92);
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 10px;
}
.leader-card__link {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.leader-card__info { padding: 16px 18px 20px; }
.leader-card__info h4 { font-size: 1.02rem; font-weight: 700; margin-bottom: 3px; }
.leader-card__info span { font-size: 0.8rem; color: var(--text-2); }

/* ---------- CTA BANNER (full-bleed with video bg) ---------- */
.cta-banner {
  position: relative;
  width: 100%;
  padding: 100px 40px;
  text-align: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.cta-banner-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: -2;
}

.cta-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgb(0 0 0 / 88%), rgba(79, 177, 195, 0.82));
  z-index: -1;
}

.cta-banner-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-banner-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.cta-banner-content > p {
  opacity: 0.9;
  max-width: 480px;
  margin: 0 auto 30px;
  font-size: 0.98rem;
}

.cta-product-select {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.cta-product-select button {
  padding: 9px 20px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
}

.cta-product-select button.is-active,
.cta-product-select button:hover {
  background: #fff;
  color: var(--teal-dark);
}

.cta-banner .btn-primary {
  background: #fff;
  color: var(--teal-dark);
}

.cta-banner .btn-primary:hover {
  background: var(--orange);
  color: #fff;
}

@media (max-width: 640px) {
  .cta-banner {
    padding: 70px 24px;
  }
}

/* ---------- TRUSTED BY / LOGO MARQUEE ---------- */
.logo-marquee-section {
  text-align: center;
  padding: 100px 0 100px;
  background: var(--bg-2);
}

.logo-marquee-section .container {
  margin-bottom: 48px;
}

.logo-marquee-section h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -0.01em;
}

.logo-marquee {
  position: relative;
  width: 100%;
  padding: 8px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.logo-marquee__track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  width: max-content;
  gap: 24px;
}

.logo-card {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  height: 96px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--card-bd);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.logo-card img {
  max-height: 90px;
  max-width: 130px;
  object-fit: contain;
}

@media (max-width: 640px) {
  .logo-marquee__track {
    gap: 16px;
  }
  .logo-card {
    min-width: 150px;
    height: 76px;
    padding: 14px;
  }
  .logo-card img {
    max-height: 56px;
    max-width: 120px;
  }
}

.product-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.product-tag__icon {
    height: 28px;
    width: auto;
}

/* ---------- FAQ ---------- */
.faq {
  background: var(--bg-2);
  text-align: center;
}

.faq h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin-bottom: 48px;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}

.faq-item {
  border-bottom: 1px solid var(--card-bd);
}

.faq-item.is-faq-hidden {
  display: none;
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text);
  cursor: pointer;
}

.faq-item__icon {
  flex-shrink: 0;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--teal);
}

.faq-item__answer {
  overflow: hidden;
  max-height: 0;
}

.faq-item.is-open .faq-item__answer {
  max-height: 500px;
}

.faq-item__answer p {
  padding: 0 4px 22px;
  color: var(--text-2);
  font-size: 0.94rem;
  line-height: 1.65;
  max-width: 640px;
}

.faq-show-more {
  display: block;
  margin: 32px auto 0;
}