:root {
  --bg-deep: #0a0a0c;
  --bg-elevated: rgba(22, 20, 18, 0.92);
  --bg-card: rgba(18, 16, 14, 0.88);
  --border: rgba(255, 140, 60, 0.22);
  --ember: #ff5722;
  --gold: #ffb74d;
  --gold-dim: #ff9800;
  --flame: #ff6d00;
  --text: #f3efe6;
  --text-muted: rgba(243, 239, 230, 0.68);
  --glow: rgba(255, 152, 0, 0.28);
  --radius: 16px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --max: 1180px;
  --nav-h: 72px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body[data-lang="ja"] { --font-body: "Noto Sans JP", "Outfit", system-ui, sans-serif; }
body[data-lang="ko"] { --font-body: "Noto Sans KR", "Outfit", system-ui, sans-serif; }
body[data-lang="zh-TW"] { --font-body: "Noto Sans TC", "Outfit", system-ui, sans-serif; }
body[data-lang="hi"] { --font-body: "Noto Sans Devanagari", "Outfit", system-ui, sans-serif; }
body[data-lang="th"] { --font-body: "Noto Sans Thai", "Outfit", system-ui, sans-serif; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--bg-deep);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

body.menu-open {
  overflow: hidden;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 55% at 50% -15%, rgba(255, 107, 44, 0.22), transparent 55%),
    radial-gradient(ellipse 45% 35% at 100% 15%, rgba(255, 152, 0, 0.12), transparent),
    radial-gradient(ellipse 45% 35% at 0% 85%, rgba(255, 87, 34, 0.1), transparent),
    linear-gradient(180deg, #0a0a0c 0%, #12100e 50%, #0a0a0c 100%);
}

#ember-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  width: 100%;
  height: 100%;
}

a {
  color: var(--gold-dim);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--flame);
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.35s, box-shadow 0.35s;
}

.site-header.scrolled {
  background: rgba(10, 10, 12, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(255, 140, 0, 0.35));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links > li {
  flex-shrink: 0;
}

.nav-links a {
  display: inline-block;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.2;
}

.nav-links a:hover {
  color: var(--flame);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffc107, #ff5722);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: var(--shadow);
}

.nav-cta:hover {
  transform: translateY(-1px);
  color: #fff !important;
}

@media (min-width: 901px) and (max-width: 1280px) {
  .nav-links {
    gap: 12px;
  }

  .nav-links a {
    font-size: 0.72rem;
    letter-spacing: 0.03em;
  }

  .nav-cta {
    padding: 8px 16px;
    font-size: 0.72rem;
  }

  .lang-switch select {
    max-width: 7.5rem;
    font-size: 0.72rem;
  }
}

@media (min-width: 901px) {
  .nav-inner {
    gap: 16px;
  }

  .nav-links {
    flex-wrap: nowrap;
    justify-content: flex-end;
    min-width: 0;
  }

  .brand {
    flex-shrink: 0;
  }
}

.lang-switch-wrap {
  display: flex;
  align-items: center;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.lang-switch select {
  appearance: none;
  padding: 8px 28px 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background-color: var(--bg-elevated);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ff5722' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  color: var(--text);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  min-width: 128px;
  color-scheme: dark;
  box-shadow: var(--shadow);
}

.lang-switch select option {
  background: var(--bg-elevated);
  color: var(--text);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--flame);
  box-shadow: var(--shadow);
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4caf50;
  box-shadow: 0 0 8px #4caf50;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 20px;
}

.hero h1 .accent {
  background: linear-gradient(135deg, #ff9800, #ff5722);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, #ffb300, #ff5722);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-ghost {
  background: var(--bg-elevated);
  color: var(--text);
  border: 2px solid var(--border);
}

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.stat-item {
  border-left: 3px solid var(--ember);
  padding-left: 16px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--flame);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.token-orbit {
  position: relative;
  width: min(400px, 88vw);
  aspect-ratio: 1;
  perspective: 900px;
}

.orbit-layer {
  position: absolute;
  inset: 0;
  animation: orbit-spin 22s linear infinite;
  transform-style: preserve-3d;
}

.orbit-layer--1 {
  inset: 0;
  animation-duration: 26s;
}

.orbit-layer--2 {
  inset: 7%;
  animation-duration: 19s;
  animation-direction: reverse;
}

.orbit-layer--3 {
  inset: 14%;
  animation-duration: 14s;
}

.orbit-layer--4 {
  inset: 20%;
  animation-duration: 11s;
  animation-direction: reverse;
  opacity: 0.85;
}

.orbit-ring {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: rgba(255, 200, 120, 0.95);
  border-right-color: rgba(255, 140, 60, 0.35);
  border-bottom-color: rgba(255, 120, 40, 0.12);
  border-left-color: rgba(255, 180, 80, 0.45);
  box-shadow:
    0 0 24px rgba(255, 152, 0, 0.12),
    inset 0 0 20px rgba(255, 152, 0, 0.06);
}

.orbit-ring--thin {
  border-width: 1px;
}

.orbit-dot {
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff8e1, #ffb74d 55%, #ff6f00);
  box-shadow: 0 0 14px rgba(255, 152, 0, 0.85);
}

.orbit-dot--sm {
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  top: -3px;
}

.orbit-layer--2 .orbit-ring {
  transform: rotateX(58deg);
}

.orbit-layer--3 .orbit-ring {
  transform: rotateX(52deg) rotateZ(28deg);
}

.orbit-layer--4 .orbit-ring {
  transform: rotateX(48deg) rotateZ(-18deg);
}

@keyframes orbit-spin {
  to {
    transform: rotateZ(360deg);
  }
}

.token-core {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff9c4, #ff9800 45%, #ff5722 90%);
  box-shadow:
    0 0 50px var(--glow),
    0 0 80px rgba(255, 120, 40, 0.25),
    var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 6s ease-in-out infinite;
  z-index: 2;
  overflow: hidden;
}

.token-core-inner {
  width: 68%;
  height: auto;
  max-height: 72%;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
  pointer-events: none;
  user-select: none;
}

@media (prefers-reduced-motion: reduce) {
  .orbit-layer {
    animation: none;
  }

  .token-core {
    animation: none;
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

section {
  padding: 88px 0;
}

.section-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 48px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--flame);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 16px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.08rem;
  margin: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.glass-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.glass-card:hover {
  transform: translateY(-4px);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 183, 77, 0.35), rgba(255, 87, 34, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.card-icon--img {
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 152, 0, 0.2);
  padding: 8px;
}

.card-icon--img img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

.glass-card h3 {
  margin: 0 0 10px;
}

.glass-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.prose-block {
  max-width: 820px;
  margin: 0 auto;
  padding: 32px 36px;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.prose-block p {
  margin: 0 0 16px;
}

.prose-block p:last-child {
  margin-bottom: 0;
}

.tokenomics-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.donut-wrap {
  position: relative;
  max-width: 360px;
  margin-inline: auto;
}

.donut-wrap svg {
  width: 100%;
  transform: rotate(-90deg);
}

.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.donut-center strong {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--flame);
}

.alloc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.alloc-list li {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.alloc-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 10px;
}

.alloc-pct {
  font-weight: 700;
  color: var(--flame);
}

.contract-box {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.chains-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.chain-name {
  margin: 0 0 14px;
  color: var(--flame);
  font-size: 1.1rem;
}

.contract-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.contract-address {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(8, 8, 10, 0.55);
  border: 1px dashed var(--border);
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
  word-break: break-all;
}

.btn-copy {
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 2px solid var(--gold);
  color: var(--flame);
  cursor: pointer;
  font-weight: 700;
  font-family: inherit;
}

.btn-copy.copied {
  border-color: #66bb6a;
  color: #a5d6a7;
}

.chain-actions {
  margin-top: 16px;
  margin-bottom: 0;
}

.lucky-box {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px;
  background: linear-gradient(145deg, rgba(28, 24, 20, 0.95), rgba(40, 28, 18, 0.85));
  border: 2px solid rgba(255, 152, 0, 0.4);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lucky-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.lucky-form input {
  flex: 1;
  min-width: 220px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(8, 8, 10, 0.6);
  color: var(--text);
  font: inherit;
}

.lucky-result {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 12px;
  font-size: 0.98rem;
  display: none;
}

.lucky-result.show {
  display: block;
}

.lucky-result.win {
  background: rgba(46, 125, 50, 0.18);
  border: 1px solid rgba(129, 199, 132, 0.45);
  color: #a5d6a7;
}

.lucky-result.lose {
  background: rgba(255, 152, 0, 0.12);
  border: 1px solid rgba(255, 204, 128, 0.35);
  color: #ffcc80;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal[hidden]:not(.is-open) {
  display: none;
}

.modal.is-open,
.modal.is-open[hidden] {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 6, 0.82);
  backdrop-filter: blur(6px);
}

.modal-dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: min(90vh, 720px);
  overflow: auto;
  padding: 36px 32px 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 152, 0, 0.35);
  background: linear-gradient(155deg, rgba(22, 18, 16, 0.98), rgba(36, 26, 18, 0.94));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 193, 7, 0.08);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.modal-close:hover {
  color: var(--flame);
  background: rgba(255, 152, 0, 0.12);
}

.modal-lead {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.promotion-reward-note {
  display: inline-block;
  margin: 18px 0 0;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffcc80;
  background: rgba(255, 152, 0, 0.14);
  border: 1px solid rgba(255, 193, 7, 0.35);
}

.promotion-table-wrap {
  margin-top: 22px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.promotion-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.promotion-table thead {
  background: rgba(255, 152, 0, 0.12);
}

.promotion-table th,
.promotion-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.promotion-table th {
  font-weight: 600;
  color: #ffcc80;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.promotion-table tbody tr:last-child td {
  border-bottom: none;
}

.promotion-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.promotion-rate {
  font-weight: 700;
  color: var(--flame);
  white-space: nowrap;
}

.promotion-footnote {
  margin: 18px 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

body.modal-open {
  overflow: hidden;
}

.roadmap::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--ember), var(--gold));
}

.roadmap {
  position: relative;
  max-width: 720px;
  margin-inline: auto;
}

.roadmap-item {
  position: relative;
  padding-left: 56px;
  padding-bottom: 40px;
}

.roadmap-marker {
  position: absolute;
  left: 8px;
  top: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 3px solid var(--gold);
}

.roadmap-item.done .roadmap-marker {
  background: var(--gold);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  background: none;
  border: none;
  color: var(--text);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 520px;
  padding-bottom: 20px;
}

.faq-answer p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.75;
}

.site-footer {
  padding: 56px 0 28px;
  border-top: 1px solid var(--border);
  background: rgba(6, 6, 8, 0.85);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.social-row a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s, transform 0.6s;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .hero-grid,
  .tokenomics-layout,
  .footer-grid,
  .chains-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    top: var(--nav-h);
    flex-direction: column;
    justify-content: center;
    background: rgba(10, 10, 12, 0.96);
    transform: translateX(100%);
    transition: transform 0.35s;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .menu-toggle {
    display: flex;
  }
}

@media (max-width: 480px) {
  .container {
    width: calc(100% - 32px);
  }
}
