:root {
  --ink: #100e0c;
  --ink-soft: #1a1612;
  --parchment: #e8d9b8;
  --parchment-dim: #cbb892;
  --gold: #c9a45c;
  --gold-deep: #8f6f2f;
  --cinnabar: #a63a2e;
  --line: rgba(201, 164, 92, 0.28);
  --font-display: "Cormorant Garamond", "Noto Serif SC", Georgia, serif;
  --font-body: "Source Serif 4", "Noto Serif SC", Georgia, serif;
  --font-cjk: "Noto Serif SC", "Cormorant Garamond", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--parchment);
  background: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.06);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(16, 14, 12, 0.25) 0%, rgba(16, 14, 12, 0.55) 42%, rgba(16, 14, 12, 0.94) 78%, var(--ink) 100%),
    radial-gradient(ellipse 80% 55% at 50% 18%, rgba(201, 164, 92, 0.14), transparent 70%);
}

.hero__content {
  width: min(720px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(4rem, 12vh, 7rem) 0 3.5rem;
}

.brand {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.1rem, 11vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: var(--parchment);
  opacity: 0;
  transform: translateY(18px);
  animation: riseIn 0.9s ease forwards 0.15s;
}

.brand__cjk {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-cjk);
  font-size: 0.42em;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.18em;
}

.hero__headline {
  margin: 0 0 0.85rem;
  max-width: 16ch;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.45rem, 3.6vw, 2rem);
  line-height: 1.2;
  color: var(--parchment-dim);
  opacity: 0;
  transform: translateY(18px);
  animation: riseIn 0.9s ease forwards 0.35s;
}

.hero__lead {
  margin: 0 0 1.75rem;
  max-width: 32ch;
  font-size: 1.05rem;
  color: rgba(232, 217, 184, 0.78);
  opacity: 0;
  transform: translateY(18px);
  animation: riseIn 0.9s ease forwards 0.5s;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  align-items: center;
  opacity: 0;
  transform: translateY(18px);
  animation: riseIn 0.9s ease forwards 0.65s;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  border: 1px solid var(--gold);
  background: linear-gradient(180deg, #d4b36a 0%, var(--gold-deep) 100%);
  color: #1a140c;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.btn:hover {
  color: #1a140c;
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--parchment);
  border-color: var(--line);
}

.btn--ghost:hover {
  color: var(--gold);
  border-color: var(--gold);
  filter: none;
}

.section {
  width: min(920px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 4.5rem 0 1rem;
}

.section__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--gold);
}

.section__text {
  margin: 0 0 2rem;
  max-width: 38rem;
  color: rgba(232, 217, 184, 0.82);
}

.flow {
  display: grid;
  gap: 1.5rem;
  counter-reset: step;
}

.flow__item {
  position: relative;
  padding: 0 0 0 3.2rem;
  border-left: 1px solid var(--line);
  margin-left: 0.7rem;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.flow__item.is-in {
  opacity: 1;
  transform: none;
}

.flow__item::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: -0.15rem;
  top: 0;
  translate: -50% 0;
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  background: var(--ink-soft);
  border: 1px solid var(--line);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.flow__item h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--parchment);
}

.flow__item p {
  margin: 0;
  color: rgba(232, 217, 184, 0.75);
}

.features {
  display: grid;
  gap: 1.75rem;
  margin-top: 1rem;
}

@media (min-width: 720px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.feature {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.feature.is-in {
  opacity: 1;
  transform: none;
}

.feature h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--parchment);
}

.feature p {
  margin: 0;
  color: rgba(232, 217, 184, 0.72);
  font-size: 0.98rem;
}

.download {
  margin: 4.5rem auto 0;
  width: min(920px, calc(100% - 2.5rem));
  padding: 2.5rem 0 1rem;
  border-top: 1px solid var(--line);
}

.download__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
}

.download__icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.download__copy h2 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--parchment);
}

.download__copy p {
  margin: 0;
  color: rgba(232, 217, 184, 0.7);
}

.site-footer {
  width: min(920px, calc(100% - 2.5rem));
  margin: 3rem auto 0;
  padding: 2rem 0 3rem;
  border-top: 1px solid rgba(201, 164, 92, 0.16);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  color: rgba(232, 217, 184, 0.55);
  font-size: 0.95rem;
}

.site-footer a {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-decoration: none;
}

@keyframes riseIn {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.12) translate3d(0, -1.5%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero__media img {
    transform: none;
  }

  .brand,
  .hero__headline,
  .hero__lead,
  .cta,
  .flow__item,
  .feature {
    opacity: 1;
    transform: none;
  }
}
