:root {
  --bg: #070b18;
  --panel: rgba(13, 19, 39, 0.78);
  --panel-solid: #0d1327;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.17);
  --text: #f7f9ff;
  --muted: #98a4bd;
  --cyan: #5eead4;
  --blue: #60a5fa;
  --violet: #a78bfa;
  --warm: #fdba74;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
  --custom-background: none;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 26% -8%, rgba(37, 99, 235, 0.25), transparent 40%),
    radial-gradient(circle at 92% 36%, rgba(124, 58, 237, 0.14), transparent 34%),
    linear-gradient(145deg, #060a16 0%, #0a1024 55%, #070b18 100%);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.custom-background {
  background-image:
    linear-gradient(145deg, rgba(5,9,21,0.8), rgba(9,14,32,0.88)),
    var(--custom-background) !important;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.ambient {
  position: fixed;
  z-index: -3;
  border-radius: 50%;
  opacity: 0.23;
  filter: blur(105px);
  pointer-events: none;
  animation: ambientFloat 16s ease-in-out infinite alternate;
}
.ambient-one { width: 520px; height: 520px; left: -230px; top: -230px; background: #2563eb; }
.ambient-two { width: 560px; height: 560px; right: -260px; top: 42%; background: #7c3aed; animation-delay: -7s; }
.page-grid {
  position: fixed;
  z-index: -2;
  inset: 0;
  opacity: 0.12;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}
@keyframes ambientFloat {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(65px, 48px, 0) scale(1.14); }
}

.site-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 32px;
}
.site-header {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(94,234,212,0.95), rgba(96,165,250,0.95));
  box-shadow: 0 12px 30px rgba(45,212,191,0.18);
}
.brand-mark::before, .brand-mark::after, .brand-mark i {
  content: "";
  position: absolute;
  border: 2px solid #07101d;
  border-radius: 50%;
}
.brand-mark::before { width: 17px; height: 17px; left: 11px; top: 9px; }
.brand-mark::after { width: 7px; height: 7px; left: 21px; top: 17px; background: #07101d; }
.brand-mark i { width: 18px; height: 2px; left: 19px; top: 26px; border-width: 0 0 2px; border-radius: 0; transform: rotate(42deg); }
.brand-copy strong { display: block; font-size: 16px; letter-spacing: 0.01em; }
.brand-copy small { display: block; margin-top: 3px; color: #6f7b97; font-size: 9px; letter-spacing: 0.2em; }
.header-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  color: #8c98b3;
  background: rgba(255,255,255,0.025);
  font-size: 11px;
}
.header-status span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.hero-carousel {
  position: relative;
  height: 468px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 30px;
  background: #0a1022;
  box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,0.07);
  isolation: isolate;
}
.carousel-track, .carousel-slide { position: absolute; inset: 0; }
.carousel-slide {
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.carousel-slide.is-active { opacity: 1; visibility: visible; z-index: 2; }
.carousel-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.035);
  transition: transform 6.8s ease-out;
}
.carousel-slide.is-active img { transform: scale(1); }
.carousel-placeholder {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 78% 38%, rgba(94,234,212,0.2), transparent 29%),
    linear-gradient(135deg, #0b1730, #111a3b 56%, #0a1022);
}
.carousel-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4,8,19,0.94) 0%, rgba(4,8,19,0.7) 38%, rgba(4,8,19,0.08) 70%, rgba(4,8,19,0.28) 100%),
    linear-gradient(0deg, rgba(3,7,17,0.7) 0%, transparent 44%);
}
.carousel-copy {
  position: absolute;
  z-index: 2;
  left: 58px;
  top: 50%;
  width: min(52%, 560px);
  transform: translateY(-50%);
}
.carousel-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 0 11px;
  border: 1px solid rgba(94,234,212,0.24);
  border-radius: 999px;
  color: #adf8ec;
  background: rgba(20,184,166,0.07);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.carousel-copy h2 {
  max-width: 560px;
  margin: 18px 0 13px;
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.carousel-copy p {
  max-width: 480px;
  margin: 0;
  color: #b2bed4;
  font-size: 14px;
  line-height: 1.8;
}
.carousel-cta {
  min-height: 45px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 23px;
  padding: 0 17px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 13px;
  color: #07131c;
  background: linear-gradient(105deg, #9af8e9, #bfe3ff);
  box-shadow: 0 12px 30px rgba(45,212,191,0.14);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  transition: 0.23s ease;
}
.carousel-cta span { font-size: 16px; }
.carousel-cta:hover { transform: translateY(-2px); filter: brightness(1.04); }
.carousel-shine {
  position: absolute;
  z-index: 3;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px rgba(255,255,255,0.13), inset 0 -1px rgba(255,255,255,0.04);
}
.carousel-controls {
  position: absolute;
  z-index: 5;
  right: 25px;
  bottom: 25px;
  display: flex;
  gap: 8px;
}
.carousel-arrow {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 50%;
  color: #f5f8ff;
  background: rgba(6,11,25,0.56);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: 16px;
  transition: 0.2s ease;
}
.carousel-arrow:hover { border-color: rgba(94,234,212,0.42); background: rgba(21,32,56,0.78); }
.carousel-dots {
  position: absolute;
  z-index: 5;
  left: 58px;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.carousel-dot {
  width: 20px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.24);
  cursor: pointer;
  transition: 0.3s ease;
}
.carousel-dot.is-active { width: 42px; background: linear-gradient(90deg, var(--cyan), #93c5fd); }

.join-card {
  position: relative;
  margin-top: 22px;
  padding: 38px 42px 40px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.045), transparent 36%),
    var(--panel);
  box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,0.05);
  backdrop-filter: blur(24px);
}
.join-card::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -190px;
  top: -220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96,165,250,0.12), transparent 68%);
  pointer-events: none;
}
.join-intro { position: relative; z-index: 1; }
.section-kicker { color: #74d9cb; font-size: 9px; font-weight: 800; letter-spacing: 0.2em; }
.join-intro h1 {
  margin: 13px 0 9px;
  font-size: clamp(29px, 4.4vw, 43px);
  line-height: 1.16;
  letter-spacing: -0.04em;
}
.join-intro > p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.trust-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 19px; }
.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,0.075);
  border-radius: 9px;
  color: #8290ac;
  background: rgba(255,255,255,0.025);
  font-size: 10px;
}
.trust-row i { color: #8ef0e2; font-style: normal; font-weight: 800; }
.join-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  margin-top: 31px;
  padding-top: 31px;
  border-top: 1px solid rgba(255,255,255,0.075);
}
.qr-column { display: flex; flex-direction: column; align-items: center; }
.qr-frame {
  position: relative;
  width: 252px;
  height: 252px;
  padding: 13px;
  border-radius: 23px;
  background: #fff;
  box-shadow: 0 25px 65px rgba(0,0,0,0.38), 0 0 44px rgba(96,165,250,0.07);
}
.qr-frame img { width: 100%; height: 100%; display: block; object-fit: contain; }
.corner { position: absolute; width: 24px; height: 24px; border-color: var(--cyan); }
.corner-tl { top: -5px; left: -5px; border-top: 2px solid; border-left: 2px solid; border-radius: 8px 0 0; }
.corner-tr { top: -5px; right: -5px; border-top: 2px solid; border-right: 2px solid; border-radius: 0 8px 0 0; }
.corner-bl { bottom: -5px; left: -5px; border-bottom: 2px solid; border-left: 2px solid; border-radius: 0 0 0 8px; }
.corner-br { right: -5px; bottom: -5px; border-right: 2px solid; border-bottom: 2px solid; border-radius: 0 0 8px; }
.qr-scan-line {
  position: absolute;
  z-index: 2;
  left: 13px;
  right: 13px;
  top: 13px;
  height: 2px;
  opacity: 0.7;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 9px var(--cyan);
  animation: scan 3.4s ease-in-out infinite;
}
@keyframes scan {
  0%, 100% { transform: translateY(0); opacity: 0; }
  12%, 88% { opacity: 0.7; }
  50% { transform: translateY(224px); }
}
.qr-caption { margin: 14px 0 0; color: #7f8ca7; font-size: 11px; }
.entry-actions { width: 100%; min-width: 0; }
.action-label { display: block; margin-bottom: 11px; color: #7e8ba6; font-size: 10px; letter-spacing: 0.08em; }
.primary-button, .secondary-button {
  min-height: 51px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 760;
  cursor: pointer;
  transition: 0.23s ease;
}
.primary-button {
  width: 100%;
  border: 0;
  color: #07101d;
  background: linear-gradient(105deg, var(--cyan), #7dd3fc);
  box-shadow: 0 14px 33px rgba(45,212,191,0.18);
}
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 19px 42px rgba(45,212,191,0.27); }
.primary-button svg, .secondary-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.secondary-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.secondary-button {
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,0.1);
  color: #d8def1;
  background: rgba(255,255,255,0.04);
}
.secondary-button:hover { border-color: rgba(94,234,212,0.31); background: rgba(94,234,212,0.065); transform: translateY(-1px); }
.custom-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.custom-button {
  min-height: 51px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 10px 15px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
  text-align: left;
  text-decoration: none;
  font-size: 13px;
  font-weight: 780;
  line-height: 1.35;
  transition: 0.23s ease;
}
.custom-button small { margin-top: 3px; opacity: 0.72; font-size: 10px; font-weight: 500; }
.custom-button:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 17px 34px rgba(0,0,0,0.22); }
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px 0;
  color: #59657e;
  font-size: 10px;
}
.toast {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 26px;
  padding: 12px 18px;
  border: 1px solid rgba(94,234,212,0.24);
  border-radius: 999px;
  color: #d8fff9;
  background: rgba(10,17,31,0.96);
  box-shadow: 0 15px 45px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translate(-50%, 18px);
  pointer-events: none;
  transition: 0.3s ease;
  font-size: 12px;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 820px) {
  .hero-carousel { height: 430px; }
  .carousel-copy { left: 36px; width: 62%; }
  .carousel-dots { left: 36px; }
  .join-card { padding: 31px 28px 33px; }
  .join-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 27px; }
  .qr-frame { width: 224px; height: 224px; }
  @keyframes scan {
    0%, 100% { transform: translateY(0); opacity: 0; }
    12%, 88% { opacity: 0.7; }
    50% { transform: translateY(196px); }
  }
}
@media (max-width: 640px) {
  .site-shell { width: min(100% - 24px, 1180px); padding-top: 11px; }
  .site-header { min-height: 58px; margin-bottom: 13px; }
  .header-status { padding: 8px 10px; font-size: 9px; }
  .hero-carousel { height: 430px; border-radius: 23px; }
  .carousel-overlay { background: linear-gradient(0deg, rgba(3,7,17,0.94) 0%, rgba(3,7,17,0.65) 58%, rgba(3,7,17,0.18) 100%); }
  .carousel-copy { left: 22px; right: 22px; top: auto; bottom: 78px; width: auto; transform: none; }
  .carousel-copy h2 { margin: 13px 0 9px; font-size: 34px; }
  .carousel-copy p { font-size: 12px; line-height: 1.65; }
  .carousel-cta { min-height: 41px; margin-top: 16px; font-size: 12px; }
  .carousel-controls { right: 16px; bottom: 18px; }
  .carousel-arrow { width: 37px; height: 37px; }
  .carousel-dots { left: 22px; bottom: 31px; }
  .join-card { margin-top: 13px; padding: 26px 18px 24px; border-radius: 23px; }
  .join-intro h1 { font-size: 29px; }
  .join-intro > p { font-size: 12px; }
  .trust-row { margin-top: 15px; gap: 7px; }
  .trust-row span { padding: 6px 8px; font-size: 9px; }
  .join-layout { display: block; margin-top: 23px; padding-top: 24px; }
  .qr-column { margin-bottom: 25px; }
  .qr-frame { width: 226px; height: 226px; }
  @keyframes scan {
    0%, 100% { transform: translateY(0); opacity: 0; }
    12%, 88% { opacity: 0.7; }
    50% { transform: translateY(198px); }
  }
  .secondary-actions, .custom-buttons { grid-template-columns: 1fr; }
  .site-footer { padding-top: 18px; font-size: 9px; }
}
@media (max-width: 390px) {
  .brand-copy small { display: none; }
  .header-status { display: none; }
  .hero-carousel { height: 410px; }
}

/* Legacy browser fallbacks */
.site-shell { max-width: 1180px; }
.site-header, .site-brand, .header-status, .trust-row, .trust-row span,
.carousel-eyebrow, .carousel-cta, .carousel-controls, .carousel-dots,
.primary-button, .secondary-button, .site-footer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
.site-header, .site-footer { -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; }
.carousel-copy { max-width: 560px; }
.join-layout { display: -ms-grid; display: grid; }
.secondary-actions, .custom-buttons { display: -webkit-box; display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; }
.secondary-actions > *, .custom-buttons > * { -webkit-box-flex: 1; -ms-flex: 1 1 210px; flex: 1 1 210px; }
.primary-button { width: 100%; }

@media (max-width: 640px) {
  .join-layout { display: block; }
  .secondary-actions, .custom-buttons { display: block; }
  .custom-button { margin-top: 10px; }
}

/* Mobile-first interaction refinements */
body { padding-bottom: env(safe-area-inset-bottom); }
.mobile-primary-button { display: none; }

@media (max-width: 640px) {
  .site-shell {
    width: calc(100% - 24px);
    padding-top: calc(10px + env(safe-area-inset-top));
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }
  body.custom-background { background-attachment: scroll; }
  .ambient { opacity: 0.16; filter: blur(72px); animation: none; }
  .page-grid { opacity: 0.08; }
  .hero-carousel { height: 386px; height: clamp(350px, 48svh, 430px); }
  .carousel-slide img { transform: none; transition: none; }
  .carousel-copy { bottom: 69px; }
  .carousel-copy h2 { font-size: clamp(28px, 8.8vw, 34px); }
  .carousel-copy p { font-size: 12px; line-height: 1.6; }
  .carousel-cta { min-height: 44px; }
  .join-card { margin-top: 12px; padding: 25px 18px 22px; backdrop-filter: none; }
  .join-intro h1 { margin-top: 11px; font-size: clamp(27px, 8vw, 31px); }
  .join-intro > p { font-size: 12px; line-height: 1.65; }
  .trust-row { gap: 6px; margin-top: 13px; }
  .trust-row span { min-height: 30px; padding: 5px 8px; font-size: 9px; white-space: nowrap; }
  .join-layout { margin-top: 20px; padding-top: 21px; }
  .qr-frame { width: 220px; height: 220px; }
  .qr-caption { margin-top: 12px; font-size: 10px; }
  .primary-button, .secondary-button { min-height: 54px; }
  .mobile-primary-button {
    width: 100%;
    min-height: 55px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 18px;
    border-radius: 14px;
    color: #07101d;
    background: linear-gradient(105deg, var(--cyan), #7dd3fc);
    box-shadow: 0 14px 33px rgba(45,212,191,0.18);
    text-decoration: none;
    font-weight: 800;
  }
  .mobile-primary-button svg {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .entry-actions > .action-label,
  .entry-actions > .primary-button { display: none; }
  .secondary-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    margin-top: 10px;
  }
  .secondary-actions > * { width: 100%; margin: 0; }
  .secondary-button { width: 100%; }
  .custom-buttons {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    margin-top: 10px;
  }
  .custom-button { width: 100%; min-height: 58px; margin-top: 0; }
  .toast { bottom: calc(22px + env(safe-area-inset-bottom)); }
}

@supports (display: contents) {
  @media (max-width: 640px) {
    .join-layout { display: flex; flex-direction: column; }
    .entry-actions { display: contents; }
    .action-label { order: 1; margin-bottom: 10px; }
    .primary-button { order: 2; }
    .qr-column { order: 3; margin: 22px 0 20px; }
    .secondary-actions { order: 4; margin-top: 0; }
    .custom-buttons { order: 5; }
  }
}

@media (max-width: 360px) {
  .site-shell { width: calc(100% - 20px); }
  .hero-carousel { height: 370px; }
  .carousel-copy { left: 18px; right: 18px; bottom: 66px; }
  .carousel-copy h2 { font-size: 28px; }
  .carousel-copy p { font-size: 11px; }
  .join-card { padding-left: 15px; padding-right: 15px; }
  .qr-frame { width: 212px; height: 212px; }
  .trust-row span { padding-left: 6px; padding-right: 6px; }
  .site-footer { font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Minimal image slideshow + button launcher */
.home-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 38px;
}
.home-actions { margin-top: 16px; }
.home-custom-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 11px;
  margin-top: 0;
}
.home-custom-buttons .custom-button {
  width: 100%;
  min-height: 62px;
  margin: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.home-custom-buttons .custom-button.join-trigger { box-shadow: 0 15px 38px rgba(0,0,0,0.22), inset 0 1px rgba(255,255,255,0.16); }
.home-custom-buttons .custom-button::after {
  content: "↗";
  margin-left: auto;
  padding-left: 12px;
  opacity: 0.72;
  font-size: 15px;
}
.home-custom-buttons .custom-button.join-trigger::after { content: "＋"; }
.home-custom-buttons .custom-button > span { display: block; }

.hero-carousel { height: clamp(480px, 47vw, 610px); }
.carousel-slide { background: #050916; }
.carousel-media, .carousel-placeholder { position: absolute; inset: 0; overflow: hidden; }
.carousel-slide .carousel-backdrop {
  position: absolute;
  inset: -42px;
  width: calc(100% + 84px);
  height: calc(100% + 84px);
  display: block;
  object-fit: cover;
  opacity: 0.62;
  filter: blur(34px) brightness(0.42) saturate(1.05);
  transform: scale(1.08);
  transition: none;
}
.carousel-slide .carousel-photo,
.carousel-slide.is-active .carousel-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  margin: auto;
  object-fit: contain;
  transform: none;
  transition: none;
}
.carousel-controls { bottom: 20px; right: 20px; }
.carousel-dots { left: 22px; bottom: 29px; }
.carousel-dot { background: rgba(255,255,255,0.42); box-shadow: 0 1px 6px rgba(0,0,0,0.35); }
.carousel-dot.is-active { background: #fff; }

.join-overlay {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}
.join-overlay[hidden] { display: none !important; }
.join-overlay:not([hidden]) { animation: overlayIn 0.22s ease both; }
.join-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2,5,13,0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
body.dialog-open { overflow: hidden; }
.join-overlay .join-card {
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
  max-height: calc(100svh - 40px);
  margin: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  animation: panelIn 0.28s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}
.join-close {
  position: sticky;
  z-index: 8;
  top: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-left: auto;
  margin-bottom: -40px;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 50%;
  color: #dce4f4;
  background: rgba(8,13,28,0.84);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}
.join-close:hover { border-color: rgba(94,234,212,0.4); color: #fff; }
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes panelIn { from { opacity: 0; transform: translateY(18px) scale(0.985); } to { opacity: 1; transform: none; } }

@media (max-width: 640px) {
  .home-shell {
    width: calc(100% - 20px);
    padding-top: calc(10px + env(safe-area-inset-top));
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }
  .home-actions { margin-top: 11px; }
  .home-custom-buttons { grid-template-columns: 1fr; gap: 9px; }
  .home-custom-buttons .custom-button { min-height: 60px; }
  .hero-carousel { height: clamp(360px, 64svh, 540px); border-radius: 23px; }
  .carousel-controls { right: 14px; bottom: 14px; }
  .carousel-arrow { width: 39px; height: 39px; }
  .carousel-dots { left: 16px; bottom: 25px; }

  .join-overlay {
    align-items: flex-end;
    padding: 0;
    overflow: hidden;
  }
  .join-overlay .join-card {
    width: 100%;
    max-height: 92svh;
    padding: 25px 18px calc(24px + env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 27px 27px 0 0;
    animation-name: sheetIn;
  }
  .join-close { top: 7px; width: 38px; height: 38px; margin-bottom: -38px; }
  .join-card .join-intro { padding-right: 39px; }
  .join-card .action-label { display: block; order: 1; margin-bottom: 10px; }
  .join-card .entry-actions > .primary-button { display: inline-flex; order: 2; }
  .join-card .secondary-actions { order: 4; margin-top: 10px; }
  .join-card .qr-column { order: 3; margin: 21px 0 19px; }
  .join-card .join-layout { display: flex; flex-direction: column; }
  .join-card .entry-actions { display: contents; }
  @keyframes sheetIn { from { opacity: 0; transform: translateY(45px); } to { opacity: 1; transform: none; } }
}

/* Main hero image rotation */
.home-shell {
  width: min(1080px, calc(100% - 32px));
  padding: 20px 0 42px;
}
.hero-carousel {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  max-height: 680px;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 28px;
  background: #060a16;
  box-shadow: 0 30px 90px rgba(0,0,0,0.42), inset 0 1px rgba(255,255,255,0.08);
  touch-action: pan-y;
}
.carousel-slide { background: #060a16; }
.carousel-slide .carousel-backdrop {
  inset: -30px;
  width: calc(100% + 60px);
  height: calc(100% + 60px);
  opacity: 0.72;
  filter: blur(30px) brightness(0.36) saturate(1.05);
}
.carousel-slide .carousel-photo,
.carousel-slide.is-active .carousel-photo {
  padding: clamp(4px, 1vw, 12px);
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.carousel-controls,
.carousel-dots,
.carousel-shine { display: none !important; }
.home-actions { margin-top: 14px; }

.qr-caption {
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}
.secondary-button { touch-action: manipulation; }

@media (max-width: 640px) {
  .home-shell {
    width: 100%;
    padding: 0 0 calc(18px + env(safe-area-inset-bottom));
  }
  .hero-carousel {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    max-height: none;
    border-top: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 22px 56px rgba(0,0,0,0.42);
  }
  .carousel-slide .carousel-photo,
  .carousel-slide.is-active .carousel-photo { padding: 0; }
  .home-actions {
    margin-top: 12px;
    padding: 0 10px;
  }
}

@media (max-width: 380px) {
  .hero-carousel { aspect-ratio: 1 / 1.16; }
}
/* Premium coverflow hero */
.home-shell {
  width: min(1180px, calc(100% - 32px));
  padding: 18px 0 42px;
}
.hero-carousel {
  position: relative;
  width: 100%;
  height: clamp(540px, 58vw, 690px);
  aspect-ratio: auto;
  max-height: none;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 32px;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(34,211,238,0.12), transparent 42%),
    radial-gradient(ellipse at 18% 38%, rgba(59,130,246,0.12), transparent 35%),
    radial-gradient(ellipse at 84% 62%, rgba(124,58,237,0.12), transparent 35%),
    linear-gradient(180deg, #070c18 0%, #040711 100%);
  box-shadow: 0 32px 90px rgba(0,0,0,0.42), inset 0 1px rgba(255,255,255,0.05);
  isolation: isolate;
}
.hero-carousel::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 62%;
  height: 72%;
  left: 19%;
  top: 14%;
  border-radius: 50%;
  background: rgba(67, 205, 220, 0.12);
  filter: blur(86px);
  opacity: 0.72;
  pointer-events: none;
}
.hero-carousel::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: auto 0 0;
  height: 32%;
  background: linear-gradient(0deg, rgba(2,5,13,0.8), transparent);
  pointer-events: none;
}
.carousel-track {
  position: absolute;
  z-index: 1;
  inset: 0;
  perspective: 1600px;
  transform-style: preserve-3d;
}
.carousel-slide {
  position: absolute;
  inset: auto;
  left: 50%;
  top: 50%;
  width: min(40%, 420px);
  height: 84%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.17);
  border-radius: 28px;
  opacity: 0;
  visibility: hidden;
  background: #07101d;
  box-shadow: 0 24px 70px rgba(0,0,0,0.44);
  transform: translate(-50%, -50%) scale(0.68);
  transform-origin: center center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform, opacity, filter;
  transition:
    transform 0.9s cubic-bezier(0.2, 0.78, 0.2, 1),
    opacity 0.72s ease,
    filter 0.72s ease,
    box-shadow 0.72s ease;
}
.carousel-slide.is-active {
  z-index: 5;
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
  box-shadow: 0 38px 100px rgba(0,0,0,0.64), 0 0 0 1px rgba(255,255,255,0.06);
}
.carousel-slide.is-prev {
  z-index: 3;
  opacity: 0.62;
  visibility: visible;
  transform: translate(-50%, -50%) translateX(-56%) scale(0.79) rotateY(11deg);
  filter: brightness(0.64) saturate(0.9);
}
.carousel-slide.is-next {
  z-index: 3;
  opacity: 0.62;
  visibility: visible;
  transform: translate(-50%, -50%) translateX(56%) scale(0.79) rotateY(-11deg);
  filter: brightness(0.64) saturate(0.9);
}
.carousel-slide.is-hidden {
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%) scale(0.58);
}
.carousel-slide .carousel-backdrop {
  inset: -30px;
  width: calc(100% + 60px);
  height: calc(100% + 60px);
  opacity: 0.76;
  filter: blur(28px) brightness(0.32) saturate(1.08);
  transform: scale(1.08) !important;
}
.carousel-slide .carousel-photo,
.carousel-slide.is-active .carousel-photo {
  padding: 0;
  object-fit: contain;
  transform: none !important;
}
.carousel-controls,
.carousel-dots,
.carousel-shine { display: none !important; }
.home-actions { margin-top: 14px; }

@media (max-width: 900px) and (min-width: 641px) {
  .hero-carousel { height: clamp(500px, 72vw, 620px); }
  .carousel-slide { width: 44%; }
  .carousel-slide.is-prev { transform: translate(-50%, -50%) translateX(-49%) scale(0.79) rotateY(10deg); }
  .carousel-slide.is-next { transform: translate(-50%, -50%) translateX(49%) scale(0.79) rotateY(-10deg); }
}

@media (max-width: 640px) {
  .home-shell {
    width: 100%;
    padding: 0 0 calc(18px + env(safe-area-inset-bottom));
  }
  .hero-carousel {
    height: min(148vw, 620px);
    aspect-ratio: auto;
    max-height: none;
    border-top: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0 0 26px 26px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  }
  .hero-carousel::before {
    width: 96%;
    height: 58%;
    left: 2%;
    top: 19%;
    filter: blur(64px);
  }
  .carousel-slide {
    width: 76%;
    height: 79%;
    border-radius: 23px;
  }
  .carousel-slide.is-prev {
    opacity: 0.58;
    transform: translate(-50%, -50%) translateX(-28%) scale(0.8) rotateY(9deg);
  }
  .carousel-slide.is-next {
    opacity: 0.58;
    transform: translate(-50%, -50%) translateX(28%) scale(0.8) rotateY(-9deg);
  }
  .carousel-slide.is-active {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 28px 70px rgba(0,0,0,0.64), 0 0 0 1px rgba(255,255,255,0.06);
  }
  .home-actions {
    margin-top: 12px;
    padding: 0 10px;
  }
}

@media (max-width: 380px) {
  .hero-carousel { height: min(150vw, 570px); }
  .carousel-slide { width: 78%; height: 77%; }
}
/* Cross-browser coverflow fallbacks: 2D base, 3D enhancement */
.home-shell {
  width: 96%;
  max-width: 1180px;
}
.hero-carousel {
  height: 620px;
}
.carousel-track {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.carousel-slide {
  width: 40%;
  max-width: 420px;
  transform: translate(-50%, -50%) scale(0.68);
  -webkit-transform: translate(-50%, -50%) scale(0.68);
  -webkit-transition: -webkit-transform 0.9s cubic-bezier(0.2, 0.78, 0.2, 1), opacity 0.72s ease;
}
.carousel-slide.is-active {
  transform: translate(-50%, -50%) scale(1);
  -webkit-transform: translate(-50%, -50%) scale(1);
}
.carousel-slide.is-prev {
  transform: translate(-50%, -50%) translateX(-56%) scale(0.79);
  -webkit-transform: translate(-50%, -50%) translateX(-56%) scale(0.79);
  filter: brightness(0.64) saturate(0.9);
  -webkit-filter: brightness(0.64) saturate(0.9);
}
.carousel-slide.is-next {
  transform: translate(-50%, -50%) translateX(56%) scale(0.79);
  -webkit-transform: translate(-50%, -50%) translateX(56%) scale(0.79);
  filter: brightness(0.64) saturate(0.9);
  -webkit-filter: brightness(0.64) saturate(0.9);
}
.carousel-slide.is-hidden {
  transform: translate(-50%, -50%) scale(0.58);
  -webkit-transform: translate(-50%, -50%) scale(0.58);
}
.carousel-slide .carousel-backdrop,
.carousel-slide .carousel-photo {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.carousel-slide .carousel-backdrop {
  -webkit-filter: blur(28px) brightness(0.32) saturate(1.08);
}
.hero-carousel::before {
  -webkit-filter: blur(86px);
}
html.no-object-fit .carousel-slide .carousel-photo,
html.no-object-fit .carousel-slide.is-active .carousel-photo {
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  -webkit-transform: translate(-50%, -50%) !important;
  transform: translate(-50%, -50%) !important;
}
html.no-object-fit .carousel-slide .carousel-backdrop { display: none; }
html.no-css-filter .carousel-slide.is-prev,
html.no-css-filter .carousel-slide.is-next { opacity: 0.48; }

@media (max-width: 900px) and (min-width: 641px) {
  .hero-carousel { height: 600px; }
}
@media (max-width: 640px) {
  .home-shell {
    width: 100%;
    max-width: none;
  }
  .hero-carousel {
    height: 148vw;
    max-height: 620px;
  }
  .carousel-slide {
    width: 76%;
    max-width: none;
  }
  .carousel-slide.is-prev {
    transform: translate(-50%, -50%) translateX(-28%) scale(0.8);
    -webkit-transform: translate(-50%, -50%) translateX(-28%) scale(0.8);
  }
  .carousel-slide.is-next {
    transform: translate(-50%, -50%) translateX(28%) scale(0.8);
    -webkit-transform: translate(-50%, -50%) translateX(28%) scale(0.8);
  }
  .hero-carousel::before { -webkit-filter: blur(64px); }
}
@media (max-width: 380px) {
  .hero-carousel {
    height: 150vw;
    max-height: 570px;
  }
}

@supports ((perspective: 1px) and (transform-style: preserve-3d)) or (( -webkit-perspective: 1px) and (-webkit-transform-style: preserve-3d)) {
  .carousel-track {
    -webkit-perspective: 1600px;
    perspective: 1600px;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
  }
  .carousel-slide {
    -webkit-transform-origin: center center;
    transform-origin: center center;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
  .carousel-slide.is-prev {
    transform: translate(-50%, -50%) translateX(-56%) scale(0.79) rotateY(11deg);
    -webkit-transform: translate(-50%, -50%) translateX(-56%) scale(0.79) rotateY(11deg);
  }
  .carousel-slide.is-next {
    transform: translate(-50%, -50%) translateX(56%) scale(0.79) rotateY(-11deg);
    -webkit-transform: translate(-50%, -50%) translateX(56%) scale(0.79) rotateY(-11deg);
  }
}

@media (max-width: 900px) and (min-width: 641px) {
  @supports ((perspective: 1px) and (transform-style: preserve-3d)) or (( -webkit-perspective: 1px) and (-webkit-transform-style: preserve-3d)) {
    .carousel-slide.is-prev {
      transform: translate(-50%, -50%) translateX(-49%) scale(0.79) rotateY(10deg);
      -webkit-transform: translate(-50%, -50%) translateX(-49%) scale(0.79) rotateY(10deg);
    }
    .carousel-slide.is-next {
      transform: translate(-50%, -50%) translateX(49%) scale(0.79) rotateY(-10deg);
      -webkit-transform: translate(-50%, -50%) translateX(49%) scale(0.79) rotateY(-10deg);
    }
  }
}

@media (max-width: 640px) {
  @supports ((perspective: 1px) and (transform-style: preserve-3d)) or (( -webkit-perspective: 1px) and (-webkit-transform-style: preserve-3d)) {
    .carousel-slide.is-prev {
      transform: translate(-50%, -50%) translateX(-28%) scale(0.8) rotateY(9deg);
      -webkit-transform: translate(-50%, -50%) translateX(-28%) scale(0.8) rotateY(9deg);
    }
    .carousel-slide.is-next {
      transform: translate(-50%, -50%) translateX(28%) scale(0.8) rotateY(-9deg);
      -webkit-transform: translate(-50%, -50%) translateX(28%) scale(0.8) rotateY(-9deg);
    }
  }
}
/* Stable 2D rendering for Android emulators, WebViews and older Chrome */
.carousel-track {
  -webkit-perspective: none !important;
  perspective: none !important;
  -webkit-transform-style: flat !important;
  transform-style: flat !important;
}
.hero-carousel::before {
  display: none !important;
}
.carousel-slide {
  -webkit-filter: none !important;
  filter: none !important;
  -webkit-backface-visibility: visible !important;
  backface-visibility: visible !important;
  will-change: auto !important;
}
.carousel-slide .carousel-backdrop {
  display: none !important;
}
.carousel-slide .carousel-media {
  background: linear-gradient(145deg, #0b1424, #050913);
}
.carousel-slide::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(3, 7, 16, 0.12), rgba(3, 7, 16, 0.34));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}
.carousel-slide.is-prev::after,
.carousel-slide.is-next::after {
  opacity: 1;
}
.carousel-slide.is-prev {
  transform: translate(-50%, -50%) translateX(-56%) scale(0.79) !important;
  -webkit-transform: translate(-50%, -50%) translateX(-56%) scale(0.79) !important;
  opacity: 0.66;
}
.carousel-slide.is-next {
  transform: translate(-50%, -50%) translateX(56%) scale(0.79) !important;
  -webkit-transform: translate(-50%, -50%) translateX(56%) scale(0.79) !important;
  opacity: 0.66;
}
.carousel-slide.is-active {
  transform: translate(-50%, -50%) scale(1) !important;
  -webkit-transform: translate(-50%, -50%) scale(1) !important;
}

@media (max-width: 900px) and (min-width: 641px) {
  .carousel-slide.is-prev {
    transform: translate(-50%, -50%) translateX(-49%) scale(0.79) !important;
    -webkit-transform: translate(-50%, -50%) translateX(-49%) scale(0.79) !important;
  }
  .carousel-slide.is-next {
    transform: translate(-50%, -50%) translateX(49%) scale(0.79) !important;
    -webkit-transform: translate(-50%, -50%) translateX(49%) scale(0.79) !important;
  }
}

@media (max-width: 640px) {
  .carousel-slide.is-prev {
    transform: translate(-50%, -50%) translateX(-28%) scale(0.8) !important;
    -webkit-transform: translate(-50%, -50%) translateX(-28%) scale(0.8) !important;
  }
  .carousel-slide.is-next {
    transform: translate(-50%, -50%) translateX(28%) scale(0.8) !important;
    -webkit-transform: translate(-50%, -50%) translateX(28%) scale(0.8) !important;
  }
}