/* ARX V300.317 — public marketing homepage only.
   Same spaceCanvas and nebula-glow as the Premium Benefits page.
   No shared panel, checkout, feature-card or login styles changed. */
body.marketing-body.arx-public-home-space-page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  overflow-x: hidden;
  background: #040508;
}

/* Disable the original marketing grid so the stars match Premium Benefits. */
body.arx-public-home-space-page::before {
  display: none;
}

body.arx-public-home-space-page #spaceCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

body.arx-public-home-space-page .nebula-glow {
  position: fixed;
  width: 800px;
  height: 500px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(150px);
  z-index: 0;
  opacity: 0.22;
  background: radial-gradient(circle, #38bdf8 0%, #818cf8 35%, #c084fc 70%, transparent 100%);
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
}

/* Content remains above the decorative layers; navbar keeps its sticky positioning. */
body.arx-public-home-space-page > main,
body.arx-public-home-space-page > .marketing-footer {
  position: relative;
  z-index: 1;
}
body.arx-public-home-space-page > .marketing-nav-shell {
  z-index: 50;
}

/* Show one continuous sky behind every homepage section, not opaque strips. */
body.arx-public-home-space-page main > section,
body.arx-public-home-space-page > .marketing-footer {
  background: transparent !important;
}

/* The old stair illustration is a BACKGROUND, not a product illustration.
   Remove only that backdrop; all actual ARX GIFs and images remain untouched. */
body.arx-public-home-space-page .marketing-hero-setup > .hero-grid {
  background: none !important;
  background-image: none !important;
  filter: none !important;
  transform: none !important;
}
body.arx-public-home-space-page .marketing-hero-setup > .hero-grid::after {
  content: none !important;
}

/* The existing cards, panels, buttons and text keep their own backgrounds. */
@media (max-width: 720px) {
  body.arx-public-home-space-page .nebula-glow {
    width: min(800px, 120vw);
    height: 410px;
    filter: blur(120px);
  }
}

/* ARX V300.326: reuse the existing gold Buy Premium artwork on Free accounts. */
body.arx-public-home-space-page .arx-premium-benefit-button .arx-public-buy-premium-graphic {
  display:none;
  width:156px;
  height:auto;
  max-height:44px;
  object-fit:contain;
}
body.arx-public-home-space-page .arx-premium-benefit-button.is-free-plan-cta {
  padding:0;
  background:transparent;
  box-shadow:none;
  border-radius:11px;
}
body.arx-public-home-space-page .arx-premium-benefit-button.is-free-plan-cta .arx-premium-benefit-inner,
body.arx-public-home-space-page .arx-premium-benefit-button.is-free-plan-cta .arx-premium-benefit-glow,
body.arx-public-home-space-page .arx-premium-benefit-button.is-free-plan-cta .arx-premium-benefit-border {
  display:none;
}
body.arx-public-home-space-page .arx-premium-benefit-button.is-free-plan-cta .arx-public-buy-premium-graphic {
  display:block;
  filter:drop-shadow(0 0 9px rgba(255,196,11,.28));
}
body.arx-public-home-space-page .marketing-links .arx-premium-benefits-menu-link.is-free-plan-cta {
  color:#ffce2c;
}


/* ARX V300.335 — homepage nav language dropdown, invite CTA and glass proof strip */
body.arx-public-home-space-page .marketing-nav-actions {
  display:flex;
  align-items:center;
  gap:14px;
}
body.arx-public-home-space-page .arx-nav-invite-button {
  min-width: 250px;
  justify-content:center;
  white-space: nowrap;
}
body.arx-public-home-space-page .arx-home-language {
  position: relative;
  min-width: 204px;
  z-index: 80;
}
body.arx-public-home-space-page .arx-home-language-toggle {
  width:100%;
  min-height:52px;
  padding:10px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  border-radius:14px;
  border:1px solid rgba(140, 154, 181, 0.22);
  background: linear-gradient(180deg, rgba(10,14,24,0.88), rgba(7,10,18,0.94));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 16px 30px rgba(0,0,0,0.24);
  color:#f5f7fb;
  cursor:pointer;
}
body.arx-public-home-space-page .arx-home-language-current {
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
body.arx-public-home-space-page .arx-home-language-flag {
  width:28px;
  height:28px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.12);
  flex:none;
  font-size:17px;
  line-height:1;
}
body.arx-public-home-space-page .arx-home-language-name {
  font-size:15px;
  font-weight:700;
  color:#f6f8fb;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
body.arx-public-home-space-page .arx-home-language-caret {
  color:#97a7be;
  font-size:14px;
  transition:transform .24s ease;
}
body.arx-public-home-space-page .arx-home-language.is-open .arx-home-language-caret {
  transform:rotate(180deg);
}
body.arx-public-home-space-page .arx-home-language-menu {
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  width:100%;
  max-height:420px;
  overflow:auto;
  padding:8px;
  border-radius:18px;
  border:1px solid rgba(113, 129, 156, 0.28);
  background:linear-gradient(180deg, rgba(7,12,20,0.97), rgba(4,7,14,0.98));
  box-shadow:0 24px 48px rgba(0,0,0,0.42);
  backdrop-filter:blur(18px);
  display:none;
}
body.arx-public-home-space-page .arx-home-language.is-open .arx-home-language-menu {
  display:block;
}
body.arx-public-home-space-page .arx-home-language-option {
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:0;
  background:transparent;
  color:#f6f8fb;
  display:flex;
  align-items:center;
  gap:12px;
  text-align:left;
  cursor:pointer;
}
body.arx-public-home-space-page .arx-home-language-option:hover,
body.arx-public-home-space-page .arx-home-language-option.is-active {
  background:rgba(255,208,38,0.12);
}
body.arx-public-home-space-page .proof-strip {
  position:relative;
  padding: 8px 0 26px;
  z-index:1;
}
body.arx-public-home-space-page .arx-glass-proof-grid {
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:18px;
}
body.arx-public-home-space-page .arx-glass-proof-card {
  min-height:92px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:18px 22px;
  border-radius:22px;
  background:linear-gradient(180deg, rgba(17,24,38,0.55), rgba(9,13,22,0.72));
  border:1px solid rgba(130,146,176,0.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 20px 50px rgba(0,0,0,0.18);
  backdrop-filter: blur(18px);
}
body.arx-public-home-space-page .arx-glass-proof-card strong {
  font-size: clamp(18px, 1.6vw, 24px);
  line-height:1.2;
  letter-spacing:.03em;
  color:#f8fbff;
}
body.arx-public-home-space-page .arx-glass-proof-card:nth-child(1) strong { color:#ffd84a; }
body.arx-public-home-space-page .arx-glass-proof-card:nth-child(2) strong { color:#88d0ff; }
body.arx-public-home-space-page .arx-glass-proof-card:nth-child(3) strong { color:#d7e6ff; }
body.arx-public-home-space-page .arx-glass-proof-card:nth-child(4) strong { color:#b8fbe0; }

@media (max-width: 1120px) {
  body.arx-public-home-space-page .marketing-nav-actions {
    gap:10px;
  }
  body.arx-public-home-space-page .arx-nav-invite-button {
    min-width:220px;
  }
}
@media (max-width: 920px) {
  body.arx-public-home-space-page .arx-glass-proof-grid {
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
}
@media (max-width: 720px) {
  body.arx-public-home-space-page .arx-home-language,
  body.arx-public-home-space-page .arx-nav-invite-button {
    width:100%;
    min-width:0;
  }
  body.arx-public-home-space-page .arx-glass-proof-grid {
    grid-template-columns:1fr;
  }
}


/* ARX V300.338 — only the first, red-carpet story. Its original GIF is
   enlarged to ~150% in height and gets a wider left-side stage; other
   feature images, mascots and the quick-setup countdown are untouched. */
body.arx-public-home-space-page .open-showcase-item.red-carpet-open-story .open-showcase-stage {
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, .65fr) !important;
  gap: clamp(30px, 4.2vw, 68px) !important;
}
body.arx-public-home-space-page .open-showcase-item.red-carpet-open-story .red-carpet-product {
  min-width: 0;
  width: 100%;
  margin: 0;
}
body.arx-public-home-space-page .open-showcase-item.red-carpet-open-story .open-showcase-mascot {
  min-width: 0;
  margin: 0;
}
body.arx-public-home-space-page .open-showcase-item.red-carpet-open-story .red-carpet-product .open-showcase-media {
  height: 915px !important; /* was 610px; 50% larger */
  max-width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
body.arx-public-home-space-page .open-showcase-item.red-carpet-open-story .red-carpet-product .open-showcase-media img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}
body.arx-public-home-space-page .open-showcase-item.red-carpet-open-story .open-showcase-mascot img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 440px !important;
  object-fit: contain !important;
}
@media (max-width: 900px) {
  body.arx-public-home-space-page .open-showcase-item.red-carpet-open-story .open-showcase-stage {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 24px !important;
  }
  body.arx-public-home-space-page .open-showcase-item.red-carpet-open-story .red-carpet-product {order: 1;}
  body.arx-public-home-space-page .open-showcase-item.red-carpet-open-story .open-showcase-mascot {order: 2;}
  body.arx-public-home-space-page .open-showcase-item.red-carpet-open-story .red-carpet-product .open-showcase-media {
    height: min(750px, 95vw) !important;
  }
}
@media (max-width: 540px) {
  body.arx-public-home-space-page .open-showcase-item.red-carpet-open-story .red-carpet-product .open-showcase-media {
    height: min(560px, 150vw) !important;
  }
  body.arx-public-home-space-page .open-showcase-item.red-carpet-open-story .open-showcase-mascot img {
    max-height: 340px !important;
  }
}


/* ARX V300.339 — real PNG flags, compact menu, theme-matched scrollbar. */
body.arx-public-home-space-page .arx-home-language {
  flex: 0 0 auto;
  width: 149px;
  min-width: 149px;
  z-index: 120;
}
body.arx-public-home-space-page .arx-home-language-toggle {
  min-height: 42px;
  height: 42px;
  border-radius: 11px;
  padding: 5px 10px;
  gap: 6px;
}
body.arx-public-home-space-page .arx-home-language-current { gap: 8px; }
body.arx-public-home-space-page img.arx-home-language-flag {
  display: block;
  box-sizing: border-box;
  width: 25px;
  height: 25px;
  min-width: 25px;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  object-fit: cover;
  flex: none;
}
body.arx-public-home-space-page .arx-home-language-name {
  font-size: 13px;
  font-weight: 700;
}
body.arx-public-home-space-page .arx-home-language-menu {
  width: 234px;
  max-width: min(234px, calc(100vw - 24px));
  max-height: min(375px, calc(100dvh - 78px));
  padding: 6px;
  border: 1px solid rgba(108, 125, 157, .35);
  border-radius: 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(246, 201, 21, .52) rgba(15, 20, 31, .88);
  overscroll-behavior: contain;
}
body.arx-public-home-space-page .arx-home-language-menu::-webkit-scrollbar { width: 7px; }
body.arx-public-home-space-page .arx-home-language-menu::-webkit-scrollbar-track {
  background: rgba(15, 20, 31, .88);
  border-radius: 8px;
}
body.arx-public-home-space-page .arx-home-language-menu::-webkit-scrollbar-thumb {
  background: rgba(246, 201, 21, .48);
  border-radius: 8px;
  border: 1px solid rgba(8, 10, 18, .9);
}
body.arx-public-home-space-page .arx-home-language-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 217, 72, .8);
}
body.arx-public-home-space-page .arx-home-language-option {
  min-height: 40px;
  padding: 7px 9px;
  gap: 9px;
}
body.arx-public-home-space-page .arx-nav-invite-button {
  min-width: 0;
  width: auto;
  max-width: none;
  min-height: 42px;
  padding: 0 15px;
  line-height: 1.2;
  font-size: 12px;
  white-space: nowrap;
}
body.arx-public-home-space-page .marketing-nav-actions { gap: 10px; }
/* Retained hero and security rail sit directly above the footer. */
body.arx-public-home-space-page .proof-strip { padding-bottom: 24px; }
@media (max-width: 940px) {
  body.arx-public-home-space-page .arx-home-language { width: 144px; min-width: 144px; }
  body.arx-public-home-space-page .arx-nav-invite-button { font-size: 11px; padding: 0 11px; }
}
@media (max-width: 720px) {
  body.arx-public-home-space-page .arx-home-language {
    width: 100%; min-width: 0;
  }
  body.arx-public-home-space-page .arx-home-language-menu {
    left: 0; right: auto;
    width: min(234px, calc(100vw - 36px));
  }
  body.arx-public-home-space-page .arx-nav-invite-button {
    width: 100%; justify-content: center;
    white-space: normal;
  }
}
