/* TwigSNS v1 — Section-specific styles */

/* ============ GLOBAL ANIMATIONS ============ */

/* Hero — phone idle float */
.phone-frame {
  animation: float-y 6s ease-in-out infinite;
}

/* Hero — coin layer restored with drift */
.coin-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.coin {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #3ad9ac, #14a279);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(20, 162, 121, 0.35),
              inset 0 -3px 0 rgba(0,0,0,0.15),
              inset 0 2px 0 rgba(255,255,255,0.3);
  animation: float-y 4.5s ease-in-out infinite;
}
.coin.lg { width: 56px; height: 56px; font-size: 12px; }
.coin.sm { width: 32px; height: 32px; font-size: 8px; }

/* Marquee already animated */

/* Value bars: animate fill-up on reveal */
.value-card.reveal .info-vs-bar {
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.value-card.reveal.in .info-vs-bar {
  transform: scaleY(1);
}
.value-card.reveal.in .info-vs-bar:nth-child(1) { transition-delay: 0.1s; }
.value-card.reveal.in .info-vs-bar:nth-child(2) { transition-delay: 0.18s; }
.value-card.reveal.in .info-vs-bar:nth-child(3) { transition-delay: 0.26s; }
.value-card.reveal.in .info-vs-bar:nth-child(4) { transition-delay: 0.34s; }
.value-card.reveal.in .info-vs-bar:nth-child(5) { transition-delay: 0.42s; }
.value-card.reveal.in .info-vs-bar:nth-child(6) { transition-delay: 0.5s; }
.value-card.reveal.in .info-vs-bar:nth-child(7) { transition-delay: 0.58s; }

/* Donut draw-in */
.value-card.reveal .info-donut svg circle:not(:first-child) {
  stroke-dasharray: 240 240;
  stroke-dashoffset: 240;
  transition: stroke-dashoffset 1.1s cubic-bezier(0.2, 0.8, 0.3, 1) 0.2s;
}
.value-card.reveal.in .info-donut svg circle:not(:first-child) {
  stroke-dashoffset: 0;
}

/* Language nodes orbit */
.info-lang-core {
  animation: pulse-glow 2.8s ease-in-out infinite;
}
.info-lang-node {
  animation: float-y 4s ease-in-out infinite;
}
.info-lang-node:nth-child(2) { animation-delay: 0s; }
.info-lang-node:nth-child(4) { animation-delay: 0.5s; }
.info-lang-node:nth-child(6) { animation-delay: 1s; }
.info-lang-node:nth-child(8) { animation-delay: 1.5s; }
.info-lang-node:nth-child(10) { animation-delay: 2s; }
.info-lang-node:nth-child(12) { animation-delay: 2.5s; }

/* How — phone focus mask subtle pulse */
.how-phone-focus-mask {
  animation: pulse-glow 2.4s ease-in-out infinite;
}

/* DNA cards idle tilt */
.dna-cards-stack {
  position: relative;
}
.dna-cards-stack .dna-card-img:nth-child(1) {
  animation: float-y 5s ease-in-out infinite;
}
.dna-cards-stack .dna-card-img:nth-child(2) {
  animation: float-y 5.5s ease-in-out infinite reverse;
}

/* Grades — badge hover float */
.grade-card:not(.locked) .grade-badge img {
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.grade-card:not(.locked):hover .grade-badge img {
  transform: translateY(-4px) scale(1.08);
}
.grade-card.current .grade-badge {
  animation: pulse-glow 2.4s ease-in-out infinite;
  border-radius: 50%;
}

/* Roadmap — line fill progressive */
.roadmap-line-fill {
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.4s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.roadmap-wrap.reveal.in .roadmap-line-fill {
  transform: scaleX(0.5); /* up to phase 2 (current) */
}
.roadmap-point {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.roadmap-wrap.reveal.in .roadmap-point:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.1s; }
.roadmap-wrap.reveal.in .roadmap-point:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.3s; }
.roadmap-wrap.reveal.in .roadmap-point:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.5s; }
.roadmap-wrap.reveal.in .roadmap-point:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.7s; }
.roadmap-point.current .roadmap-dot {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Investors — live dot pulse */
.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #23bf94;
  animation: pulse-glow 1.6s ease-in-out infinite;
}

/* FAQ icon rotate */
.faq-item .faq-q-icon {
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.faq-item.open .faq-q-icon {
  transform: rotate(45deg);
}

/* Final CTA — subtle shimmer on bg */
.final-cta {
  position: relative;
  overflow: hidden;
}
.final-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: shine 6s ease-in-out infinite;
  pointer-events: none;
}

/* Community cards hover lift */
.community-card {
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}
.community-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

/* Nav logo gentle entrance */
.tw-nav-logo img {
  animation: fadeIn 0.8s cubic-bezier(0.2, 0.8, 0.3, 1);
}

/* Hero headline — cycle lines subtle scale */
.hero-line {
  animation: fadeIn 0.6s cubic-bezier(0.2, 0.8, 0.3, 1);
}

/* ============ SECTION STYLES ============ */

/* How — staggered card reveal */
.how-card.reveal {
  transition-delay: 0s;
}
.how-grid .how-card.reveal:nth-child(1) { transition-delay: 0.05s; }
.how-grid .how-card.reveal:nth-child(2) { transition-delay: 0.18s; }
.how-grid .how-card.reveal:nth-child(3) { transition-delay: 0.32s; }

/* Grades — 항상 표시 (React 리렌더 시 .in 클래스 소실 방지, 깜빡임 제거) */
.grade-card {
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.grades-grid .grade-card.reveal:nth-child(1) { transition-delay: 0s; }
.grades-grid .grade-card.reveal:nth-child(2) { transition-delay: 0.05s; }
.grades-grid .grade-card.reveal:nth-child(3) { transition-delay: 0.1s; }
.grades-grid .grade-card.reveal:nth-child(4) { transition-delay: 0.15s; }
.grades-grid .grade-card.reveal:nth-child(5) { transition-delay: 0.2s; }
.grades-grid .grade-card.reveal:nth-child(6) { transition-delay: 0.25s; }
.grades-grid .grade-card.reveal:nth-child(7) { transition-delay: 0.3s; }
.grades-grid .grade-card.reveal:nth-child(8) { transition-delay: 0.35s; }
.grades-grid .grade-card.reveal:nth-child(9) { transition-delay: 0.4s; }
.grades-grid .grade-card.reveal:nth-child(10) { transition-delay: 0.45s; }

/* FAQ items — 항상 표시 (React re-render 시 .in 클래스 소실 방지) */
.faq-item {
  transition: background 0.2s ease, border-color 0.2s ease;
}

/* ============ NAV ============ */
.tw-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}
.tw-nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(255, 255, 255, 0.95);
}
[data-theme="dark"] .tw-nav {
  background: rgba(11, 20, 16, 0.82);
}
[data-theme="dark"] .tw-nav.scrolled {
  background: rgba(11, 20, 16, 0.95);
}
.tw-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.tw-nav-logo { display: flex; align-items: center; }
.tw-nav-logo img { height: 28px; width: auto; }
[data-theme="dark"] .tw-nav-logo img { filter: brightness(0) invert(1) sepia(1) hue-rotate(120deg) saturate(3); }
.tw-nav-menu {
  display: flex;
  gap: 4px;
  align-items: center;
}
.tw-nav-menu a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--r-full);
  transition: background 0.15s ease;
  white-space: nowrap;
}
.tw-nav-menu a:hover { background: var(--surface); }
[data-theme="dark"] .tw-nav-menu a:hover { background: var(--dark-surface-2); }
.tw-nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tw-lang { position: relative; }
.tw-lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: transparent;
  transition: all 0.15s ease;
}
.tw-lang-btn:hover { background: var(--surface); }
.tw-lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 6px;
  box-shadow: var(--shadow-lg);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tw-lang-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--r-sm);
  color: var(--text);
  text-align: left;
  width: 100%;
}
.tw-lang-menu button:hover { background: var(--surface); }
.tw-nav-burger {
  display: none;
  width: 36px; height: 36px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 0;
}
.tw-nav-burger span {
  width: 16px; height: 1.5px;
  background: var(--text);
  border-radius: 1px;
}
.tw-nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px 24px 20px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.tw-nav-mobile a {
  padding: 12px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.tw-nav-mobile a.btn { border: none; justify-content: center; margin-top: 8px; }
@media (max-width: 1023px) {
  .tw-nav-menu { display: none; }
  .tw-nav-cta { display: none; }
  .tw-nav-burger { display: flex; }
  .tw-nav-mobile { display: flex; }
}
@media (min-width: 1024px) {
  .tw-nav-mobile { display: none !important; }
}

/* ============ HERO ============ */
.hero {
  padding-top: 120px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}
.hero-live-bar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--twig-primary-light);
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--twig-primary-dark);
  margin-bottom: 24px;
}
[data-theme="dark"] .hero-live-bar {
  background: rgba(35, 191, 148, 0.12);
  color: var(--twig-primary);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}
.hero-headline {
  min-height: 1.05em;
}
.hero-headline .accent {
  color: var(--twig-primary-dark);
  white-space: nowrap;
}
[data-theme="dark"] .hero-headline .accent { color: var(--twig-primary); }
.hero-headline .line {
  display: block;
}
.hero-sub {
  margin-top: 24px;
  max-width: 540px;
}
.hero-cta {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-trust {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}
.hero-trust-item svg { color: var(--twig-primary); flex-shrink: 0; }

/* Hero right: phone */
.hero-phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 560px;
}
.phone-frame {
  position: relative;
  width: 280px;
  height: 570px;
  background: var(--ink-900);
  border-radius: 42px;
  padding: 10px;
  box-shadow: var(--shadow-lg), 0 40px 80px rgba(20, 32, 27, 0.12);
  z-index: 2;
}
.phone-frame::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background: var(--ink-900);
  border-radius: 12px;
  z-index: 3;
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: white;
  position: relative;
}
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Floating coins */
.coin-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.coin {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2fd6a7, #1a9e7a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 10px 28px rgba(35, 191, 148, 0.35),
              inset 0 -4px 10px rgba(0,0,0,0.12),
              inset 0 2px 6px rgba(255,255,255,0.25);
  animation: float 6s ease-in-out infinite;
  letter-spacing: -0.01em;
}
.coin.sm { width: 40px; height: 40px; font-size: 11px; }
.coin.lg { width: 72px; height: 72px; font-size: 15px; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(6deg); }
}

/* ============ MARQUEE (trust logos) ============ */
.marquee-section {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.marquee-label {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.marquee-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
  opacity: 0.85;
}
.partner-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-muted);
}
.partner-tag .dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

/* ============ VALUE SECTION ============ */
.value-header {
  max-width: 720px;
  margin-bottom: 56px;
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .value-grid { grid-template-columns: 1fr; }
}
.value-card {
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--twig-primary);
}

/* Infographic frame on top of each card */
.value-info {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, #f4fbf8 0%, #e8f6ef 100%);
  border: 1px solid rgba(35, 191, 148, 0.15);
  padding: 20px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .value-info {
  background: linear-gradient(135deg, rgba(35, 191, 148, 0.08) 0%, rgba(35, 191, 148, 0.04) 100%);
  border-color: rgba(35, 191, 148, 0.2);
}
.value-info svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---- Infographic 01: 포인트 vs 토큰 비교 ---- */
.info-vs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 12px;
  height: 100%;
}
.info-vs-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  justify-content: flex-end;
}
.info-vs-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.info-vs-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}
.info-vs-bar-group {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 70%;
}
.info-vs-bar {
  width: 14px;
  border-radius: 3px 3px 0 0;
  background: #cbd5d0;
  position: relative;
}
[data-theme="dark"] .info-vs-bar { background: rgba(255,255,255,0.15); }
.info-vs-bar.primary { background: var(--twig-primary); }
.info-vs-bar.primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.25), transparent 50%);
  border-radius: inherit;
}
.info-vs-divider {
  width: 1px;
  height: 70%;
  background: var(--border);
  align-self: center;
  position: relative;
}
.info-vs-divider::before {
  content: 'VS';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-muted);
  background: var(--bg);
  padding: 3px 5px;
  border-radius: 4px;
  border: 1px solid var(--border);
}
[data-theme="dark"] .info-vs-divider::before { background: var(--dark-surface-2); }
.info-vs-caption {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---- Infographic 02: 피드 구성 비교 (donut chart) ---- */
.info-feed {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  height: 100%;
  align-items: center;
}
.info-feed-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  justify-content: center;
}
.info-feed-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}
.info-feed-label strong { color: var(--text); display: block; font-size: 13px; margin-top: 2px; letter-spacing: 0; text-transform: none; }
.info-donut {
  width: 90px;
  height: 90px;
  position: relative;
}
.info-donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
}
.info-donut-center em {
  font-style: normal;
  font-size: 9px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 1px;
}

/* ---- Infographic 03: 6개국어 네트워크 ---- */
.info-lang {
  position: relative;
  height: 100%;
}
.info-lang-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--twig-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(35, 191, 148, 0.35);
  z-index: 2;
}
.info-lang-node {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
[data-theme="dark"] .info-lang-node { background: var(--dark-surface-2); }
.info-lang-line {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--twig-primary) 20%, var(--twig-primary) 80%, transparent 100%);
  transform-origin: 0 0;
  z-index: 1;
  opacity: 0.35;
}

.value-card h3 { margin-bottom: 12px; }
.value-card p { font-size: 15px; }
.value-extra {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}
.value-extra code {
  font-family: var(--font-mono);
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
}

/* ============ HOW IT WORKS ============ */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
@media (max-width: 900px) { .how-grid { grid-template-columns: 1fr; } }
.how-card {
  position: relative;
  padding: 32px;
  border-radius: var(--r-lg);
  background: var(--bg);
  border: 1px solid var(--border);
  overflow: hidden;
}
.how-step {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--twig-primary-dark);
  margin-bottom: 16px;
}
[data-theme="dark"] .how-step { color: var(--twig-primary); }
.how-phone {
  margin-top: 24px;
  width: 100%;
  aspect-ratio: 9 / 18;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}
.how-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* 02: stacked cards — Q on top, R overlapping behind */
.how-phone-stack {
  position: relative;
  background: transparent;
  border: none;
  overflow: visible;
}
.how-phone-stack img {
  position: absolute;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}
.how-phone-stack .stack-1 {
  inset: 0 18% 12% 0;
  z-index: 2;
}
.how-phone-stack .stack-2 {
  inset: 12% 0 0 18%;
  z-index: 1;
  opacity: 0.9;
}

/* 03: focus on pedometer — blur the rest */
.how-phone-focus {
  position: relative;
}
.how-phone-focus img {
  /* blur 제거 — 전체 이미지 선명하게 */
}
.how-phone-focus-mask {
  position: absolute;
  top: 11%;
  left: 5%;
  right: 5%;
  height: 20%;
  border-radius: 14px;
  pointer-events: none;
  background-image: url('./assets/screens/how-walk.jpg');
  background-size: 111% auto;
  background-position: -5% -12%;
  background-repeat: no-repeat;
  border: 2px solid rgba(35, 191, 148, 0.9);
  box-shadow: 0 10px 30px rgba(35, 191, 148, 0.35), 0 0 0 4px rgba(35, 191, 148, 0.12);
  overflow: hidden;
}
.how-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--r-full);
  background: var(--ink-100);
  color: var(--text-muted);
  margin-left: 8px;
}
[data-theme="dark"] .how-tag { background: var(--dark-surface-2); }

/* ============ WALLET ============ */
.wallet-wrap {
  background: linear-gradient(135deg, #0d1f17 0%, #14201b 100%);
  border-radius: var(--r-xl);
  padding: 72px 56px;
  color: #ecf5f0;
  position: relative;
  overflow: hidden;
}
.wallet-wrap::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(171, 159, 242, 0.3), transparent 70%);
}
.wallet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  position: relative;
  z-index: 2;
}
@media (max-width: 900px) { .wallet-grid { grid-template-columns: 1fr; } }
.wallet-grid .muted { color: #8a9991; }
.wallet-kv {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.wallet-kv-item {
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-md);
}
.wallet-kv-item h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.wallet-kv-item p {
  font-size: 14px;
  color: #8a9991;
  line-height: 1.5;
}
.wallet-cta {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============ GRADES ============ */
.grades-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.grades-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .grades-grid { grid-template-columns: repeat(2, 1fr); }
}
.grade-card {
  padding: 24px 16px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.2s ease;
  position: relative;
}
.grade-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--twig-primary);
}
.grade-card.locked {
  background: repeating-linear-gradient(
    45deg,
    var(--surface),
    var(--surface) 10px,
    var(--bg) 10px,
    var(--bg) 20px
  );
  opacity: 0.95;
}
.grade-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.grade-badge {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.grade-badge img { width: 100%; height: 100%; object-fit: contain; }
.grade-badge.locked {
  background: var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 24px;
  font-weight: 800;
  filter: none;
}
.grade-name {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.grade-name.locked { color: var(--text-muted); }
.grade-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  min-height: 2.8em;
}
.grade-current {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: var(--r-full);
  background: var(--twig-primary);
  color: white;
  letter-spacing: 0.02em;
}
.grades-note {
  margin-top: 48px;
  text-align: center;
  padding: 20px 24px;
  border-radius: var(--r-md);
  background: var(--twig-primary-light);
  color: var(--twig-primary-dark);
  font-size: 15px;
  font-weight: 600;
}
[data-theme="dark"] .grades-note {
  background: rgba(35, 191, 148, 0.1);
  color: var(--twig-primary);
}

/* ============ DNA ============ */
.dna-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) { .dna-grid { grid-template-columns: 1fr; } }
.dna-cards-stack {
  display: flex;
  gap: 20px;
  justify-content: center;
  position: relative;
  perspective: 800px;
}
.dna-card-img {
  width: 180px;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
}
.dna-card-img:first-child { transform: rotate(-6deg) translateY(10px); }
.dna-card-img:last-child { transform: rotate(6deg) translateY(10px); }
.dna-card-img:hover { transform: rotate(0) translateY(-8px); }
.dna-card-img img { width: 100%; height: 100%; object-fit: cover; }
.dna-soon {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--r-full);
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============ COMMUNITY ============ */
.community-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}
@media (max-width: 700px) { .community-grid { grid-template-columns: 1fr; } }
.community-card {
  padding: 40px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.community-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.community-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.community-icon.twitter { background: #000; }
.community-icon.telegram { background: #26A5E4; }
.community-card h3 { font-size: 22px; }
.community-card .arrow {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--twig-primary-dark);
}
[data-theme="dark"] .community-card .arrow { color: var(--twig-primary); }

/* ============ ROADMAP ============ */
.roadmap-wrap { margin-top: 56px; }
.roadmap-track {
  position: relative;
  padding: 60px 0 40px;
}
.roadmap-line {
  position: absolute;
  top: 94px;
  left: 24px; right: 24px;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
}
.roadmap-line-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 38%;
  background: linear-gradient(90deg, var(--twig-primary), var(--twig-primary-dark));
  border-radius: 2px;
}
.roadmap-points {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
}
@media (max-width: 900px) {
  .roadmap-points { grid-template-columns: 1fr 1fr; }
  .roadmap-line { display: none; }
}
.roadmap-point { position: relative; text-align: center; padding: 0 8px; }
.roadmap-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--border);
  margin: 22px auto 20px;
  position: relative;
  z-index: 2;
}
.roadmap-point.done .roadmap-dot { background: var(--twig-primary); border-color: var(--twig-primary); }
.roadmap-point.current .roadmap-dot {
  background: white;
  border-color: var(--twig-primary);
  box-shadow: 0 0 0 6px rgba(35, 191, 148, 0.18);
}
.roadmap-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.roadmap-point.current .roadmap-label { color: var(--twig-primary-dark); }
[data-theme="dark"] .roadmap-point.current .roadmap-label { color: var(--twig-primary); }
.roadmap-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.roadmap-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.roadmap-closer {
  margin-top: 48px;
  padding: 24px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--r-md);
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
}

/* ============ B2B ============ */
.b2b-wrap {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 72px 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .b2b-wrap { grid-template-columns: 1fr; padding: 48px 32px; }
}
.b2b-points { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.b2b-point {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 20px;
  background: var(--bg);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}
.b2b-point .num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--twig-primary-light);
  color: var(--twig-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}
[data-theme="dark"] .b2b-point .num { background: rgba(35, 191, 148, 0.12); color: var(--twig-primary); }
.b2b-point h4 { font-size: 15px; margin-bottom: 2px; font-weight: 700; }
.b2b-point p { font-size: 13px; color: var(--text-muted); }

/* ============ INVESTORS ============ */
.investor-header { text-align: center; margin-bottom: 56px; }
.investor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
@media (max-width: 900px) { .investor-grid { grid-template-columns: 1fr 1fr; } }
.investor-card {
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.investor-card.wide { grid-column: span 2; }
@media (max-width: 900px) { .investor-card.wide { grid-column: span 2; } }
.investor-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.investor-value {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.investor-value.mono {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  word-break: break-all;
  letter-spacing: 0;
}
.investor-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.investor-btn {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  color: var(--text);
  background: var(--bg);
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.investor-btn:hover { background: var(--surface); border-color: var(--twig-primary); color: var(--twig-primary-dark); }

/* ============ FAQ ============ */
.faq-list {
  max-width: 800px;
  margin: 56px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg);
  overflow: hidden;
  transition: all 0.2s ease;
}
.faq-item.open {
  border-color: var(--twig-primary);
  box-shadow: var(--shadow-md);
}
.faq-q {
  width: 100%;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.faq-q-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: transform 0.25s ease;
}
.faq-item.open .faq-q-icon {
  transform: rotate(45deg);
  color: var(--twig-primary);
}
.faq-a {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}
.faq-item.open .faq-a {
  padding: 0 24px 22px;
  max-height: 400px;
}

/* ============ FINAL CTA ============ */
.final-cta {
  text-align: center;
  padding: 120px 24px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--twig-primary-light) 100%);
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .final-cta {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(35, 191, 148, 0.08) 100%);
}
.final-cta h1 { max-width: 780px; margin: 0 auto 20px; }
.final-cta .body-lg { max-width: 560px; margin: 0 auto 36px; }
.final-cta-btns { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ============ FOOTER ============ */
.footer {
  padding: 64px 0 40px;
  background: var(--ink-900);
  color: #c8d1cc;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 2fr 1.2fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand img { height: 32px; margin-bottom: 20px; }
.footer-brand p {
  font-size: 14px;
  color: #8a9991;
  line-height: 1.6;
  max-width: 280px;
}
.footer-menus {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 700px) {
  .footer-menus { grid-template-columns: repeat(2, 1fr); }
}
.footer-menu h5 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ecf5f0;
  margin-bottom: 14px;
}
.footer-menu a {
  display: block;
  font-size: 13px;
  color: #8a9991;
  padding: 4px 0;
  transition: color 0.15s ease;
}
.footer-menu a:hover { color: var(--twig-primary); }
.footer-legal {
  font-size: 12px;
  color: #6a7973;
  line-height: 1.7;
}
.footer-legal .corp {
  font-weight: 700;
  color: #ecf5f0;
  font-size: 13px;
  margin-bottom: 6px;
}
.footer-legal .placeholder { opacity: 0.45; }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-disclaimer {
  font-size: 11px;
  color: #6a7973;
  line-height: 1.6;
  max-width: 860px;
}
.footer-copy {
  font-size: 12px;
  color: #6a7973;
  flex-shrink: 0;
}

/* ============ TWEAKS PANEL ============ */
.tweaks-panel {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 200;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  width: 280px;
  display: none;
}
.tweaks-panel.open { display: block; }
.tweaks-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: 0.02em;
}
.tweaks-row { margin-bottom: 14px; }
.tweaks-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.tweaks-btn-group {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: var(--surface);
  border-radius: var(--r-full);
}
.tweaks-btn {
  flex: 1;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--r-full);
  color: var(--text-muted);
  transition: all 0.15s ease;
}
.tweaks-btn.active {
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.tweaks-close {
  background: none; border: none;
  font-size: 16px;
  color: var(--text-muted);
  padding: 4px;
  cursor: pointer;
}

/* Prevent section from being hidden by fixed nav on anchor jump */
section[id] { scroll-margin-top: 80px; }
