/* Binlogic - Modular UI Components */

/* ==========================================================================
   Header & Navigation Bar
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background-color: rgba(7, 10, 17, 0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--transition-smooth);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity var(--transition-fast);
  text-decoration: none;
  line-height: 1;
  height: 32px;
}

.brand-logo:hover {
  opacity: 0.9;
}

.brand-logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  height: 100%;
}

.nav-item-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
}

.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1;
}

.dropdown-arrow {
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.nav-item-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% - 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 270px;
  max-height: 440px;
  overflow-y: auto;
  background: var(--surface-card);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.5rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: var(--glass-blur);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dropdown-item {
  font-size: var(--fs-xs);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
}

.dropdown-item:hover {
  color: var(--color-primary);
  background: rgba(0, 240, 255, 0.08);
}

.dropdown-item-highlight {
  font-weight: 700;
  color: var(--color-primary);
  border-top: 1px solid var(--border-subtle);
  margin-top: 0.25rem;
  padding-top: 0.6rem;
}

.nav-link {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  text-decoration: none;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 1px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 100%;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  height: 34px;
  padding: 0 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  line-height: 1;
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition-fast);
  line-height: 1;
}

.theme-toggle-btn:hover {
  background: var(--surface-card-hover);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.theme-toggle-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-nav-cta {
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  font-size: var(--fs-xs);
  line-height: 1;
}

.lang-btn {
  color: var(--text-dim);
  transition: color var(--transition-fast);
  font-weight: 600;
  padding: 0.1rem 0.3rem;
  border-radius: 2px;
}

.lang-btn.active, .lang-btn:hover {
  color: var(--color-primary);
  background: var(--color-primary-subtle);
}

/* Mobile Hamburger Toggle */
.mobile-toggle {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mobile-toggle:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--border-cyan);
  color: var(--color-primary);
}

/* Mobile Nav Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 88vw;
  max-width: 380px;
  height: 100vh;
  height: 100dvh;
  background-color: var(--bg-dark-alt);
  border-left: 1px solid var(--border-cyan);
  z-index: 10001;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.7);
}

.mobile-drawer.is-open,
.mobile-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.25rem;
}

.drawer-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.drawer-close:hover {
  color: var(--color-primary);
  border-color: var(--border-cyan);
  background: rgba(0, 240, 255, 0.1);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

.drawer-link {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--text-main);
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.drawer-link:hover, .drawer-link.active {
  color: var(--color-primary);
  background: rgba(0, 240, 255, 0.06);
}

/* Accordions in Mobile Drawer */
.drawer-accordion {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.drawer-accordion.active {
  border-color: var(--border-cyan);
  background: rgba(0, 240, 255, 0.03);
}

.drawer-accordion-header {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--text-main);
  padding: 0.75rem 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: color var(--transition-fast);
}

.drawer-accordion-header svg {
  transition: transform 0.25s ease;
  color: var(--text-tertiary);
}

.drawer-accordion.active .drawer-accordion-header {
  color: var(--color-primary);
}

.drawer-accordion.active .drawer-accordion-header svg {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.drawer-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0 0.75rem;
}

.drawer-accordion.active .drawer-accordion-body {
  max-height: 600px;
  padding: 0.5rem 0.75rem 0.85rem 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.drawer-sublink {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: block;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.drawer-sublink:hover {
  color: var(--color-primary);
  background: rgba(0, 240, 255, 0.08);
}

.drawer-footer {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: 1.25rem;
}

.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 6, 13, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-backdrop.is-active,
.drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  white-space: nowrap;
  line-height: 1.2;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--text-inverse);
  box-shadow: 0 0 20px var(--color-primary-glow);
}

.btn-primary:hover {
  background: #33f3ff;
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(0, 240, 255, 0.45);
}

.btn-secondary {
  background: var(--surface-card);
  color: var(--text-main);
  border: 1px solid var(--border-cyan);
}

.btn-secondary:hover {
  background: var(--surface-card-hover);
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
  border-color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: var(--fs-xs);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: var(--fs-base);
}

/* ==========================================================================
   Cards & Tech Surfaces
   ========================================================================== */
.card-tech {
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.card-tech::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.card-tech:hover {
  border-color: var(--border-cyan);
  background-color: var(--surface-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.card-tech:hover::before {
  opacity: 1;
}

.card-glass {
  background: var(--surface-glass);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

/* Product Card Specifics */
.product-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.product-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid var(--border-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.product-card-icon svg {
  width: 24px;
  height: 24px;
  max-width: 24px;
  max-height: 24px;
}

.feature-item svg {
  width: 18px;
  height: 18px;
  max-width: 18px;
  max-height: 18px;
  flex-shrink: 0;
}

.social-icon svg {
  width: 20px;
  height: 20px;
  max-width: 20px;
  max-height: 20px;
  flex-shrink: 0;
}

/* ==========================================================================
   Badges & Micro Indicators
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  border-radius: var(--radius-pill);
}

.badge-cyan {
  background: rgba(0, 240, 255, 0.1);
  color: var(--color-primary);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.badge-purple {
  background: rgba(138, 43, 226, 0.1);
  color: #b87cff;
  border: 1px solid rgba(138, 43, 226, 0.3);
}

.badge-green {
  background: rgba(0, 255, 163, 0.1);
  color: var(--color-accent);
  border: 1px solid rgba(0, 255, 163, 0.3);
}

.badge-subtle {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-accent);
  box-shadow: 0 0 6px var(--color-accent);
}

/* ==========================================================================
   Tabs
   ========================================================================== */
.tab-list {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--space-md);
  overflow-x: auto;
}

.tab-btn {
  padding: 0.75rem 1.25rem;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text-main);
}

.tab-btn.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  background: var(--color-primary-subtle);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 300ms ease forwards;
}

/* ==========================================================================
   Forms & Controls
   ========================================================================== */
.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-main);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(13, 18, 31, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: var(--fs-base);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary-glow);
}

.form-select option {
  background: var(--bg-dark-alt);
  color: var(--text-main);
}

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

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

.form-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  margin-top: 3px;
}

.form-status {
  padding: 1rem;
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  margin-bottom: 1rem;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(0, 255, 163, 0.1);
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
}

.form-status.error {
  display: block;
  background: rgba(255, 71, 87, 0.1);
  border: 1px solid var(--color-danger);
  color: var(--color-danger);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: #04060b;
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-lg);
  color: var(--text-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 2.5rem;
  margin-bottom: var(--space-2xl);
}

.footer-brand p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  margin-top: 1rem;
  max-width: 320px;
}

.footer-title {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: var(--fs-xs);
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.social-icon:hover {
  color: var(--color-primary);
}

/* ==========================================================================
   VISUAL RHYTHM & THEME OVERRIDES
   ========================================================================== */

/* Editorial Light Theme (About / Nosotros) - Light Mode Only */
html[data-theme="light"] body.theme-editorial {
  background-color: var(--bg-editorial);
  color: var(--text-editorial-main);
}
html[data-theme="light"] body.theme-editorial .site-header {
  background: rgba(248, 250, 252, 0.85);
  border-bottom-color: var(--border-editorial);
}
html[data-theme="light"] body.theme-editorial .brand-logo,
html[data-theme="light"] body.theme-editorial .nav-link {
  color: var(--text-editorial-main);
}
html[data-theme="light"] body.theme-editorial .nav-link:hover,
html[data-theme="light"] body.theme-editorial .nav-link.active {
  color: #0284c7;
}
html[data-theme="light"] body.theme-editorial .card-tech,
html[data-theme="light"] body.theme-editorial .card-editorial {
  background-color: var(--bg-editorial-card);
  border-color: var(--border-editorial);
  color: var(--text-editorial-main);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}
html[data-theme="light"] body.theme-editorial .card-tech:hover {
  background-color: var(--bg-editorial-card-hover);
  border-color: #94a3b8;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}
html[data-theme="light"] body.theme-editorial .section-subtitle,
html[data-theme="light"] body.theme-editorial p {
  color: var(--text-editorial-secondary);
}
html[data-theme="light"] body.theme-editorial .site-footer {
  background-color: #f1f5f9;
  border-top: 1px solid var(--border-editorial);
  color: var(--text-editorial-main);
}
html[data-theme="light"] body.theme-editorial .footer-title {
  color: var(--text-editorial-main);
}
html[data-theme="light"] body.theme-editorial .footer-link {
  color: var(--text-editorial-secondary);
}
html[data-theme="light"] body.theme-editorial .footer-link:hover {
  color: #0284c7;
}

/* Blueprint Theme (Services) */
body.theme-blueprint {
  background-color: var(--bg-blueprint);
  background-image: 
    linear-gradient(var(--grid-blueprint) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-blueprint) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Slate Neutral Theme (Solutions) */
body.theme-neutral {
  background-color: var(--bg-neutral);
}
body.theme-neutral .card-tech {
  background-color: var(--bg-neutral-card);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Enterprise Navy Theme (Partners) */
body.theme-navy {
  background-color: var(--bg-navy);
}
body.theme-navy .card-tech {
  background-color: var(--bg-navy-card);
  border-color: var(--border-navy);
}

/* Vibrant Dark Theme (Startups) */
body.theme-vibrant {
  background-color: #070914;
}

/* ==========================================================================
   ENGINEERING CAPABILITY GRAPH & DIAGRAMS
   ========================================================================== */
.capability-graph-container {
  position: relative;
  background: var(--surface-card);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  overflow: hidden;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}

.capability-node {
  background: rgba(7, 10, 17, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: all var(--transition-smooth);
  cursor: default;
}

.capability-node:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

.capability-node-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.capability-node-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(0, 240, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

/* TIMELINE COMPONENTS */
.timeline-track {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline-track::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: linear-gradient(180deg, var(--color-primary), var(--color-secondary));
}

@media (min-width: 768px) {
  .timeline-track::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .timeline-item {
    flex-direction: row;
    align-items: center;
  }
  .timeline-item:nth-child(even) {
    flex-direction: row-reverse;
  }
}

.timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 12px var(--color-primary);
  border: 3px solid var(--bg-dark);
  position: absolute;
  left: 13px;
  top: 24px;
  z-index: 2;
}

@media (min-width: 768px) {
  .timeline-dot {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-content {
  margin-left: 50px;
  padding: 1.5rem;
  border-radius: var(--radius-md);
}

@media (min-width: 768px) {
  .timeline-content {
    margin-left: 0;
    width: 45%;
  }
}

/* TERMINAL & WIRE PROTOCOL BOX */
.terminal-box {
  font-family: var(--font-mono);
  background: #05080f;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.terminal-header {
  background: rgba(255, 255, 255, 0.04);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-body {
  padding: 1.25rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-main);
}

/* ==========================================================================
   CUSTOMER LOGOS INFINITE MARQUEE CAROUSEL
   ========================================================================== */
.logo-marquee-section {
  padding: 4rem 0;
  background: rgba(255, 255, 255, 0.01);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.logo-marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 2rem;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-marquee-track {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: max-content;
  animation: logoMarqueeScroll 35s linear infinite;
}

.logo-marquee-track:hover {
  animation-play-state: paused;
}

.logo-card {
  height: 48px;
  min-width: 120px;
  padding: 0.4rem 1rem;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  position: relative;
}

.logo-card:hover {
  background: #ffffff;
  border-color: var(--color-primary);
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.25);
}

.logo-card img {
  height: 28px;
  max-height: 28px;
  max-width: 100px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.85);
  transition: filter var(--transition-fast), transform var(--transition-fast);
}

.logo-card:hover img {
  filter: none !important;
  opacity: 1;
  transform: scale(1.05);
}

/* Fix Vestiaire Collective readability with solid dark rendering */
.logo-card img[src*="vestiaire-collective"] {
  filter: brightness(0) !important;
  opacity: 0.95 !important;
  max-height: 22px;
}

.logo-card:hover img[src*="vestiaire-collective"] {
  filter: brightness(0) !important;
  opacity: 1 !important;
}

/* Instant Custom Brand Hover Tooltip */
.logo-card::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #070a11;
  color: var(--color-primary);
  border: 1px solid var(--border-cyan);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
  z-index: 100;
}

.logo-card::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  border-width: 6px 6px 0 6px;
  border-style: solid;
  border-color: var(--border-cyan) transparent transparent transparent;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
}

.logo-card:hover::after,
.logo-card:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

@keyframes logoMarqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   FOOTER SOCIAL ICONS
   ========================================================================== */
.social-icon {
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.social-icon:hover {
  color: var(--color-primary);
  border-color: var(--border-cyan);
  background: rgba(0, 240, 255, 0.08);
  transform: translateY(-2px);
}

