/* Selah interactive hero — device frames + chat UI */
.home-page .hero-section.hero-section-selah {
  flex-direction: column !important;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 24px 16px 32px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  margin: 8px 0 0;
  overflow-x: clip;
  box-sizing: border-box;
  background: transparent !important;
  border: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

.hero-device-showcase {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex: 0 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: min(52vh, 520px);
}

.hero-project-orbit {
  width: 100%;
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
}

@media (min-width: 1024px) {
  .home-page .hero-section.hero-section-selah {
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    gap: clamp(24px, 4vw, 56px);
    padding: 28px clamp(20px, 4vw, 48px) 40px;
  }

  .hero-device-showcase {
    flex: 1 1 52%;
    max-width: min(58vw, 720px);
    min-height: min(46vh, 500px);
  }

  .hero-project-orbit {
    flex: 0 0 auto;
    width: min(44vw, 500px);
    margin-top: 0;
    padding-bottom: 0;
  }

  .hero-project-orbit .project-orbit {
    width: min(44vw, 480px);
    height: min(44vw, 480px);
  }

  .hero-project-orbit .project-orbit-node {
    --orbit-radius: min(21vw, 198px);
  }
}

.hero-cta-centered {
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.selah-hero-simulator {
  width: 100%;
  max-width: 820px;
}

.selah-hero-simulator[data-platform="tablet"] {
  max-width: min(100%, 740px);
}

.selah-hero-simulator[data-platform="desktop"] {
  max-width: min(100%, 880px);
}

.sh-device-stage-inner {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.selah-hero-simulator.sh-platform-switching .sh-device {
  transform: translateY(10px) scale(0.98);
}

/* Device shells — theme-aware lift shadow only */
.sh-device {
  margin: 0 auto;
  background: #141418;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

[data-theme="dark"] .sh-device {
  background: #141418;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .sh-device {
  background: #f4f4f6;
  box-shadow: 0 28px 56px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.sh-device-mobile {
  width: min(100%, 280px);
  border-radius: 32px;
  padding: 10px;
}

.sh-device-tablet {
  width: min(100%, 620px);
  border-radius: 22px;
  padding: 12px;
}

.sh-device-desktop {
  width: min(100%, 680px);
  border-radius: 16px;
  padding: 10px;
  overflow: hidden;
  background: #18181c;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.07),
    0 12px 28px rgba(0, 0, 0, 0.35),
    0 24px 48px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .sh-device-desktop {
  background: #e8e8ed;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.1),
    0 12px 28px rgba(15, 23, 42, 0.12),
    0 24px 48px rgba(15, 23, 42, 0.08);
}

[data-theme="dark"] .sh-device.sh-device-desktop {
  background: #18181c;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.07),
    0 12px 28px rgba(0, 0, 0, 0.35),
    0 24px 48px rgba(0, 0, 0, 0.4);
}

.sh-device.sh-device-desktop .sh-desk-app {
  border-radius: 0 0 8px 8px;
}

/* Real screenshot device frames (no fake UI chrome — shots include OS chrome) */
.sh-device-native {
  background: #0d0d0f;
}

.sh-device-native.sh-device-mobile {
  width: min(100%, 290px);
  padding: 10px 8px 14px;
  border-radius: 38px;
  background: linear-gradient(145deg, #2a2a2e 0%, #0f0f12 55%, #1c1c20 100%);
}

.sh-device-native.sh-device-tablet {
  width: min(100%, 720px);
  padding: 14px;
  border-radius: 26px;
  background: linear-gradient(145deg, #2a2a2e 0%, #121214 50%, #1a1a1d 100%);
}

.sh-device-native.sh-device-desktop {
  width: min(100%, 860px);
  padding: 0;
  background: transparent;
  box-shadow: 0 36px 72px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.07);
  border-radius: 14px;
}

.sh-native-screen {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #000;
}

.sh-device-native.sh-device-mobile .sh-native-screen {
  aspect-ratio: 9 / 19.2;
  border-radius: 30px;
}

.sh-device-native.sh-device-tablet .sh-native-screen {
  aspect-ratio: 4 / 3;
  border-radius: 16px;
}

.sh-device-native.sh-device-desktop .sh-native-screen {
  aspect-ratio: 16 / 10;
  border-radius: 14px;
}

.sh-native-shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  user-select: none;
  pointer-events: none;
}

.sh-device-native.sh-device-tablet .sh-native-shot {
  object-position: center center;
}

.sh-hotspot {
  position: absolute;
  left: var(--hx, 50%);
  top: var(--hy, 50%);
  width: var(--hw, 12%);
  height: var(--hh, 8%);
  transform: translate(-50%, -50%);
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 4;
}

.sh-hotspot.sh-mock-click {
  outline: 2px solid rgba(59, 130, 246, 0.55);
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.12);
}

.sh-live-composer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  padding: 0 3.5% 4.5%;
  pointer-events: none;
}

.sh-device-native.sh-device-tablet .sh-live-composer {
  padding: 0 2.5% 3.2%;
}

.sh-live-composer-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(28, 28, 30, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.sh-live-composer-plus {
  color: #8e8e93;
  font-size: 14px;
  width: 24px;
  text-align: center;
}

.sh-live-composer .sh-composer-input {
  flex: 1;
  border: none;
  background: transparent;
  color: #f2f2f7;
  font-size: 11px;
  min-width: 0;
  pointer-events: none;
}

.sh-live-composer .sh-composer-input::placeholder {
  color: #636366;
}

.sh-live-composer .sh-send-btn {
  flex-shrink: 0;
  pointer-events: none;
}

.sh-mock-pointer {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: rgba(59, 130, 246, 0.35);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.45);
  pointer-events: none;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s ease, left 0.35s ease, top 0.35s ease;
  z-index: 20;
}

.sh-mock-pointer.is-visible {
  opacity: 1;
  transform: scale(1);
}

.sh-mock-pointer.is-tap {
  animation: shPointerTap 0.32s ease;
}

@keyframes shPointerTap {
  50% {
    transform: scale(0.75);
  }
}

.sh-thread.sh-mock-click,
.sh-contact-row.sh-mock-click {
  animation: shRowPress 0.32s ease;
}

@keyframes shRowPress {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(0.97);
    background: rgba(59, 130, 246, 0.28);
  }
  100% {
    transform: scale(1);
  }
}

.sh-send-btn.sh-send-pulse,
.sh-send-btn.sh-mock-click {
  animation: shSendPulse 0.35s ease;
}

@keyframes shSendPulse {
  50% {
    transform: scale(1.12);
  }
}

.sh-bubble-fresh {
  animation: shBubbleIn 0.4s ease;
}

.sh-device-desktop .sh-device-chrome {
  border-radius: 10px 10px 0 0;
  padding: 8px 10px 6px;
  background: #222226;
}

.sh-device-desktop .sh-device-screen {
  border-radius: 0 0 10px 10px;
  min-height: 360px;
  background: #050506;
}

.sh-monitor-stand {
  width: 120px;
  height: 28px;
  margin: 0 auto;
  background: linear-gradient(#444, #222);
  border-radius: 0 0 8px 8px;
  clip-path: polygon(15% 0, 85% 0, 100% 100%, 0 100%);
}

.sh-notch {
  width: 90px;
  height: 22px;
  background: #000;
  border-radius: 0 0 14px 14px;
  margin: 0 auto 4px;
}

.sh-window-dots {
  display: flex;
  gap: 6px;
  padding: 4px 8px 0;
}

.sh-window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #555;
}

.sh-window-dots span:nth-child(1) {
  background: #ff5f57;
}
.sh-window-dots span:nth-child(2) {
  background: #febc2e;
}
.sh-window-dots span:nth-child(3) {
  background: #28c840;
}

.sh-status-bar {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  padding: 4px 12px 6px;
  opacity: 0.85;
}

.sh-status-icons {
  display: flex;
  gap: 6px;
}

.sh-device-screen {
  background: #0c0c0f;
  border-radius: 18px;
  overflow: hidden;
  min-height: 340px;
  color: #f2f2f7;
  font-size: 12px;
}

.sh-device-mobile .sh-device-screen {
  min-height: 480px;
  border-radius: 24px;
}

.sh-device-tablet .sh-device-screen {
  min-height: 380px;
}

/* Split layout */
.sh-split {
  display: flex;
  min-height: 340px;
}

.sh-sidebar {
  width: 38%;
  max-width: 200px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  background: #101014;
}

.sh-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 10px;
  font-weight: 600;
  font-size: 13px;
}

.sh-dots {
  opacity: 0.6;
  font-size: 16px;
}

.sh-sidebar-hint {
  padding: 0 10px 8px;
  font-size: 10px;
  opacity: 0.55;
  margin: 0;
}

.sh-thread-list {
  overflow: auto;
  flex: 1;
}

.sh-thread,
.sh-contact-row {
  width: 100%;
  border: none;
  background: transparent;
  color: inherit;
  text-align: left;
  display: flex;
  gap: 8px;
  padding: 10px;
  cursor: pointer;
  transition: background 0.2s ease;
  font: inherit;
}

.sh-thread:hover,
.sh-contact-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

.sh-thread.is-active,
.sh-contact-row.is-active {
  background: rgba(59, 130, 246, 0.18);
}

.sh-thread-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sh-thread-name {
  font-weight: 600;
  font-size: 12px;
}

.sh-thread-preview {
  font-size: 10px;
  opacity: 0.65;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sh-contact-row strong {
  display: block;
  font-size: 11px;
}

.sh-contact-row small {
  font-size: 9px;
  opacity: 0.6;
}

.sh-chat-pane,
.sh-feed-pane,
.sh-mobile-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #0a0a0d;
}

.sh-thread-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sh-thread-title {
  flex: 1;
  font-weight: 600;
  font-size: 13px;
}

.sh-post-pill {
  font-size: 11px;
  color: #60a5fa;
  font-weight: 600;
}

.sh-messages {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: auto;
}

.sh-bubble {
  max-width: 88%;
  padding: 8px 12px;
  border-radius: 16px;
  line-height: 1.4;
  font-size: 11px;
  animation: shBubbleIn 0.35s ease backwards;
  animation-delay: calc(var(--i, 0) * 0.06s);
}

.sh-bubble-them {
  align-self: flex-start;
  background: #2c2c2e;
}

.sh-bubble-me {
  align-self: flex-end;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
}

@keyframes shBubbleIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sh-typing {
  font-size: 10px;
  opacity: 0.55;
  margin: 4px 0 0;
}

.sh-composer {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sh-composer-input {
  flex: 1;
  border: none;
  border-radius: 20px;
  padding: 8px 12px;
  background: #1c1c1e;
  color: #aaa;
  font-size: 11px;
}

.sh-icon-btn {
  border: none;
  background: transparent;
  color: #aaa;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
}

.sh-send-btn {
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #3b82f6;
  color: #fff;
  cursor: pointer;
}

.sh-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  flex-shrink: 0;
  background: hsl(var(--av-hue, 210), 55%, 42%);
  color: #fff;
}

.sh-avatar-sm {
  width: 36px;
  height: 36px;
  font-size: 11px;
}

.sh-avatar-xs {
  width: 28px;
  height: 28px;
  font-size: 10px;
}

.sh-avatar-everyone {
  background: #3b82f6;
}

.sh-feed-card {
  margin: 10px 12px;
  padding: 12px;
  border-radius: 12px;
  background: #141418;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.sh-feed-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 11px;
}

.sh-feed-card p {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  opacity: 0.9;
}

.sh-desktop-shell {
  display: flex;
  min-height: 340px;
}

.sh-rail {
  width: 44px;
  background: #08080a;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
}

.sh-rail-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.45;
  font-size: 14px;
}

.sh-rail-icon.is-on {
  opacity: 1;
  background: rgba(59, 130, 246, 0.25);
  color: #93c5fd;
}

.sh-split-selah .sh-feed-pane {
  overflow: auto;
}

.sh-bubble-purple,
.sh-bubble-me.sh-bubble-purple {
  background: linear-gradient(135deg, #6d28d9, #9333ea);
  color: #fff;
}

.sh-mobile-shell {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: #000;
}

.sh-mobile-promo {
  padding: 28px 16px 20px;
  text-align: center;
  background: radial-gradient(ellipse 120% 80% at 50% 0%, #dc2626 0%, #7c3aed 45%, #1a0a2e 85%, #000 100%);
}

.sh-mobile-promo p {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  letter-spacing: -0.02em;
}

.sh-tab-row {
  display: flex;
  gap: 12px;
  padding: 0 10px 8px;
  font-size: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sh-tab {
  opacity: 0.55;
  padding-bottom: 6px;
}

.sh-tab.is-on {
  opacity: 1;
  border-bottom: 2px solid #fff;
}

.sh-story-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  font-size: 11px;
  opacity: 0.9;
}

.sh-story-row-feed {
  margin: 8px 12px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.sh-sidebar-chats {
  position: relative;
  padding-bottom: 44px;
}

.sh-dock-home {
  position: absolute;
  left: 12px;
  bottom: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
}

.sh-feed-scroll {
  flex: 1;
  overflow: auto;
}

.sh-feed-actions {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  opacity: 0.45;
  font-size: 12px;
}

.sh-desk-app {
  display: flex;
  min-height: 320px;
  background: #050506;
}

.sh-desk-sidebar {
  width: 148px;
  flex-shrink: 0;
  background: #0a0a0c;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  padding: 10px 8px;
  font-size: 10px;
}

.sh-desk-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 12px;
  padding: 4px 6px;
  color: #e2ebff;
  line-height: 1;
}

.sh-desk-brand i {
  color: #60a5fa;
  width: 18px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sh-desk-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.sh-desk-nav button {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  text-align: left;
  padding: 7px 8px;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
}

.sh-desk-nav button i {
  width: 16px;
  min-width: 16px;
  flex-shrink: 0;
  opacity: 0.85;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
}

.sh-desk-nav-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sh-desk-nav button.is-active {
  background: rgba(59, 130, 246, 0.22);
  color: #fff;
}

.sh-desk-user {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 4px;
  font-size: 8px;
  opacity: 0.85;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sh-desk-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.sh-desk-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
}

.sh-desk-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  opacity: 0.9;
  line-height: 1;
}

.sh-desk-title i {
  opacity: 0.5;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
}

.sh-desk-search {
  flex: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #141416;
  border-radius: 8px;
  padding: 6px 10px;
  opacity: 0.55;
  font-size: 10px;
  line-height: 1;
}

.sh-desk-search i {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

.sh-desk-bell {
  position: relative;
  opacity: 0.8;
}

.sh-desk-bell em {
  position: absolute;
  top: -6px;
  right: -8px;
  font-style: normal;
  font-size: 8px;
  background: #dc2626;
  padding: 1px 4px;
  border-radius: 8px;
}

.sh-desk-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  font-size: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}

.sh-desk-tab {
  opacity: 0.5;
}

.sh-desk-tab.is-on {
  opacity: 1;
  font-weight: 600;
}

.sh-desk-post-btn {
  margin-left: auto;
  border: none;
  background: #2563eb;
  color: #fff;
  font-size: 9px;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.sh-split-desk {
  flex: 1;
  min-height: 200px;
}

.sh-split-tablet .sh-sidebar {
  max-width: 220px;
  width: 42%;
}

.sh-chrome-minimal {
  padding-top: 4px;
}

.sh-device-native {
  display: none;
}

@media (max-width: 900px) {
  .sh-device-tablet {
    width: 100%;
  }
}
