/* ================================================
   GNDK Homepage - Styles
   Dark theme with purple/pink/blue accents
   Design-faithful implementation
   ================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #00020a;
  --bg-card: rgba(10, 10, 25, 0.8);
  --text: #ffffff;
  --text-secondary: #cacaca;
  --text-dim: #999999;
  --separator: #5c5c5d;
  --purple: #7c44ff;
  --pink: #ff00e7;
  --blue: #003dff;
  --accent-light: #a855f7;
  --card-fill: linear-gradient(180deg, rgba(0,0,0,0.8), rgba(36,36,36,0.8));
  --font-heading: 'Alexandria', sans-serif;
  --font-body: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  --nav-height: 124px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Loading Screen ---------- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease-out);
}
#loader.hidden {
  opacity: 0;
  pointer-events: none;
}
.loader-content {
  text-align: center;
}
.loader-logo {
  width: 180px;
  margin: 0 auto 40px;
  animation: pulse 2s ease-in-out infinite;
}
.loader-bar {
  width: 200px;
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  margin: 0 auto 16px;
  overflow: hidden;
}
.loader-progress {
  height: 100%;
  width: 0%;
  background: var(--pink);
  border-radius: 3px;
  transition: width 0.3s;
}
.loader-text {
  font-size: 14px;
  color: var(--text-dim);
  letter-spacing: 2px;
  text-transform: uppercase;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ---------- Video Layers ---------- */
.video-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  transition: opacity 1.2s ease;
}
.bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  transition: opacity 1.5s ease;
}

/* ---------- Navigation ---------- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  padding: 0 80px;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.4s ease;
}
#navbar.scrolled {
  background: rgba(0, 2, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.nav-inner {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img {
  height: 36px;
  width: auto;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Language Switch - individual round box on active item only */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lang-btn {
  font-size: 24px;
  font-weight: 500;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px 12px;
  border-radius: 20px;
  transition: color 0.3s, background 0.3s;
}
.lang-btn.active {
  color: var(--text);
  font-weight: 700;
  background: none;
  border: 1px solid #666;
  border-radius: 12px;
}
.lang-divider {
  display: none; /* removed - using individual boxes */
}

.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
}
.menu-toggle img {
  width: 28px;
  height: 28px;
}

/* ---------- Cover Menu ---------- */
.cover-menu {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: #000000e5;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-out);
}
.cover-menu.open {
  opacity: 1;
  pointer-events: all;
}
.menu-close {
  position: absolute;
  top: 24px;
  right: 60px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
}
.menu-close img {
  width: 32px;
  height: 32px;
  filter: invert(1);
}
.cover-nav {
  display: flex;
  flex-direction: column;
  gap: 40px;
  text-align: center;
}
.cover-link {
  font-family: var(--font-body);
  font-size: 36px;
  font-weight: 700;
  color: var(--text-dim);
  transition: color 0.3s, transform 0.3s;
}
.cover-link:hover,
.cover-link.active {
  color: var(--text);
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--nav-height) 60px 60px;
}
.section-tall {
  min-height: auto;
  align-items: flex-start;
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 120px;
}
.section-inner {
  width: 100%;
  max-width: 1264px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 22px;
  font-weight: 300;
  color: var(--text);
  opacity: 0.8;
}

/* ---------- Section 0: Intro ---------- */
#section-intro {
  min-height: 100vh;
  align-items: flex-end;
  justify-content: center;
}
#section-intro .section-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 15vh;
}
.intro-content {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(0);
}
.intro-title {
  font-family: var(--font-heading);
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 2px;
}
.intro-line {
  width: 760px;
  max-width: 80vw;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ffffff, transparent);
  margin: 8px 0;
}
.intro-subtitle {
  font-family: var(--font-body);
  font-size: clamp(28px, 3.5vw, 50px);
  font-weight: 900;
  line-height: 1.2;
}
.intro-desc {
  font-size: 22px;
  font-weight: 300;
  opacity: 0.8;
  margin-bottom: 8px;
}
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 420px;
  height: 72px;
  padding: 0 48px;
  background: #ff0ddf;
  border-radius: 2px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
  margin-top: 24px;
  position: relative;
  overflow: visible;
}
.btn-cta::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -12px;
  width: 100%;
  height: 48px;
  background: rgba(255, 13, 223, 0.25);
  border-radius: 24px;
  filter: blur(26px);
  z-index: -1;
}
.btn-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(255, 0, 231, 0.4);
}
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s ease-in-out infinite;
}
.scroll-indicator img {
  width: 24px;
  opacity: 0.5;
  filter: invert(1);
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ---------- Common Card/Box Design ---------- */
/* Gradient border + semi-transparent dark fill via mask-composite.
   Usage: <div class="design-box border-purple">
   Available borders: border-purple, border-pink, border-blue */
.design-box {
  position: relative;
  border-radius: 8px;
  background: none;
  border: none;
  isolation: isolate;
}
.design-box::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  z-index: -1;
  padding: 1px;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}
.design-box::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(0,0,0,0.8), rgba(36,36,36,0.8));
  z-index: -2;
}
.design-box.border-purple::before {
  background: linear-gradient(180deg, #000000, var(--purple));
}
.design-box.border-pink::before {
  background: linear-gradient(180deg, #000000, var(--pink));
}
.design-box.border-blue::before {
  background: linear-gradient(180deg, #000000, var(--blue));
}

/* ---------- Section 1: What Is ---------- */
.card-grid {
  display: grid;
  gap: 32px;
}
.card-grid.three-col {
  grid-template-columns: repeat(3, 400px);
  justify-content: center;
}

/* What-Is Card with overlapping icon
   Uses double-background technique for gradient border:
   background on the ::before is the gradient border layer,
   the card itself paints the dark fill ON TOP via z-index layering. */
.what-card {
  position: relative;
  padding: 80px 28px 32px;
  border-radius: 8px;
  text-align: center;
  margin-top: 50px;
  border: none;
  background: none;
  isolation: isolate; /* new stacking context for ::before z-index */
}
.what-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  z-index: -1;
  padding: 1px; /* border thickness */
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}
.what-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(0,0,0,0.8), rgba(36,36,36,0.8));
  z-index: -2;
}
.what-card[data-accent="blue"]::before {
  background: linear-gradient(180deg, #000000, var(--blue));
}
.what-card[data-accent="pink"]::before {
  background: linear-gradient(180deg, #000000, var(--pink));
}
.what-card[data-accent="purple"]::before {
  background: linear-gradient(180deg, #000000, var(--purple));
}

.what-card-icon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border-radius: 22%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.what-card-icon::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 22%;
  filter: blur(26px);
  opacity: 0.3;
  z-index: -1;
  pointer-events: none;
}
.what-card[data-accent="blue"] .what-card-icon {
  background: var(--blue);
  box-shadow: 0 12px 26px rgba(0,0,0,0.3);
}
.what-card[data-accent="blue"] .what-card-icon::after {
  background: var(--blue);
}
.what-card[data-accent="pink"] .what-card-icon {
  background: var(--pink);
  box-shadow: 0 12px 26px rgba(0,0,0,0.3);
}
.what-card[data-accent="pink"] .what-card-icon::after {
  background: var(--pink);
}
.what-card[data-accent="purple"] .what-card-icon {
  background: var(--purple);
  box-shadow: 0 12px 26px rgba(0,0,0,0.3);
}
.what-card[data-accent="purple"] .what-card-icon::after {
  background: var(--purple);
}

.what-card-icon img {
  object-fit: contain;
  /* SVGs already contain internal drop-shadow filters - no CSS shadow needed */
}
/* Per-icon sizes: compensating for SVG internal shadow padding.
   MYPOOL/GANADARA SVGs have ~6px shadow padding on each side.
   AI SVG has minimal shadow on outer frame, so it looks bigger at same size. */
.what-card[data-accent="blue"] .what-card-icon img {
  width: 68px;   /* natural 68x57, shadow eats ~6px/side → visible ~56px */
  height: 57px;
}
.what-card[data-accent="pink"] .what-card-icon img {
  width: 90px;   /* natural 86x57, bumped up to make ganadara logo visually bigger */
  height: 60px;
}
.what-card[data-accent="purple"] .what-card-icon img {
  width: 44px;   /* natural 52x52, reduced since no shadow padding → looks big */
  height: 44px;
}

.card-title {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 16px;
}
.card-desc {
  font-size: 20px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.card-section-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 32px;
}
.card-section-title.center { text-align: center; }

/* ---------- Section 2: Why GANADA Token ---------- */
#section-why .section-inner {
  max-width: 1264px;
}

/* Two separate boxes side by side */
.why-layout {
  display: flex;
  gap: 32px;
  align-items: stretch;
}

/* Common box style: semi-transparent gradient + purple gradient border */
.why-box {
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.why-box::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(0,0,0,0.8), rgba(36,36,36,0.8));
  pointer-events: none;
}
.why-box::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  border: 1px solid transparent;
  background: linear-gradient(180deg, #000000, var(--purple)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Left box: 348px wide, 540px tall */
.why-box-left {
  width: 348px;
  height: 540px;
  flex-shrink: 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Right box: fills remaining space (~884px), 540px tall */
.why-box-right {
  flex: 1;
  height: 540px;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* Left column: Problem/Solution panels */
.why-panel {
  position: relative;
  z-index: 1;
  border-radius: 4px;
  border: 1px solid var(--separator);
  padding: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: border-color 0.3s ease;
}
.why-panel.active {
  border-color: #ffffff;
}
.why-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.badge-letter {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--purple);
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}
.badge-label {
  font-size: 22px;
  font-weight: 700;
  color: var(--separator);
}
.why-panel.active .badge-label {
  color: #ffffff;
}
.why-icon {
  width: 44px;
  height: 40px;
  margin: 16px auto;
}
.why-icon img { width: 100%; height: 100%; object-fit: contain; }
.why-text {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  text-align: center;
}

/* Right column title */
.why-right-title {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  padding: 32px 0 0 12px;
  position: relative;
  z-index: 1;
}

/* Right column body: detail panel + step cards side by side */
.why-right-body {
  display: flex;
  flex: 1;
  padding: 24px 12px 12px 12px;
  position: relative;
  z-index: 1;
}

/* Detail panel (left side of right box) */
.mining-detail {
  width: 420px;
  flex-shrink: 0;
  border: 1px solid var(--separator);
  border-radius: 4px 0 0 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px;
}
.mining-detail-icon {
  width: 128px;
  height: 128px;
  margin-bottom: 8px;
}
.mining-detail-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.mining-detail-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
}
.mining-detail-text {
  font-size: 20px;
  color: var(--text-secondary);
  line-height: 1.6;
  text-align: center;
  max-width: 240px;
}

/* Step cards (right side of right box) */
.mining-steps {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.mining-step-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  flex: 1;
  border: 1px solid var(--separator);
  border-left: none;
}
.mining-step-card:first-child {
  border-radius: 0 4px 0 0;
}
.mining-step-card:last-child {
  border-radius: 0 0 4px 0;
}
.mining-step-card + .mining-step-card {
  border-top: none;
}
.mining-step-card .step-number {
  width: 48px;
  height: 36px;
  border: 1px solid var(--separator);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  color: var(--separator);
  flex-shrink: 0;
}
.mining-step-card.active .step-number {
  color: #ffffff;
}
.mining-step-info {
  flex: 1;
}
.mining-step-info h4 {
  font-size: 24px;
  font-weight: 700;
  color: var(--separator);
  margin-bottom: 0;
}
.mining-step-card.active .mining-step-info h4 {
  color: #ffffff;
}
.mining-step-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}
.mining-step-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---------- Section 3: Token Economy ---------- */
.token-slide {
  transition: opacity 0.6s var(--ease-out);
}
.token-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Token Info & Use Case Cards - uses .design-box for gradient border */
.token-info-card,
.token-usecase-card {
  padding: 40px 32px;
}

.token-table {
  width: 100%;
  border-collapse: collapse;
}
.token-table tr {
  border-bottom: 1px solid var(--separator);
}
.token-table tr:last-child {
  border-bottom: none;
}
.token-table td {
  padding: 16px 0;
  font-size: 16px;
}
.token-table .tl {
  color: var(--text-secondary);
  width: 140px;
}
.token-table .tv {
  font-weight: 700;
}

/* Use Cases */
.usecase-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.usecase-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--separator);
}
.usecase-list li:last-child {
  border-bottom: none;
}
.usecase-list li img {
  width: 24px;
  height: 24px;
  margin-top: 2px;
  flex-shrink: 0;
}
.usecase-list li span {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Distribution Chart */
/* Distribution Wrap - uses .design-box for gradient border */
.distribution-wrap {
  max-width: 1264px;
  margin: 0 auto;
  padding: clamp(24px, 3vh, 40px) 32px;
}
.distribution-content {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: clamp(20px, 2.5vh, 40px);
  border: 1px solid var(--separator);
  border-radius: 4px;
  background: #000000;
  padding: 0;
}
.distribution-chart-area {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  min-height: 0;
}
.total-supply-box {
  width: 320px;
  height: clamp(120px, 13vh, 175px);
  background: #000000;
  border: none;
  border-right: 1px solid var(--separator);
  border-bottom: 1px solid var(--separator);
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-shrink: 0;
}
.total-supply-box .donut-total-label {
  margin-bottom: 16px;
}
.total-supply-box .total-supply-sep {
  width: 100%;
  height: 1px;
  background: #3d3d3f;
  margin-bottom: 16px;
}
.donut-chart {
  position: relative;
  width: clamp(280px, 30vh, 400px);
  height: clamp(280px, 30vh, 400px);
  flex-shrink: 0;
  margin: auto;
}
.donut-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.donut-bg {
  /* Gray track behind pink segments */
}
.donut-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.donut-total-label {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-secondary);
}
.donut-total-value {
  font-size: 24px;
  font-weight: 700;
}
.donut-pct {
  font-size: clamp(72px, 7.5vh, 100px);
  font-weight: 700;
  line-height: 1;
  margin-top: 8px;
}
.donut-amount {
  font-size: clamp(16px, 1.6vh, 20px);
  font-weight: 700;
}
.distribution-legend {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 340px;
  flex-shrink: 0;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: clamp(8px, 1vh, 12px) 24px;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid var(--separator);
  border-right: none;
  flex: 1;
  border-radius: 0;
}
.legend-item:first-child {
  border-radius: 0 4px 0 0;
  border-top: none;
}
.legend-item:last-child {
  border-radius: 0 0 4px 0;
  border-bottom: none;
}
.legend-item + .legend-item {
  border-top: none;
}
.legend-item.active {
  /* Design: same border as inactive, only text color changes */
}
.legend-item .legend-label {
  color: var(--separator);
}
.legend-item.active .legend-label {
  color: #ffffff;
}
.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  display: none; /* hidden in design - color shown via active state */
}
.legend-label {
  font-size: 20px;
  font-weight: 700;
  flex: 1;
}
.legend-pct {
  font-size: 20px;
  color: var(--text-secondary);
  display: none; /* Design uses arrow icon instead */
}
.legend-arrow {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Token Economy Cycle */
/* Cycle Wrap - uses .design-box for gradient border */
.cycle-wrap {
  padding: 40px;
}
.cycle-grid {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}
.cycle-card {
  flex: 1;
  max-width: 260px;
  padding: 32px 24px;
  border-radius: 4px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.cycle-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
}
.cycle-icon {
  width: 60px;
  height: 60px;
}
.cycle-icon img { width: 100%; height: 100%; object-fit: contain; }
.cycle-label {
  font-size: 20px;
  font-weight: 700;
}
.cycle-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.cycle-arrow {
  display: flex;
  align-items: center;
}
.cycle-arrow img {
  width: 20px;
  opacity: 0.3;
  filter: invert(1);
}

/* ---------- Section 4: Features ---------- */
/* Features Wrap - uses .design-box for gradient border */
.features-wrap {
  padding: 40px;
}
.features-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 500px;
}
.feature-desc-area {
  position: relative;
  min-height: 300px;
}
.feature-desc {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s var(--ease-out);
  pointer-events: none;
  padding: 0;
}
.feature-desc.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
  position: relative;
}
.feature-desc h3 {
  font-size: 40px;
  font-weight: 700;
}
.feature-desc p {
  font-size: 20px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.feature-divider {
  width: 100%;
  height: 1px;
  background: var(--separator);
  margin: 20px 0;
}

/* Feature Circle Layout */
.feature-circle-wrap {
  position: relative;
  width: 480px;
  height: 480px;
  justify-self: center;
  flex-shrink: 0;
}
.feature-circle-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 392px;
  height: 392px;
  border-radius: 50%;
  border: 1px solid var(--separator);
  transform: translate(-50%, -50%);
}
.feature-circle-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.8;
}
.feature-circle-center img {
  width: 120px;
  height: 120px;
}
.circle-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.5s var(--ease-out);
}
.circle-node-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid rgba(92, 92, 93, 0.5);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s var(--ease-out);
}
.circle-node-icon img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  opacity: 0.4;
  transition: opacity 0.5s var(--ease-out);
}
.circle-node span {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
  opacity: 0.5;
  transition: opacity 0.5s var(--ease-out);
}
.circle-node.active .circle-node-icon {
  border-color: #ffffff;
}
.circle-node.active .circle-node-icon img {
  opacity: 1;
}
.circle-node.active span {
  color: var(--text);
  opacity: 1;
}
/* Position nodes so icon CENTERS sit on the ring edge.
   Container: 480x480. Ring center: 240,240. Ring radius: 196.
   45° offset: 196 * cos(45°) ≈ 138.6
   Ring points: NW(101,101) NE(379,101) SW(101,379) SE(379,379)
   Icon = 100x100 → top = point.y - 50, left = point.x
   translateX(-50%) centers node horizontally on left value */
.circle-node:nth-child(3) { /* top-left (NW) - Proof of Learning */
  top: 51px;
  left: 101px;
  transform: translateX(-50%);
}
.circle-node:nth-child(4) { /* top-right (NE) - AI-Based Learning */
  top: 51px;
  left: 379px;
  transform: translateX(-50%);
}
.circle-node:nth-child(5) { /* bottom-left (SW) - Reverse Token */
  top: 329px;
  left: 101px;
  transform: translateX(-50%);
}
.circle-node:nth-child(6) { /* bottom-right (SE) - Token Economy */
  top: 329px;
  left: 379px;
  transform: translateX(-50%);
}

/* ---------- Section 5: Roadmap ---------- */
#section-roadmap .section-inner {
  max-width: 900px;
}
.timeline {
  position: relative;
  padding-left: 40px;
  margin-top: 20px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--pink), rgba(255,0,231,0.1));
}
.timeline-item {
  position: relative;
  margin-bottom: 32px;
}
.timeline-dot {
  position: absolute;
  left: -43px;
  top: 8px;
  width: 24px;
  height: 24px;
  background-color: var(--bg);
  background-image: url('../images/ic_roadmap_bullet.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 50%;
  filter: drop-shadow(0 0 8px rgba(255,0,231,0.5));
  z-index: 2;
}
/* Timeline Card - uses .design-box for gradient border */
.timeline-card {
  padding: 28px 32px;
}
.timeline-phase {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #ffffff;
}
.timeline-heading {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}
.timeline-list li {
  position: relative;
  padding-left: 28px;
  font-size: 20px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 4px;
}
.timeline-sep {
  width: 100%;
  height: 1px;
  background: var(--separator);
  margin: 16px 0;
}
.timeline-list li .bullet-icon {
  position: absolute;
  left: 8px;
  top: 10px;
  width: 4px;
  height: 4px;
}
/* Small dot bullet for inner list items */
.timeline-list li .bullet-dot {
  position: absolute;
  left: 8px;
  top: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pink);
  opacity: 0.7;
  flex-shrink: 0;
}

/* ---------- Section 6: Team ---------- */
/* Company Overview - uses .design-box for gradient border */
.company-overview {
  padding: 0;
  margin-bottom: 48px;
  overflow: hidden;
}
.company-inner {
  display: flex;
  border-radius: 4px;
  border: 1px solid var(--separator);
  margin: 12px;
  overflow: hidden;
}
.company-logo-area {
  width: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--separator);
  flex-shrink: 0;
  padding: 40px;
}
.company-logo-area img {
  max-width: 200px;
  height: auto;
}
.company-text-area {
  flex: 1;
  padding: 32px 40px;
}
.company-text-area h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}
.company-text-area .company-sep {
  width: 100%;
  height: 1px;
  background: var(--separator);
  margin-bottom: 16px;
}
.company-text-area p {
  font-size: 20px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.team-group-box {
  position: relative;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 32px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(36,36,36,0.8));
  border: 1px solid transparent;
  background-clip: padding-box;
}
.team-group-box::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 9px;
  padding: 1px;
  background: linear-gradient(to top, #7c44ff, #000000);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.team-group-title {
  font-size: 43px;
  font-weight: 700;
  margin-bottom: 32px;
  margin-top: 20px;
  padding-left: 8px;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 21px;
  margin-bottom: 0;
}
.team-grid.advisors {
  grid-template-columns: repeat(4, 1fr);
}
.team-card {
  padding: 0;
  border-radius: 4px;
  background: none;
  border: 1px solid var(--separator);
  overflow: hidden;
}
.team-photo {
  width: 100%;
  aspect-ratio: 294 / 276;
  background: linear-gradient(135deg, rgba(124,68,255,0.2), rgba(255,0,231,0.1));
  object-fit: cover;
}
.advisors .team-photo {
  background: #ffffff;
}
.team-card-body {
  padding: 20px;
}
.team-name {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 8px;
}
.team-role {
  font-size: 20px;
  font-weight: 700;
  color: var(--purple);
  display: block;
  margin-bottom: 16px;
}
.team-bio {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}
.team-bio li {
  position: relative;
  padding: 10px 0;
  font-size: 20px;
  color: var(--text-secondary);
  line-height: 1.4;
  border-bottom: 1px solid var(--separator);
}
.team-bio li:last-child {
  border-bottom: none;
}

/* ---------- Footer ---------- */
#footer {
  position: relative;
  z-index: 1;
  background: var(--bg);
  border-top: 1px solid #2f2f2f;
  padding: 48px 60px;
}
.footer-inner {
  max-width: 1264px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 210px;
  min-height: 196px;
}
.footer-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 196px;
  flex-shrink: 0;
}
.footer-logo {
  height: 36px;
  width: auto;
}
.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-company {
  font-size: 14px;
  color: #b6b6b6;
}
.footer-copyright {
  font-size: 14px;
  color: #b6b6b6;
}
.footer-right {
  display: flex;
  gap: 120px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer-col h5 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}
.footer-col a {
  font-size: 20px;
  color: var(--text-secondary);
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--text); }

/* ---------- Animation base states ---------- */
.anim-item {
  opacity: 0;
  transform: translateY(30px);
}
.anim-item[data-anim="fade"] {
  transform: none;
}
.anim-item[data-anim="fade-left"] {
  transform: translateX(-40px);
}
.anim-item.in-view {
  opacity: 1;
  transform: translateY(0) translateX(0);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .card-grid.three-col { grid-template-columns: 1fr; }
  .what-card { margin-top: 60px; }
  .token-row { grid-template-columns: 1fr; }
  .features-layout { grid-template-columns: 1fr; gap: 40px; }
  .feature-circle-wrap { width: 340px; height: 340px; }
  .feature-circle-ring { width: 260px; height: 260px; }
  .circle-node-icon { width: 80px; height: 80px; }
  .circle-node-icon img { width: 44px; height: 44px; }
  .team-grid, .team-grid.advisors { grid-template-columns: repeat(2, 1fr); }
  .distribution-content { flex-direction: column; }
  .why-layout { flex-direction: column; }
  .why-box-left { width: 100%; height: auto; }
  .why-box-right { height: auto; }
  .cycle-grid { flex-wrap: wrap; }
  .cycle-arrow { display: none; }
  .company-inner { flex-direction: column; }
  .company-logo-area { width: 100%; border-right: none; border-bottom: 1px solid var(--separator); }
  .footer-inner { flex-direction: column; gap: 40px; min-height: auto; }
  .footer-left { min-height: auto; gap: 24px; }
}

/* ========== MOBILE (max-width: 768px) ========== */
@media (max-width: 768px) {
  :root { --nav-height: 56px; }

  /* ---- Nav ---- */
  #navbar { padding: 0 16px; }
  .nav-logo img { height: 28px; }
  .lang-btn { font-size: 18px; padding: 2px 8px; }
  .menu-toggle img { width: 24px; height: 24px; }

  /* ---- Cover Menu ---- */
  .cover-menu { justify-content: flex-start; align-items: flex-start; padding: 120px 32px; }
  .cover-link { font-size: 28px; }
  .cover-nav { gap: 28px; text-align: left; }
  .menu-close { right: 16px; top: 16px; padding: 16px; z-index: 10; }
  .menu-close img { width: 28px; height: 28px; filter: none; }

  /* ---- Sections ---- */
  .section {
    padding: 80px 20px 40px;
    min-height: 100vh;
    align-items: center;
    justify-content: flex-start;
  }
  .section-header { margin-bottom: 32px; }
  .section-title { font-size: 26px; margin-bottom: 8px; }
  .section-subtitle { font-size: 11px; }

  /* ---- Section 0: Hero ---- */
  #section-intro { min-height: 100vh; align-items: flex-end; }
  #section-intro .section-inner { padding-bottom: 10vh; }
  .intro-title { font-size: 40px; letter-spacing: 1px; }
  .intro-line { width: 280px; }
  .intro-subtitle { font-size: 20px; }
  .intro-desc { font-size: 11px; }
  .btn-cta {
    min-width: auto;
    width: 100%;
    max-width: 320px;
    height: 52px;
    font-size: 16px;
    padding: 0 24px;
    margin-top: 16px;
  }

  /* ---- Section 1: About - Horizontal Card Scroll ---- */
  .card-grid.three-col {
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 0 -20px;
    /* Center first and last cards by adding padding = (viewport - card) / 2 */
    padding: 0 calc((100vw - 240px) / 2);
  }
  .card-grid.three-col::-webkit-scrollbar { display: none; }
  .what-card {
    flex-shrink: 0;
    width: 240px;
    scroll-snap-align: center;
    margin-top: 36px;
    padding: 56px 20px 24px;
  }
  .what-card-icon { width: 72px; height: 72px; }
  .what-card[data-accent="blue"] .what-card-icon img { width: 52px; height: 44px; }
  .what-card[data-accent="pink"] .what-card-icon img { width: 68px; height: 45px; }
  .what-card[data-accent="purple"] .what-card-icon img { width: 36px; height: 36px; }
  .card-title { font-size: 24px; margin-bottom: 12px; }
  .card-desc { font-size: 14px; }
  .card-section-title { font-size: 20px; margin-bottom: 20px; }

  /* ---- Section 2: Why - Stacked with Tabs ---- */
  .why-layout { flex-direction: column; gap: 24px; }
  .why-box-left { width: 100%; height: auto; flex-shrink: initial; }
  .why-box-right { width: 100%; height: auto; flex: initial; }
  .why-right-title { font-size: 20px; padding: 16px 12px 0; }
  .why-right-body {
    flex-direction: column-reverse;
    padding: 12px;
    gap: 0;
  }
  .mining-detail {
    width: 100%;
    border-radius: 0 0 4px 4px;
    border-top: none;
    padding: 32px 16px;
  }
  .mining-detail-icon { width: 100px; height: 100px; }
  .mining-detail-title { font-size: 20px; margin-bottom: 8px; }
  .mining-detail-text { font-size: 14px; max-width: 100%; }
  /* Mining steps as horizontal tab bar */
  .mining-steps { flex-direction: row; }
  .mining-step-card {
    flex: 1;
    justify-content: center;
    padding: 12px 0;
    border: 1px solid var(--separator);
    border-bottom: 1px solid var(--separator);
    border-left: none;
    cursor: pointer;
  }
  .mining-step-card:first-child {
    border-left: 1px solid var(--separator);
    border-radius: 4px 0 0 0;
  }
  .mining-step-card:last-child { border-radius: 0 4px 0 0; }
  .mining-step-card + .mining-step-card { border-top: 1px solid var(--separator); }
  .mining-step-card.active { background: rgba(0, 0, 0, 0.5); border-bottom: 2px solid var(--pink); }
  .mining-step-card:not(.active) { border-bottom: 1px solid rgba(255,255,255,0.15); }
  .mining-step-info, .mining-step-icon { display: none; }
  .mining-step-card .step-number { border: none; width: auto; height: auto; }
  /* Q/A panels */
  .why-panel { cursor: pointer; }
  .why-text { font-size: 14px; }
  .badge-label { font-size: 18px; }
  .badge-letter { width: 32px; height: 32px; font-size: 16px; }
  .why-icon { width: 36px; height: 32px; margin: 12px auto; }

  /* ---- Section 3: Tokenomics - Stacked ---- */
  .token-slide { margin-bottom: 32px; }
  .token-row { grid-template-columns: 1fr; gap: 16px; }
  .token-info-card, .token-usecase-card { padding: 24px 20px; }
  .token-table td { font-size: 14px; padding: 12px 0; }
  .token-table .tl { width: 100px; }
  .usecase-list li { padding: 12px 0; gap: 8px; }
  .usecase-list li img { width: 20px; height: 20px; }
  .usecase-list li span { font-size: 14px; }
  /* Distribution */
  .distribution-wrap { padding: 20px 16px; }
  .distribution-content {
    flex-direction: column;
    border: none;
    background: none;
    padding: 0;
  }
  .distribution-chart-area { flex-direction: column; align-items: center; }
  .total-supply-box {
    width: 100%;
    height: auto;
    border-right: none;
    border: 1px solid var(--separator);
    border-radius: 4px 4px 0 0;
    padding: 16px;
  }
  .donut-chart { width: 240px; height: 240px; margin: 24px auto; }
  .donut-pct { font-size: 52px; }
  .donut-amount { font-size: 14px; }
  .donut-total-label { font-size: 16px; }
  .donut-total-value { font-size: 18px; }
  /* Legend as 2-column grid */
  .distribution-legend {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--separator);
    border-radius: 0 0 4px 4px;
  }
  .legend-item {
    border: none;
    border-right: 1px solid var(--separator);
    border-bottom: 1px solid var(--separator);
    padding: 10px 12px;
    border-radius: 0;
    flex: initial;
  }
  .legend-item:first-child { border-radius: 0; border-top: none; }
  .legend-item:last-child { border-radius: 0; }
  .legend-item:nth-child(even) { border-right: none; }
  .legend-item:nth-last-child(-n+2) { border-bottom: none; }
  .legend-item + .legend-item { border-top: none; }
  .legend-label { font-size: 14px; }
  .legend-arrow { width: 16px; height: 16px; }
  /* Cycle - Same pattern as what_is cards, remove design-box */
  .cycle-wrap {
    padding: 0;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
  }
  .cycle-wrap::before,
  .cycle-wrap::after {
    display: none !important;
  }
  .cycle-wrap .card-section-title { margin-bottom: 16px; }
  .cycle-grid {
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    margin-top: 0;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 0 -20px;
    padding: 0 calc((100vw - 240px) / 2);
  }
  .cycle-grid::-webkit-scrollbar { display: none; }
  .cycle-card {
    flex: 0 0 240px;
    scroll-snap-align: center;
    padding: 28px 20px;
  }
  .cycle-number { width: 32px; height: 32px; font-size: 14px; }
  .cycle-icon { width: 48px; height: 48px; }
  .cycle-label { font-size: 18px; }
  .cycle-desc { font-size: 12px; }
  .cycle-arrow { display: none; }

  /* ---- Section 4: Features ---- */
  .features-wrap { padding: 20px; }
  .features-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: auto;
  }
  .feature-desc-area { min-height: 200px; order: 2; }
  .feature-desc h3 { font-size: 24px; }
  .feature-desc p { font-size: 14px; }
  .feature-divider { margin: 12px 0; }
  .feature-circle-wrap {
    width: 300px;
    height: 300px;
    order: 1;
    margin: 0 auto;
  }
  .feature-circle-ring { width: 240px; height: 240px; }
  .feature-circle-center img { width: 80px; height: 80px; }
  .circle-node-icon { width: 64px; height: 64px; }
  .circle-node-icon img { width: 36px; height: 36px; }
  .circle-node span { font-size: 11px; }
  /* Recalculate positions: 300px container, ring r=120, 45°≈84.9 */
  .circle-node:nth-child(3) { top: 33px; left: 65px; }
  .circle-node:nth-child(4) { top: 33px; left: 235px; }
  .circle-node:nth-child(5) { top: 203px; left: 65px; }
  .circle-node:nth-child(6) { top: 203px; left: 235px; }

  /* ---- Section 5: Roadmap ---- */
  #section-roadmap .section-inner { max-width: 100%; }
  .timeline { padding-left: 28px; }
  .timeline-dot { left: -29px; width: 20px; height: 20px; }
  .timeline-card { padding: 20px; }
  .timeline-phase { font-size: 24px; }
  .timeline-heading { font-size: 16px; }
  .timeline-list li { font-size: 14px; padding-left: 20px; }
  .timeline-list li .bullet-icon { left: 4px; top: 8px; }
  .timeline-list li .bullet-dot { left: 4px; top: 9px; width: 4px; height: 4px; }
  .timeline-sep { margin: 12px 0; }

  /* ---- Section 6: Team ---- */
  .company-overview { margin-bottom: 24px; }
  .company-inner { flex-direction: column; margin: 8px; }
  .company-logo-area {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--separator);
    padding: 24px;
  }
  .company-logo-area img { max-width: 140px; }
  .company-text-area { padding: 20px; }
  .company-text-area h3 { font-size: 20px; margin-bottom: 12px; }
  .company-text-area p { font-size: 14px; }
  .team-group-title { font-size: 28px; margin-bottom: 20px; }
  .team-group-box { padding: 8px; margin-bottom: 20px; }
  .team-grid, .team-grid.advisors {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .team-name { font-size: 18px; margin-bottom: 4px; }
  .team-role { font-size: 14px; margin-bottom: 8px; }
  .team-card-body { padding: 12px; }
  .team-bio li { font-size: 13px; padding: 6px 0; }

  /* ---- Footer ---- */
  #footer { padding: 32px 20px; }
  .footer-inner { flex-direction: column; gap: 32px; min-height: auto; }
  .footer-left { min-height: auto; gap: 16px; }
  .footer-logo { height: 28px; }
  .footer-right { flex-direction: column; gap: 24px; }
  .footer-col { gap: 12px; }
  .footer-col h5 { font-size: 16px; }
  .footer-col a { font-size: 14px; }
  .footer-company, .footer-copyright { font-size: 12px; }

  /* ---- Section-tall ---- */
  .section-tall { padding-top: 80px; padding-bottom: 60px; }
}
