/* ============================================================
   LUCENRI HERO — content overlay on full-screen scene
   ============================================================ */

.cosmic-hero {
  --hero-bg: transparent;
  --hero-surface: rgba(17, 24, 39, 0.72);
  --hero-blue: #3D5A80;
  --hero-gold: #C4A574;
  --hero-gold-light: #D4BC8A;
  --hero-gold-deep: #A88952;
  --hero-text: #f8fafc;
  --hero-muted: #cbd5e1;
  --cosmic-gold-glass: linear-gradient(135deg, rgba(185, 148, 88, 0.54) 0%, rgba(168, 132, 78, 0.42) 48%, rgba(142, 108, 52, 0.46) 100%);
  --cosmic-gold-border: linear-gradient(135deg, #9A7848 0%, #C4A574 50%, #8A7040 100%);
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: calc(100dvh - 48px);
  margin: 0 0 clamp(24px, 4vh, 40px);
  overflow: visible;
  background: transparent;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

[data-theme="light"] .cosmic-hero {
  --hero-surface: rgba(255, 255, 255, 0.36);
  --hero-gold: #9A7028;
  --hero-blue: #3D5A80;
  --hero-text: #0f172a;
  --hero-muted: #475569;
  align-items: stretch;
  align-self: stretch;
  min-height: calc(100dvh - 48px);
  margin-bottom: 0;
}

[data-theme="light"] .auth-hero-panel {
  padding-left: 0;
  padding-top: 0;
  padding-bottom: clamp(20px, 3vh, 36px);
}

.cosmic-hero__layer--content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  flex: 0 1 46%;
  max-width: 46%;
  width: 100%;
  min-height: inherit;
  padding: clamp(32px, 6vh, 64px) clamp(28px, 5vw, 80px) clamp(40px, 6vh, 72px) clamp(28px, 6vw, 96px);
  box-sizing: border-box;
}

html:not([data-theme="light"]) .cosmic-hero {
  align-items: flex-start;
}

html:not([data-theme="light"]) .cosmic-hero__layer--content {
  flex: 0 1 46%;
  max-width: 46%;
  align-items: flex-start;
  align-self: flex-start;
  padding: clamp(16px, 3vh, 40px) clamp(24px, 3.5vw, 64px) clamp(40px, 6vh, 72px) clamp(16px, 2.5vw, 40px);
}

html:not([data-theme="light"]) .cosmic-hero__text-panel {
  width: min(100%, 800px);
  max-width: 800px;
  padding: clamp(26px, 3.2vw, 36px) clamp(24px, 2.8vw, 32px);
  transform: none;
}

@media (min-width: 1241px) {
  html:not([data-theme="light"]) .cosmic-hero__text-panel {
    transform: translate(-40px, -16px);
  }
}

html:not([data-theme="light"]) .cosmic-hero__station {
  font-size: clamp(0.72rem, 1.22vw, 0.82rem);
}

html:not([data-theme="light"]) .cosmic-hero__kicker {
  font-size: clamp(1.16rem, 2.05vw, 1.38rem);
}

html:not([data-theme="light"]) .cosmic-hero__title {
  font-size: clamp(1.56rem, 3.05vw, 2.12rem);
}

html:not([data-theme="light"]) .cosmic-hero__subtitle {
  font-size: clamp(1rem, 1.6vw, 1.14rem);
}

html:not([data-theme="light"]) .cosmic-hero__badge-ribbon {
  font-size: clamp(0.68rem, 1.12vw, 0.78rem);
  line-height: 1.58;
  word-spacing: 0.12em;
}

html:not([data-theme="light"]) .cosmic-hero__trust span {
  font-size: 0.82rem;
}

html:not([data-theme="light"]) .cosmic-hero__email-row .hero-query-input {
  font-size: 1.06rem !important;
}

html:not([data-theme="light"]) .cosmic-hero__email-row .hero-query-action,
html:not([data-theme="light"]) .cosmic-hero__scan-btn {
  font-size: 1rem;
}

.cosmic-hero__text-panel {
  width: 100%;
  max-width: 440px;
  padding: clamp(20px, 2.8vw, 32px);
  border-radius: 20px;
  background: rgba(8, 12, 24, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 20px 56px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  isolation: isolate;
  backface-visibility: hidden;
}

[data-theme="light"] .cosmic-hero__layer--content {
  flex: 0 1 46%;
  max-width: 46%;
  align-self: stretch;
  align-items: stretch;
  min-height: calc(100dvh - 48px);
  padding: 0;
}

[data-theme="light"] .cosmic-hero__text-panel {
  width: 100%;
  max-width: none;
  min-height: calc(100dvh - 48px);
  height: auto;
  padding: clamp(28px, 4vh, 48px) clamp(28px, 3.2vw, 44px) clamp(32px, 4.5vh, 52px);
  transform: none;
  box-sizing: border-box;
  overflow: visible;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-left: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    inset 1px 0 0 rgba(255, 255, 255, 0.24),
    0 10px 36px rgba(35, 55, 90, 0.05);
}

[data-theme="light"] .cosmic-hero__text {
  flex: 0 1 auto;
  width: 100%;
}

[data-theme="light"] .cosmic-hero__station {
  margin-bottom: 10px;
  font-size: clamp(0.72rem, 1.22vw, 0.84rem);
  font-weight: 800;
}

[data-theme="light"] .cosmic-hero__kicker {
  color: #1e293b;
  text-shadow: none;
  font-weight: 700;
  font-size: clamp(1.16rem, 2.04vw, 1.39rem);
  line-height: 1.26;
  margin-bottom: 10px;
}

[data-theme="light"] .cosmic-hero__kicker.cosmic-hero__title-blue {
  color: var(--hero-blue);
}

[data-theme="light"] .cosmic-hero__title {
  color: #0f172a;
  text-shadow: none;
  font-size: clamp(1.56rem, 3.02vw, 2.09rem);
  line-height: 1.12;
  margin-bottom: 8px;
  max-width: 100%;
}

.cosmic-hero__title-line {
  display: block;
  max-width: 100%;
}

[data-theme="light"] .cosmic-hero__title-line {
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

[data-theme="light"] .cosmic-hero__title-line + .cosmic-hero__title-line {
  margin-top: 0.06em;
}

[data-theme="light"] .cosmic-hero__text,
[data-theme="light"] .cosmic-hero__layer--actions {
  max-width: 100%;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

[data-theme="light"] .cosmic-hero__subtitle {
  color: #475569;
  margin-bottom: 12px;
  font-size: clamp(0.99rem, 1.63vw, 1.14rem);
  line-height: 1.5;
  max-width: 100%;
}

[data-theme="light"] .cosmic-hero__title-gold {
  color: #9A7028;
}

[data-theme="light"] .cosmic-hero__title-blue {
  color: var(--hero-blue);
}

[data-theme="light"] .cosmic-hero__layer--actions {
  gap: 7px;
  margin-top: -4px;
  margin-bottom: 10px;
  width: 100%;
  box-sizing: border-box;
}

[data-theme="light"] .cosmic-hero__turnstile-zone {
  margin-top: 0;
}

[data-theme="light"] .cosmic-hero .auth-turnstile-hero {
  min-height: 65px;
  padding: 0;
  background: transparent;
  border: none;
}

[data-theme="light"] .cosmic-hero__email-row {
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
  padding: 8px;
  gap: 10px;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(148, 163, 184, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

[data-theme="light"] .cosmic-hero__email-row--stack {
  gap: 10px;
}

[data-theme="light"] .cosmic-hero__email-field-wrap {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
}

[data-theme="light"] .cosmic-hero__email-row .hero-query-input {
  width: 100%;
  box-sizing: border-box;
  background: #F2EFEA !important;
  color: #0f172a !important;
  min-height: 48px !important;
  padding: 12px 14px !important;
  font-size: 1.06rem !important;
  padding-left: 14px !important;
  border: 1.5px solid rgba(168, 132, 78, 0.72) !important;
  box-shadow: none;
}

[data-theme="light"] .cosmic-hero__email-row .hero-query-input::placeholder {
  color: rgba(71, 85, 105, 0.72) !important;
}

[data-theme="light"] .cosmic-hero__email-icon {
  display: none;
}

[data-theme="light"] .cosmic-hero__metric span {
  color: #64748b;
}

[data-theme="light"] .cosmic-hero .hero-guest-remaining {
  color: #64748b;
}

[data-theme="light"] .cosmic-hero__meta {
  color: #3D5A80;
  font-weight: 700;
  font-size: 0.72rem;
  margin-top: -1px;
}

.cosmic-hero__station {
  margin: 0 0 4px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(0.58rem, 1.05vw, 0.68rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hero-gold);
}

.cosmic-hero__kicker {
  margin: 0 0 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(0.96rem, 1.72vw, 1.16rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.24;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.cosmic-hero__kicker.cosmic-hero__title-blue {
  color: var(--hero-blue);
  text-shadow: 0 1px 10px rgba(61, 90, 128, 0.35);
}

.cosmic-hero__title {
  margin: 0 0 6px;
  font-size: clamp(1.28rem, 2.65vw, 1.78rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--hero-text);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.32);
  hyphens: manual;
  word-break: normal;
  overflow-wrap: normal;
}

.cosmic-hero__title-gold {
  color: var(--hero-gold);
}

.cosmic-hero__badges {
  margin: 0 0 clamp(10px, 1.5vh, 16px);
  padding-bottom: clamp(2px, 0.5vh, 6px);
}

.cosmic-hero__badge-ribbon {
  margin: 0;
  font-size: clamp(0.58rem, 1vw, 0.68rem);
  font-weight: 500;
  line-height: 1.58;
  color: var(--hero-muted);
  letter-spacing: 0.01em;
  word-spacing: 0.1em;
}

[data-theme="light"] .cosmic-hero__badge-ribbon {
  color: #475569;
  font-size: clamp(0.72rem, 1.18vw, 0.82rem);
  line-height: 1.6;
  word-spacing: 0.11em;
}

.cosmic-hero__title-blue {
  color: var(--hero-blue);
}

.cosmic-hero__subtitle {
  margin: 0 0 10px;
  font-size: clamp(0.74rem, 1.22vw, 0.86rem);
  font-weight: 500;
  line-height: 1.48;
  color: var(--hero-muted);
  max-width: 100%;
}

html:not([data-theme="light"]) .cosmic-hero__subtitle {
  font-size: clamp(0.82rem, 1.34vw, 0.94rem);
  line-height: 1.5;
  margin-bottom: 9px;
}

.cosmic-hero__layer--actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  margin-bottom: 8px;
}

html:not([data-theme="light"]) .cosmic-hero__layer--actions {
  gap: 12px;
  margin-bottom: 8px;
}

html:not([data-theme="light"]) .cosmic-hero__layer--actions .cosmic-hero__badges {
  margin: 2px 0 4px;
}

html:not([data-theme="light"]) .cosmic-hero__trust {
  margin-top: 4px;
  gap: 10px;
}

html:not([data-theme="light"]) .cosmic-hero__turnstile-zone {
  margin-top: 0;
}

html:not([data-theme="light"]) .cosmic-hero .auth-turnstile-hero {
  min-height: 65px;
  padding: 0;
}

.cosmic-hero__email-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 5px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 16, 30, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 8px 28px rgba(0, 0, 0, 0.16);
}

.cosmic-hero__email-row--stack {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 8px;
}

.cosmic-hero__email-row--stack .hero-query-action,
.cosmic-hero__email-row--stack .cosmic-hero__scan-btn {
  width: 100%;
  max-width: 100%;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cosmic-hero__email-field-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.cosmic-hero__email-icon {
  display: none;
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #94a3b8;
  pointer-events: none;
  z-index: 1;
}

.cosmic-hero__email-row .hero-query-input {
  flex: 1;
  min-width: 0;
  min-height: 48px !important;
  padding: 12px 14px !important;
  font-size: 0.92rem !important;
  border: 1.5px solid rgba(196, 165, 116, 0.42) !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.14) !important;
  color: var(--hero-text) !important;
  opacity: 1 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backface-visibility: hidden;
}

.cosmic-hero__email-row .hero-query-input::placeholder {
  color: rgba(226, 232, 240, 0.72) !important;
}

.cosmic-hero__email-row .hero-query-input:focus {
  outline: none !important;
  border-color: rgba(212, 188, 138, 0.65) !important;
  background: rgba(255, 255, 255, 0.18) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 0 2px rgba(196, 165, 116, 0.18);
}

.cosmic-hero__email-row .hero-query-action,
.cosmic-hero__scan-btn,
.cosmic-crystal-btn {
  position: relative;
  isolation: isolate;
  flex-shrink: 0;
  min-height: 48px;
  padding: 12px 18px;
  font-size: 0.86rem;
  font-weight: 800;
  border-radius: 10px;
  border: 1px solid rgba(255, 236, 200, 0.35) !important;
  opacity: 1 !important;
  color: #1a1206 !important;
  background: linear-gradient(135deg, #f0c35a 0%, #d4a04a 48%, #c8872e 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 4px 18px rgba(196, 165, 116, 0.28),
    0 2px 10px rgba(168, 137, 82, 0.18);
  transition: transform 200ms ease, box-shadow 200ms ease, opacity 200ms ease;
  backface-visibility: hidden;
}

.cosmic-hero__email-row .hero-query-action::before,
.cosmic-hero__scan-btn::before,
.cosmic-crystal-btn::before {
  display: none;
}

[data-theme="light"] .cosmic-hero__email-row .hero-query-action,
[data-theme="light"] .cosmic-hero__scan-btn {
  color: #1a1206 !important;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  min-height: 48px;
  padding: 12px 18px;
  font-size: 1.01rem;
  background: linear-gradient(135deg, rgba(154, 112, 40, 0.72) 0%, rgba(138, 98, 36, 0.58) 50%, rgba(118, 84, 28, 0.62) 100%) !important;
}

.cosmic-hero__email-row .hero-query-action:hover,
.cosmic-hero__scan-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 6px 22px rgba(168, 132, 78, 0.32),
    0 4px 14px rgba(142, 108, 52, 0.2);
}

.cosmic-hero__turnstile-zone {
  width: 100%;
  margin-top: 4px;
  display: flex;
  justify-content: flex-start;
}

.cosmic-hero .auth-turnstile-hero {
  width: auto;
  max-width: 100%;
  min-height: 65px;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.cosmic-turnstile-fallback {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(61, 90, 128, 0.28);
}

.cosmic-turnstile-fallback i {
  width: 16px;
  height: 16px;
  color: #C4A574;
}

[data-theme="light"] .cosmic-turnstile-fallback {
  color: #334155;
  background: rgba(255, 255, 255, 0.35);
}

.cosmic-hero__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.cosmic-hero__metrics--static .cosmic-hero__metric--badge strong {
  color: var(--hero-blue);
  font-size: 0.92rem;
}

.cosmic-hero__metrics.hidden,
.hidden {
  display: none !important;
}

.cosmic-hero__metrics--live:not(.hidden) {
  display: grid;
}

.cosmic-hero__metric {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(61, 90, 128, 0.16);
  background: rgba(17, 24, 39, 0.42);
}

[data-theme="light"] .cosmic-hero__metric {
  background: rgba(17, 24, 39, 0.38);
  border-color: rgba(196, 165, 116, 0.2);
}

[data-theme="light"] .cosmic-hero__metrics--static {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: -3px;
  margin-bottom: 0;
}

[data-theme="light"] .cosmic-hero__metrics--static .cosmic-hero__metric--badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 15px;
  border-radius: 999px;
}

[data-theme="light"] .cosmic-hero__metrics--static .cosmic-hero__metric--badge:nth-child(n+3) {
  display: none;
}

[data-theme="light"] .cosmic-hero__metrics--static .cosmic-hero__metric--badge strong {
  color: var(--hero-blue);
  font-size: 0.78rem;
  font-weight: 800;
}

[data-theme="light"] .cosmic-hero__metrics--static .cosmic-hero__metric--badge span {
  display: none;
}

[data-theme="light"] .cosmic-hero__metric span {
  color: #475569;
}

.cosmic-hero__metric strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--hero-gold);
  letter-spacing: -0.02em;
}

.cosmic-hero__metric span {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--hero-muted);
  line-height: 1.35;
}

.cosmic-hero__metric--copy {
  grid-column: 1 / -1;
}

.cosmic-hero__metric--copy strong {
  font-size: 0.74rem;
  color: var(--hero-blue);
}

.cosmic-hero__metric--copy span {
  display: block;
  margin-top: 3px;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--hero-text);
}

.cosmic-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  margin-bottom: 0;
}

.cosmic-hero__trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--hero-muted);
  border: 1px solid rgba(61, 90, 128, 0.14);
  background: rgba(17, 24, 39, 0.38);
}

.cosmic-hero__trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid rgba(248, 113, 113, 0.55);
  background: rgba(239, 68, 68, 0.14);
}

.cosmic-hero__trust-icon i,
.cosmic-hero__trust i {
  width: 13px;
  height: 13px;
  color: #f87171;
}

[data-theme="light"] .cosmic-hero__trust {
  display: flex;
  margin-top: 12px;
}

[data-theme="light"] .cosmic-hero__trust-pill {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: #334155;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 7px 14px 7px 7px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

[data-theme="light"] .cosmic-hero__trust-icon {
  width: 28px;
  height: 28px;
  border: 1.5px solid rgba(220, 38, 38, 0.42);
  background: rgba(254, 226, 226, 0.88);
}

[data-theme="light"] .cosmic-hero__trust-icon i {
  width: 14px;
  height: 14px;
  color: #dc2626;
}

.cosmic-hero__meta {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--hero-blue);
}

.cosmic-hero__meta i {
  width: 13px;
  height: 13px;
  vertical-align: -2px;
  margin-right: 4px;
}

.cosmic-hero .hero-guest-remaining {
  margin: 0;
  font-size: 0.74rem;
}

.cosmic-platform {
  width: 100%;
  margin: 0 0 clamp(12px, 2vh, 24px);
  padding: clamp(12px, 1.8vw, 18px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 12, 24, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cosmic-platform__head {
  text-align: center;
  margin-bottom: clamp(10px, 1.8vh, 16px);
}

.cosmic-platform__title {
  margin: 0 0 6px;
  font-size: clamp(1.05rem, 2.1vw, 1.32rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--hero-text, #f8fafc);
}

.cosmic-platform__subtitle {
  margin: 0 auto;
  max-width: 52ch;
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--hero-muted, #94a3b8);
}

.cosmic-platform__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1.4vw, 12px);
}

.cosmic-platform-card {
  display: flex;
  align-items: flex-start;
  padding: clamp(8px, 1.2vw, 10px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.cosmic-platform-card strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--hero-text, #f8fafc);
  margin-bottom: 3px;
  line-height: 1.25;
}

.cosmic-platform-card p {
  margin: 0;
  font-size: 0.64rem;
  line-height: 1.4;
  color: var(--hero-muted, #94a3b8);
}

[data-theme="light"] .cosmic-platform {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .cosmic-platform__title {
  color: #0f172a;
}

[data-theme="light"] .cosmic-platform__subtitle {
  color: #475569;
}

[data-theme="light"] .cosmic-platform-card {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .cosmic-platform-card strong {
  color: #0f172a;
}

[data-theme="light"] .cosmic-platform-card p {
  color: #475569;
}

.cosmic-features-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1.6vw, 14px);
  width: 100%;
  margin: 0 0 clamp(12px, 2vh, 24px);
  padding: clamp(10px, 1.6vw, 16px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 12, 24, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

[data-theme="light"] .cosmic-features-bar {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .cosmic-feature strong {
  color: #0f172a;
}

[data-theme="light"] .cosmic-feature p {
  color: #475569;
}

.cosmic-feature {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.cosmic-feature i {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  color: var(--hero-gold, #C4A574);
}

.cosmic-feature strong {
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--hero-text, #f8fafc);
  margin-bottom: 3px;
}

.cosmic-feature p {
  margin: 0;
  font-size: 0.67rem;
  line-height: 1.42;
  color: var(--hero-muted, #94a3b8);
}

.cosmic-trust-logos {
  width: 100%;
  text-align: center;
  padding: clamp(8px, 1.5vh, 16px) 0 clamp(20px, 3vh, 32px);
}

.cosmic-trust-logos-title {
  margin: 0 0 14px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: none;
  color: var(--hero-muted, #94a3b8);
}

[data-theme="light"] .cosmic-trust-logos-title,
[data-theme="light"] .cosmic-trust-logos-row span {
  color: #334155;
}

.cosmic-trust-logos-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 32px);
}

.cosmic-trust-logos-row span {
  font-size: clamp(0.82rem, 1.6vw, 1rem);
  font-weight: 700;
  color: rgba(226, 232, 240, 0.88);
}

.auth-trust-zone .cosmic-trust-logos {
  padding-top: clamp(12px, 2vh, 20px);
  padding-bottom: clamp(16px, 2.5vh, 28px);
}

.cosmic-sr-demo {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
}

@media (max-width: 959px) {
  .cosmic-hero {
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
  }

  .cosmic-hero__layer--content {
    flex: 1 1 auto;
    max-width: 100%;
    min-height: auto;
    padding: clamp(16px, 4vw, 24px) clamp(16px, 4vw, 24px) clamp(28px, 5vh, 40px);
  }

  .cosmic-hero__text-panel {
    max-width: none;
  }

  html[data-theme="light"] .cosmic-hero__text-panel {
    width: 100%;
    max-width: none;
    min-height: auto;
    border-radius: 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.52);
  }

  html:not([data-theme="light"]) .cosmic-hero__text-panel {
    transform: none;
    width: 100%;
    max-width: none;
  }

  html:not([data-theme="light"]) .cosmic-hero__layer--content {
    flex: 1 1 auto;
    max-width: 100%;
    padding-left: clamp(12px, 3vw, 20px);
  }

  [data-theme="light"] .cosmic-hero__title-line {
    white-space: normal;
  }

  .cosmic-features-bar,
  .cosmic-platform__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .cosmic-hero__email-row {
    flex-direction: column;
  }

  .cosmic-hero__email-row .hero-query-action,
  .cosmic-hero__scan-btn {
    width: 100%;
  }

  .cosmic-features-bar,
  .cosmic-platform__grid {
    grid-template-columns: 1fr;
  }
}
