.header-actions {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: var(--z-max);
}

.hidden {
  display: none !important;
}

/* Gateway Layout */
.gateway-container {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  position: relative;
  background: var(--bg);
  flex-direction: row; /* Desktop side by side */
}

/* Wings */
.wing {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 80px 48px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: flex var(--dur-slow) var(--ease-out), filter var(--dur-slow) var(--ease-out);
  color: #FFFFFF;
}

.wing-left {
  --wing-accent: var(--blue);
}

.wing-right {
  --wing-accent: var(--mint);
}

/* Wing Backgrounds with Gradient Scrims */
.wing-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  transition: transform var(--dur-slow) var(--ease-out);
  z-index: 1;
}

.wing-left .wing-bg {
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0.9) 15%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0.1)), url('/assets/container_hero.png');
}

.wing-right .wing-bg {
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0.9) 15%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0.1)), url('/assets/warehouse_hero.png');
}

.wing-content {
  position: relative;
  z-index: 2;
  max-width: 440px;
  transform: translateY(0);
  transition: transform var(--dur-slow) var(--ease-out);
}

.wing-content .caption {
  color: var(--wing-accent);
  margin-bottom: 12px;
  display: block;
}

.wing-content h2 {
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.05;
  color: #FFFFFF;
}

.wing-content p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 28px;
  font-size: 15px;
}

.wing-btn {
  --accent: var(--wing-accent);
  color: var(--wing-accent);
  border: 1px solid color-mix(in oklab, var(--wing-accent) 40%, transparent);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Hover States (only on desktop/hover supported devices) */
@media (hover: hover) {
  .gateway-container:hover .wing {
    flex: 0.85;
    filter: brightness(0.65) saturate(80%);
  }

  .gateway-container .wing:hover {
    flex: 1.15;
    filter: brightness(1) saturate(100%);
  }

  .gateway-container .wing:hover .wing-bg {
    transform: scale(1.03);
  }

  .gateway-container .wing:hover .wing-content {
    transform: translateY(-4px);
  }

  .gateway-container .wing:hover .wing-btn {
    background: var(--wing-accent);
    color: #FFFFFF;
    box-shadow: 0 0 15px color-mix(in oklab, var(--wing-accent) 40%, transparent);
    border-color: transparent;
  }
}

/* Center Brand Badge */
.brand-badge-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: none;
}

.brand-badge {
  padding: 24px 44px;
  border-radius: var(--r-lg);
  text-align: center;
  border: 1px solid var(--glass-rim);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  box-shadow: var(--shadow-xl);
}

/* Override colors for center badge based on active theme */
[data-theme="dark"] .brand-badge {
  background: rgba(28, 28, 30, 0.85);
}
:root:not([data-theme="dark"]) .brand-badge {
  background: rgba(255, 255, 255, 0.9);
}

.brand-badge h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.15em;
  margin-bottom: 4px;
}

.brand-badge .badge-sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--label-secondary);
}

/* Mobile responsive layout overrides */
@media (max-width: 768px) {
  .gateway-container {
    flex-direction: column; /* Stacked vertically on mobile */
  }

  .wing {
    height: 50vh; /* Takes exactly half of screen height */
    padding: 40px 24px;
    justify-content: center;
  }

  .wing-content {
    max-width: 100%;
    margin-top: auto;
  }

  .wing-content p {
    margin-bottom: 16px;
    font-size: 14px;
  }

  .wing-btn {
    height: 38px;
    padding: 0 16px;
    font-size: 13px;
  }

  .brand-badge-wrapper {
    top: 50%;
    left: 50%;
  }

  .brand-badge {
    padding: 12px 24px;
  }

  .brand-badge h1 {
    font-size: 18px;
    letter-spacing: 0.1em;
  }

  .brand-badge .badge-sub {
    font-size: 9px;
    letter-spacing: 0.2em;
  }
}
