@import url('https://fonts.googleapis.com/css2?family=Jua&family=Nunito:wght@400;600;700;800;900&family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

:root {
  --sky:        #2f8fd4;   /* ?¬μΈ??- ?? ?₯μ, κ°μ‘° ?μ© */
  --sky-soft:   #7ec0e8;   /* ?°ν ?λ - ?λλ¦¬μ© */
  --sky-glow:   #daeef8;   /* κ±°μ ?°μ??κ°κΉμ΄ ?λ - λ°°κ²½ ?΄νΈ??*/
  --sky-deep:   #1565a8;   /* ??μ§ν ?¬μΈ??*/
  --sea-foam:   #eefaff;
  --sea-mist:   #ddf2ff;
  --sea-line:   #8bc8ea;
  --sea-bubble: rgba(126, 200, 232, 0.34);
  --stella-main: #7987e0;
  --white:      #ffffff;
  --off-white:  #f7fbfe;   /* ?Ήμ λ°°κ²½ */
  --text-dark:  #1a3040;
  --text-mid:   #3d6478;
  --text-light: #7aafc8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans KR', 'Nunito', sans-serif;
  background-color: var(--white);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* ?? ANIMATIONS ?? */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50%       { transform: translateY(-15px) rotate(5deg); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50%       { transform: translateY(-10px) rotate(-5deg); }
}
@keyframes sparkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.3; transform: scale(0.75); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes boing {
  0%   { transform: translateY(0)      scale(1,    1);    }
  20%  { transform: translateY(-14px)  scale(0.94, 1.06); }
  40%  { transform: translateY(0)      scale(1.06, 0.94); }
  55%  { transform: translateY(-7px)   scale(0.97, 1.03); }
  70%  { transform: translateY(0)      scale(1.02, 0.98); }
  82%  { transform: translateY(-3px)   scale(0.99, 1.01); }
  100% { transform: translateY(0)      scale(1,    1);    }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
@keyframes tideShift {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(10px); }
}
@keyframes bubbleDrift {
  0%   { transform: translate3d(0, 0, 0); }
  50%  { transform: translate3d(-2%, -4%, 0); }
  100% { transform: translate3d(2%, -8%, 0); }
}
@keyframes waveFlow {
  0%   { background-position: 0 0, 0 0, 0 0; }
  100% { background-position: 260px 0, -220px 0, 0 0; }
}
@keyframes mysticGlow {
  0%, 100% { opacity: 0.36; }
  50%      { opacity: 0.62; }
}
@keyframes seaDrift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-2px) rotate(-0.2deg); }
}
@keyframes castStreak {
  0%   { opacity: 0; transform: translate(-50%, -50%) rotate(var(--rot)) scaleX(0.2); }
  18%  { opacity: 0.95; }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--rot)) scaleX(1.15); }
}
@keyframes runeBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.72) rotate(calc(var(--r1) * 0.2));
  }
  8% {
    opacity: 0.78;
    transform: translate(calc(-50% + var(--dx) * 0.12), calc(-50% + var(--dy) * 0.12)) scale(0.92) rotate(calc(var(--r1) * 0.45));
  }
  38% {
    opacity: 0.96;
    transform: translate(calc(-50% + var(--dx) * 0.56), calc(-50% + var(--dy) * 0.56)) scale(1) rotate(var(--r1));
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.88) rotate(var(--r2));
  }
}
@keyframes constLineBreak {
  0%   { opacity: 0; transform: translate(-50%, -50%) rotate(var(--rot)) scaleX(0.08); }
  12%  { opacity: 0.92; }
  60%  { opacity: 0.86; }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--rot)) scaleX(1); }
}
@keyframes starScatter {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.45);
  }
  18% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.32);
  }
}
/* ?????????????????????????????????????????
   HERO  ????λ°°κ²½ + ?λ? ?₯μ κ°??????????????????????????????????????????? */
.hero {
  min-height: 100vh;
  background: #ffffff;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 80px 20px 140px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: min(45vh, 380px);
  background: linear-gradient(180deg, #001c45 0%, #005bc9 42%, rgba(29, 93, 152, 0.36) 74%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  z-index: 0;
}

.hero-night-sky {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: min(45vh, 380px);
  z-index: 1;
  pointer-events: none;
}
.hero-night-sky svg {
  width: 100%;
  height: 100%;
  display: block;
}
.hero-night-sky .const-star {
  opacity: 0.9;
  transform-box: fill-box;
  transform-origin: center;
}
.hero-night-sky .const-star.dim {
  opacity: 0.6;
}
.hero-night-sky .const-star.tw1 {
  animation: sparkle 2.8s ease-in-out infinite;
}
.hero-night-sky .const-star.tw2 {
  animation: sparkle 3.4s ease-in-out infinite 0.6s;
}
.hero-night-sky .const-star.tw3 {
  animation: sparkle 4s ease-in-out infinite 1.1s;
}

/* ?λ¨ ?μ΄???λλ¦?*/
.hero-night-sky .const-line-bright line {
  stroke: rgba(197, 232, 255, 0.68);
  stroke-width: 1.2;
  opacity: 0.72;
  filter: drop-shadow(0 0 4px rgba(157, 210, 246, 0.34));
}
.hero-night-sky .const-star.bright {
  fill: rgba(205, 235, 255, 0.96);
  opacity: 0.82;
  filter: drop-shadow(0 0 6px rgba(143, 204, 246, 0.44));
}
.hero-night-sky .const-star.wb1 {
  animation: brightTwinkle 1.75s ease-in-out infinite;
}
.hero-night-sky .const-star.wb2 {
  animation: brightTwinkle 2.2s ease-in-out infinite 0.35s;
}
.hero-night-sky .const-star.wb3 {
  animation: brightTwinkle 2.65s ease-in-out infinite 0.7s;
}

@keyframes brightTwinkle {
  0%, 100% {
    opacity: 0.48;
    transform: scale(0.94);
  }
  40% {
    opacity: 0.86;
    transform: scale(1.16);
  }
}

.hero-lace-top {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 2;
}

/* μ½λ ?μ΄???₯μ */
.lace-corner {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}
.lace-corner.tl { top: 0;  left: 0; }
.lace-corner.tr { top: 0;  right: 0; transform: scaleX(-1); }
.lace-corner.bl { bottom: 60px; left: 0;  transform: scaleY(-1); }
.lace-corner.br { bottom: 60px; right: 0; transform: scale(-1,-1); }

/* ?λ‘??λ§?*/
.deco-circles { position: absolute; width: 100%; height: 100%; pointer-events: none; }
.deco-circle {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(47,143,212,0.18);
  background: transparent;
}
.deco-circle.filled {
  background: rgba(47,143,212,0.05);
  border-color: rgba(47,143,212,0.12);
}
.deco-circle:nth-child(1) { width: 260px; height: 260px; top: 2%;   left: -4%;  animation: float  7s ease-in-out infinite; }
.deco-circle:nth-child(2) { width: 160px; height: 160px; top: 5%;   left: 8%;   animation: float2 5s ease-in-out infinite 0.5s; border-width: 1px; }
.deco-circle:nth-child(3) { width: 100px; height: 100px; top: 15%;  right: 5%;  animation: float  6s ease-in-out infinite 1s; }
.deco-circle:nth-child(4) { width: 200px; height: 200px; top: 8%;   right: -3%; animation: float2 8s ease-in-out infinite; border-width: 1px; }
.deco-circle:nth-child(5) { width: 80px;  height: 80px;  bottom: 18%; left: 6%;  animation: float  5s ease-in-out infinite 0.8s; }
.deco-circle:nth-child(6) { width: 140px; height: 140px; bottom: 12%; left: 14%; animation: float2 7s ease-in-out infinite 0.3s; border-width: 1px; }
.deco-circle:nth-child(7) { width: 180px; height: 180px; bottom: 10%; right: -2%; animation: float  6s ease-in-out infinite; }
.deco-circle:nth-child(8) { width: 60px;  height: 60px;  bottom: 28%; right: 12%; animation: float2 4s ease-in-out infinite 1.2s; }

/* ?νΈ ?¨ν΄ */
.deco-dots {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}
.deco-dots.left  { top: 20%; left: 3%; }
.deco-dots.right { top: 35%; right: 3%; }
.deco-dots.bot   { bottom: 18%; left: 40%; transform: translateX(-50%); }

/* ?λ‘???€μ΄?λͺ¬??*/
.deco-diamond {
  position: absolute;
  width: 12px; height: 12px;
  border: 2px solid rgba(47,143,212,0.4);
  transform: rotate(45deg);
  pointer-events: none;
  animation: sparkle 3s ease-in-out infinite;
}
.deco-diamond:nth-of-type(1) { top: 22%; left: 22%; animation-delay: 0s; }
.deco-diamond:nth-of-type(2) { top: 18%; right: 25%; animation-delay: 0.6s; }
.deco-diamond:nth-of-type(3) { bottom: 30%; left: 28%; animation-delay: 1.2s; }
.deco-diamond:nth-of-type(4) { bottom: 22%; right: 22%; animation-delay: 0.3s; }
.deco-diamond:nth-of-type(5) { top: 48%; left: 10%; animation-delay: 0.9s; width:8px; height:8px; }
.deco-diamond:nth-of-type(6) { top: 42%; right: 10%; animation-delay: 1.5s; width:8px; height:8px; }

/* ?λ‘???? */
.deco-plus {
  position: absolute;
  color: rgba(47,143,212,0.35);
  font-size: 1.4rem;
  pointer-events: none;
  animation: sparkle 2.5s ease-in-out infinite;
  font-weight: 300;
}
.deco-plus:nth-of-type(1) { top: 12%; left: 32%; animation-delay: 0.4s; }
.deco-plus:nth-of-type(2) { top: 32%; left: 5%;  animation-delay: 1s; }
.deco-plus:nth-of-type(3) { top: 65%; left: 22%; animation-delay: 0.2s; }
.deco-plus:nth-of-type(4) { top: 20%; right: 10%; animation-delay: 0.7s; }
.deco-plus:nth-of-type(5) { bottom: 25%; right: 28%; animation-delay: 1.3s; }

.sparkle {
  position: absolute;
  font-size: 1.2rem;
  color: var(--sky);
  animation: sparkle 2.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}
.sparkle:nth-child(1) { top: 14%; left: 13%;  animation-delay: 0s; }
.sparkle:nth-child(2) { top: 28%; right: 14%; animation-delay: 0.5s; }
.sparkle:nth-child(3) { bottom: 22%; left: 18%; animation-delay: 1s; }
.sparkle:nth-child(4) { bottom: 18%; right: 18%; animation-delay: 1.5s; }
.sparkle:nth-child(5) { top: 58%;  left: 7%;   animation-delay: 0.3s; }
.sparkle:nth-child(6) { top: 9%;   right: 28%; animation-delay: 0.8s; }

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  animation: fadeInUp 1s ease-out;
}

.team-badge {
  display: inline-block;
  background: white;
  border: 1.5px solid var(--sky-soft);
  border-radius: 50px;
  padding: 8px 24px;
  font-size: 0.82rem;
  color: var(--sky-deep);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
  box-shadow: 0 2px 16px rgba(47,143,212,0.15);
}

.hero-title {
  font-family: 'Jua', 'Nunito', sans-serif;
  font-size: clamp(3.5rem, 10vw, 7rem);
  color: var(--text-dark);
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(1rem, 3vw, 1.3rem);
  color: var(--sky-deep);
  letter-spacing: 1px;
  margin-bottom: 16px;
  font-weight: 600;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-mid);
  font-weight: 300;
  margin-bottom: 48px;
  line-height: 1.9;
}

/* ?? μ§??λ²νΌ (?μ΄λ‘? ?? */
.join-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: white;
  color: var(--sky-deep);
  text-decoration: none;
  font-family: 'Jua', 'Nunito', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  padding: 16px 48px;
  border-radius: 50px;
  border: 2px solid var(--sky);
  box-shadow: 0 6px 28px rgba(126,200,227,0.35), 0 0 0 4px rgba(126,200,227,0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: seaDrift 6.8s ease-in-out infinite;
}

.join-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(126,200,227,0.2), transparent);
  transition: left 0.5s;
}
.join-btn:hover::before { left: 100%; }
.join-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 40px rgba(126,200,227,0.45), 0 0 0 6px rgba(126,200,227,0.15);
  background: var(--sky-glow);
}
.join-btn span { font-size: 1.4rem; }

/* ?? ?μ΄??λ¬Όκ²° κ΅¬λΆ???? */
.lace-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-top: -2px;
}
.lace-divider svg path:first-of-type { fill: #eaf8ff !important; }
.lace-divider svg path:nth-of-type(2) { stroke: rgba(112, 192, 232, 0.78) !important; }
.lace-divider svg path:nth-of-type(3) { stroke: rgba(176, 225, 249, 0.58) !important; }
.lace-divider svg circle { fill: rgba(130, 204, 238, 0.48) !important; }

/* ?????????????????????????????????????????
   SECTIONS
????????????????????????????????????????? */
section { padding: 80px 20px; }

.about-section,
.members-section,
.stack-section,
.join-section {
  position: relative;
  overflow: hidden;
}

.about-section::before,
.members-section::before,
.stack-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 22%, rgba(177, 230, 252, 0.18) 0 9px, transparent 10px),
    radial-gradient(circle at 26% 70%, rgba(151, 214, 244, 0.16) 0 7px, transparent 8px),
    radial-gradient(circle at 44% 28%, rgba(163, 223, 248, 0.14) 0 8px, transparent 9px),
    radial-gradient(circle at 62% 76%, rgba(144, 207, 238, 0.14) 0 10px, transparent 11px),
    radial-gradient(circle at 80% 34%, rgba(163, 223, 248, 0.16) 0 7px, transparent 8px),
    radial-gradient(circle at 92% 64%, rgba(151, 214, 244, 0.16) 0 9px, transparent 10px),
    radial-gradient(circle at 84% 28%, rgba(255, 255, 255, 0.14) 0 100px, transparent 101px);
  pointer-events: none;
  opacity: 0.52;
  animation: bubbleDrift 36s ease-in-out infinite;
}

.about-section::after,
.members-section::after,
.stack-section::after {
  content: "";
  position: absolute;
  left: -6%;
  right: -6%;
  top: -12px;
  height: 108px;
  background:
    repeating-radial-gradient(130% 70% at 50% 108%, rgba(126, 205, 243, 0.24) 0 1.8px, transparent 1.8px 22px),
    repeating-radial-gradient(120% 68% at 48% 112%, rgba(168, 227, 251, 0.18) 0 1.4px, transparent 1.4px 18px),
    linear-gradient(180deg, rgba(132, 204, 238, 0.2), rgba(132, 204, 238, 0));
  pointer-events: none;
  opacity: 0.5;
  animation: waveFlow 34s linear infinite, tideShift 14s ease-in-out infinite;
}

.about-section .section-header,
.members-section .section-header,
.stack-section .section-header,
.about-grid,
.members-grid,
.stack-container {
  position: relative;
  z-index: 1;
}

.about-section,
.members-section,
.stack-section {
  background:
    linear-gradient(180deg, #f5fcff 0%, #e9f7ff 44%, #ddf1fb 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--sky-deep);
  font-weight: 600;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Jua', 'Nunito', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--sky-soft), var(--sky), var(--sky-soft));
  border-radius: 2px;
  margin: 0 auto 16px;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 300;
  line-height: 1.8;
}

.about-section .section-tag,
.members-section .section-tag,
.stack-section .section-tag {
  color: #5e74d2;
}

.about-section .section-title,
.members-section .section-title,
.stack-section .section-title {
  color: #1f5d86;
  text-shadow: none;
}

.about-section .section-divider,
.members-section .section-divider,
.stack-section .section-divider {
  background: linear-gradient(90deg, rgba(132,204,238,0.18), var(--stella-main), rgba(132,204,238,0.18));
}

.about-section .section-desc,
.members-section .section-desc,
.stack-section .section-desc {
  color: #4b7b9a;
}

/* ?? ABOUT ?? */
.about-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.about-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95) 0%, rgba(232, 247, 255, 0.9) 100%);
  border-radius: 24px;
  padding: 40px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(74, 142, 177, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.62);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1.5px solid rgba(163, 221, 248, 0.66);
  backdrop-filter: blur(2px);
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sky-soft), var(--sky), var(--sky-deep), var(--sky), var(--sky-soft));
  background-size: 200%;
  animation: shimmer 3s linear infinite;
}

.about-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 30px rgba(74, 142, 177, 0.22), 0 0 0 1px rgba(205, 241, 255, 0.45);
}

.about-card::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 36%, rgba(255,255,255,0.92) 0 8px, rgba(126,200,232,0.32) 9px 17px, transparent 18px),
    radial-gradient(circle at 62% 62%, rgba(126,200,232,0.2) 0 12px, transparent 13px);
  opacity: 0.7;
  pointer-events: none;
}

.about-card-icon { font-size: 3rem; margin-bottom: 20px; display: block; }

.about-card h3 {
  font-family: 'Jua', 'Nunito', sans-serif;
  font-size: 1.5rem;
  color: #0c436f;
  margin-bottom: 12px;
}

.about-card p {
  font-size: 0.95rem;
  color: #245b84;
  line-height: 1.8;
}

/* ?? MEMBERS ?? */
.members-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.member-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95) 0%, rgba(232, 247, 255, 0.9) 100%);
  border-radius: 28px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 10px 26px rgba(74, 142, 177, 0.17), inset 0 1px 0 rgba(255,255,255,0.58);
  border: 1.5px solid rgba(161, 219, 246, 0.64);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(2px);
}

.member-card::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 16px;
  width: 24px;
  height: 24px;
  border: 1.4px solid rgba(126,200,232,0.34);
  border-radius: 50%;
  box-shadow:
    20px 10px 0 -7px rgba(126,200,232,0.28),
    40px 2px 0 -9px rgba(126,200,232,0.24);
  pointer-events: none;
}

.member-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 0;
  background: linear-gradient(180deg, transparent, rgba(126,200,227,0.06));
  transition: height 0.3s ease;
}

.member-card:hover { transform: translateY(-10px); box-shadow: 0 16px 34px rgba(74, 142, 177, 0.24), 0 0 0 1px rgba(205, 241, 255, 0.45); }
.member-card:hover::after { height: 100%; }

.member-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky-glow), var(--sky-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  margin: 0 auto 20px;
  border: 2.5px solid var(--sky-soft);
  box-shadow: 0 4px 16px rgba(126,200,227,0.25);
}

.member-name {
  font-family: 'Jua', 'Nunito', sans-serif;
  font-size: 1.4rem;
  color: #0c436f;
  margin-bottom: 8px;
}

.member-role {
  display: inline-block;
  background: rgba(218, 238, 248, 0.86);
  color: #0c4d80;
  border: 1px solid rgba(131, 201, 236, 0.82);
  font-size: 0.73rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

.member-desc {
  font-size: 0.9rem;
  color: #245b84;
  line-height: 1.7;
}

/* ?? STACK ?? */
.stack-container { max-width: 800px; margin: 0 auto; }

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.stack-item {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95) 0%, rgba(232, 247, 255, 0.9) 100%);
  border-radius: 20px;
  padding: 28px 16px;
  text-align: center;
  box-shadow: 0 9px 22px rgba(74, 142, 177, 0.15), inset 0 1px 0 rgba(255,255,255,0.58);
  border: 1.5px solid rgba(161, 219, 246, 0.64);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(2px);
}

.stack-item::before {
  content: "";
  position: absolute;
  right: -12px;
  top: -12px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(126,200,232,0.24) 0 14px, transparent 15px),
    radial-gradient(circle at 72% 72%, rgba(126,200,232,0.18) 0 8px, transparent 9px);
  pointer-events: none;
}

.stack-item:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 14px 30px rgba(74, 142, 177, 0.22), 0 0 0 1px rgba(205, 241, 255, 0.42);
  border-color: #8fd3f5;
}

.stack-icon { font-size: 2.5rem; margin-bottom: 10px; display: block; }
.stack-name { font-weight: 600; color: #0c436f; font-size: 0.95rem; margin-bottom: 4px; }
.stack-desc { font-size: 0.78rem; color: #35739f; }

/* ?? JOIN CTA ?? */
.join-section {
  background: linear-gradient(160deg, #8fd8f5 0%, #65bfe8 52%, #4aa8db 100%);
  position: relative;
  overflow: hidden;
  padding: 100px 20px;
}

.join-section::before {
  content: '';
  position: absolute;
  top: -26px;
  left: -10%;
  width: 120%;
  height: 120px;
  background:
    repeating-radial-gradient(130% 70% at 50% 108%, rgba(232, 249, 255, 0.46) 0 1.6px, transparent 1.6px 20px),
    repeating-radial-gradient(120% 68% at 48% 112%, rgba(186, 232, 252, 0.32) 0 1.2px, transparent 1.2px 16px);
  opacity: 0.58;
  animation: waveFlow 38s linear infinite, tideShift 15s ease-in-out infinite;
}

.join-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 24%, rgba(255,255,255,0.26) 0 9px, transparent 10px),
    radial-gradient(circle at 26% 72%, rgba(255,255,255,0.2) 0 7px, transparent 8px),
    radial-gradient(circle at 44% 34%, rgba(255,255,255,0.24) 0 8px, transparent 9px),
    radial-gradient(circle at 61% 78%, rgba(255,255,255,0.2) 0 10px, transparent 11px),
    radial-gradient(circle at 78% 28%, rgba(255,255,255,0.24) 0 8px, transparent 9px),
    radial-gradient(circle at 91% 64%, rgba(255,255,255,0.22) 0 9px, transparent 10px);
  pointer-events: none;
  opacity: 0.46;
  animation: bubbleDrift 34s ease-in-out infinite;
}

.join-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.join-section .section-tag  { color: rgba(240,252,255,0.92); }
.join-section .section-title { color: #ffffff; }
.join-section .section-divider {
  background: linear-gradient(90deg, rgba(255,255,255,0.25), rgba(255,255,255,0.86), rgba(255,255,255,0.25));
}

.join-text {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.92);
  line-height: 1.9;
  margin-bottom: 48px;
  font-weight: 300;
}

.join-btn-lg {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: white;
  color: var(--sky-deep);
  text-decoration: none;
  font-family: 'Jua', 'Nunito', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  padding: 20px 60px;
  border-radius: 50px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15), 0 0 0 4px rgba(255,255,255,0.3);
  transition: all 0.3s ease;
  animation: seaDrift 7.6s ease-in-out infinite 0.4s;
}

.join-btn-lg:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  background: var(--sky-glow);
}

.join-note {
  margin-top: 24px;
  font-size: 0.85rem;
  color: rgba(236, 250, 255, 0.76);
}

/* ?? FOOTER ?? */
footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.55);
  text-align: center;
  padding: 40px 20px;
  font-size: 0.85rem;
}

footer .footer-brand {
  font-family: 'Jua', 'Nunito', sans-serif;
  font-size: 1.8rem;
  color: var(--sky);
  margin-bottom: 8px;
}

/* ?? RIBBON DECO ?? */
.ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}
.ribbon-line {
  height: 1px;
  width: 60px;
  background: linear-gradient(90deg, transparent, var(--sky));
}
.ribbon-line.right { background: linear-gradient(90deg, var(--sky), transparent); }
.ribbon-icon { font-size: 1.2rem; color: var(--sky); }

/* ?? HERO λ°°κ²½ ????μ€???? */
.hero-bg-text {
  position: absolute;
  font-family: 'Jua', sans-serif;
  font-size: clamp(20vw, 28vw, 380px);
  color: rgba(47, 143, 212, 0.045);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  letter-spacing: -0.02em;
}

/* ?? ?μ΄λ‘??κ·Έ ?? */
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 36px;
}
.hero-tag {
  background: white;
  border: 1.5px solid var(--sky-soft);
  color: var(--sky-deep);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(47,143,212,0.1);
}

/* ?? ?μ΄λ‘?λ°°κ²½ λ§λ²μ§??? */
.hero-circle-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(96vmin, 860px);
  height: min(96vmin, 860px);
  z-index: 0;
  --mx: 50%;
  --my: 50%;
  --glow-opacity: 0;
  --cast-opacity: 0;
  pointer-events: none;
  opacity: 0.55;
  border-radius: 50%;
  overflow: hidden;
}
.hero-circle-bg::before { content: none; }
.hero-circle-bg svg {
  width: 100%;
  height: 100%;
  will-change: transform, filter;
  transform-origin: 50% 50%;
  transition: filter 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-circle-bg::after {
  content: none;
}
.hero-circle-bg.is-hover svg {
  filter: drop-shadow(0 0 14px rgba(47, 143, 212, 0.52)) saturate(1.08) contrast(1.04);
}
.hero-circle-bg.is-overdrive svg {
  filter: drop-shadow(0 0 34px rgba(92, 190, 242, 0.96)) drop-shadow(0 0 10px rgba(175, 231, 255, 0.7)) saturate(1.3) contrast(1.14);
}
.hero-circle-bg.is-overdrive {
  opacity: 0.73;
}
.hero-circle-bg.is-overdrive::after {
  content: none;
}
.hero-circle-bg.is-overdrive .magic-cast-layer,
.hero-circle-bg.is-overdrive .magic-constellation-layer {
  opacity: 1 !important;
}
.hero-circle-bg.is-overdrive .magic-star-line {
  box-shadow: 0 0 10px rgba(71, 164, 229, 0.74);
}
.hero-circle-bg.is-overdrive .magic-star-dot {
  box-shadow: 0 0 11px rgba(86, 180, 236, 0.78);
}

.magic-cast-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: var(--cast-opacity);
  transition: opacity 0.18s ease;
}

.magic-constellation-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: var(--cast-opacity);
  transition: opacity 0.14s ease;
}

.magic-cast-streak {
  position: absolute;
  width: var(--w);
  height: 1.5px;
  left: var(--x);
  top: var(--y);
  background: linear-gradient(90deg, rgba(71, 156, 219, 0), rgba(52, 142, 208, 0.97), rgba(71, 156, 219, 0));
  filter: drop-shadow(0 0 7px rgba(37, 118, 182, 0.58));
  transform-origin: center;
  animation: castStreak 420ms ease-out forwards;
}

.magic-cast-rune {
  position: absolute;
  left: var(--x);
  top: var(--y);
  color: rgba(58, 136, 194, 0.78);
  font-size: var(--size);
  line-height: 1;
  font-family: "Segoe UI Symbol", "Noto Sans Runic", "Noto Sans Symbols 2", serif;
  font-weight: 300;
  text-shadow: 0 0 4px rgba(119, 200, 247, 0.28), 0 0 1px rgba(57, 123, 176, 0.34);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.72);
  transform-origin: center;
  will-change: transform, opacity;
  animation: runeBurst 860ms cubic-bezier(0.16, 0.84, 0.25, 1) forwards;
}

.ship-transition-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.24s ease;
  --ship-x: 120vw;
  --ship-y: 0px;
  --ship-rot: 0deg;
  --ship-flip: 1;
  --ship-scale: 1;
  --ship-opacity: 1;
  --overlay-fade: 1;
  --portal-x: 50vw;
  --portal-y: 50vh;
  --portal-scale: 0.52;
  --portal-opacity: 0;
  --portal-gather: 0;
  --portal-vortex: 1;
  --portal-open: 0;
}

.ship-transition-overlay.active {
  opacity: 1;
}

.ship-transition-portal {
  position: absolute;
  left: var(--portal-x);
  top: var(--portal-y);
  width: clamp(210px, 25vw, 390px);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%) scale(var(--portal-scale));
  transform-origin: center center;
  opacity: calc(var(--portal-opacity) * var(--overlay-fade));
  z-index: 1;
  pointer-events: none;
  contain: layout paint;
  filter: drop-shadow(0 0 24px rgba(66, 168, 232, 0.24));
}
.ship-transition-portal::before {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, rgba(138, 214, 248, 0.32) 0%, rgba(94, 184, 230, 0.18) 34%, rgba(42, 132, 194, 0.1) 56%, rgba(11, 53, 88, 0) 80%),
    conic-gradient(from 0deg, rgba(148, 223, 255, 0.12), rgba(84, 176, 226, 0.08), rgba(148, 223, 255, 0.12));
  opacity: calc((0.08 + var(--portal-open) * 0.4) * var(--portal-opacity) * var(--overlay-fade));
  transform: scale(calc(0.74 + var(--portal-open) * 0.28));
  filter: blur(calc(4px - var(--portal-open) * 2px));
}
.ship-transition-portal::after {
  content: "";
  position: absolute;
  inset: 24%;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at 50% 52%, rgba(4, 28, 52, 0.92) 0 28%, rgba(8, 48, 79, 0.76) 48%, rgba(10, 66, 104, 0.48) 62%, rgba(26, 116, 170, 0) 78%);
  opacity: calc((0.08 + var(--portal-open) * 0.56) * var(--portal-opacity) * var(--overlay-fade));
  transform: scale(calc(0.42 + var(--portal-open) * 0.66));
  filter: blur(calc(1.6px + (1 - var(--portal-open)) * 1.4px));
}
.portal-rune-vortex {
  position: absolute;
  inset: -14%;
  border-radius: 50%;
  pointer-events: none;
  contain: layout paint;
  --layer-gather: 1;
  --layer-vortex: 1;
}

.portal-rune-vortex-shell {
  inset: -22%;
  --layer-gather: 0.72;
  --layer-vortex: 0.5;
}

.portal-rune-vortex-outer {
  --layer-gather: 0.86;
  --layer-vortex: 0.66;
}

.portal-rune-vortex-inner {
  inset: -6%;
  --layer-gather: 1.04;
  --layer-vortex: 0.8;
}

.portal-rune-vortex-core {
  inset: 8%;
  --layer-gather: 1.2;
  --layer-vortex: 1;
}

.portal-rune {
  position: absolute;
  left: 50%;
  top: 50%;
  font-family: "Segoe UI Symbol", "Noto Sans Runic", "Noto Sans Symbols 2", serif;
  font-size: var(--sz);
  line-height: 1;
  font-weight: 600;
  color: rgba(66, 168, 236, var(--alpha));
  filter: none;
  opacity: 0;
  will-change: transform, opacity;
  --gather-now: calc(var(--portal-gather) * var(--layer-gather));
  --orbit-now: calc((var(--r-start) * (1 - var(--gather-now))) + (var(--r-end) * var(--gather-now)));
  --spin-turn: calc((var(--turns) * var(--spin-dir) * var(--portal-vortex) * var(--layer-vortex)) + var(--phase));
  text-shadow: 0 0 calc(4px + var(--glow) * 4px) rgba(102, 204, 252, 0.58), 0 0 calc(1px + var(--glow) * 1.4px) rgba(37, 125, 189, 0.52);
  animation: portalRuneCyclone var(--dur) cubic-bezier(0.28, 0.08, 0.2, 1) infinite;
  animation-delay: var(--delay);
}
.portal-rune:nth-child(3n) {
  color: rgba(52, 156, 228, var(--alpha));
}

.portal-rune:nth-child(4n) {
  color: rgba(82, 188, 245, var(--alpha));
}

.portal-rune:nth-child(5n) {
  text-shadow: 0 0 8px rgba(106, 204, 255, 0.6), 0 0 3px rgba(44, 141, 206, 0.56);
}

.ship-transition-ship {
  position: absolute;
  left: 0;
  top: 0;
  width: clamp(230px, 27vw, 440px);
  height: clamp(118px, 14vw, 205px);
  transform: translate3d(var(--ship-x), var(--ship-y), 0) scaleX(var(--ship-flip)) rotate(var(--ship-rot)) scale(var(--ship-scale));
  transform-origin: center center;
  opacity: calc(var(--ship-opacity) * var(--overlay-fade));
  filter: drop-shadow(0 6px 12px rgba(79, 50, 28, 0.28));
  z-index: 2;
}

.mini-boat-icon {
  position: absolute;
  inset: 8% 10%;
}

.mini-boat-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.mb-hull {
  fill: rgba(156, 103, 56, 0.95);
  stroke: rgba(97, 61, 30, 0.9);
  stroke-width: 2;
  stroke-linejoin: round;
}

.mb-deck {
  fill: none;
  stroke: rgba(126, 78, 40, 0.86);
  stroke-width: 2;
  stroke-linecap: round;
}

.mb-mast {
  fill: none;
  stroke: rgba(86, 52, 26, 0.88);
  stroke-width: 2;
  stroke-linecap: round;
}

.mb-sail {
  fill: rgba(226, 198, 162, 0.9);
  stroke: rgba(134, 92, 52, 0.82);
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.mb-dot {
  fill: rgba(214, 166, 106, 0.78);
}

.mb-dot.d1 {
  animation: miniBoatBlink 1.9s ease-in-out infinite;
}

.mb-dot.d2 {
  animation: miniBoatBlink 1.9s ease-in-out infinite 0.45s;
}

@keyframes miniBoatBlink {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.95; }
}

@keyframes portalRuneCyclone {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(calc(var(--a0) - 20deg + (var(--wobble) * -2deg))) translateX(calc(var(--orbit-now) + var(--drift))) scale(0.52);
  }
  18% {
    opacity: calc(var(--alpha) * 0.96);
  }
  70% {
    opacity: calc(var(--alpha) * (0.88 + (var(--portal-open) * 0.1)));
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(calc(var(--a0) + (var(--spin-turn) * 1turn))) translateX(var(--orbit-now)) scale(calc(0.84 + var(--portal-open) * 0.34));
  }
}
.magic-star-line {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--len);
  height: 1.1px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(84, 166, 226, 0), rgba(44, 132, 198, 0.98), rgba(84, 166, 226, 0));
  box-shadow: 0 0 7px rgba(44, 132, 198, 0.52);
  transform-origin: center;
  animation: constLineBreak var(--dur) linear var(--delay) forwards;
}

.magic-star-dot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.98) 26%, rgba(95, 182, 238, 0.95) 56%, rgba(46, 132, 198, 0) 100%);
  box-shadow: 0 0 9px rgba(56, 145, 206, 0.6);
  transform-origin: center;
  animation: starScatter var(--dot-dur) ease-out var(--delay) forwards;
}

/* ?? DESKTOP ?? */
@media (min-width: 1024px) {
  .hero-circle-bg {
    width: min(90vh, 960px);
    height: min(90vh, 960px);
    opacity: 0.5;
  }
  .hero { padding: 60px 6% 160px; }
  .hero-content { max-width: 780px; }
  .hero-title { font-size: clamp(5rem, 9vw, 9rem); }
  .hero-tags { gap: 12px; }
  .about-grid    { max-width: 1280px; }
  .members-grid  { max-width: 1400px; }
  .stack-container { max-width: 1000px; }
  .stack-grid { grid-template-columns: repeat(6, 1fr); }
  section { padding: 100px 40px; }
  .join-content { max-width: 800px; }
}

/* ?? MOBILE ?? */
@media (max-width: 600px) {
  .hero { padding: 60px 16px 100px; }
  .join-btn { font-size: 1.1rem; padding: 14px 32px; }
  .about-grid, .members-grid, .stack-grid { grid-template-columns: 1fr; }
  .join-btn, .join-btn-lg { animation-duration: 9.5s; }
  .hero-circle-bg::before { content: none !important; }
  .magic-cast-layer { display: block; }
  .magic-constellation-layer { display: block; }
  .about-section::before,
  .members-section::before,
  .stack-section::before,
  .join-section::after { opacity: 0.34; }
  .about-section::after,
  .members-section::after,
  .stack-section::after {
    top: -10px;
    height: 70px;
    opacity: 0.24;
  }
}

/* ?? SCROLL REVEAL ?? */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

