@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:          #F7F0E6;
  --bg-card:     #FFFFFF;
  --bg-dark:     #EDE3D4;
  --bg-darker:   #E0D4C0;
  --gold:        #B8841A;
  --gold-light:  #D4A84B;
  --gold-dark:   #7A5510;
  --brown:       #4A2E0E;
  --text:        #4A2E0E;
  --text-muted:  #4A2E0E;
  --border:      #D9C9AE;
  --font:        system-ui, -apple-system, 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  --font-serif:  'Georgia', 'Times New Roman', serif;
  --font-num:    'Consolas', 'Courier New', monospace;
  --font-en:     'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --nav-drawer-w: 112px;
  --nav-toggle-w: 44px;
}

html { scroll-behavior: smooth; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

body {
  background: transparent;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ─── 固定背景圖 ────────────────────────────────────────────── */
.site-bg {
  position: fixed;
  inset: -30px;
  background: url('../IMG/wallpaper.svg') 100% 10% / cover no-repeat;
  z-index: -1;
  will-change: filter;
}

.site-dark {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: -1;
  pointer-events: none;
}

.site-gradient {
  position: fixed;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(247, 240, 230, 0.92) 0%,
    rgba(247, 240, 230, 0.70) 20%,
    rgba(247, 240, 230, 0.00) 30%
  );
  z-index: -1;
  pointer-events: none;
}

a { color: var(--gold); text-decoration: none; }
a:hover { opacity: 0.8; }

/* ─── Nav ──────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: none;
}

.nav-inner {
  width: 100%;
  padding: 0 48px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  color: var(--brown);
  user-select: none;
  cursor: default;
}

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

/* ─── Mobile nav drawer (default hidden on desktop) ─────────── */
.nav-toggle,
.nav-backdrop {
  display: none;
}

.nav-drawer {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-drawer-top {
  flex-shrink: 0;
}

.nav-drawer-body {
  min-width: 0;
}

.nav-lang {
  position: relative;
  flex-shrink: 0;
}

.lang-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  min-width: 52px;
  border: 1px solid rgba(74, 46, 14, 0.25);
  background: var(--brown);
  color: #fff !important;
  cursor: pointer;
  font-size: 0.78rem;
  font-family: var(--font);
  border-radius: 6px;
  line-height: 1.4;
  transition: background 0.2s, border-color 0.2s;
}

.nav-lang .lang-trigger,
.nav-lang .lang-trigger .lang-current,
.nav-lang .lang-trigger .lang-chevron {
  color: #fff !important;
}

.lang-trigger:hover {
  background: #3d2509;
  border-color: rgba(74, 46, 14, 0.5);
  color: #fff !important;
}

.lang-current {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.lang-chevron {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.85;
  transition: transform 0.2s;
}

.nav-lang.open .lang-chevron {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 120px;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(217, 201, 174, 0.8);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(74, 46, 14, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  z-index: 200;
}

.nav-lang.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: transparent;
  color: #666 !important;
  cursor: pointer;
  font-size: 0.82rem;
  font-family: var(--font);
  text-align: left;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.lang-option:hover {
  background: rgba(217, 201, 174, 0.35);
  color: #4A2E0E !important;
}

.lang-option.active {
  background: rgba(74, 46, 14, 0.08);
  color: #4A2E0E !important;
  font-weight: 600;
}

/* ─── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  user-select: none;
  display: flex;
  align-items: center;
  padding: 100px 24px 80px;
  overflow: hidden;
}


.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 580px;
  margin-left: 80px;
}

@media (max-width: 1100px) {
  .hero-inner { margin-left: 0; }
  .hero { justify-content: center; text-align: center; }
  .hero-actions { justify-content: center; }
}

.hero-tag {
  display: inline-block;
  background: rgba(184, 132, 26, 0.12);
  border: 1px solid rgba(184, 132, 26, 0.3);
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
  color: #4A2E0E;
  color: var(--brown);
}

.hero-title span {
  color: var(--gold);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  font-family: var(--font-num), var(--font-serif);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #fff;
  box-shadow: 0 4px 16px rgba(184,132,26,0.3);
}
.btn-primary:hover { box-shadow: 0 6px 22px rgba(184,132,26,0.45); opacity: 1; }

.btn-outline {
  background: rgba(247, 240, 230, 0.75);
  border: 1.5px solid var(--gold);
  color: var(--gold);
  box-shadow: 0 2px 10px rgba(184,132,26,0.15), inset 0 0 0 1px rgba(184,132,26,0.08);
}
.btn-outline:hover {
  background: rgba(184,132,26,0.12);
  border-color: var(--gold-light);
  color: var(--gold-light);
  box-shadow: 0 4px 16px rgba(184,132,26,0.25);
  opacity: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ─── Stats Bar ─────────────────────────────────────────────── */
.stats-bar {
  background: rgba(247, 240, 230, 0.55);
  border-top: 1px solid rgba(217, 201, 174, 0.6);
  border-bottom: 1px solid rgba(217, 201, 174, 0.6);
}

.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 24px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 24px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
}

.stat-value {
  font-size: 1.9rem;
  font-weight: 700;
  color: #333333;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

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

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* ─── Sections ──────────────────────────────────────────────── */
.section { padding: 96px 24px; }

.section-dark { background: transparent; }

#conditions,
#audience {
  background: rgba(247, 240, 230, 0.80);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
  color: var(--brown);
}

.section-lead {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 56px;
  line-height: 1.8;
  font-family: var(--font-num), var(--font-serif);
}

/* ─── Philosophy Quote ──────────────────────────────────────── */
.philosophy-quote {
  border-left: 3px solid var(--gold);
  margin: 0 0 4px 0;
  padding: 24px 32px;
  background: rgba(184, 132, 26, 0.06);
  border-radius: 0 8px 8px 0;
  max-width: 640px;
}

.philosophy-quote p {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-style: italic;
  color: var(--brown);
  line-height: 1.8;
}

/* ─── Cards ─────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: rgba(247, 240, 230, 0.55);
  border: 1px solid rgba(217, 201, 174, 0.6);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(184,132,26,0.1);
}

.card-icon {
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 14px;
}

.card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--brown);
}

.card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-family: var(--font-num), var(--font-serif);
  font-variant-numeric: tabular-nums;
}

/* ─── Mechanics ─────────────────────────────────────────────── */
.mechanics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
  gap: 24px;
}

.mech-item {
  display: flex;
  gap: 20px;
  background: rgba(247, 240, 230, 0.55);
  border: 1px solid rgba(217, 201, 174, 0.6);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.mech-step {
  font-size: 2rem;
  font-weight: 800;
  color: rgba(74, 46, 14, 0.35);
  line-height: 1;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  padding-top: 2px;
}

.mech-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--brown);
  font-family: var(--font-num);
}

.mech-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-family: var(--font-num), var(--font-serif);
  font-variant-numeric: tabular-nums;
}

.mech-note {
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
}

.mech-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mech-list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
  font-family: var(--font-num), var(--font-serif);
  font-variant-numeric: tabular-nums;
}
.mech-list li::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: var(--gold);
}

.tax-bar {
  display: flex;
  height: 34px;
  border-radius: 6px;
  overflow: hidden;
  margin: 12px 0;
}

.tax-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
}

.seg-treasury { background: var(--gold); }
.seg-protocol { background: var(--gold-dark); }

.tcr-scale {
  display: flex;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 12px;
  height: 36px;
}

.tcr-zone {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
}

.zone-safe { background: rgba(34,197,94,0.15); color: #2E8A4A; }
.zone-warn { background: rgba(184,132,26,0.15); color: var(--gold); }
.zone-risk { background: rgba(180,50,30,0.12); color: #C0392B; }

/* ─── Address Table ─────────────────────────────────────────── */
.address-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.addr-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(247, 240, 230, 0.55);
  border: 1px solid rgba(217, 201, 174, 0.6);
  border-radius: var(--radius);
  padding: 16px 20px;
  gap: 16px;
  flex-wrap: wrap;
  transition: border-color 0.2s;
}
.addr-row:hover { border-color: var(--gold-light); }

.addr-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 160px;
}

.addr-value {
  font-family: 'Cascadia Code', 'Fira Code', 'Courier New', monospace;
  font-size: 0.82rem;
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  gap: 10px;
  word-break: break-all;
}

.copy-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.copy-btn:hover {
  color: var(--gold);
  background: rgba(184,132,26,0.1);
}

/* ─── Risks ─────────────────────────────────────────────────── */
.risk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.risk-item {
  background: rgba(247, 240, 230, 0.55);
  border: 1px solid rgba(217, 201, 174, 0.6);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 14px;
}

.risk-num {
  font-size: 1.2rem;
  color: var(--gold);
  flex-shrink: 0;
}

.risk-item p {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.risk-item strong { color: var(--brown); }

/* ─── Roadmap ───────────────────────────────────────────────── */
.roadmap {
  margin: 0 0 56px 0;
  overflow-x: auto;
  padding: 32px 24px;
  background: rgba(247, 240, 230, 0.70);
  border: 1px solid rgba(217, 201, 174, 0.6);
  border-radius: var(--radius);
}

.roadmap-track {
  display: flex;
  align-items: flex-start;
  position: relative;
  min-width: 640px;
  padding-top: 20px;
}

.roadmap-line {
  position: absolute;
  top: 32px;
  left: calc(100% / 10);
  right: calc(100% / 10);
  height: 2px;
  background: linear-gradient(to right, var(--gold), var(--gold-light), rgba(184,132,26,0.3));
}

.roadmap-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
  z-index: 1;
}

.roadmap-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  margin-bottom: 10px;
  flex-shrink: 0;
}

.dot-active {
  background: var(--gold);
  box-shadow: 0 0 10px rgba(184,132,26,0.5);
}

.dot-mid {
  background: rgba(184,132,26,0.25);
}

.dot-end {
  background: rgba(184,132,26,0.12);
  border-style: dashed;
  border-color: rgba(184,132,26,0.5);
}

.roadmap-year {
  font-family: var(--font-num);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 10px;
}

.roadmap-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5px;
  padding: 0 6px;
}

.roadmap-label strong {
  font-size: 0.82rem;
  color: var(--brown);
  font-weight: 700;
  line-height: 1.3;
}

.roadmap-label span {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.65;
  line-height: 1.5;
}

/* ─── Conditions ────────────────────────────────────────────── */
.conditions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 720px) {
  .conditions-grid { grid-template-columns: 1fr; }
}

.condition-col {
  background: rgba(247, 240, 230, 0.55);
  border: 1px solid rgba(217, 201, 174, 0.6);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.condition-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.condition-status {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 100px;
}

.status-pass {
  background: rgba(74, 46, 14, 0.08);
  color: var(--brown);
  border: 1px solid rgba(74, 46, 14, 0.25);
}

.status-fail {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.condition-when {
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.6;
}

.condition-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.condition-list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  padding-left: 18px;
  position: relative;
}

.condition-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
}

.condition-list small {
  opacity: 0.65;
  font-size: 0.82em;
}

.condition-note {
  margin-top: 20px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
  opacity: 0.75;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* ─── Audience ──────────────────────────────────────────────── */
.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.audience-col {
  background: rgba(247, 240, 230, 0.70);
  border: 1px solid rgba(217, 201, 174, 0.6);
  border-radius: var(--radius);
  padding: 28px 24px;
}

@media (max-width: 720px) {
  .audience-grid { grid-template-columns: 1fr; }
}

.audience-header {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.audience-no .audience-header { color: #dc2626; }
.audience-yes .audience-header { color: var(--brown); }

.audience-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.audience-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  padding-left: 20px;
  position: relative;
}

.audience-no .audience-list li::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: #dc2626;
  font-size: 0.75rem;
  top: 3px;
}

.audience-yes .audience-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.75rem;
  top: 3px;
}

/* ─── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border);
  padding: 56px 24px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto 24px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--brown);
  flex-shrink: 0;
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.8;
  flex: 1;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-shrink: 0;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
}
.footer-links a:hover { color: var(--gold); opacity: 0.8; }

.footer-icon {
  border-radius: 0;
  transition: opacity 0.2s;
}
.footer-links a:hover .footer-icon { opacity: 0.75; }

.hero-x-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  overflow: hidden;
  transition: opacity 0.2s;
}
.hero-x-btn:hover { opacity: 0.75; }
.hero-x-btn img { display: block; border-radius: 0; }

.hero-social {
  display: inline-flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
}

.footer-copy {
  font-size: 0.78rem;
  color: #B0A090;
  letter-spacing: 0.03em;
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  width: 100%;
}

/* ─── Toast ──────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--gold);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 100px;
  opacity: 0;
  transition: transform 0.25s, opacity 0.25s;
  pointer-events: none;
  z-index: 999;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── English typography (html lang set by i18n.js) ─────────── */
html[lang="en"] .nav-links {
  gap: 22px;
}

html[lang="en"] .nav-links a {
  font-family: var(--font-en);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

@media (max-width: 1100px) {
  html[lang="en"] .nav-links a {
    font-size: 0.78rem;
    letter-spacing: 0.03em;
  }
}

html[lang="en"] .hero-tag,
html[lang="en"] .hero-sub,
html[lang="en"] .section-lead,
html[lang="en"] .card p,
html[lang="en"] .card h3,
html[lang="en"] .philosophy-quote p,
html[lang="en"] .mech-body h3,
html[lang="en"] .mech-body p,
html[lang="en"] .mech-list li,
html[lang="en"] .mech-note,
html[lang="en"] .tax-seg,
html[lang="en"] .risk-item p,
html[lang="en"] .roadmap-label span,
html[lang="en"] .roadmap-label strong,
html[lang="en"] .condition-list li,
html[lang="en"] .condition-note,
html[lang="en"] .audience-list li,
html[lang="en"] .addr-label,
html[lang="en"] .footer-desc,
html[lang="en"] .page-tag,
html[lang="en"] .page-sub,
html[lang="en"] .page-title,
html[lang="en"] .overview-note,
html[lang="en"] .block-title,
html[lang="en"] .conc-label,
html[lang="en"] .developer .page-sub,
html[lang="en"] .msg-loading,
html[lang="en"] .msg-empty,
html[lang="en"] .msg-error {
  font-family: var(--font-en);
  font-variant-numeric: normal;
}

html[lang="en"] .hero-tag,
html[lang="en"] .hero-sub,
html[lang="en"] .section-lead,
html[lang="en"] .card p,
html[lang="en"] .philosophy-quote p,
html[lang="en"] .mech-body p,
html[lang="en"] .mech-list li,
html[lang="en"] .mech-note,
html[lang="en"] .risk-item p,
html[lang="en"] .roadmap-label span,
html[lang="en"] .condition-list li,
html[lang="en"] .condition-note,
html[lang="en"] .audience-list li,
html[lang="en"] .footer-desc,
html[lang="en"] .page-sub,
html[lang="en"] .overview-note {
  line-height: 1.85;
  letter-spacing: 0.01em;
}

html[lang="en"] .section-lead {
  max-width: 680px;
}

html[lang="en"] .card p {
  font-size: 0.92rem;
}

html[lang="en"] .card h3,
html[lang="en"] .mech-body h3 {
  letter-spacing: 0.02em;
}

html[lang="en"] .page-tag {
  letter-spacing: 0.06em;
}

html[lang="en"] .overview-label {
  font-family: var(--font-en);
  letter-spacing: 0.08em;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .nav {
    z-index: 111;
  }

  .nav {
    height: 56px;
    background: rgba(247, 240, 230, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .nav-inner {
    padding: 0 16px;
    height: 56px;
  }

  .nav-logo {
    font-size: 1rem;
  }

  .logo-img {
    width: 28px;
    height: 28px;
  }

  .nav-right {
    position: static;
    gap: 0;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 110;
    width: var(--nav-toggle-w);
    height: 56px;
    margin: 0;
    padding: 0;
    border: none;
    border-left: 1px solid rgba(217, 201, 174, 0.8);
    border-radius: 0;
    background: var(--brown);
    color: #fff;
    cursor: pointer;
    transform: none;
    transition: right 0.28s ease, background 0.2s;
    box-shadow: -2px 0 12px rgba(74, 46, 14, 0.15);
  }

  .nav-toggle-bars {
    display: block;
    position: relative;
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
  }

  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 1px;
  }

  .nav-toggle-bars::before {
    top: -6px;
  }

  .nav-toggle-bars::after {
    top: 6px;
  }

  .nav-toggle-arrow {
    display: none;
    font-size: 1.5rem;
    line-height: 1;
    font-weight: 700;
    color: #fff !important;
  }

  body.nav-open .nav-toggle {
    right: var(--nav-drawer-w);
  }

  body.nav-open .nav-toggle-bars {
    display: none;
  }

  body.nav-open .nav-toggle-arrow {
    display: block;
  }

  .nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 105;
    display: flex;
    flex-direction: column;
    width: var(--nav-drawer-w);
    height: 100vh;
    height: 100dvh;
    background: var(--bg);
    border-left: 1px solid var(--border);
    box-shadow: -8px 0 32px rgba(74, 46, 14, 0.12);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    overflow: hidden;
  }

  body.nav-open .nav-drawer {
    transform: translateX(0);
    overflow: visible;
  }

  .nav-drawer-top {
    display: block;
    flex-shrink: 0;
    position: relative;
    z-index: 5;
    overflow: visible;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
  }

  .nav-drawer-top .nav-lang {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    position: relative;
  }

  .nav-drawer-top .lang-trigger {
    width: auto;
    min-width: 52px;
    justify-content: center;
  }

  .nav-drawer-body {
    display: block;
    flex: 1;
    min-height: 0;
    position: relative;
    z-index: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav-drawer-body::-webkit-scrollbar {
    display: none;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    text-align: center;
    padding: 12px 8px;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(217, 201, 174, 0.45);
    color: var(--text-muted) !important;
  }

  .nav-links a:hover {
    color: var(--gold) !important;
    background: rgba(184, 132, 26, 0.06);
    opacity: 1;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 104;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s;
    border: none;
    padding: 0;
    cursor: pointer;
  }

  body.nav-open .nav-backdrop {
    right: var(--nav-drawer-w);
    opacity: 1;
    visibility: visible;
  }

  .site-gradient {
    display: none;
  }

  .site-bg {
    background-size: auto 90%;
    background-repeat: no-repeat;
    background-position: 88% bottom;
  }

  .nav-lang .lang-menu {
    top: calc(100% + 28px);
    left: auto;
    right: 0;
    width: max-content;
    min-width: 152px;
    max-width: calc(100vw - var(--nav-toggle-w) - 12px);
    white-space: nowrap;
    background: var(--bg);
    border: 1px solid var(--border);
    box-shadow: none;
    transform: translateY(-4px);
    z-index: 300;
  }

  .nav-lang.open .lang-menu {
    transform: translateY(0);
  }

  .nav-lang .lang-option {
    white-space: nowrap;
    padding: 8px 14px;
    color: #666 !important;
  }

  .nav-lang .lang-option.active {
    color: #4A2E0E !important;
  }

  .nav-lang .lang-option:hover {
    background: var(--bg-dark);
    color: #4A2E0E !important;
  }

  .hero {
    padding-top: 80px;
    min-height: 100dvh;
  }

  .hero-inner {
    margin-left: 0;
    width: 100%;
    max-width: 100%;
    padding: 0 4px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .hero-social {
    justify-content: center;
  }

  .hero-badge {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 4px;
  }

  .section {
    padding: 64px 20px;
  }

  .section-inner {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .section-title {
    text-align: center;
  }

  .mechanics-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
    min-width: 0;
  }

  .mech-item {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .mech-body {
    min-width: 0;
    overflow-wrap: break-word;
  }

  .footer {
    padding: 48px 20px 24px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-desc {
    flex: none;
    width: 100%;
    max-width: 360px;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .footer-copy {
    padding-left: 12px;
    padding-right: 12px;
  }

  .stat-divider { display: none; }
  .addr-row { flex-direction: column; align-items: flex-start; }
  .addr-label { min-width: unset; }
  .addr-value { font-size: 0.72rem; }
}

@media (min-width: 769px) {
  .nav-drawer {
    flex-direction: row;
    align-items: center;
    gap: 28px;
  }

  .nav-drawer-body {
    order: 1;
  }

  .nav-drawer-top {
    order: 2;
  }
}
