/* ═══════════════════════════════════════════════════════════
   IoTFIY Gateway — Signal Forge Theme
   Warm indigo · rose coral · Plus Jakarta (distinct palette)
   ═══════════════════════════════════════════════════════════ */

.gateway-page {
  --gwy-bg: #0a0812;
  --gwy-panel: #12101c;
  --gwy-panel-2: #1a1628;
  --gwy-border: rgba(124, 58, 237, 0.22);
  --gwy-accent: #a78bfa;
  --gwy-accent-dim: #7c3aed;
  --gwy-accent-warm: #fb7185;
  --gwy-accent-mint: #34d399;
  --gwy-cyan: #a78bfa;
  --gwy-cyan-dim: #7c3aed;
  --gwy-amber: #fb923c;
  --gwy-green: #34d399;
  --gwy-red: #f87171;
  --gwy-text: #d4d0e0;
  --gwy-muted: #8b849c;
  --gwy-heading: #ece8f4;
  /* Override global main.css vars so footer & shared components stay dark */
  --background-color: var(--gwy-bg);
  --default-color: var(--gwy-text);
  --heading-color: var(--gwy-heading);
  --surface-color: var(--gwy-panel-2);
  --accent-color: var(--gwy-accent-dim);
  --contrast-color: var(--gwy-heading);
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--gwy-bg);
  color: var(--gwy-text);
}

.gateway-page h1,
.gateway-page h2,
.gateway-page h3,
.gateway-page h4 {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.025em;
}

.gateway-page code,
.gateway-page .gwy-mono {
  font-family: 'Space Grotesk', monospace;
  font-variant-numeric: tabular-nums;
}

.gateway-page .header {
  background: rgba(16, 14, 26, 0.88) !important;
  backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid var(--gwy-border) !important;
}

.gateway-page .header .logo img {
  max-height: 34px;
  filter: brightness(0) invert(1);
}

.gateway-page .header .navmenu > ul > li > a {
  color: rgba(229, 231, 235, 0.88) !important;
}

.gateway-page .header .navmenu > ul > li > a.active,
.gateway-page .header .navmenu > ul > li > a:hover {
  color: var(--gwy-cyan) !important;
}

.gateway-page .header .btn-getstarted {
  background: linear-gradient(135deg, var(--gwy-accent-dim), #db2777) !important;
  border: none !important;
  border-radius: 100px !important;
  font-weight: 600 !important;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35) !important;
}

.gateway-page .main { padding-top: 0; }

/* Side nav */
.gwy-sidenav {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 990;
  flex-direction: column;
  gap: 8px;
  padding: 10px 8px;
  border-radius: 14px;
  background: rgba(11, 18, 32, 0.95);
  border: 1px solid var(--gwy-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.gwy-sidenav a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--gwy-muted);
  text-decoration: none;
  font-size: 1.0625rem;
  transition: all 0.2s;
}

.gwy-sidenav a:hover,
.gwy-sidenav a.active {
  color: var(--gwy-cyan);
  background: rgba(167, 139, 250, 0.12);
}

/* Buttons */
.gwy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

.gwy-btn--primary {
  background: linear-gradient(135deg, var(--gwy-accent-dim), #c026d3);
  color: var(--gwy-heading) !important;
  box-shadow: 0 10px 32px rgba(124, 58, 237, 0.4);
  border-radius: 100px;
}

.gwy-btn--primary:hover {
  transform: translateY(-2px);
  color: var(--gwy-heading) !important;
  box-shadow: 0 14px 40px rgba(192, 38, 211, 0.35);
}

.gwy-btn--outline {
  background: transparent;
  border: 1px solid var(--gwy-border);
  color: var(--gwy-text) !important;
  border-radius: 100px;
}

.gwy-btn--outline:hover {
  border-color: var(--gwy-accent);
  color: var(--gwy-accent) !important;
  background: rgba(167, 139, 250, 0.08);
}

.gwy-btn--ghost {
  background: rgba(124, 58, 237, 0.05);
  border: 1px solid rgba(124, 58, 237, 0.1);
  color: var(--gwy-text) !important;
  border-radius: 100px;
  backdrop-filter: blur(8px);
}

.gwy-btn--ghost:hover {
  border-color: var(--gwy-accent-warm);
  color: var(--gwy-heading) !important;
  background: rgba(251, 113, 133, 0.12);
}

.gwy-section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  position: relative;
}

.gwy-section--panel {
  background: var(--gwy-panel);
  border-top: 1px solid rgba(124, 58, 237, 0.04);
  border-bottom: 1px solid rgba(124, 58, 237, 0.04);
}

.gwy-head {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.gwy-head--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.gwy-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gwy-accent);
  margin-bottom: 0.875rem;
}

.gwy-head h2 {
  font-size: clamp(1.625rem, 3.8vw, 2.5rem);
  color: var(--gwy-heading);
  margin-bottom: 0.875rem;
  line-height: 1.15;
}

.gwy-head h2 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--gwy-accent), var(--gwy-accent-warm));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gwy-head p {
  color: var(--gwy-muted);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
}

/* Hero — Signal Forge */
.gwy-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(88px + env(safe-area-inset-top, 0px)) 0 clamp(3rem, 6vw, 5rem);
  background: var(--gwy-bg);
}

.gwy-hero__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(124, 58, 237, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 50% at 85% 70%, rgba(219, 39, 119, 0.14), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(251, 146, 60, 0.08), transparent 45%),
    var(--gwy-bg);
  pointer-events: none;
}

.gwy-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: gwy-orb-drift 14s ease-in-out infinite;
}

.gwy-hero__orb--1 {
  width: 420px;
  height: 420px;
  background: rgba(124, 58, 237, 0.25);
  top: -80px;
  right: 5%;
}

.gwy-hero__orb--2 {
  width: 320px;
  height: 320px;
  background: rgba(251, 113, 133, 0.15);
  bottom: 10%;
  left: -5%;
  animation-delay: -7s;
}

@keyframes gwy-orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -16px) scale(1.06); }
}

.gwy-hero__layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

.gwy-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gwy-accent);
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.35);
  margin-bottom: 1.25rem;
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.15);
}

.gwy-hero__copy h1 {
  font-size: clamp(2.125rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--gwy-heading);
  line-height: 1.08;
  margin-bottom: 1.25rem;
}

.gwy-hero__gradient {
  display: block;
  background: linear-gradient(135deg, #c4b5fd 0%, #f9a8d4 45%, #fdba74 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gwy-hero__lead {
  font-size: 1.0625rem;
  color: var(--gwy-muted);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 1.75rem;
}

.gwy-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 2rem;
}

.gwy-hero__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.gwy-hero__metric {
  flex: 1;
  min-width: 100px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(124, 58, 237, 0.04);
  border: 1px solid rgba(167, 139, 250, 0.15);
  backdrop-filter: blur(12px);
}

.gwy-hero__metric-val {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--gwy-heading);
  line-height: 1.2;
}

.gwy-hero__metric-lbl {
  display: block;
  font-size: 0.6875rem;
  color: var(--gwy-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.gwy-hero__stage {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gwy-hero__ring {
  position: absolute;
  width: 88%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px dashed rgba(167, 139, 250, 0.25);
  animation: gwy-ring-spin 40s linear infinite;
}

.gwy-hero__ring--2 {
  width: 96%;
  border-color: rgba(251, 113, 133, 0.15);
  animation-direction: reverse;
  animation-duration: 55s;
}

@keyframes gwy-ring-spin {
  to { transform: rotate(360deg); }
}

.gwy-hero__dashboard {
  position: relative;
  z-index: 2;
  width: 88%;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(24, 21, 42, 0.9);
  border: 1px solid rgba(167, 139, 250, 0.3);
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow:
    0 0 0 1px rgba(124, 58, 237, 0.04) inset,
    0 32px 80px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(124, 58, 237, 0.2);
}
a.gwy-hero__dashboard:hover {
  border-color: rgba(167, 139, 250, 0.55);
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px rgba(124, 58, 237, 0.08) inset,
    0 40px 90px rgba(0, 0, 0, 0.6),
    0 0 70px rgba(124, 58, 237, 0.28);
}

.gwy-hero__dash-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(124, 58, 237, 0.06);
}

.gwy-hero__dash-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.gwy-hero__dash-bar span:nth-child(1) { background: #f87171; }
.gwy-hero__dash-bar span:nth-child(2) { background: #fbbf24; }
.gwy-hero__dash-bar span:nth-child(3) { background: #34d399; }

.gwy-hero__dash-bar em {
  margin-left: auto;
  font-style: normal;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--gwy-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gwy-hero__dashboard video,
.gwy-hero__dashboard img {
  width: 100%;
  display: block;
  aspect-ratio: 16/10;
  object-fit: contain;
  background: #000;
}

.gwy-hero__float {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 14px;
  backdrop-filter: blur(16px);
  font-size: 0.6875rem;
  animation: gwy-float-bob 4s ease-in-out infinite;
}

.gwy-hero__float i {
  font-size: 1.125rem;
  margin-bottom: 2px;
}

.gwy-hero__float strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8125rem;
  color: var(--gwy-heading);
}

.gwy-hero__float small {
  color: var(--gwy-muted);
  font-size: 0.625rem;
}

.gwy-hero__float--in {
  top: 8%;
  left: -4%;
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(167, 139, 250, 0.4);
  color: var(--gwy-accent);
}

.gwy-hero__float--out {
  bottom: 12%;
  right: -4%;
  background: rgba(251, 113, 133, 0.15);
  border: 1px solid rgba(251, 113, 133, 0.35);
  color: var(--gwy-accent-warm);
  animation-delay: -2s;
}

@keyframes gwy-float-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.gwy-hero__thumb {
  position: absolute;
  z-index: 4;
  margin: 0;
  padding: 6px;
  border-radius: 14px;
  background: rgba(24, 21, 42, 0.95);
  border: 1px solid rgba(167, 139, 250, 0.25);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.gwy-hero__thumb img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

.gwy-hero__thumb figcaption {
  text-align: center;
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gwy-muted);
  margin-top: 4px;
}

.gwy-hero__thumb--hw {
  width: 88px;
  bottom: -12px;
  left: 8%;
}

.gwy-hero__thumb--mob {
  width: 72px;
  top: 6%;
  right: 0;
}

.gwy-hero__thumb--mob figcaption {
  color: var(--gwy-accent-warm);
}

/* Video Hub */
.gwy-vhub {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(124, 58, 237, 0.1), transparent),
    var(--gwy-panel);
  border-top: 1px solid rgba(124, 58, 237, 0.04);
  border-bottom: 1px solid rgba(124, 58, 237, 0.04);
}

.gwy-vhub__stage {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gwy-vhub__player-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--gwy-border);
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.06), 0 24px 64px rgba(0, 0, 0, 0.45);
}

.gwy-vhub__player-wrap video {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  background: #000;
}

.gwy-vhub__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 7, 18, 0.5);
  border: none;
  cursor: pointer;
  color: var(--gwy-heading);
  font-size: 3.5rem;
  transition: opacity 0.2s;
}

.gwy-vhub__play.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.gwy-vhub__now {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 1.25rem 1rem;
  background: linear-gradient(transparent, rgba(3, 7, 18, 0.92));
  pointer-events: none;
}

.gwy-vhub__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gwy-cyan);
}

.gwy-vhub__live i {
  font-size: 0.5rem;
  animation: gwy-blink 1.4s infinite;
}

.gwy-vhub__now strong {
  display: block;
  font-size: 1rem;
  color: var(--gwy-heading);
  margin-top: 4px;
}

.gwy-vhub__picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gwy-vpick {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(124, 58, 237, 0.08);
  background: var(--gwy-panel-2);
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}

.gwy-vpick:hover {
  border-color: rgba(167, 139, 250, 0.3);
  transform: translateY(-2px);
}

.gwy-vpick.active {
  border-color: var(--gwy-cyan);
  background: rgba(124, 58, 237, 0.1);
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.12);
}

.gwy-vpick__thumb {
  position: relative;
  flex-shrink: 0;
  width: 88px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
}

.gwy-vpick__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gwy-vpick__icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 7, 18, 0.45);
  color: var(--gwy-heading);
  font-size: 1.125rem;
  opacity: 0;
  transition: opacity 0.2s;
}

.gwy-vpick:hover .gwy-vpick__icon,
.gwy-vpick.active .gwy-vpick__icon {
  opacity: 1;
}

.gwy-vpick__body strong {
  display: block;
  font-size: 0.875rem;
  color: var(--gwy-heading);
}

.gwy-vpick__body small {
  font-size: 0.6875rem;
  color: var(--gwy-muted);
}

/* Pipeline */
.gwy-pipeline {
  padding: 2rem 0;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.08), rgba(251, 113, 133, 0.06), rgba(124, 58, 237, 0.08));
  border-top: 1px solid var(--gwy-border);
  border-bottom: 1px solid var(--gwy-border);
  overflow: hidden;
}

.gwy-pipeline__track {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}

.gwy-pipeline__node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  text-align: center;
}

.gwy-pipeline__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: var(--gwy-panel-2);
  border: 1px solid var(--gwy-border);
  color: var(--gwy-cyan);
  transition: box-shadow 0.3s;
}

.gwy-pipeline__node.is-active .gwy-pipeline__icon {
  box-shadow: 0 0 24px rgba(167, 139, 250, 0.4);
  border-color: var(--gwy-cyan);
}

.gwy-pipeline__node strong {
  font-size: 0.8125rem;
  color: var(--gwy-heading);
}

.gwy-pipeline__node small {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.625rem;
  color: var(--gwy-muted);
}

.gwy-pipeline__arrow {
  color: var(--gwy-accent-warm);
  font-size: 1.25rem;
  opacity: 0.6;
  animation: gwy-pulse-arrow 2s infinite;
}

@keyframes gwy-pulse-arrow {
  0%, 100% { opacity: 0.4; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(4px); }
}

/* Widget Lab — star section */
.gwy-lab {
  background:
    radial-gradient(ellipse 50% 40% at 50% 0%, rgba(124, 58, 237, 0.08), transparent),
    var(--gwy-bg);
}

.gwy-lab__shell {
  border-radius: 16px;
  border: 1px solid var(--gwy-border);
  background: var(--gwy-panel);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.gwy-lab__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 18px;
  background: var(--gwy-panel);
  border-bottom: 1px solid rgba(124, 58, 237, 0.06);
}

.gwy-lab__topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gwy-lab__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.6875rem;
  color: var(--gwy-green);
}

.gwy-lab__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gwy-green);
  animation: gwy-blink 1.5s infinite;
}

@keyframes gwy-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.gwy-lab__pin {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.6875rem;
  color: var(--gwy-accent-warm);
  padding: 4px 10px;
  background: rgba(251, 191, 36, 0.1);
  border-radius: 6px;
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.gwy-lab__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 480px;
}

.gwy-lab__col {
  padding: 1.25rem;
}

.gwy-lab__col--in {
  border-right: 1px solid rgba(124, 58, 237, 0.05);
  background: rgba(124, 58, 237, 0.03);
}

.gwy-lab__col--out {
  border-left: 1px solid rgba(124, 58, 237, 0.05);
  background: rgba(251, 113, 133, 0.04);
}

.gwy-lab__col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(124, 58, 237, 0.06);
}

.gwy-lab__col--in .gwy-lab__col-title { color: var(--gwy-cyan); }
.gwy-lab__col--out .gwy-lab__col-title { color: var(--gwy-amber); }

.gwy-lab__bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 1rem 0.75rem;
  background: #0a0f1a;
  min-width: 100px;
}

.gwy-lab__bridge-node {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(192, 38, 211, 0.2));
  border: 1px solid var(--gwy-border);
  color: var(--gwy-cyan);
  animation: gwy-gateway-pulse 2s infinite;
}

@keyframes gwy-gateway-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.3); }
  50% { box-shadow: 0 0 20px 4px rgba(167, 139, 250, 0.15); }
}

.gwy-lab__bridge-line {
  width: 2px;
  flex: 1;
  min-height: 40px;
  background: linear-gradient(var(--gwy-accent), var(--gwy-accent-warm));
  opacity: 0.5;
}

.gwy-lab__bridge small {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.5625rem;
  color: var(--gwy-muted);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.1em;
}

/* Widget controls */
.gwy-wgt {
  background: var(--gwy-panel-2);
  border: 1px solid rgba(124, 58, 237, 0.06);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}

.gwy-wgt__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gwy-heading);
  margin-bottom: 10px;
}

.gwy-wgt__label code {
  font-size: 0.625rem;
  color: var(--gwy-accent-warm);
}

.gwy-wgt__val {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.875rem;
  color: var(--gwy-cyan);
  font-weight: 600;
}

.gwy-slider {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--gwy-panel-2);
  border-radius: 100px;
  outline: none;
}

.gwy-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gwy-cyan);
  cursor: pointer;
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.5);
}

.gwy-switch {
  position: relative;
  width: 48px;
  height: 26px;
}

.gwy-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.gwy-switch label {
  position: absolute;
  inset: 0;
  background: #2a2440;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.2s;
}

.gwy-switch label::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: #c4b5fd;
  border-radius: 50%;
  transition: transform 0.2s;
}

.gwy-switch input:checked + label {
  background: var(--gwy-green);
}

.gwy-switch input:checked + label::after {
  transform: translateX(22px);
}

.gwy-counter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gwy-counter button {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--gwy-border);
  background: rgba(167, 139, 250, 0.08);
  color: var(--gwy-cyan);
  font-size: 1.125rem;
  cursor: pointer;
  transition: background 0.2s;
}

.gwy-counter button:hover {
  background: rgba(167, 139, 250, 0.18);
}

.gwy-counter span {
  flex: 1;
  text-align: center;
  font-family: 'Space Grotesk', monospace;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gwy-heading);
}

.gwy-number-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--gwy-border);
  background: var(--gwy-panel);
  color: var(--gwy-heading);
  font-family: 'Space Grotesk', monospace;
  font-size: 0.9375rem;
}

.gwy-number-input:focus {
  outline: none;
  border-color: var(--gwy-cyan);
}

.gwy-color-input {
  width: 100%;
  height: 40px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: transparent;
}

/* Output widgets */
.gwy-gauge {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 8px;
}

.gwy-gauge svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.gwy-gauge__bg {
  fill: none;
  stroke: var(--gwy-panel-2);
  stroke-width: 10;
}

.gwy-gauge__fill {
  fill: none;
  stroke: var(--gwy-cyan);
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.4s ease, stroke 0.3s;
}

.gwy-gauge__val {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', monospace;
}

.gwy-gauge__val strong {
  font-size: 1.375rem;
  color: var(--gwy-heading);
}

.gwy-gauge__val small {
  font-size: 0.625rem;
  color: var(--gwy-muted);
}

.gwy-battery {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gwy-battery__icon {
  position: relative;
  width: 48px;
  height: 24px;
  border: 2px solid #4a4460;
  border-radius: 4px;
  padding: 2px;
}

.gwy-battery__icon::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 10px;
  background: #4a4460;
  border-radius: 0 2px 2px 0;
}

.gwy-battery__fill {
  height: 100%;
  border-radius: 2px;
  background: var(--gwy-green);
  transition: width 0.4s, background 0.3s;
}

.gwy-fuel {
  height: 12px;
  background: var(--gwy-panel-2);
  border-radius: 100px;
  overflow: hidden;
}

.gwy-fuel__fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--gwy-cyan), var(--gwy-amber));
  transition: width 0.4s;
}

.gwy-params {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.gwy-param {
  text-align: center;
  padding: 10px 6px;
  background: var(--gwy-panel);
  border-radius: 8px;
  border: 1px solid rgba(124, 58, 237, 0.05);
}

.gwy-param strong {
  display: block;
  font-family: 'Space Grotesk', monospace;
  font-size: 1rem;
  color: var(--gwy-cyan);
}

.gwy-param small {
  font-size: 0.625rem;
  color: var(--gwy-muted);
  text-transform: uppercase;
}

.gwy-timer {
  font-family: 'Space Grotesk', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gwy-accent-warm);
  text-align: center;
  letter-spacing: 0.05em;
}

/* Widget library tabs */
.gwy-widgets__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.75rem;
}

.gwy-widgets__tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid rgba(124, 58, 237, 0.08);
  background: var(--gwy-panel-2);
  color: var(--gwy-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.gwy-widgets__tab.active {
  color: var(--gwy-heading);
  border-color: var(--gwy-cyan);
  background: rgba(124, 58, 237, 0.12);
}

.gwy-widgets__panel {
  display: none;
}

.gwy-widgets__panel.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.gwy-widgets__list {
  display: grid;
  gap: 10px;
}

.gwy-widgets__item {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  background: var(--gwy-panel-2);
  border: 1px solid rgba(124, 58, 237, 0.05);
  border-radius: 10px;
  transition: border-color 0.2s;
}

.gwy-widgets__item:hover {
  border-color: var(--gwy-border);
}

.gwy-widgets__item-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
}

.gwy-widgets__item h4 {
  font-size: 0.875rem;
  color: var(--gwy-heading);
  margin: 0 0 4px;
}

.gwy-widgets__item p {
  font-size: 0.75rem;
  color: var(--gwy-muted);
  margin: 0;
  line-height: 1.5;
}

.gwy-widgets__visual img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--gwy-border);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

/* Dashboard showcase */
.gwy-dash-showcase {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: center;
}

.gwy-dash-feats {
  display: grid;
  gap: 12px;
}

.gwy-dash-feat {
  display: flex;
  gap: 14px;
  padding: 1rem;
  background: var(--gwy-panel-2);
  border: 1px solid rgba(124, 58, 237, 0.05);
  border-radius: 12px;
}

.gwy-dash-feat i {
  font-size: 1.25rem;
  color: var(--gwy-cyan);
}

.gwy-dash-feat h4 {
  font-size: 0.9375rem;
  color: var(--gwy-heading);
  margin: 0 0 4px;
}

.gwy-dash-feat p {
  font-size: 0.8125rem;
  color: var(--gwy-muted);
  margin: 0;
}

.gwy-dash-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--gwy-border);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.gwy-dash-frame img {
  width: 100%;
  display: block;
}

.gwy-dash-screens {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr;
  gap: 14px;
  align-items: start;
}

.gwy-dash-screen {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--gwy-border);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  background: var(--gwy-panel-2);
}

.gwy-dash-screen img {
  width: 100%;
  display: block;
}

.gwy-dash-screen--mobile {
  margin-top: 2rem;
}

.gwy-dash-screen figcaption {
  padding: 8px 12px;
  font-size: 0.625rem;
  color: var(--gwy-cyan);
  text-align: center;
  border-top: 1px solid rgba(124, 58, 237, 0.06);
}

.gwy-dash-wide {
  margin-top: 2rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--gwy-border);
}

.gwy-dash-wide img {
  width: 100%;
  display: block;
}

/* Hardware gallery */
.gwy-hw-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--gwy-panel-2);
  border: 1px solid var(--gwy-border);
  border-radius: 16px;
}

.gwy-hw-feature__visual img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.gwy-hw-feature__body h3 {
  font-size: 1.25rem;
  color: var(--gwy-heading);
  margin-bottom: 0.75rem;
}

.gwy-hw-feature__body p {
  color: var(--gwy-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.gwy-hw-feature__body ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gwy-hw-feature__body li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: #cbd5e1;
  margin-bottom: 0.5rem;
}

.gwy-hw-feature__body li i {
  color: var(--gwy-cyan);
}

.gwy-hw-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gwy-hw-gallery__item {
  position: relative;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(124, 58, 237, 0.06);
  aspect-ratio: 4/3;
}

.gwy-hw-gallery__item--wide {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

.gwy-hw-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.gwy-hw-gallery__item:hover img {
  transform: scale(1.05);
}

.gwy-hw-gallery__item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 0.75rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--gwy-heading);
  background: linear-gradient(transparent, rgba(3, 7, 18, 0.9));
}

/* Solar spotlight */
.gwy-solar {
  background:
    radial-gradient(ellipse 50% 60% at 100% 50%, rgba(251, 191, 36, 0.08), transparent),
    var(--gwy-bg);
}

.gwy-solar__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.gwy-solar__visual {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.2);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.gwy-solar__visual img {
  width: 100%;
  display: block;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.gwy-solar__play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 7, 18, 0.35);
  border: none;
  cursor: pointer;
  color: var(--gwy-heading);
  font-size: 3rem;
  transition: background 0.2s;
}

.gwy-solar__play-btn:hover {
  background: rgba(3, 7, 18, 0.55);
}

.gwy-solar__body h2 {
  font-size: clamp(1.375rem, 3vw, 2rem);
  color: var(--gwy-heading);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.gwy-solar__body h2 em {
  font-style: normal;
  color: var(--gwy-accent-warm);
}

.gwy-solar__body p {
  color: var(--gwy-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.gwy-solar__list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.gwy-solar__list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: #cbd5e1;
  margin-bottom: 0.5rem;
}

.gwy-solar__list li i {
  color: var(--gwy-accent-warm);
}

/* Hardware stack */
.gwy-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gwy-stack__card {
  background: var(--gwy-panel-2);
  border: 1px solid rgba(124, 58, 237, 0.06);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
}

.gwy-stack__card:hover {
  transform: translateY(-4px);
  border-color: var(--gwy-border);
}

.gwy-stack__card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}

.gwy-stack__card--device img {
  object-fit: contain;
  padding: 16px;
  background: #0a0f1a;
}

.gwy-stack__body {
  padding: 1.25rem;
}

.gwy-stack__body h3 {
  font-size: 1rem;
  color: var(--gwy-heading);
  margin-bottom: 0.5rem;
}

.gwy-stack__body p {
  font-size: 0.8125rem;
  color: var(--gwy-muted);
  margin: 0;
  line-height: 1.55;
}

/* Organization tree */
.gwy-org-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 2rem;
  background: var(--gwy-panel-2);
  border-radius: 16px;
  border: 1px solid var(--gwy-border);
}

.gwy-org-tree__root,
.gwy-org-tree__node {
  padding: 12px 24px;
  border-radius: 10px;
  border: 1px solid var(--gwy-border);
  background: rgba(124, 58, 237, 0.08);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gwy-heading);
  text-align: center;
}

.gwy-org-tree__root {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(192, 38, 211, 0.15));
  border-color: var(--gwy-cyan);
}

.gwy-org-tree__connector {
  width: 2px;
  height: 24px;
  background: var(--gwy-border);
}

.gwy-org-tree__row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.gwy-org-tree__node small {
  display: block;
  font-size: 0.625rem;
  color: var(--gwy-muted);
  font-weight: 400;
  margin-top: 4px;
}

.gwy-org-visual {
  margin-top: 2rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--gwy-border);
}

.gwy-org-visual img {
  width: 100%;
  display: block;
}

/* Why choose */
.gwy-why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.gwy-why-list {
  display: grid;
  gap: 14px;
}

.gwy-why-item {
  display: flex;
  gap: 14px;
  padding: 1rem 1.125rem;
  background: var(--gwy-panel-2);
  border: 1px solid rgba(124, 58, 237, 0.05);
  border-radius: 12px;
}

.gwy-why-item i {
  font-size: 1.25rem;
  color: var(--gwy-cyan);
  flex-shrink: 0;
}

.gwy-why-item h4 {
  font-size: 0.9375rem;
  color: var(--gwy-heading);
  margin: 0 0 4px;
}

.gwy-why-item p {
  font-size: 0.8125rem;
  color: var(--gwy-muted);
  margin: 0;
}

.gwy-why-visual img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--gwy-border);
}

/* Use cases */
.gwy-cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gwy-case {
  padding: 1.375rem;
  background: var(--gwy-panel-2);
  border: 1px solid rgba(124, 58, 237, 0.05);
  border-radius: 14px;
  transition: border-color 0.25s;
}

.gwy-case:hover {
  border-color: var(--gwy-border);
}

.gwy-case__num {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.6875rem;
  color: var(--gwy-cyan);
  margin-bottom: 0.75rem;
}

.gwy-case h3 {
  font-size: 0.9375rem;
  color: var(--gwy-heading);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.gwy-case p {
  font-size: 0.8125rem;
  color: var(--gwy-muted);
  margin: 0;
  line-height: 1.55;
}

/* Use cases — legacy theater removed */
.gwy-theater {
  display: none;
}

/* Use cases */
.gwy-cta {
  text-align: center;
  padding: clamp(3rem, 8vw, 5rem) 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(124, 58, 237, 0.15), transparent),
    var(--gwy-bg);
  border-top: 1px solid var(--gwy-border);
}

.gwy-cta h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--gwy-heading);
  margin-bottom: 1rem;
}

.gwy-cta p {
  color: var(--gwy-muted);
  max-width: 560px;
  margin: 0 auto 1.5rem;
}

.gwy-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Mobile dock & nav */
.gwy-mobile-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  display: none;
  justify-content: space-around;
  background: rgba(11, 18, 32, 0.98);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--gwy-border);
  padding: 10px 6px calc(10px + env(safe-area-inset-bottom, 0px));
}

.gwy-mobile-dock a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 0.5625rem;
  font-weight: 600;
  color: var(--gwy-muted);
  text-decoration: none;
  padding: 6px 8px;
  min-width: 52px;
}

.gwy-mobile-dock a.active,
.gwy-mobile-dock a:hover {
  color: var(--gwy-cyan);
}

.gateway-page .header .mobile-nav-toggle {
  display: none !important;
}

.gateway-page .scroll-top {
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

.gateway-page .mobile-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(16, 14, 26, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gwy-border);
  padding: calc(8px + env(safe-area-inset-top, 0px)) 16px 10px;
}

.gateway-page .mobile-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gateway-page .mobile-logo img {
  max-height: 32px;
  filter: brightness(0) invert(1);
}

.gateway-page .mobile-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gateway-page .mobile-nav-cta {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--gwy-accent-dim), #db2777);
  color: var(--gwy-heading) !important;
  text-decoration: none;
}

.gateway-page .mobile-menu-toggle {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: 10px;
  background: rgba(124, 58, 237, 0.15);
  color: var(--gwy-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.gateway-page .mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10040;
  background: rgba(3, 7, 18, 0.6);
  opacity: 0;
  visibility: hidden;
  border: none;
  cursor: pointer;
}

.gateway-page.mobile-menu-open .mobile-menu-backdrop {
  opacity: 1;
  visibility: visible;
}

.gateway-page .mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(300px, 86vw);
  height: 100dvh;
  background: var(--gwy-panel);
  border-left: 1px solid var(--gwy-border);
  z-index: 10045;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
}

.gateway-page .mobile-menu.active {
  transform: translateX(0);
}

.gateway-page .mobile-menu-header {
  padding: calc(56px + env(safe-area-inset-top, 0px) + 8px) 20px 16px;
  border-bottom: 1px solid rgba(124, 58, 237, 0.06);
}

.gateway-page .mobile-menu-header span {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gwy-heading);
  display: block;
}

.gateway-page .mobile-menu-header small {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.625rem;
  color: var(--gwy-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gateway-page .mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 12px;
}

.gateway-page .mobile-menu ul li a {
  display: block;
  padding: 13px 14px;
  margin-bottom: 4px;
  border-radius: 10px;
  background: var(--gwy-panel-2);
  border: 1px solid rgba(124, 58, 237, 0.05);
  color: var(--gwy-text);
  text-decoration: none;
  font-size: 0.9375rem;
}

.gateway-page.mobile-menu-open {
  overflow: hidden;
}

@media (max-width: 1199px) {
  .gateway-page #header { display: none !important; }
  .gwy-mobile-dock { display: flex; }
  .gwy-sidenav { display: none !important; }
  .gateway-page .main {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 1200px) {
  .gateway-page .mobile-navbar { display: none !important; }
}

@media (max-width: 991px) {
  .gwy-hero__layout,
  .gwy-lab__grid,
  .gwy-widgets__panel.active,
  .gwy-dash-showcase,
  .gwy-dash-screens,
  .gwy-hw-feature,
  .gwy-hw-gallery,
  .gwy-solar__inner,
  .gwy-why-grid,
  .gwy-stack,
  .gwy-cases,
  .gwy-vhub__picker {
    grid-template-columns: 1fr;
  }

  .gwy-hw-gallery__item--wide {
    grid-column: span 1;
  }

  .gwy-hero__thumb--mob {
    right: 0;
    width: 64px;
  }

  .gwy-hero__float--in { left: 0; }
  .gwy-hero__float--out { right: 0; }

  .gwy-lab__bridge {
    flex-direction: row;
    min-width: auto;
    padding: 1rem;
  }

  .gwy-lab__bridge-line {
    width: auto;
    flex: 1;
    height: 2px;
    min-height: auto;
  }

  .gwy-lab__bridge small {
    writing-mode: horizontal-tb;
  }

  .gwy-lab__col--in { border-right: none; border-bottom: 1px solid rgba(124, 58, 237, 0.05); }
  .gwy-lab__col--out { border-left: none; border-top: 1px solid rgba(124, 58, 237, 0.05); }
}

@media (max-width: 767px) {
  .gwy-pipeline__arrow { display: none; }
  .gwy-pipeline__track { gap: 8px; }
  .gwy-cases { grid-template-columns: 1fr; }
  .gwy-params { grid-template-columns: 1fr; }
}

/* ═══ Dark shell — footer, scroll-top, no white theme ═══ */
.gateway-page .footer {
  background: var(--gwy-bg) !important;
  color: var(--gwy-muted) !important;
  border-top: 1px solid var(--gwy-border);
}

.gateway-page .footer .footer-newsletter {
  background: var(--gwy-panel) !important;
  border-color: var(--gwy-border) !important;
}

.gateway-page .footer .footer-newsletter h4,
.gateway-page .footer h4,
.gateway-page .footer .sitename,
.gateway-page .footer .footer-about a {
  color: var(--gwy-heading) !important;
}

.gateway-page .footer .footer-newsletter p,
.gateway-page .footer p,
.gateway-page .footer .footer-contact p {
  color: var(--gwy-muted) !important;
}

.gateway-page .footer .footer-newsletter .newsletter-form {
  background: var(--gwy-panel-2) !important;
  border: 1px solid var(--gwy-border) !important;
  box-shadow: none !important;
}

.gateway-page .footer .footer-newsletter .newsletter-form input[type=email] {
  background: transparent !important;
  color: var(--gwy-text) !important;
}

.gateway-page .footer .footer-newsletter .newsletter-form input[type=email]::placeholder {
  color: var(--gwy-muted);
}

.gateway-page .footer .footer-newsletter .newsletter-form input[type=submit] {
  background: linear-gradient(135deg, var(--gwy-accent-dim), #c026d3) !important;
  color: var(--gwy-heading) !important;
  border-radius: 4px;
}

.gateway-page .footer .footer-links ul a,
.gateway-page .footer .footer-links ul i {
  color: var(--gwy-muted) !important;
}

.gateway-page .footer .footer-links ul a:hover {
  color: var(--gwy-accent) !important;
}

.gateway-page .footer .footer-contact a {
  color: var(--gwy-accent) !important;
}

.gateway-page .footer .social-links a {
  background: var(--gwy-panel-2) !important;
  border: 1px solid var(--gwy-border);
  color: var(--gwy-muted) !important;
}

.gateway-page .footer .social-links a:hover {
  background: rgba(124, 58, 237, 0.2) !important;
  color: var(--gwy-accent) !important;
  border-color: var(--gwy-accent);
}

.gateway-page .footer .copyright {
  border-top: 1px solid var(--gwy-border);
  padding-top: 1.5rem;
}

.gateway-page .footer .copyright p,
.gateway-page .footer .credits {
  color: var(--gwy-muted) !important;
}

.gateway-page .scroll-top {
  background: linear-gradient(135deg, var(--gwy-accent-dim), #9333ea) !important;
  border: 1px solid var(--gwy-border);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
}

.gateway-page .scroll-top i {
  color: var(--gwy-heading) !important;
}

.gateway-page .gwy-section--panel {
  background: var(--gwy-panel);
}

.gateway-page .gwy-number-input {
  background: var(--gwy-panel);
  color: var(--gwy-text);
  border-color: var(--gwy-border);
}

.gateway-page .gwy-number-input:focus {
  border-color: var(--gwy-accent);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.gateway-page .gwy-wgt small,
.gateway-page .gwy-lab__topbar code {
  color: var(--gwy-muted) !important;
}

.gwy-dash-title,
.gwy-why-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--gwy-heading);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.gwy-why-title {
  margin-bottom: 1.5rem;
}

.gwy-dash-lead {
  color: var(--gwy-muted);
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

.gwy-wgt__hint {
  color: var(--gwy-muted);
  font-size: 0.6875rem;
}

.gwy-lab__json {
  font-size: 0.6875rem;
  color: var(--gwy-muted);
}

.gwy-cta__contact {
  font-size: 0.75rem;
  color: var(--gwy-muted);
}

.gwy-cta__contact strong {
  color: var(--gwy-accent);
}

.gwy-cta__contact a {
  color: var(--gwy-muted);
  text-decoration: none;
}

.gwy-cta__contact a:hover {
  color: var(--gwy-accent);
}
