:root{
  --bg:#0b1020;
  --card:#111a33cc;
  --text:#e9eefc;
  --muted:#b9c4e3;
  --brand:#6ee7ff;
  --brand2:#a78bfa;
  --shadow: 0 18px 60px rgba(0,0,0,.35);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans KR", "Apple SD Gothic Neo", Arial, "PingFang SC", "Microsoft Yahei", sans-serif;
  background: radial-gradient(1200px 800px at 10% 10%, rgba(167,139,250,.18), transparent 55%),
              radial-gradient(900px 700px at 90% 0%, rgba(110,231,255,.12), transparent 55%),
              var(--bg);
  color: var(--text);
}

.container{
  width:min(1100px, calc(100% - 40px));
  margin:0 auto;
}

/* HERO */
.hero{
  position:relative;
  overflow:hidden;
  padding: 72px 0 36px;
}

.hero-float{
  position:absolute;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  filter: blur(60px);
  opacity: .45;
  animation: float 12s ease-in-out infinite;
}
.hero-float:nth-child(1){
  background: rgba(110,231,255,.35);
  top:-220px; left:-160px;
}
.hero-float:nth-child(2){
  background: rgba(167,139,250,.35);
  top:-260px; right:-220px;
  animation-delay: -4s;
}
.hero-float:nth-child(3){
  background: rgba(52,211,153,.18);
  bottom:-280px; left: 35%;
  animation-delay: -8s;
}

@keyframes float{
  0%,100%{ transform: translate3d(0,0,0) scale(1); }
  50%{ transform: translate3d(0,-18px,0) scale(1.03); }
}

.hero-content{
  position:relative;
  z-index:1;
  text-align:center;
}
.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 16px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.hero-badge span{ font-weight:700; letter-spacing: .2px; }

.hero-title{
  margin: 18px 0 8px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing:-.02em;
}
.hero-title span{
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
  font-weight: 800;
}
.hero-subtitle{
  margin: 0 auto 18px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 16px;
}

.card-cta{
  display:flex;
  justify-content:center;
  margin: 16px 0 22px;
}

.cta-button-secondary{
  display:inline-flex;
  gap:10px;
  align-items:center;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  cursor:pointer;
  transition: transform .12s ease, background .2s ease, border-color .2s ease;
  font-weight: 700;
}
.cta-button-secondary:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.26);
}

/* Channel card */
.channel-card{
  width:min(760px, 100%);
  margin: 0 auto;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(17,26,51,.72), rgba(17,26,51,.42));
  border: 1px solid rgba(255,255,255,.12);
  padding: 20px 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.channel-header{
  display:flex;
  gap:14px;
  align-items:center;
  justify-content:center;
  flex-wrap: wrap;
}
.channel-avatar{
  width: 56px;
  height: 56px;
  border-radius: 999px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 10px 26px rgba(0,0,0,.25);
  background: transparent;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 0;
}
.channel-avatar-img{
  width: 100%;
  height: 100%;
  display:block;
  object-fit: cover;
}
.channel-avatar-fallback{
  font-weight:900;
  color: rgba(255,255,255,.9);
}
.channel-info h3{
  margin:0;
  font-size: 18px;
  font-weight: 800;
}
.channel-info p{
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.channel-desc{
  margin: 14px 0 16px;
  line-height: 1.7;
  color: rgba(233,238,252,.92);
}
.channel-stats{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.stat-item{
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  padding: 12px 10px;
}
.stat-number{
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
}
.stat-label{
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

/* Ticker */
.stock-ticker{
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(10px);
  overflow:hidden;
}
.ticker-wrap{
  display:flex;
  align-items:center;
  gap: 18px;
  width:100%;
  padding: 10px 0;
}
.ticker-track{
  display:flex;
  gap: 14px;
  align-items:center;
  white-space: nowrap;
  animation: ticker 22s linear infinite;
}
@keyframes ticker{
  0%{ transform: translateX(0); }
  100%{ transform: translateX(-100%); }
}
.ticker-item{
  display:flex;
  align-items:baseline;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
}
.ticker-item .symbol{ font-weight: 800; }
.ticker-item .price{ color: rgba(233,238,252,.92); font-weight: 700; }
.ticker-item .change{ font-size: 12px; }
.ticker-item.up{ border-color: rgba(52,211,153,.20); }
.ticker-item.down{ border-color: rgba(248,113,113,.20); }

/* Sections */
.section{ padding: 56px 0; }
.section-title{
  text-align:center;
  margin-bottom: 26px;
}
.section-title h2{
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 900;
}
.section-title p{ margin:0; color: var(--muted); }

.feature-row{
  width:min(860px, 100%);
  margin: 14px auto;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  box-shadow: var(--shadow);
  padding: 22px 18px;
}
.feature-content h3{
  margin:0 0 10px;
  font-size: 20px;
  font-weight: 900;
}
.feature-content p{
  margin:0 0 12px;
  color: rgba(233,238,252,.92);
  line-height: 1.7;
}
.feature-list{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}
.feature-list li{ list-style: none; padding-left: 0; }

.community-section{
  background: radial-gradient(900px 520px at 50% 0%, rgba(110,231,255,.12), transparent 60%),
              rgba(255,255,255,.03);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.community-content{
  text-align:center;
}
.community-content h2{
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 900;
}
.community-content p{
  margin:0 auto 18px;
  width:min(760px, 100%);
  color: var(--muted);
  line-height: 1.7;
}
.section-cta{ display:flex; justify-content:center; margin-bottom: 18px; }
.community-features{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.community-feature{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  padding: 18px 14px;
  box-shadow: var(--shadow);
}
.community-feature i{
  font-size: 18px;
  color: var(--brand);
}
.community-feature h4{
  margin: 10px 0 6px;
  font-size: 16px;
  font-weight: 900;
}
.community-feature p{
  margin:0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* Footer */
.footer{
  padding: 34px 0 110px; /* leave space for fixed CTA */
  text-align:center;
}
.footer-logo{
  font-weight: 900;
  letter-spacing: .2px;
  margin-bottom: 10px;
}
.footer-disclaimer{
  width:min(900px, 100%);
  margin: 0 auto 12px;
  color: rgba(233,238,252,.86);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 14px 14px;
  line-height: 1.7;
}
.footer-links{
  display:flex;
  gap: 10px;
  justify-content:center;
  flex-wrap: wrap;
  margin: 10px 0 12px;
}
.footer-link{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 12px;
  cursor:pointer;
}
.footer-link:hover{ background: rgba(255,255,255,.10); }
.footer-copy{ color: rgba(185,196,227,.85); margin: 0; }

/* Fixed CTA */
.fixed-cta{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  background: rgba(10,16,32,.72);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,.08);
  z-index: 998;
}
.cta-button{
  display:flex;
  justify-content:center;
  align-items:center;
  width: min(760px, calc(100% - 16px));
  margin: 0 auto;
  text-decoration:none;
  color: #081022;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  border-radius: 16px;
  padding: 14px 16px;
  font-weight: 900;
  box-shadow: 0 18px 60px rgba(110,231,255,.10);
  transition: transform .12s ease, filter .2s ease;
}
.cta-button:hover{
  transform: translateY(-1px);
  filter: brightness(1.05);
}

/* Live bubbles */
.live-bubbles{
  position: fixed;
  left: 16px;
  bottom: 92px;
  z-index: 997;
  pointer-events: none;
}
.bubble{
  display:inline-flex;
  align-items:center;
  max-width: 260px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(17,26,51,.75);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(233,238,252,.92);
  box-shadow: var(--shadow);
  transform: translateY(0);
  opacity: 1;
  transition: opacity .35s ease, transform .35s ease;
}
.bubble.is-leaving{
  opacity: 0;
  transform: translateY(6px);
}
.bubble span{ font-size: 12px; line-height: 1.4; }

/* Reveal animation */
.reveal{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* Scrollbar hiding for modal content */
.no-scrollbar::-webkit-scrollbar{ display:none; }
.no-scrollbar{ -ms-overflow-style:none; scrollbar-width:none; }

@media (max-width: 900px){
  .community-features{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px){
  .channel-stats{ grid-template-columns: 1fr; }
  .community-features{ grid-template-columns: 1fr; }
  .live-bubbles{ left: 10px; bottom: 88px; }
  .bubble{ max-width: 220px; }
}
