/* =========================================================
   MAIN.CSS — LED Enterprise Design System
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&family=Montserrat:wght@700;800;900&display=swap');

/* ── Utilities ──────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

.accent {
  color: var(--color-accent);
}

.text-muted {
  color: var(--color-muted-light);
}

.label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: 10px;
}

.label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--color-accent);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-white);
  overflow: visible;
  margin: 0;
  padding-bottom: 0.08em;
}

.section-sub {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--color-muted-light);
  line-height: 1.7;
  max-width: 560px;
}

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: var(--radius);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--color-accent);
  color: #000;
}

.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: var(--transition);
}

.btn--primary:hover::after {
  background: rgba(255, 255, 255, 0.12);
}

.btn--primary:hover {
  box-shadow: 0 0 30px rgba(0, 200, 255, 0.5);
}

.btn--outline {
  background: transparent;
  color: var(--color-accent);
  border: 1px solid rgba(0, 200, 255, 0.4);
}

.btn--outline:hover {
  background: rgba(0, 200, 255, 0.07);
  border-color: var(--color-accent);
  box-shadow: 0 0 20px rgba(0, 200, 255, 0.2);
}

.btn--ghost {
  background: transparent;
  color: var(--color-white);
  border: 1px solid var(--color-border);
  font-size: 0.72rem;
  padding: 10px 20px;
}

.btn--ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ── Scroll Reveal ───────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

[data-reveal="left"] {
  transform: translateX(-30px);
}

[data-reveal="right"] {
  transform: translateX(30px);
}

[data-reveal="scale"] {
  transform: scale(0.96);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 clamp(20px, 5vw, 60px);
  transition: var(--transition);
}

.navbar::before {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(0px);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}


.nav--scrolled.navbar {
  height: 64px;
}

/* We apply classes directly to #navbar (the <header>) */
header#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 clamp(20px, 5vw, 60px);
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

header#navbar.nav--scrolled {
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--color-border);
  height: 64px;
}

header#navbar.nav--hidden {
  transform: translateY(-100%);
}

.nav__inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.nav__logo-img {
  max-height: 115px;
  width: auto;
  margin-right: 12px;
  margin-bottom: -30px;
  position: relative;
  z-index: 100;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.nav__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav__logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--color-white);
}

.nav__logo-tag {
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-top: 2px;
}

/* Links */
.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__link {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted-light);
  position: relative;
  transition: color 0.3s;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  right: 50%;
  height: 1px;
  background: var(--color-accent);
  transition: left 0.3s ease, right 0.3s ease;
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-white);
}

.nav__link:hover::after,
.nav__link--active::after {
  left: 0;
  right: 0;
}

/* CTA */
.nav__cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Mobile menu button */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  padding: 4px 0;
}

.nav__hamburger span {
  display: block;
  height: 1.5px;
  background: var(--color-white);
  transition: var(--transition);
  transform-origin: left;
}

.nav__hamburger.is-active span:nth-child(1) {
  transform: rotate(45deg) translateY(-2px);
}

.nav__hamburger.is-active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav__hamburger.is-active span:nth-child(3) {
  transform: rotate(-45deg) translateY(2px);
}

/* Mobile overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: auto;
  max-height: 100vh;
  overflow-y: auto;
  z-index: 998;
  background: rgba(5, 5, 8, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  padding: 100px 20px 110px 20px;
  border-bottom: 1px solid var(--color-border);
  border-radius: 0 0 24px 24px;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.35s ease;
}

.mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-white);
  transition: color 0.3s;
}

.mobile-menu a:hover {
  color: var(--color-accent);
}

.mobile-menu__btn {
  margin-top: 20px;
}

.footer__logo {
  margin-bottom: 0;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

#hero-canvas {
  display: none;
  /* canvas hidden — replaced by video background */
}

/* Full-screen background video */
.hero__video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.hero__bg {
  display: none;
  /* legacy bg image replaced by video */
}

.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse 80% 80% at 50% 50%, transparent 30%, rgba(5, 5, 8, 0.7) 100%),
    linear-gradient(to bottom, rgba(5, 5, 8, 0.4) 0%, transparent 30%, rgba(5, 5, 8, 0.8) 100%);
}

.hero__content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 0 clamp(20px, 5vw, 60px);
  padding-top: var(--nav-height);
}

.hero__label {
  margin-bottom: 28px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7.5vw, 8rem);
  font-weight: 700;
  line-height: 1.2 !important;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--color-white);
  max-width: 820px;
  overflow: visible;
  margin: 0;
  padding-bottom: 0.1em;
}

.hero__title em {
  font-style: normal;
  color: var(--color-accent);
  -webkit-text-stroke: 0px;
}

.hero__title .outline {
  -webkit-text-stroke: 1px rgba(240, 244, 255, 0.35);
  color: transparent;
}

.hero__sub {
  margin-top: 32px;
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: var(--color-muted-light);
  line-height: 1.7;
  max-width: 480px;
}

.hero__actions {
  display: none;
  /* replaced by single .hero__cta-bottom button */
}

/* ── Single bottom-centre hero CTA ───────────────────────── */
.hero__cta-bottom {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: linear-gradient(135deg, rgba(0, 200, 255, 0.18), rgba(0, 200, 255, 0.08));
  border: 1px solid rgba(0, 200, 255, 0.45);
  border-radius: 50px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  transition: background 0.3s ease, border-color 0.3s ease,
    box-shadow 0.3s ease, transform 0.3s ease;
  animation: cta-float 2.6s ease-in-out infinite;
}

.hero__cta-bottom:hover {
  background: linear-gradient(135deg, rgba(0, 200, 255, 0.32), rgba(0, 200, 255, 0.16));
  border-color: rgba(0, 200, 255, 0.9);
  box-shadow: 0 0 28px rgba(0, 200, 255, 0.35), inset 0 0 12px rgba(0, 200, 255, 0.08);
  transform: translateX(-50%) translateY(-3px);
}

.hero__cta-bottom svg {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.hero__cta-bottom:hover svg {
  transform: translateX(4px);
}

@keyframes cta-float {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* ── Keşfet discover button ──────────────────────────────── */
.hero__discover {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  animation: discover-float 2.4s ease-in-out infinite;
}

.hero__discover:hover {
  color: var(--color-accent, #00c8ff);
  text-shadow: 0 0 14px rgba(0, 200, 255, 0.55);
}

.hero__discover svg {
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero__discover:hover svg {
  opacity: 1;
  transform: translateY(3px);
}

@keyframes discover-float {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-muted);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--font-display);
  animation: bounce 2s ease-in-out infinite;
}

.hero__scroll svg {
  width: 20px;
  height: 20px;
  opacity: 0.5;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

/* Hero stats row — removed from HTML, kept for reference */
.hero__stats {
  display: none;
}

.hero__stat {
  padding: 22px clamp(20px, 4vw, 50px);
  border-right: 1px solid var(--color-border);
}

.hero__stat:last-child {
  border-right: none;
}

.hero__stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

.hero__stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-top: 4px;
}


/* =========================================================
   SECTION: CORPORATE OVERVIEW
   ========================================================= */
.about {
  padding: var(--section-pad) 0;
  background: var(--color-surface);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-accent), transparent);
  opacity: 0.4;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.about__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8) saturate(1.1);
}

.about__img-wrap::before {
  content: '';
  position: absolute;
  inset: -1px;
  border: 1px solid var(--color-accent);
  z-index: 1;
  pointer-events: none;
  opacity: 0.3;
}

.about__img-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  z-index: 2;
  width: 120px;
  height: 120px;
  background: var(--color-accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.about__img-badge-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #000;
  line-height: 1;
}

.about__img-badge-text {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.7);
}

.about__content .label {
  margin-bottom: 24px;
}

.about__content .section-title {
  margin-bottom: 24px;
}

.about__content .section-sub {
  margin-bottom: 40px;
}

/* ── About title: scoped override via class chaining ──────
   Specificity (0,3,0) cleanly overrides the base .section-title
   (0,1,0) for the about section — no !important required.   */
.about .about__content .section-title {
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  line-height: 1.3;
  overflow: visible;
  margin: 0 0 24px;
  padding-bottom: 0.12em;
  max-height: none;
  height: auto;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--color-border);
  margin-top: 48px;
}

.about__stat {
  padding: 24px 20px 24px 0;
  border-right: 1px solid var(--color-border);
}

.about__stat:last-child {
  border-right: none;
  padding-left: 20px;
  padding-right: 0;
}

.about__stat:not(:first-child) {
  padding-left: 20px;
}

.about__stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
}

.about__stat-suffix {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-accent);
}

.about__stat-label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-top: 4px;
}

/* =========================================================
   SECTION: CAPABILITIES / SERVICES
   ========================================================= */
.capabilities {
  padding: var(--section-pad) 0;
  background: var(--color-bg);
}

.capabilities__header {
  text-align: center;
  margin-bottom: 80px;
}

.capabilities__header .label {
  justify-content: center;
  margin-bottom: 20px;
}

.capabilities__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--color-border);
}

.capability-card {
  background: var(--color-surface);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.capability-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.capability-card:hover {
  background: var(--color-surface-2);
}

.capability-card:hover::before {
  transform: scaleX(1);
}

.capability-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  color: var(--color-accent);
}

.capability-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 12px;
}

.capability-card__text {
  font-size: 0.9rem;
  color: var(--color-muted-light);
  line-height: 1.7;
}

/* =========================================================
   SECTION: CONTACT / CTA BANNER
   ========================================================= */
.cta-banner {
  padding: var(--section-pad) 0;
  background: var(--color-surface);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 200, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner__eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 24px;
}

.cta-banner__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 1.2 !important;
  letter-spacing: -0.02em;
  color: var(--color-white);
  margin-bottom: 28px;
  overflow: visible;
  padding-bottom: 0.08em;
}

.cta-banner__title span {
  -webkit-text-stroke: 1px rgba(0, 200, 255, 0.4);
  color: transparent;
}

.cta-banner__sub {
  color: var(--color-muted-light);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.cta-banner__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 80px 0 0;
}

/* Footer with LED background image + dark overlay */
.footer--bg {
  background-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)),
    url('../Led Foto/led.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-top: none;
  position: relative;
}

.footer--bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0, 200, 255, 0.35), transparent);
}


.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 60px;
  padding-bottom: 60px;
}

.footer__brand .nav__logo-name {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.footer__tagline {
  font-size: 0.85rem;
  color: #ffffff !important;
  line-height: 1.6;
  margin-top: 14px;
  max-width: 260px;
  opacity: 0.9;
}

.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.footer__social a {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  transition: var(--transition);
}

.footer__social a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent) !important;
  box-shadow: 0 0 12px rgba(0, 200, 255, 0.3);
  opacity: 1;
}

.footer__social svg {
  width: 16px;
  height: 16px;
}

.footer__col-title {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 24px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  font-size: 0.88rem;
  color: #ffffff !important;
  transition: color 0.3s, opacity 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.85;
}

.footer__links a::before {
  content: '';
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.3s;
}

.footer__links a:hover {
  color: #ffffff !important;
  opacity: 1;
}

.footer__links a:hover::before {
  width: 12px;
}

.footer__address {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__address-line {
  font-size: 0.88rem;
  color: #ffffff !important;
  line-height: 1.5;
  opacity: 0.9;
}

.footer__address-line strong {
  color: var(--color-white);
  font-weight: 500;
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 4px;
}

.footer__map {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border: 1px solid var(--color-border);
  filter: grayscale(1) brightness(0.6) contrast(1.1);
  transition: var(--transition);
}

.footer__map:hover {
  filter: grayscale(0.6) brightness(0.7);
}

.footer__map iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Bottom bar */
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px 0;
  display: block;
  width: 100%;
  text-align: center;
}

.footer__copy {
  font-size: 0.78rem;
  color: #ffffff !important;
  opacity: 0.75;
}

.footer__bottom-links {
  display: flex;
  gap: 24px;
}

.footer__bottom-links a {
  font-size: 0.78rem;
  color: #ffffff !important;
  opacity: 0.75;
  transition: color 0.3s, opacity 0.3s;
}

.footer__bottom-links a:hover {
  color: #ffffff !important;
  opacity: 1;
}

.footer__lacivert-link {
  color: inherit;
  text-decoration: none;
  opacity: 1;
  transition: text-decoration 0.2s;
}

.footer__lacivert-link:hover {
  text-decoration: underline;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

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

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .about__img-wrap {
    max-height: 380px;
  }

  .about__img-badge {
    width: 90px;
    height: 90px;
    bottom: -15px;
    right: -15px;
  }

  .about__img-badge-num {
    font-size: 1.5rem;
  }

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

@media (max-width: 768px) {

  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

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

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

  .hero__stats {
    display: none;
  }

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

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-banner__actions {
    flex-direction: column;
    align-items: center;
  }

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

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================================
   SECTION: PRODUCT CATALOG (16 Items)
   ========================================================= */
.catalog-section {
  padding: var(--section-pad) 0;
  background: var(--color-bg);
  position: relative;
}

.catalog-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-accent), transparent);
  opacity: 0.25;
}

.catalog__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.catalog__header-text .label {
  margin-bottom: 16px;
}

.catalog__header-text .section-title {
  margin-bottom: 16px;
}

.catalog__filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.catalog__filter-btn {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 20px;
  border: 1px solid var(--color-border);
  color: var(--color-muted-light);
  cursor: pointer;
  border-radius: 2px;
  transition: var(--transition);
  background: transparent;
}

.catalog__filter-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.catalog__filter-btn.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #000;
  font-weight: 600;
}

/* Grid */
.catalog__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Card */
.catalog-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  position: relative;
}

.catalog-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--color-accent), 0 0 30px rgba(0, 200, 255, 0.15);
  border-color: var(--color-accent);
}

.catalog-card__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  flex-shrink: 0;
}

.catalog-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.4s ease;
  filter: brightness(0.85) saturate(0.9);
  display: block;
}

.catalog-card:hover .catalog-card__img-wrap img {
  transform: scale(1.06);
  filter: brightness(0.95) saturate(1.1);
}

/* Badge */
.catalog-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: rgba(5, 5, 8, 0.82);
  color: var(--color-muted-light);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(6px);
}

.catalog-card__badge--accent {
  background: var(--color-accent);
  color: #000;
  border-color: var(--color-accent);
}

.catalog-card__badge--outdoor {
  background: rgba(0, 140, 80, 0.25);
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.3);
}

.catalog-card__badge--stadium {
  background: rgba(180, 100, 0, 0.25);
  color: #fb923c;
  border-color: rgba(251, 146, 60, 0.3);
}

.catalog-card__badge--special {
  background: rgba(120, 60, 200, 0.25);
  color: #c084fc;
  border-color: rgba(192, 132, 252, 0.3);
}

/* Card body */
.catalog-card__body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.catalog-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.catalog-card__sku {
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.catalog-card__pitch {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  background: var(--color-accent-glow2);
  border: 1px solid rgba(0, 200, 255, 0.2);
  padding: 2px 8px;
  border-radius: 2px;
}

.catalog-card__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-white);
  line-height: 1.25;
  margin-bottom: 10px;
  transition: color 0.3s;
}

.catalog-card:hover .catalog-card__name {
  color: var(--color-accent);
}

.catalog-card__desc {
  font-size: 0.82rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.catalog-card__specs-mini {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 16px;
}

.catalog-card__specs-mini span {
  font-size: 0.75rem;
  color: var(--color-muted);
}

.catalog-card__specs-mini span strong {
  color: var(--color-muted-light);
  font-weight: 500;
}

.catalog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.catalog-card__price {
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.btn--sm {
  padding: 8px 16px;
  font-size: 0.68rem;
}

/* Card hidden state for filter */
.catalog-card.is-hidden {
  display: none;
}

/* CTA below grid */
.catalog__cta {
  margin-top: 64px;
  padding: 48px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.catalog__cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(0, 200, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.catalog__cta p {
  font-size: 1.1rem;
  color: var(--color-muted-light);
  max-width: 480px;
  line-height: 1.6;
}

/* =========================================================
   CATALOG RESPONSIVE
   ========================================================= */
@media (max-width: 1300px) {
  .catalog__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .catalog__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .catalog__header {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .catalog__filters {
    gap: 8px;
  }

  .catalog__filter-btn {
    padding: 6px 14px;
    font-size: 0.6rem;
  }

  .catalog__cta {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }

  .catalog__cta p {
    max-width: 100%;
  }
}

.nav__logo-img {
  display: block;
  max-height: 115px;
  width: auto;
  margin-bottom: -30px;
  position: relative;
  z-index: 100;
  object-fit: contain;
  image-rendering: high-quality;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.is-scrolled .nav__logo-img {
  max-height: 90px;
  margin-bottom: -20px;
}

/* Fallback text logo still styled */
.nav__logo-fallback {
  gap: 3px;
}

/* =========================================================
   CATALOG CATEGORY NAV (replaces old filter-btn row)
   ========================================================= */
.catalog__header {
  margin-bottom: 56px;
}

.catalog__header-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.catalog__header-text .label {
  margin-bottom: 14px;
}

.catalog__header-text .section-title {
  margin-bottom: 0;
}

.catalog__header-sub {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.65;
  max-width: 460px;
  align-self: flex-end;
}

/* 4-category navigation cards */
.catalog__category-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.catalog__cat-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 20px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.35s ease, border-color 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.catalog__cat-btn::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform 0.35s ease;
}

.catalog__cat-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 200, 255, 0.12);
  border-color: rgba(0, 200, 255, 0.35);
  background: rgba(0, 200, 255, 0.04);
}

.catalog__cat-btn:hover::before,
.catalog__cat-btn.is-active::before {
  transform: scaleX(1);
}

.catalog__cat-btn.is-active {
  border-color: var(--color-accent);
  background: rgba(0, 200, 255, 0.07);
  box-shadow: 0 0 0 1px var(--color-accent), 0 8px 32px rgba(0, 200, 255, 0.15);
}

.catalog__cat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  transition: border-color 0.3s, background 0.3s;
}

.catalog__cat-icon svg {
  width: 22px;
  height: 22px;
  color: var(--color-muted-light);
  transition: color 0.3s;
}

.catalog__cat-btn.is-active .catalog__cat-icon,
.catalog__cat-btn:hover .catalog__cat-icon {
  border-color: var(--color-accent);
  background: rgba(0, 200, 255, 0.08);
}

.catalog__cat-btn.is-active .catalog__cat-icon svg,
.catalog__cat-btn:hover .catalog__cat-icon svg {
  color: var(--color-accent);
}

.catalog__cat-label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted-light);
  transition: color 0.3s;
}

.catalog__cat-btn.is-active .catalog__cat-label {
  color: var(--color-accent);
}

.catalog__cat-count {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 2px 10px;
  min-width: 28px;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}

.catalog__cat-btn.is-active .catalog__cat-count {
  color: var(--color-accent);
  border-color: rgba(0, 200, 255, 0.3);
  background: rgba(0, 200, 255, 0.08);
}

/* Responsive category nav */
@media (max-width: 900px) {
  .catalog__category-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .catalog__header-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .catalog__header-sub {
    max-width: 100%;
  }
}

@media (max-width: 500px) {
  .catalog__category-nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .catalog__cat-btn {
    padding: 20px 14px 16px;
    gap: 10px;
  }

  .catalog__cat-icon {
    width: 42px;
    height: 42px;
  }

  .catalog__cat-icon svg {
    width: 18px;
    height: 18px;
  }

  .catalog__cat-label {
    font-size: 0.68rem;
  }
}

/* =========================================================
   FLOATING CONTACT BUTTONS (Neon Glassmorphism)
   ========================================================= */
.floating-contact-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.floating-btn {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 240px;
  padding: 12px 20px;
  border-radius: 12px;
  background: rgba(15, 15, 20, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-primary, sans-serif);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 1px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.floating-btn svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.floating-btn span {
  white-space: nowrap;
}

.floating-btn:hover {
  transform: translateY(-3px) scale(1.02);
}

/* Phone Button (Neon Cyan) */
.floating-btn--phone {
  border: 1px solid rgba(0, 195, 255, 0.5);
  box-shadow: 0 0 15px rgba(0, 195, 255, 0.3), inset 0 0 10px rgba(0, 195, 255, 0.2);
}

.floating-btn--phone:hover {
  background: rgba(0, 195, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 195, 255, 0.5), inset 0 0 15px rgba(0, 195, 255, 0.3);
}

/* WhatsApp Button (Neon Green) */
.floating-btn--whatsapp {
  border: 1px solid rgba(37, 211, 102, 0.5);
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.4), inset 0 0 10px rgba(37, 211, 102, 0.2);
}

.floating-btn--whatsapp:hover {
  background: rgba(37, 211, 102, 0.1);
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.6), inset 0 0 15px rgba(37, 211, 102, 0.4);
}

@media (max-width: 600px) {
  .floating-contact-container {
    bottom: 20px;
    right: 20px;
    gap: 12px;
  }

  .floating-btn {
    width: 220px;
    padding: 10px 16px;
    font-size: 0.85rem;
  }

  .floating-btn svg {
    width: 20px;
    height: 20px;
  }
}

/* =========================================================
   BUG FIX: Text selection / heading overlap
   Root cause: hero__title line-height: 0.95 + absolute-
   positioned children colliding with normal-flow text
   during mouse-drag selection.
   ========================================================= */

/* 1. Ensure the hero section itself creates an isolated
      stacking context so absolutely-positioned children
      don't escape and overlap external sections           */
#hero {
  isolation: isolate;
}

/* 2. Give headings safe, non-clipping line-heights that
      don't cause bounding-box overlap on selection        */
.hero__title {
  line-height: 1.2 !important;
  /* aggressive fix — overrides all cascade */
  padding-bottom: 0.1em;
  overflow: visible;
  margin: 0;
}

/* 3. Section titles need room above/below for ::selection  */
.section-title {
  line-height: 1.2;
  /* matches primary rule */
  overflow: visible;
  margin: 0;
  padding-bottom: 0.08em;
}

/* 4. Prevent the hero's absolutely-positioned stats bar
      from visually overlapping the next section during
      text-selection drag                                  */
.hero__stats {
  /* already position:absolute — add a pointer buffer so
     the next section's text is never "behind" this bar   */
  background: var(--color-bg);
}

/* 5. Sections after the hero must start below the viewport
      (hero is 100vh) so normal-flow text never collides  */
.catalog-section,
.ecosystem-section,
.about,
.capabilities,
.cta-banner {
  position: relative;
  /* establish stacking context */
  z-index: 0;
  isolation: isolate;
  /* prevent z-index bleed from hero children */
}

/* 6. Headings: remove any absolute/negative margins that
      could overlap siblings on selection                 */
h1,
h2,
h3,
h4,
h5,
h6 {
  position: static !important;
  /* override any accidental absolute */
  /* Exception: hero__title keeps relative (set below) */
}

/* Allow hero title to keep transform for animation only  */
.hero__title {
  position: relative !important;
}

/* 7. The hero__scroll absolute button — give a generous
      bottom value so it never overlaps the stat bar text */
.hero__scroll {
  bottom: 80px;
  /* stats bar is ~66px tall */
}

/* =========================================================
   ECOSYSTEM SECTION
   ========================================================= */
.ecosystem-section {
  padding: var(--section-pad) 0;
  background: var(--color-bg);
  position: relative;
}

.ecosystem__header {
  text-align: center;
  margin-bottom: 60px;
}

.ecosystem__header .label {
  justify-content: center;
  margin-bottom: 20px;
}

.ecosystem__header .label::before {
  display: none;
}

.ecosystem__header .section-title {
  margin-bottom: 20px;
}

.ecosystem__header .section-sub {
  margin: 0 auto;
  max-width: 520px;
  text-align: center;
}

/* 2×2 grid on desktop, stacks on mobile */
.ecosystem__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 340px);
  gap: 2px;
}

/* Each category card */
.ecosystem__card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: none;
  padding: 0;
  text-align: left;
  display: block;
  width: 100%;
  background: var(--color-surface);
  transition: flex 0.5s ease;
}

.ecosystem__card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    filter 0.7s ease;
  filter: brightness(0.75) saturate(1.0);
  z-index: 0;
}

.ecosystem__card:hover .ecosystem__card-bg {
  transform: scale(1.07);
  filter: brightness(0.88) saturate(1.15);
}

.ecosystem__card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg,
      rgba(0, 200, 255, 0.03) 0%,
      rgba(5, 5, 8, 0.3) 60%,
      rgba(5, 5, 8, 0.65) 100%);
  transition: opacity 0.4s ease;
}

.ecosystem__card:hover .ecosystem__card-overlay {
  opacity: 0.7;
}

.ecosystem__card-content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0;
}

/* Glowing icon circle */
.ecosystem__card-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 200, 255, 0.1);
  border: 1px solid rgba(0, 200, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background 0.35s, border-color 0.35s, transform 0.35s;
}

.ecosystem__card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-accent);
  transition: transform 0.35s;
}

.ecosystem__card:hover .ecosystem__card-icon {
  background: rgba(0, 200, 255, 0.2);
  border-color: var(--color-accent);
  transform: scale(1.1);
}

.ecosystem__card:hover .ecosystem__card-icon svg {
  transform: rotate(-5deg);
}

.ecosystem__card-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.ecosystem__card-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.ecosystem__card-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: 10px;
  transition: color 0.3s;
}

.ecosystem__card:hover .ecosystem__card-title {
  color: var(--color-accent);
}

.ecosystem__card-desc {
  font-size: 0.84rem;
  color: rgba(240, 244, 255, 0.65);
  line-height: 1.55;
  max-width: 320px;
  transition: color 0.3s;
}

.ecosystem__card:hover .ecosystem__card-desc {
  color: rgba(240, 244, 255, 0.82);
}

/* Arrow — slides in from left on hover */
.ecosystem__card-arrow {
  position: absolute;
  top: 40px;
  right: 40px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 200, 255, 0.12);
  border: 1px solid rgba(0, 200, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(10px);
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.3s;
}

.ecosystem__card-arrow svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
}

.ecosystem__card:hover .ecosystem__card-arrow {
  opacity: 1;
  transform: translateX(0);
  background: rgba(0, 200, 255, 0.22);
}

/* Ecosystem responsive */
@media (max-width: 900px) {
  .ecosystem__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(2, 260px);
  }

  .ecosystem__card-content {
    padding: 28px 28px;
  }
}

@media (max-width: 600px) {
  .ecosystem__grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 220px);
    gap: 2px;
  }
}

/* =========================================================
   CATALOG TAB FILTER BAR
   Horizontal underline-indicator style
   ========================================================= */
.catalog__header-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.catalog__header-text .label {
  margin-bottom: 14px;
}

.catalog__header-text .section-title {
  margin-bottom: 0;
}

.catalog__header-sub {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.65;
  max-width: 460px;
  align-self: flex-end;
}

/* The tab bar row */
.catalog__tab-bar {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 48px;
  border-bottom: 1px solid var(--color-border);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.catalog__tab-bar::-webkit-scrollbar {
  display: none;
}

/* Individual tab */
.catalog__tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px 16px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.25s ease;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  /* sit on top of the bar's border */
}

.catalog__tab::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.catalog__tab:hover {
  color: var(--color-muted-light);
}

.catalog__tab.is-active {
  color: var(--color-white);
}

.catalog__tab.is-active::after {
  transform: scaleX(1);
}

/* Count pill inside tab */
.catalog__tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.6rem;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border-radius: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.catalog__tab.is-active .catalog__tab-count {
  background: rgba(0, 200, 255, 0.12);
  border-color: rgba(0, 200, 255, 0.3);
  color: var(--color-accent);
}

/* Catalog grid — push down from tab bar */
.catalog__grid {
  margin-top: 40px;
}

/* Responsive tab bar */
@media (max-width: 900px) {
  .catalog__header-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .catalog__header-sub {
    max-width: 100%;
  }

  .catalog__tab {
    padding: 12px 18px 14px;
    font-size: 0.68rem;
  }
}

@media (max-width: 500px) {
  .catalog__tab {
    padding: 10px 14px 12px;
    font-size: 0.62rem;
    gap: 5px;
  }
}

/* =========================================================
   CENTERED CATALOG HEADER
   ========================================================= */
.catalog__header--centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.catalog__header--centered .catalog__header-top {
  justify-content: center;
  width: 100%;
  margin-bottom: 24px;
}

.catalog__header--centered .catalog__tab-bar {
  margin-top: 0;
  justify-content: center;
  width: 100%;
}

/* =========================================================
   STRICT MOBILE OPTIMIZATIONS
   ========================================================= */
@media (max-width: 768px) {

  /* Ensure padding doesn't overflow or look too large */
  .ecosystem-section,
  .catalog-section,
  .about,
  .capabilities,
  .cta-banner {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .section-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }
}

@media (max-width: 600px) {
  .catalog__header--centered .catalog__tab-bar {
    justify-content: flex-start;
    padding-bottom: 5px;
    /* allow horizontal native scroll if tabs overflow on very small devices */
  }

  /* Ensure 1 column layout */
  .ecosystem__grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 220px);
  }

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

/* =========================================================
   CRITICAL MOBILE BUG FIX
   ========================================================= */
html,
body {
  width: 100%;
  /* Ensure no element pushes past viewport and no scrollbar overlap */
}

/* Ensure global box-sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* =========================================================
   LANGUAGE SWITCHER & i18n STYLES
   ========================================================= */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  padding: 4px 10px;
  border-radius: 20px;
  margin-left: 12px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--color-muted);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  padding: 2px 4px;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.lang-btn:hover {
  color: var(--color-white);
}

.lang-btn.active {
  color: var(--color-accent);
  font-weight: 700;
}

.lang-divider {
  color: var(--color-border);
  font-size: 0.75rem;
  user-select: none;
}

.mobile-menu .lang-switcher {
  margin: 15px auto 90px auto;
}