:root {
  --ink: #090b10;
  --dusk: #24344a;
  --lacquer: #140d0e;
  --gold: #e8c15a;
  --gold-2: #f8e7b4;
  --gold-deep: #a56d28;
  --crimson: #b4333a;
  --blossom: #f0b7c6;
  --paper: #f3ecdf;
  --muted: #cbbda8;
  --line: rgba(232, 193, 90, 0.38);
  --display: "Shojumaru", "Palatino Linotype", serif;
  --brush: "Yuji Syuku", "Palatino Linotype", serif;
  --body: "Zen Old Mincho", "Palatino Linotype", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(70, 98, 140, 0.45), transparent 60%),
    radial-gradient(900px 600px at 10% 110%, rgba(180, 70, 40, 0.22), transparent 55%),
    linear-gradient(180deg, #121820 0%, #0c1016 28%, #100c0d 100%);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

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

#fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.pointer-glow {
  position: fixed;
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 193, 90, 0.16), transparent 68%);
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
}
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 7;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 40;
  background: transparent;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--crimson), var(--gold), var(--gold-2));
  box-shadow: 0 0 12px rgba(232, 193, 90, 0.8);
}

.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 24px));
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 8px 12px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 10, 14, 0.62);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28);
}
.nav.scrolled {
  background: rgba(8, 8, 12, 0.86);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  letter-spacing: 0.08em;
  font-size: 13px;
  color: var(--gold-2);
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line), 0 0 18px rgba(232, 193, 90, 0.35);
}
.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
}
.nav-links a {
  text-decoration: none;
  font-family: var(--brush);
  font-size: 20px;
  color: var(--muted);
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.nav-links a:hover { color: var(--gold-2); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-x {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  background: rgba(232, 193, 90, 0.06);
  transition: transform 0.3s ease, background 0.3s ease;
}
.nav-x:hover {
  transform: rotate(-8deg) scale(1.06);
  background: rgba(232, 193, 90, 0.16);
}
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1px;
  background: var(--gold-2);
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 26px; }

.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 6vw 120px;
  overflow: hidden;
}
.hero-sky {
  position: absolute;
  inset: -10% -10% auto;
  height: 80%;
  background:
    radial-gradient(circle at 70% 40%, rgba(255, 214, 140, 0.16), transparent 28%),
    radial-gradient(circle at 30% 20%, rgba(90, 120, 170, 0.28), transparent 42%);
  animation: sky-shift 16s ease-in-out infinite alternate;
}
.hero-mist {
  position: absolute;
  height: 180px;
  left: -20%;
  right: -20%;
  background: linear-gradient(90deg, transparent, rgba(243, 232, 214, 0.08), transparent);
  filter: blur(8px);
  animation: mist 22s linear infinite;
}
.mist-a { top: 22%; }
.mist-b { top: 58%; animation-duration: 28s; animation-direction: reverse; opacity: 0.7; }
.slash {
  position: absolute;
  top: 18%;
  left: -20%;
  width: 46%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fff6d2, var(--gold), transparent);
  box-shadow: 0 0 18px rgba(255, 230, 160, 0.85);
  transform: rotate(-18deg);
  animation: slash 7.5s ease-in-out infinite;
  opacity: 0;
}
.side-mark {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  letter-spacing: 0.55em;
  font-family: var(--brush);
  font-size: 22px;
  color: rgba(232, 193, 90, 0.55);
}
.hero-layout {
  position: relative;
  z-index: 3;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: center;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-family: var(--brush);
  font-size: 22px;
  color: var(--blossom);
  letter-spacing: 0.04em;
}
.kicker img { border-radius: 50%; }
h1, h2, h3 { font-weight: 400; }
h1 {
  margin: 0;
  font-family: var(--display);
  line-height: 1.05;
  letter-spacing: 0.02em;
}
.line-soft, .line-strong {
  display: block;
  background: linear-gradient(100deg, #8a5a22 0%, #f8e7b4 35%, #fff8e4 50%, #e8c15a 68%, #a56d28 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}
.line-soft { font-size: clamp(2.4rem, 5vw, 4.4rem); }
.line-strong { font-size: clamp(3.4rem, 8vw, 7rem); }
.symbol {
  margin: 14px 0 0;
  font-family: var(--display);
  letter-spacing: 0.42em;
  color: var(--gold);
  font-size: 14px;
}
.tagline {
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.15rem;
}
.ca-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin-top: 18px;
  padding: 8px 8px 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(8, 8, 12, 0.55);
}
.ca-label {
  font-family: var(--display);
  letter-spacing: 0.14em;
  font-size: 12px;
  color: var(--gold);
}
.ca-bar code {
  flex: 1;
  min-width: 0;
  font-family: "Zen Old Mincho", serif;
  font-size: 13px;
  color: var(--paper);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ca-copy {
  margin-left: auto;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #1a100c;
  background: linear-gradient(180deg, #f8e7b4, #e0b34a);
  cursor: pointer;
}
.ca-copy.copied { background: #f0b7c6; }
.cta-row, .join-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.04em;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn img { display: block; flex: 0 0 auto; }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28), transparent 70%);
  transform: translateX(-120%);
}
.btn:hover { transform: translateY(-2px); }
.btn:hover::before { animation: sheen 0.7s ease; }
.btn-gold {
  color: var(--gold-2);
  background: linear-gradient(180deg, #8e2430, #5c1520);
  border: 1px solid rgba(232, 193, 90, 0.55);
  box-shadow: 0 8px 24px rgba(140, 30, 40, 0.35);
}
.btn-line {
  color: var(--gold-2);
  border: 1px solid var(--line);
  background: rgba(12, 10, 12, 0.45);
}
.btn-line:hover { box-shadow: 0 0 0 1px rgba(232, 193, 90, 0.25), 0 10px 30px rgba(0, 0, 0, 0.25); }

.crest {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
}
.crest img {
  width: min(540px, 86vw);
  height: auto;
  position: relative;
  z-index: 2;
  mask-image: radial-gradient(ellipse 70% 74% at 50% 48%, #000 52%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 70% 74% at 50% 48%, #000 52%, transparent 78%);
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 30px rgba(232, 193, 90, 0.28));
  animation: float 6.5s ease-in-out infinite;
}
.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(232, 193, 90, 0.35);
}
.ring-a {
  width: min(460px, 72vw);
  height: min(460px, 72vw);
  animation: spin 28s linear infinite;
  background: conic-gradient(from 40deg, transparent 0 70%, rgba(232, 193, 90, 0.8), transparent 86% 100%);
  -webkit-mask: radial-gradient(circle, transparent 64%, #000 65.5%, #000 67%, transparent 68.5%);
  mask: radial-gradient(circle, transparent 64%, #000 65.5%, #000 67%, transparent 68.5%);
}
.ring-b {
  width: min(390px, 62vw);
  height: min(390px, 62vw);
  border-style: dashed;
  animation: spin 42s linear infinite reverse;
  opacity: 0.7;
}
.mountains {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 160px;
  z-index: 2;
}

.lacing {
  height: 12px;
  background:
    repeating-linear-gradient(90deg,
      #6e1c24 0 16px,
      #e8c15a 16px 20px,
      #1a100c 20px 34px,
      #f0b7c6 34px 38px,
      #1a100c 38px 52px);
  box-shadow: inset 0 1px 0 rgba(255, 236, 190, 0.25);
}
.obi {
  overflow: hidden;
  background: #0c090b;
  border-top: 1px solid rgba(232, 193, 90, 0.2);
  border-bottom: 1px solid rgba(232, 193, 90, 0.2);
}
.obi-track {
  display: flex;
  gap: 42px;
  width: max-content;
  padding: 10px 0;
  animation: marquee 28s linear infinite;
  font-family: var(--display);
  letter-spacing: 0.18em;
  color: rgba(232, 193, 90, 0.78);
  font-size: 13px;
}
.obi-track span:nth-child(even) {
  font-family: var(--brush);
  letter-spacing: 0.2em;
  color: var(--blossom);
}

.section {
  position: relative;
  z-index: 3;
  max-width: 1120px;
  margin: 0 auto;
  padding: 88px 22px;
}
.section-head { margin-bottom: 28px; max-width: 680px; }
h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  letter-spacing: 0.03em;
  background: linear-gradient(180deg, #fff6dd, #e8c15a 55%, #a56d28);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede { color: var(--muted); margin: 8px 0 0; }

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}
.tenets { display: grid; gap: 18px; }
.plate {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 236, 210, 0.04), transparent 30%),
    rgba(14, 10, 12, 0.78);
  border: 1px solid rgba(232, 193, 90, 0.28);
  border-radius: 22px;
  padding: 26px 24px 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
}
.plate::before, .plate::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid var(--gold);
  opacity: 0.8;
}
.plate::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.plate::after { right: 10px; bottom: 10px; border-left: 0; border-top: 0; }
.plate h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--gold-2);
}
.plate p { margin: 0 0 12px; color: var(--muted); }
.plate p:last-child { margin-bottom: 0; }
.seal {
  margin: 0 0 8px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px dashed var(--gold);
  font-family: var(--brush);
  font-size: 26px;
  color: var(--blossom);
  animation: spin 24s linear infinite;
}

.buy { padding-top: 40px; }
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: none;
}
.step { min-height: 100%; }
.step img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin-bottom: 12px;
}
.step-no {
  display: block;
  font-family: var(--display);
  color: var(--crimson);
  letter-spacing: 0.16em;
  font-size: 12px;
  margin-bottom: 6px;
}
.text-link {
  color: var(--gold-2);
  font-family: var(--brush);
  font-size: 20px;
  text-underline-offset: 4px;
}

.chart-frame {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #07080c;
  box-shadow: 0 0 0 8px rgba(20, 12, 14, 0.65), 0 30px 80px rgba(0, 0, 0, 0.35);
  position: relative;
}
.chart-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 40px rgba(232, 193, 90, 0.08);
}
.chart-frame iframe {
  display: block;
  width: 100%;
  height: 680px;
  border: 0;
  background: #0b0d12;
}

.scroll-hang {
  margin: 0;
  padding: 12px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(80, 48, 22, 0.55), rgba(18, 12, 10, 0.9));
  border: 1px solid rgba(232, 193, 90, 0.3);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.rod {
  height: 14px;
  border-radius: 999px;
  margin: 0 8px;
  background: linear-gradient(180deg, #f8e7b4, #c4923a 42%, #6d4a16 70%, #e7c98a);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.banner-frame {
  width: 100%;
  aspect-ratio: 3 / 1;
  margin: 10px 0;
  border-radius: 6px;
  overflow: hidden;
}
.banner {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}
.join-row { justify-content: center; }

.footer { position: relative; z-index: 3; }
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 22px 40px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-inner img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}
.footer-inner div { display: grid; }
.footer-inner strong { font-family: var(--display); letter-spacing: 0.04em; color: var(--gold-2); }
.footer-inner span, .footer-inner a { color: var(--muted); font-size: 0.95rem; }
.footer-inner a { margin-left: auto; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: rise 0.9s ease forwards;
}
.reveal:nth-child(2) { animation-delay: 0.12s; }
.reveal:nth-child(3) { animation-delay: 0.2s; }
.steps .reveal:nth-child(2) { animation-delay: 0.1s; }
.steps .reveal:nth-child(3) { animation-delay: 0.18s; }
.steps .reveal:nth-child(4) { animation-delay: 0.26s; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}
@keyframes shimmer {
  from { background-position: 0% 50%; }
  to { background-position: 220% 50%; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes mist {
  from { transform: translateX(-8%); }
  to { transform: translateX(8%); }
}
@keyframes sky-shift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-2%, 1.5%, 0); }
}
@keyframes slash {
  0%, 62% { opacity: 0; transform: translateX(0) rotate(-18deg); }
  70% { opacity: 1; }
  86% { opacity: 0; transform: translateX(180%) rotate(-18deg); }
  100% { opacity: 0; }
}
@keyframes sheen {
  to { transform: translateX(120%); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 980px) {
  .hero-layout, .about-grid, .steps { grid-template-columns: 1fr; }
  .side-mark { display: none; }
  .crest { min-height: 0; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 10px;
    border-radius: 18px;
    background: rgba(10, 10, 14, 0.96);
    border: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 12px; }
  .chart-frame iframe { height: 520px; }
  .footer-inner { flex-wrap: wrap; }
  .footer-inner a { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
  #fx, .pointer-glow { display: none; }
}
