:root {
  --paper: #f6f3ec;
  --paper-cool: #f1efe8;
  --surface: rgba(251, 249, 244, 0.82);
  --surface-strong: rgba(251, 249, 244, 0.94);
  --ink: #3b342e;
  --ink-soft: #5b534b;
  --stone: #7a7167;
  --seal: #8f6a4a;
  --button-fill: #312b26;
  --line: rgba(59, 52, 46, 0.1);
  --line-strong: rgba(59, 52, 46, 0.18);
  --shadow: rgba(59, 52, 46, 0.12);
  --white: #fbf9f4;
  --dark: #1a1816;
  --serif: "Iowan Old Style", "New York", "Palatino", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 86% 6%, rgba(143, 106, 74, 0.07), transparent 28rem),
    radial-gradient(circle at 8% 42%, rgba(59, 52, 46, 0.045), transparent 24rem),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-cool) 46%, #ede7dc 100%);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 14px clamp(20px, 5vw, 74px);
  border-bottom: 1px solid var(--line);
  background: rgba(246, 243, 236, 0.88);
  backdrop-filter: blur(18px) saturate(1.05);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 26px;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(59, 52, 46, 0.08);
}

.site-header nav,
.footer nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3.2vw, 44px);
}

.site-header nav a,
.footer nav a {
  color: var(--ink-soft);
  font-size: 14px;
  text-decoration: none;
}

.site-header nav a:hover,
.footer nav a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(340px, 0.82fr);
  gap: clamp(42px, 7vw, 110px);
  align-items: center;
  min-height: min(740px, calc(100vh - 100px));
  padding: clamp(36px, 5vw, 54px) clamp(24px, 7vw, 118px) clamp(28px, 4vw, 34px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 76% 48%, rgba(251, 249, 244, 0.68), transparent 26rem),
    linear-gradient(180deg, rgba(246, 243, 236, 0.96), rgba(241, 239, 232, 0.82));
}

.paper-branch {
  position: absolute;
  left: -90px;
  bottom: 0;
  width: 420px;
  height: 520px;
  opacity: 0.2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 55% 15%, rgba(59, 52, 46, 0.28) 0 2px, transparent 3px),
    radial-gradient(ellipse at 66% 28%, rgba(59, 52, 46, 0.2) 0 3px, transparent 4px),
    radial-gradient(ellipse at 42% 42%, rgba(59, 52, 46, 0.18) 0 3px, transparent 4px),
    linear-gradient(124deg, transparent 0 46%, rgba(59, 52, 46, 0.34) 46% 47%, transparent 47% 100%);
  filter: blur(0.1px);
  transform: rotate(-8deg);
}

.hero-copy {
  position: relative;
  max-width: 610px;
  z-index: 1;
}

.quiet-line {
  margin: 0 0 18px;
  color: var(--seal);
  font-size: 14px;
  font-weight: 650;
}

.hero h1,
.document h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(84px, 11vw, 164px);
  font-weight: 500;
  line-height: 0.92;
}

.hero-subtitle {
  margin: 28px 0 0;
  max-width: 520px;
  font-family: var(--serif);
  font-size: clamp(30px, 3.5vw, 52px);
  line-height: 1.05;
}

.hero-body,
.section-intro p,
.document p,
.contact-card p {
  color: var(--ink-soft);
  font-size: 17px;
}

.hero-body {
  max-width: 480px;
  margin: 28px 0 0;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 21px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: var(--white);
  background: var(--button-fill);
  box-shadow: 0 14px 30px rgba(59, 52, 46, 0.14);
}

.button.secondary {
  color: var(--ink);
  border: 1px solid var(--line-strong);
  background: rgba(251, 249, 244, 0.54);
  backdrop-filter: blur(16px);
}

.store-note {
  margin: 14px 0 0;
  color: var(--stone);
  font-size: 13px;
}

.screenshot-stage {
  position: relative;
  display: grid;
  align-items: center;
  justify-items: center;
  min-height: clamp(535px, 40vw, 620px);
  isolation: isolate;
}

.brush-ring {
  position: absolute;
  inset: 30px 0 auto 0;
  margin: auto;
  width: min(44vw, 560px);
  aspect-ratio: 1;
  border: 1px solid rgba(59, 52, 46, 0.06);
  border-radius: 999px;
  background:
    repeating-conic-gradient(from 12deg, rgba(59, 52, 46, 0.045) 0deg 3deg, transparent 3deg 9deg),
    radial-gradient(circle, transparent 58%, rgba(59, 52, 46, 0.08) 59%, transparent 62%);
  filter: blur(0.2px);
  animation: turn 28s linear infinite;
}

.app-shot {
  position: absolute;
  width: clamp(166px, 15.5vw, 226px);
  margin: 0;
  padding: 7px;
  border: 1px solid rgba(0, 0, 0, 0.34);
  border-radius: 40px;
  background: linear-gradient(145deg, #0e0d0c, #2c2925 32%, #050505);
  box-shadow:
    0 34px 74px rgba(59, 52, 46, 0.18),
    inset 0 0 0 2px rgba(255, 255, 255, 0.06);
}

.app-shot img {
  width: 100%;
  aspect-ratio: 368 / 800;
  border-radius: 32px;
  object-fit: cover;
}

.app-shot figcaption {
  position: absolute;
  left: 50%;
  bottom: -22px;
  transform: translateX(-50%);
  color: var(--stone);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.app-shot-main {
  z-index: 4;
  width: clamp(218px, 19vw, 284px);
  transform: translateY(-4px);
}

.app-shot-left {
  z-index: 2;
  transform: translate(-178px, 54px) rotate(-5deg);
}

.app-shot-right {
  z-index: 3;
  transform: translate(184px, 66px) rotate(5deg);
}

.phone {
  position: relative;
  width: min(330px, 82vw);
  min-height: 640px;
  padding: 14px 13px 18px;
  border: 1px solid rgba(0, 0, 0, 0.32);
  border-radius: 42px;
  background: linear-gradient(145deg, #0e0d0c, #2c2925 28%, #050505);
  box-shadow:
    0 38px 70px rgba(59, 52, 46, 0.2),
    inset 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.phone::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 34px;
  background: linear-gradient(180deg, var(--paper), #f3f0e8);
}

.phone-top,
.app-preview,
.tabbar {
  position: relative;
  z-index: 1;
}

.phone-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 8px 20px 0;
  color: var(--dark);
  font-size: 12px;
  font-weight: 700;
}

.phone-top span:last-child {
  justify-self: end;
}

.camera {
  width: 94px;
  height: 26px;
  border-radius: 999px;
  background: #050505;
}

.app-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 496px;
  padding: 50px 22px 0;
}

.home-glyph {
  font-family: var(--serif);
  font-size: 112px;
  line-height: 1;
}

.app-preview h2 {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1;
}

.app-preview p {
  margin: 8px 0 32px;
  color: rgba(91, 83, 75, 0.68);
  font-size: 13px;
}

.reflection-card {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 16px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.app-preview button {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 18px;
  color: var(--white);
  background: var(--button-fill);
  font-size: 16px;
  font-weight: 700;
}

.tabbar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 13px 16px 0;
  border-top: 1px solid rgba(59, 52, 46, 0.1);
  color: var(--stone);
  font-size: 11px;
  text-align: center;
}

.tabbar .active {
  color: var(--ink);
  font-weight: 700;
}

section:not(.hero) {
  padding: clamp(62px, 8vw, 116px) clamp(24px, 7vw, 118px);
  border-bottom: 1px solid var(--line);
}

.process-section,
.reading-section,
.calligraphy-section,
.library-section,
.premium-section {
  display: grid;
  grid-template-columns: minmax(210px, 0.35fr) minmax(0, 1fr);
  gap: clamp(34px, 5vw, 70px);
  align-items: center;
}

.calligraphy-section {
  align-items: stretch;
  background:
    radial-gradient(circle at 88% 18%, rgba(143, 106, 74, 0.11), transparent 28rem),
    linear-gradient(180deg, rgba(239, 233, 222, 0.64), rgba(246, 243, 236, 0.86));
}

.section-intro h2 {
  margin: 0;
  max-width: 420px;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 500;
  line-height: 1.08;
}

.section-intro p {
  max-width: 480px;
  margin: 18px 0 0;
}

.section-intro.wide {
  max-width: 840px;
  margin-bottom: 34px;
}

.section-intro.wide p {
  max-width: 720px;
}

.ritual-flow,
.reading-panel,
.journal-panel,
.premium-grid {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(251, 249, 244, 0.58);
  box-shadow: 0 24px 60px rgba(59, 52, 46, 0.06);
  backdrop-filter: blur(18px);
}

.ritual-flow {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(150px, 0.8fr) auto minmax(150px, 0.8fr);
  gap: 24px;
  align-items: stretch;
  padding: clamp(18px, 2.5vw, 34px);
}

.method-card,
.line-card,
.hex-card {
  min-height: 242px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(246, 243, 236, 0.62);
}

.step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: var(--seal);
  background: rgba(143, 106, 74, 0.1);
  font-size: 13px;
  font-weight: 700;
}

.method-card h3,
.line-card h3,
.hex-card h3,
.premium-grid h3,
.journal-note h3,
.hexagram-card h3,
.document h2,
.document h3 {
  margin: 12px 0 14px;
  font-family: var(--serif);
  font-weight: 500;
}

.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  margin-top: 10px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink-soft);
  background: rgba(251, 249, 244, 0.5);
  font-size: 14px;
}

.choice.selected {
  color: var(--ink);
  border-color: rgba(59, 52, 46, 0.28);
  background: rgba(251, 249, 244, 0.92);
}

.method-card p,
.hex-card p,
.premium-grid p,
.journal-list span,
.journal-note p,
.hexagram-card p {
  color: var(--ink-soft);
  font-size: 14px;
}

.flow-arrow,
.reading-arrow {
  align-self: center;
  color: rgba(59, 52, 46, 0.38);
  font-size: 30px;
  font-family: var(--serif);
}

.hex-lines {
  display: grid;
  gap: 8px;
  width: 126px;
  margin: 20px auto 18px;
}

.hex-lines i {
  display: block;
  height: 7px;
  border-radius: 3px;
  background: var(--ink);
  opacity: 0.9;
}

.hex-lines .broken {
  background: linear-gradient(90deg, var(--ink) 0 41%, transparent 41% 59%, var(--ink) 59% 100%);
}

.hex-lines.build i {
  transform-origin: left center;
  animation: lineIn 1500ms ease both;
}

.hex-lines.build i:nth-child(2) { animation-delay: 110ms; }
.hex-lines.build i:nth-child(3) { animation-delay: 220ms; }
.hex-lines.build i:nth-child(4) { animation-delay: 330ms; }
.hex-lines.build i:nth-child(5) { animation-delay: 440ms; }
.hex-lines.build i:nth-child(6) { animation-delay: 550ms; }

.reading-panel {
  display: grid;
  grid-template-columns: minmax(100px, 0.72fr) auto minmax(100px, 0.72fr) minmax(220px, 1.25fr);
  align-items: stretch;
  overflow: hidden;
}

.reading-hex,
.interpretation-card {
  padding: clamp(20px, 3vw, 32px);
}

.reading-hex {
  text-align: center;
  border-right: 1px solid var(--line);
}

.reading-hex span,
.interpretation-card span,
.pinyin {
  color: var(--stone);
  font-size: 13px;
  font-weight: 650;
}

.hex-lines.small {
  width: 82px;
  gap: 6px;
}

.hex-lines.small i {
  height: 6px;
}

.reading-hex strong {
  display: block;
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 26px;
}

.reading-hex p {
  margin: 2px 0 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 18px;
}

.interpretation-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.interpretation-card p {
  margin: 16px 0 22px;
  color: var(--ink);
  font-size: 17px;
}

.interpretation-card a {
  align-self: flex-start;
  color: var(--seal);
  font-size: 14px;
  font-weight: 700;
}

.document ul {
  padding-left: 22px;
}

.document li {
  margin: 10px 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.65;
}

.calligraphy-copy {
  align-self: center;
}

.signature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 430px;
  margin-top: 30px;
}

.signature-meter {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  padding: 13px 14px;
  border: 1px solid rgba(59, 52, 46, 0.11);
  border-radius: 14px;
  background: rgba(251, 249, 244, 0.48);
}

.signature-meter span {
  color: var(--stone);
  font-size: 12px;
  font-weight: 700;
}

.signature-meter strong {
  color: var(--ink);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.signature-meter i {
  display: block;
  grid-column: 1 / -1;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(59, 52, 46, 0.1);
}

.signature-meter b {
  display: block;
  width: var(--value, 50%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8f6a4a, #3b342e);
  transition: width 320ms ease;
}

.calligraphy-note {
  max-width: 420px;
  margin: 18px 0 0;
  color: var(--stone);
  font-size: 14px;
}

.sumi-feature {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.sumi-paper {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(430px, 44vw, 570px);
  overflow: hidden;
  border: 1px solid rgba(59, 52, 46, 0.14);
  border-radius: 24px;
  background:
    radial-gradient(circle at 24% 20%, rgba(255, 255, 255, 0.68), transparent 18rem),
    radial-gradient(circle at 82% 82%, rgba(143, 106, 74, 0.1), transparent 24rem),
    linear-gradient(135deg, #fbf7ed 0%, #efe5d5 100%);
  box-shadow:
    0 26px 70px rgba(59, 52, 46, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  color: rgba(31, 28, 24, 0.94);
  isolation: isolate;
}

.sumi-paper::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.45;
  background:
    repeating-linear-gradient(0deg, rgba(59, 52, 46, 0.035) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.28) 0 1px, transparent 1px 11px);
  mix-blend-mode: multiply;
}

.sumi-paper::after {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 45%, transparent 0 36%, rgba(59, 52, 46, 0.11) 82%);
  pointer-events: none;
}

.sumi-paper > span {
  color: var(--stone);
  font-size: 14px;
}

.sumi-word {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  width: min(520px, 92%);
}

.sumi-word.is-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(690px, 94%);
  gap: clamp(0px, 2vw, 20px);
}

.sumi-character {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1;
  color: currentColor;
  filter: drop-shadow(0 18px 18px rgba(59, 52, 46, 0.1));
}

.sumi-word.is-pair .sumi-character {
  max-width: 360px;
  transform: translateY(var(--pair-shift, 0px));
}

.sumi-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.sumi-fill {
  fill: currentColor;
  opacity: var(--settle-opacity, 0.9);
  transform-origin: center;
  animation: sumiInkSettle var(--duration, 700ms) ease var(--delay, 0ms) both;
}

.sumi-settle-fill {
  fill: currentColor;
  opacity: 0;
  animation: sumiSettleFill 420ms ease var(--settle-delay, 0ms) forwards;
}

.sumi-mask-path {
  animation: sumiReveal var(--duration, 700ms) cubic-bezier(0.43, 0, 0.16, 1) var(--delay, 0ms) forwards;
}

.sumi-trace {
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  mix-blend-mode: multiply;
  animation: sumiTrace var(--duration, 700ms) cubic-bezier(0.43, 0, 0.16, 1) var(--delay, 0ms) forwards;
}

.sumi-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(59, 52, 46, 0.12);
  border-radius: 18px;
  background: rgba(251, 249, 244, 0.6);
  box-shadow: 0 18px 50px rgba(59, 52, 46, 0.06);
  backdrop-filter: blur(18px);
}

.sumi-caption {
  display: grid;
  gap: 4px;
}

.sumi-caption strong {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
}

.sumi-caption span {
  color: var(--ink-soft);
  font-size: 14px;
}

.sumi-actions,
.sumi-picker {
  display: flex;
  gap: 10px;
}

.sumi-actions button,
.sumi-picker button {
  border: 1px solid rgba(59, 52, 46, 0.14);
  color: var(--ink);
  background: rgba(251, 249, 244, 0.62);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.sumi-actions button {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 13px;
}

.sumi-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sumi-picker button {
  display: grid;
  gap: 2px;
  min-height: 64px;
  padding: 12px 14px;
  border-radius: 16px;
  text-align: left;
}

.sumi-picker button strong {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  line-height: 1;
}

.sumi-picker button span {
  color: var(--stone);
  font-size: 12px;
  line-height: 1.2;
}

.sumi-actions button:hover,
.sumi-picker button:hover {
  transform: translateY(-1px);
  background: rgba(251, 249, 244, 0.9);
}

.sumi-picker button[aria-selected="true"] {
  color: var(--white);
  border-color: var(--button-fill);
  background: var(--button-fill);
}

.sumi-picker button[aria-selected="true"] span {
  color: rgba(251, 249, 244, 0.72);
}

.journal-panel {
  display: grid;
  grid-template-columns: minmax(140px, 0.35fr) minmax(220px, 0.62fr) minmax(220px, 0.72fr);
  overflow: hidden;
}

.journal-panel aside,
.journal-list,
.journal-note {
  padding: clamp(18px, 3vw, 30px);
}

.journal-panel aside {
  display: grid;
  align-content: start;
  gap: 10px;
  border-right: 1px solid var(--line);
}

.nav-row {
  display: block;
  padding: 12px;
  border-radius: 12px;
  color: var(--ink-soft);
  font-size: 14px;
}

.nav-row.active {
  color: var(--ink);
  background: rgba(59, 52, 46, 0.07);
  font-weight: 700;
}

.journal-list {
  display: grid;
  gap: 0;
  border-right: 1px solid var(--line);
}

.journal-list article {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.journal-list article:last-child {
  border-bottom: 0;
}

.journal-list strong {
  display: block;
  margin-top: 3px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
}

.journal-note {
  position: relative;
  min-height: 230px;
  overflow: hidden;
}

.journal-note::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -24px;
  width: 240px;
  height: 120px;
  opacity: 0.2;
  background:
    radial-gradient(ellipse at 40% 70%, rgba(59, 52, 46, 0.36), transparent 50%),
    radial-gradient(ellipse at 68% 82%, rgba(59, 52, 46, 0.28), transparent 44%);
  filter: blur(5px);
}

.hexagram-section {
  color: #e6dccf;
  background:
    radial-gradient(circle at 88% 10%, rgba(143, 106, 74, 0.18), transparent 28rem),
    linear-gradient(180deg, #24211e 0%, #1a1816 100%);
}

.hexagram-section .section-intro p {
  color: #cec1b2;
}

.hexagram-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.hexagram-card,
.loading-card {
  min-height: 300px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(251, 249, 244, 0.7);
  backdrop-filter: blur(12px);
}

.hexagram-section .hexagram-card,
.hexagram-section .loading-card {
  border-color: rgba(230, 220, 207, 0.12);
  background: rgba(42, 38, 35, 0.74);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.hexagram-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.hexagram-topline span {
  color: var(--seal);
  font-size: 13px;
  font-weight: 700;
}

.hexagram-topline strong {
  font-family: var(--serif);
  font-size: 54px;
  font-weight: 500;
  line-height: 1;
}

.hexagram-card h3 {
  margin-bottom: 4px;
  font-size: 24px;
}

.hexagram-card p:last-child {
  display: -webkit-box;
  margin-top: 16px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
}

.hexagram-section .hexagram-card p,
.hexagram-section .loading-card {
  color: #cec1b2;
}

.hexagram-section .hexagram-card h3,
.hexagram-section .hexagram-topline strong {
  color: #e6dccf;
}

.hexagram-section .pinyin,
.hexagram-section .hexagram-topline span {
  color: #c8a27f;
}

.premium-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
}

.premium-grid article {
  display: grid;
  align-content: start;
  justify-items: center;
  min-height: 230px;
  padding: clamp(22px, 3vw, 38px) 20px;
  text-align: center;
  background: rgba(251, 249, 244, 0.78);
}

.feature-icon {
  display: inline-flex;
  position: relative;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border: 1px solid rgba(143, 106, 74, 0.35);
  border-radius: 999px;
  background: rgba(246, 243, 236, 0.74);
}

.feature-icon::before,
.feature-icon::after,
.coin-icon,
.stalk-icon,
.quantum-icon {
  content: "";
  display: inline-block;
}

.lines-icon::before {
  width: 25px;
  height: 32px;
  margin: auto;
  background: repeating-linear-gradient(180deg, var(--ink) 0 4px, transparent 4px 9px);
}

.quantum-dot::before {
  width: 34px;
  height: 34px;
  margin: auto;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, var(--ink) 0 3px, transparent 4px),
    radial-gradient(circle at 25% 35%, var(--ink) 0 3px, transparent 4px),
    radial-gradient(circle at 75% 35%, var(--ink) 0 3px, transparent 4px),
    radial-gradient(circle at 32% 74%, var(--ink) 0 3px, transparent 4px),
    radial-gradient(circle at 70% 70%, var(--ink) 0 3px, transparent 4px);
}

.book-icon::before {
  width: 28px;
  height: 30px;
  margin: auto;
  border: 2px solid var(--ink);
  border-radius: 2px 8px 8px 2px;
  border-left-width: 5px;
}

.brush-icon::before {
  width: 31px;
  height: 31px;
  margin: auto;
  background: linear-gradient(135deg, transparent 0 32%, var(--ink) 34% 42%, transparent 44% 100%);
  transform: rotate(8deg);
}

.coin-icon {
  width: 14px;
  height: 14px;
  border: 2px dotted var(--ink-soft);
  border-radius: 999px;
}

.stalk-icon {
  width: 14px;
  height: 18px;
  background:
    linear-gradient(78deg, transparent 0 42%, var(--ink-soft) 43% 50%, transparent 51%),
    linear-gradient(102deg, transparent 0 42%, var(--ink-soft) 43% 50%, transparent 51%);
}

.quantum-icon {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--ink-soft) 0 2px, transparent 3px),
    conic-gradient(var(--ink-soft) 0 18%, transparent 18% 36%, var(--ink-soft) 36% 54%, transparent 54% 72%, var(--ink-soft) 72% 90%, transparent 90%);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 28px clamp(24px, 7vw, 118px);
  background: rgba(246, 243, 236, 0.78);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 46px;
  height: 46px;
  border-radius: 14px;
}

.footer-brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 24px;
}

.footer-brand span,
.footer p {
  display: block;
  margin: 0;
  color: var(--stone);
  font-size: 12px;
}

.utility-page {
  background: var(--paper);
}

.document {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(54px, 8vw, 94px) 24px;
}

.document h1 {
  font-size: clamp(50px, 8vw, 92px);
  line-height: 0.98;
}

.document .lede {
  max-width: 720px;
  margin: 24px 0 42px;
  font-size: 20px;
}

.document section {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.document section:last-child {
  border-bottom: 0;
}

.document h2 {
  margin: 0 0 12px;
  font-size: 30px;
}

.document h3 {
  margin: 28px 0 8px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
}

.contact-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-strong);
}

.footer.simple {
  justify-content: center;
  flex-wrap: wrap;
}

.footer.simple a {
  color: var(--ink);
  text-decoration: none;
}

@keyframes turn {
  to {
    transform: rotate(360deg);
  }
}

@keyframes lineIn {
  from {
    opacity: 0;
    transform: scaleX(0.08);
  }
}

@keyframes inkBreathe {
  0%, 100% {
    filter: blur(0.8px);
    transform: translateY(4px) scale(0.99);
  }
  45%, 72% {
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

@keyframes sumiReveal {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes sumiTrace {
  0% {
    opacity: 0;
    stroke-dashoffset: 1;
  }
  12% {
    opacity: 0.18;
  }
  64% {
    opacity: var(--trail-opacity, 0.28);
    stroke-dashoffset: 0;
  }
  100% {
    opacity: 0;
    stroke-dashoffset: 0;
  }
}

@keyframes sumiInkSettle {
  0% {
    opacity: 0.66;
    filter: blur(0.45px);
  }
  100% {
    opacity: var(--settle-opacity, 0.9);
    filter: blur(0);
  }
}

@keyframes sumiSettleFill {
  from {
    opacity: 0;
    filter: blur(0.55px);
  }
  to {
    opacity: var(--settle-fill-opacity, 0.62);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 1080px) {
  .hero,
  .process-section,
  .reading-section,
  .calligraphy-section,
  .library-section,
  .premium-section {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 46px;
  }

  .screenshot-stage {
    min-height: 640px;
  }

  .app-shot-main {
    width: clamp(210px, 33vw, 280px);
  }

  .app-shot {
    width: clamp(158px, 27vw, 218px);
  }

  .app-shot-left {
    transform: translate(-165px, 58px) rotate(-5deg);
  }

  .app-shot-right {
    transform: translate(165px, 70px) rotate(5deg);
  }

  .ritual-flow,
  .reading-panel,
  .journal-panel,
  .premium-grid,
  .hexagram-grid {
    grid-template-columns: 1fr 1fr;
  }

  .flow-arrow,
  .reading-arrow {
    display: none;
  }

  .reading-hex,
  .interpretation-card,
  .journal-panel aside,
  .journal-list {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .interpretation-card,
  .journal-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    min-height: auto;
    padding: 12px 16px;
  }

  .brand span {
    display: none;
  }

  .site-header nav {
    gap: 13px;
    padding-top: 10px;
  }

  .site-header nav a,
  .footer nav a {
    font-size: 13px;
  }

  .hero {
    min-height: auto;
  }

  .hero h1 {
    font-size: 86px;
  }

  .hero-subtitle {
    font-size: 34px;
  }

  .hero-actions {
    display: grid;
  }

  .screenshot-stage {
    grid-template-columns: repeat(3, minmax(190px, 1fr));
    justify-items: center;
    min-height: auto;
    margin-top: 24px;
    padding: 6px 4px 42px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .screenshot-stage::-webkit-scrollbar {
    display: none;
  }

  .screenshot-stage .brush-ring {
    display: none;
  }

  .app-shot,
  .app-shot-main,
  .app-shot-left,
  .app-shot-right {
    position: relative;
    width: min(190px, 58vw);
    transform: none;
  }

  .app-shot figcaption {
    bottom: -24px;
  }

  .phone {
    width: min(315px, 100%);
    min-height: 610px;
  }

  .ritual-flow,
  .reading-panel,
  .journal-panel,
  .premium-grid,
  .hexagram-grid {
    grid-template-columns: 1fr;
  }

  .signature-grid,
  .sumi-picker {
    grid-template-columns: 1fr;
  }

  .sumi-paper {
    min-height: 390px;
  }

  .sumi-word.is-pair {
    width: min(430px, 98%);
  }

  .sumi-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .sumi-actions {
    width: 100%;
  }

  .sumi-actions button {
    flex: 1;
  }

  .premium-grid {
    gap: 1px;
  }

  .hexagram-card,
  .loading-card {
    min-height: auto;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
