/* ============================================================
   Shared Technical Tabs — Marquee-based tab component
   Used on: smart-contract-development, product-build
   ============================================================ */

.technical-tabs-section {
  position: relative;
  background: #ffffff;
  border-bottom: 1px solid #cacaca;
  color: #000000;
  padding: 100px 0;
  overflow: hidden;
}

.technical-tabs-section .technical-tabs-inner {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  margin: 0 auto;
}

.technical-tabs-section .technical-tabs-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 831px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 0 24px;
}

.technical-tabs-section .technical-tabs-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #313131;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: var(--fw-medium, 500);
  line-height: 1.3;
}

.technical-tabs-section .technical-tabs-kicker p {
  margin: 0;
}

.technical-tabs-section .technical-tabs-kicker span,
.technical-tabs-section .technical-kicker-bar {
  width: 6px;
  height: 18px;
  flex: 0 0 auto;
  border-radius: 2px;
  background: #d9d9d9;
  transition: background 0.2s ease;
}

.technical-tabs-section h2 {
  margin: 0;
  color: #000000;
  font-family: var(--font-sans);
  font-size: 44px;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
}

.technical-tabs-section h2 span {
  position: relative;
  display: inline-block;
  overflow: hidden;
  line-height: 1.25;
}

.technical-tabs-section h2 span::before,
.technical-tabs-section h2 span::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.technical-tabs-section h2 span::before {
  z-index: 2;
  background: #ffffff;
  transform: translateX(0);
}

.technical-tabs-section h2 span::after {
  z-index: 3;
  background: #000000;
  transform: translateX(-101%);
}

.technical-tabs-section.is-title-reveal-active h2 span::before {
  animation: technical-tabs-title-reveal-before 2s cubic-bezier(0.77, 0, 0.18, 1) forwards;
}

.technical-tabs-section.is-title-reveal-active h2 span::after {
  animation: technical-tabs-title-reveal-after 2s cubic-bezier(0.77, 0, 0.18, 1) forwards;
}

@keyframes technical-tabs-title-reveal-after {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(101%);
  }
}

@keyframes technical-tabs-title-reveal-before {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(200%);
  }
}

.technical-tabs-section .technical-tabs-description {
  width: 100%;
  max-width: 591px;
  margin: 0 auto;
  color: #787878;
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}

.technical-tabs-section .technical-tabs-controls {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 4px;
}

.technical-tabs-section .technical-tab-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 34px;
  padding: 6px 14px;
  border: 1px solid #d1d1d1;
  border-radius: 8px;
  background: #f5f5f5;
  color: #1d1d1d;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.24s ease,
    border-color 0.24s ease,
    color 0.24s ease;
}

.technical-tabs-section .technical-tab-button:hover:not(.is-active) {
  background: #ebebeb;
  border-color: #c0c0c0;
}

.technical-tabs-section .technical-tab-indicator {
  width: 10px;
  height: 10px;
  display: none;
  flex: 0 0 auto;
  background: #d9212e;
}

.technical-tabs-section .technical-tab-button.is-active {
  border-color: #242424;
  background: #242424;
  color: #ffffff;
}

.technical-tabs-section .technical-tab-button.is-active .technical-tab-indicator {
  display: block;
}

/* Tab Panels */
.technical-tabs-section .technical-tab-panel {
  display: none;
  width: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.technical-tabs-section .technical-tab-panel.is-active {
  display: block;
  opacity: 1;
}

/* Marquee Rows */
.technical-tabs-section .technical-marquee-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  overflow: hidden;
  user-select: none;
}

.technical-tabs-section .technical-marquee-row {
  position: relative;
  width: 100%;
  display: flex;
  overflow: hidden;
}

.technical-tabs-section .technical-marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.technical-tabs-section .technical-marquee-track--left {
  animation: technical-tabs-marquee-left 90s linear infinite;
}

.technical-tabs-section .technical-marquee-track--right {
  animation: technical-tabs-marquee-right 90s linear infinite;
}

.technical-tabs-section.is-offscreen .technical-marquee-track,
.technical-tabs-section .technical-tab-panel:not(.is-active) .technical-marquee-track,
.technical-tabs-section .technical-marquee-container:hover .technical-marquee-track {
  animation-play-state: paused;
}

.technical-tabs-section.is-offscreen .technical-marquee-track,
.technical-tabs-section .technical-tab-panel:not(.is-active) .technical-marquee-track {
  will-change: auto;
}

@keyframes technical-tabs-marquee-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes technical-tabs-marquee-right {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

.technical-tabs-section .technical-marquee-row--1 .technical-marquee-track {
  margin-left: -48px;
}

.technical-tabs-section .technical-marquee-group {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 8px;
  flex-shrink: 0;
}

.technical-tabs-section .technical-ghost-tile,
.technical-tabs-section .technical-logo-card {
  width: 88px;
  height: 88px;
  min-width: 88px;
  min-height: 88px;
  flex-shrink: 0;
  border-radius: 4px;
  background: #f6f6f6;
}

.technical-tabs-section .technical-ghost-tile {
  display: block;
}

.technical-tabs-section .technical-logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 10px 4px;
  border: 1px solid transparent;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.technical-tabs-section .technical-logo-card:hover {
  transform: translateY(-2px);
  background: #f0f0f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.technical-tabs-section .technical-logo-card img {
  width: 36px;
  height: 36px;
  display: block;
  object-fit: contain;
  margin: auto 0;
}

.technical-tabs-section .technical-logo-card img[src*="openzeppelin"] {
  width: 28px;
  height: 28px;
}

.technical-tabs-section .technical-logo-card span {
  color: #787878;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: -0.01em;
  text-align: center;
  white-space: nowrap;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .technical-tabs-section .technical-marquee-track--left,
  .technical-tabs-section .technical-marquee-track--right {
    animation: none;
  }
}

/* Responsive — Tablet */
@media (max-width: 1023px) {
  .technical-tabs-section {
    padding: 72px 0;
  }

  .technical-tabs-section .technical-tabs-inner {
    gap: 36px;
  }

  .technical-tabs-section h2 {
    font-size: 34px;
  }

  .technical-tabs-section .technical-tabs-description {
    font-size: 18px;
  }

  .technical-tabs-section .technical-marquee-row--1 .technical-marquee-track {
    margin-left: -43px;
  }

  .technical-tabs-section .technical-ghost-tile,
  .technical-tabs-section .technical-logo-card {
    width: 78px;
    height: 78px;
    min-width: 78px;
    min-height: 78px;
    padding: 9px 3px;
  }

  .technical-tabs-section .technical-logo-card img {
    width: 32px;
    height: 32px;
  }

  .technical-tabs-section .technical-logo-card img[src*="openzeppelin"] {
    width: 25px;
    height: 25px;
  }

  .technical-tabs-section .technical-logo-card span {
    font-size: 10px;
    line-height: 14px;
  }
}

/* Responsive — Mobile */
@media (max-width: 767px) {
  .technical-tabs-section {
    padding: 56px 0;
  }

  .technical-tabs-section .technical-tabs-inner {
    gap: 28px;
  }

  .technical-tabs-section .technical-tabs-copy {
    gap: 16px;
    padding: 0 16px;
  }

  .technical-tabs-section h2 {
    font-size: 28px;
    line-height: 1.25;
  }

  .technical-tabs-section .technical-tabs-description {
    font-size: 16px;
    line-height: 1.3;
  }

  .technical-tabs-section .technical-tabs-controls {
    gap: 12px;
  }

  .technical-tabs-section .technical-tab-button {
    height: 32px;
    padding: 5px 12px;
    font-size: 13px;
  }

  .technical-tabs-section .technical-tab-indicator {
    width: 8px;
    height: 8px;
  }

  .technical-tabs-section .technical-marquee-row--1 .technical-marquee-track {
    margin-left: -39px;
  }

  .technical-tabs-section .technical-ghost-tile,
  .technical-tabs-section .technical-logo-card {
    width: 70px;
    height: 70px;
    min-width: 70px;
    min-height: 70px;
    padding: 8px 2px;
  }

  .technical-tabs-section .technical-logo-card img {
    width: 28px;
    height: 28px;
  }

  .technical-tabs-section .technical-logo-card img[src*="openzeppelin"] {
    width: 22px;
    height: 22px;
  }

  .technical-tabs-section .technical-logo-card span {
    font-size: 9.5px;
    line-height: 13px;
  }
}
