:root {
  --ink: #16211f;
  --muted: #5d6f69;
  --line: #d8e1dd;
  --paper: #fbfcf8;
  --mist: #eef4f0;
  --sea: #315f75;
  --forest: #2c6a4f;
  --clay: #a85f3e;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(22, 33, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans KR", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: rgba(10, 23, 25, 0.84);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 152px;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2vw, 26px);
  overflow-x: auto;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.language-switcher {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.language-switcher button {
  min-width: 42px;
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: transparent;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.language-switcher button.is-active {
  color: var(--ink);
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: end;
  overflow: hidden;
  padding: 132px clamp(20px, 6vw, 84px) 11vh;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(10, 24, 24, 0.86), rgba(10, 24, 24, 0.4) 60%, rgba(10, 24, 24, 0.18)),
    url("assets/hero-bg.jpg") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18vh;
  background: linear-gradient(0deg, rgba(251, 252, 248, 1), rgba(251, 252, 248, 0));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(880px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f1c5a1;
}

h1,
h2,
h3,
p,
td,
th {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.hero-copy {
  max-width: 780px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.mandela {
  max-width: 760px;
  margin: 30px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
}

.mandela span {
  display: block;
  margin-top: 6px;
  color: #f1c5a1;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 11px 18px;
  font-weight: 850;
  line-height: 1.2;
  cursor: pointer;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    opacity 140ms ease;
}

.button:hover {
  opacity: 0.9;
}

.button.primary {
  color: var(--white);
  background: var(--forest);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.08);
}

.button.outline {
  color: var(--forest);
  border-color: var(--forest);
  background: var(--white);
}

.section {
  padding: clamp(72px, 10vw, 126px) clamp(20px, 6vw, 84px);
}

.section-heading,
.split-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.section-heading {
  margin-bottom: clamp(34px, 6vw, 70px);
}

.copy-stack {
  display: grid;
  gap: 18px;
}

.copy-stack p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
}

.copy-stack.narrow {
  max-width: 980px;
  margin-bottom: 28px;
}

.info-grid,
.doc-grid,
.wallet-grid,
.phase-grid,
.team-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.info-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-grid article,
.doc-card,
.wallet-grid article,
.phase-grid article,
.team-grid article,
.contact-grid article,
.table-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.info-grid article,
.doc-card,
.wallet-grid article,
.phase-grid article,
.team-grid article,
.contact-grid article,
.table-card {
  padding: 24px;
}

.info-grid p,
.doc-card p,
.wallet-grid p,
.phase-grid p,
.team-grid p,
.contact-grid p,
.small-note {
  margin: 0;
  color: var(--muted);
}

.formula-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.formula-grid div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.formula-grid strong,
.formula-grid span {
  display: block;
}

.formula-grid span {
  margin-top: 4px;
  color: var(--muted);
}

.table-section,
.roadmap-section,
.wallet-section {
  background: var(--mist);
}

.allocation-section {
  background: linear-gradient(180deg, var(--paper), #f4f8f5);
}

.allocation-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: stretch;
}

.allocation-card {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.allocation-card h3 {
  margin-bottom: 22px;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
}

.token-chart {
  display: grid;
  min-height: 330px;
  place-items: center;
}

.token-chart img {
  display: block;
  width: min(100%, 420px);
  max-width: 420px;
  height: auto;
}

.fund-bars {
  display: grid;
  gap: 22px;
}

.fund-bar {
  display: grid;
  gap: 8px;
}

.fund-bar-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  color: var(--ink);
  font-weight: 800;
}

.fund-bar-label > span {
  min-width: 0;
}

.fund-bar-label strong {
  flex: 0 0 auto;
  color: var(--forest);
}

.fund-bar-track {
  height: 24px;
  overflow: hidden;
  border: 1px solid #cbd9d3;
  border-radius: 4px;
  background: #e8f0ec;
}

.fund-bar-track span {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--forest), var(--sea));
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

thead th {
  color: var(--white);
  background: var(--sea);
}

tbody th {
  color: var(--ink);
  background: #f7faf8;
}

.pri-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  -webkit-overflow-scrolling: touch;
}

.pri-table {
  width: max-content;
  min-width: 1600px;
  border-collapse: collapse;
  font-size: 0.78rem;
  line-height: 1.25;
}

.pri-table th,
.pri-table td {
  min-width: 68px;
  padding: 9px 8px;
  text-align: right;
  white-space: nowrap;
}

.pri-table th:first-child,
.pri-table td:first-child {
  min-width: 104px;
  text-align: left;
}

.pri-table thead th {
  text-align: center;
}

.pri-table tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #f7faf8;
  box-shadow: 1px 0 0 var(--line);
}

.table-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.table-scroll-hint {
  display: none;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.two-tables {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 18px;
}

.two-tables table {
  min-width: 0;
}

.doc-card {
  display: block;
}

.doc-card span {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--white);
  background: var(--clay);
  font-size: 0.76rem;
  font-weight: 900;
}

.wallet-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.44fr) minmax(280px, 0.56fr);
  gap: 14px;
  align-items: stretch;
}

.wallet-copy,
.wallet-actions {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.wallet-copy {
  padding: 18px;
}

.wallet-copy p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.35vw, 1.08rem);
}

.wallet-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 14px;
}

.wallet-action {
  width: 100%;
}

.wallet-action:hover {
  background: #eef4f0;
}

.wallet-actions .button.primary:hover {
  background: #245a42;
}

.wallet-actions .button.secondary {
  color: var(--white);
  background: var(--sea);
  border-color: var(--sea);
}

.timeline {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.timeline time {
  color: var(--forest);
  font-weight: 900;
}

.phase-grid {
  margin-top: 20px;
}

.news-list {
  display: grid;
  gap: 12px;
}

.news-list article {
  display: grid;
  grid-template-columns: 150px minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: start;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.news-list article:last-child {
  border-bottom: 1px solid var(--line);
}

.news-list time {
  color: var(--forest);
  font-weight: 800;
}

.avatar {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--sea), var(--forest));
  font-weight: 900;
}

.team-photo {
  width: 96px;
  height: 96px;
  margin-bottom: 18px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--mist);
}

.contact-section {
  background: var(--ink);
  color: var(--white);
}

.contact-section .contact-grid article {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.contact-section p {
  color: rgba(255, 255, 255, 0.78);
}

.sns-section {
  padding-top: clamp(36px, 5vw, 64px);
  padding-bottom: clamp(36px, 5vw, 64px);
  background: var(--paper);
}

.sns-section .section-heading {
  margin-bottom: 20px;
}

.sns-section h2 {
  font-size: clamp(1.65rem, 3vw, 2.6rem);
}

.sns-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.sns-grid > a,
.wechat-card {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  font-weight: 850;
}

.sns-grid > a {
  gap: 9px;
  padding: 12px 14px;
}

.sns-grid svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: currentColor;
}

.wechat-card {
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}

.wechat-card img {
  width: min(84px, 100%);
  height: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(20px, 6vw, 84px);
  color: var(--muted);
  background: var(--paper);
  font-size: 0.92rem;
}

.footer img {
  width: 132px;
  height: auto;
  flex: 0 0 auto;
}

@media (max-width: 1050px) {
  .info-grid,
  .doc-grid,
  .wallet-grid,
  .phase-grid,
  .team-grid,
  .contact-grid,
  .sns-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-list article,
  .wallet-panel,
  .two-tables,
  .allocation-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
  }

  .section-heading,
  .split-section {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .table-scroll-hint {
    display: block;
  }

  .pri-table tbody th {
    position: static;
    box-shadow: none;
  }

  .pri-table th:first-child,
  .pri-table td:first-child {
    position: static;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand {
    width: 126px;
  }

  .language-switcher button {
    min-width: 36px;
  }

  .hero {
    min-height: 88vh;
    padding: 150px 20px 84px;
  }

  h1 {
    font-size: clamp(2.5rem, 14vw, 4rem);
  }

  .info-grid,
  .doc-grid,
  .wallet-grid,
  .phase-grid,
  .team-grid,
  .contact-grid,
  .sns-grid,
  .formula-grid {
    grid-template-columns: 1fr;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .allocation-card {
    padding: 20px;
  }

  .token-chart {
    min-height: 0;
  }

  .token-chart img {
    max-width: 320px;
  }

  .fund-bar-label {
    align-items: flex-start;
  }
}
