:root {
  color-scheme: light;
  --paper: #f7f3ea;
  --paper-deep: #f0eadc;
  --surface: #fffdf8;
  --ink: #20251f;
  --ink-soft: #4d534b;
  --muted: #74796f;
  --line: rgba(32, 37, 31, 0.11);
  --line-strong: rgba(32, 37, 31, 0.2);
  --sun: #e05d2f;
  --sun-deep: #c44a22;
  --gold: #c9932f;
  --pine: #1f4a3d;
  --pine-deep: #173a30;
  --serif: "Songti SC", "Noto Serif SC", "STSong", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --radius: 18px;
  --container: 1180px;
  --shadow-soft: 0 24px 60px -38px rgba(32, 37, 31, 0.4);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(1100px 560px at 82% -8%, rgba(242, 160, 61, 0.13), transparent 64%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(224, 93, 47, 0.22);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--sun);
  outline-offset: 3px;
}

.container {
  width: min(var(--container), calc(100% - 64px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  font-size: 13px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(247, 243, 234, 0.84);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px);
}

@supports (background: color-mix(in srgb, white 50%, transparent)) {
  .site-header.is-scrolled {
    background: color-mix(in srgb, var(--paper) 86%, transparent);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 78px;
}

.header-end {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tool-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tool-btn:hover {
  border-color: var(--ink);
  background: var(--paper-deep);
}

.tool-btn svg {
  width: 17px;
  height: 17px;
}

.lang-toggle {
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.login-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  padding: 0 12px;
  border-radius: 999px;
}

.login-toggle svg {
  width: 16px;
  height: 16px;
}

.login-label {
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

@media (max-width: 1200px) {
  .login-toggle {
    width: 38px;
    padding: 0;
  }

  .login-toggle .login-label {
    display: none;
  }
}

.theme-toggle .icon-sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

html[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 9px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 9px;
  min-width: 0;
}

.brand-name {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand-sub {
  padding-left: 9px;
  border-left: 1px solid var(--line-strong);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 13.5px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav a:hover {
  color: var(--ink);
  background: rgba(32, 37, 31, 0.05);
}

.nav .nav-cta {
  margin-left: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
}

.nav .nav-cta:hover {
  background: var(--pine);
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* Shared bits */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--sun-deep);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  flex: none;
  background: currentColor;
  opacity: 0.6;
}

.section {
  position: relative;
  padding: 112px 0;
  scroll-margin-top: 88px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 52px;
}

.section h2 {
  margin: 14px 0 18px;
  font-size: clamp(30px, 4vw, 47px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.lead {
  max-width: 660px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.85;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 10px 24px -14px rgba(32, 37, 31, 0.6);
}

.btn-primary:hover {
  background: var(--pine);
  box-shadow: 0 16px 30px -16px rgba(31, 74, 61, 0.7);
}

.btn-ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(255, 253, 248, 0.72);
}

.btn-outline {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  min-height: 42px;
  padding: 0 20px;
  font-size: 13px;
  flex: none;
}

.btn-outline:hover {
  border-color: var(--sun);
  color: var(--sun-deep);
}

/* Reveal */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--delay, 0s);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 154px 0 34px;
}

.hero::before {
  content: "";
  position: absolute;
  top: -380px;
  right: -240px;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(242, 160, 61, 0.26), rgba(224, 93, 47, 0.07) 46%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: 0;
  left: -8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 52px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 18px 0 22px;
  font-size: clamp(42px, 5.1vw, 72px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.035em;
}

.hero h1 .accent {
  color: var(--sun-deep);
  background-image: linear-gradient(90deg, rgba(242, 160, 61, 0.42), rgba(224, 93, 47, 0.16));
  background-repeat: no-repeat;
  background-size: 100% 0.16em;
  background-position: 0 94%;
}

.hero-lead {
  max-width: 530px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.hero-version {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.hero-learn {
  padding: 8px 4px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink-soft);
  font-size: 13px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.hero-learn:hover {
  border-color: var(--sun);
  color: var(--sun-deep);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 12px;
}

.hero-meta li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-meta li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

/* Hero app mock */

.hero-stage {
  position: relative;
  z-index: 1;
  padding: 18px 0 32px;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 34px -14px -14px 28px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.3);
  transform: rotate(2.2deg);
  pointer-events: none;
}

.stage-glow {
  position: absolute;
  inset: 10% -10% 0;
  background: radial-gradient(circle, rgba(242, 160, 61, 0.22), transparent 62%);
  filter: blur(30px);
  pointer-events: none;
}

.app-window {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid rgba(32, 37, 31, 0.16);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 42px 90px -42px rgba(32, 37, 31, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  font-size: 12px;
}

.app-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: #f3eee3;
}

.window-dots {
  display: flex;
  gap: 5px;
}

.window-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d8cfc0;
}

.window-dots i:first-child {
  background: #e0a08b;
}

.window-dots i:nth-child(2) {
  background: #ddbf83;
}

.window-dots i:last-child {
  background: #9db8a2;
}

.app-name {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.app-crumb {
  margin-left: auto;
  overflow: hidden;
  color: var(--muted);
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-saved {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: none;
  color: #4f7a63;
  font-size: 9px;
}

.app-saved::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #5d9275;
}

.app-body {
  display: flex;
  min-height: 348px;
}

.app-rail {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: 52px;
  padding: 11px 0;
  border-right: 1px solid var(--line);
  background: #faf6ec;
}

.rail-logo {
  width: 23px;
  height: 23px;
  margin-bottom: 8px;
  border-radius: 6px;
  object-fit: cover;
}

.rail-btn {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 9px;
  color: #8b8e84;
}

.rail-btn svg {
  width: 15px;
  height: 15px;
}

.rail-btn.active {
  background: rgba(31, 74, 61, 0.1);
  color: var(--pine);
}

.doc {
  flex: 1;
  min-width: 0;
  padding: 20px 22px 24px;
  background: var(--surface);
}

.doc-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.doc h3 {
  margin: 6px 0 14px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.doc p {
  margin: 0 0 10px;
  color: #42473f;
  font-size: 11.5px;
  line-height: 2.05;
}

.doc p:last-child {
  margin-bottom: 0;
}

.mark {
  display: inline;
  padding: 0 1px;
  border: 0;
  border-radius: 2px;
  background: linear-gradient(transparent 58%, rgba(224, 93, 47, 0.18) 58%);
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.keep-nowrap {
  white-space: nowrap;
}

.mark:hover {
  background: linear-gradient(transparent 50%, rgba(224, 93, 47, 0.34) 50%);
  color: var(--sun-deep);
}

.mark.is-active {
  background: linear-gradient(transparent 50%, rgba(224, 93, 47, 0.32) 50%);
  color: var(--sun-deep);
  font-weight: 600;
}

.word-panel {
  display: flex;
  flex: none;
  flex-direction: column;
  width: 206px;
  padding: 17px 16px 14px;
  border-left: 1px solid var(--line);
  background: #faf6ec;
}

.word-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 8.5px;
  letter-spacing: 0.1em;
}

.panel-badge {
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(79, 122, 99, 0.1);
  color: #4f7a63;
  font-size: 7.5px;
  letter-spacing: 0;
}

.word-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.word-panel.is-switching .word-body {
  opacity: 0;
  transform: translateY(4px);
}

.word {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.word-phon {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10.5px;
}

.word-pos {
  align-self: flex-start;
  margin-top: 9px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(224, 93, 47, 0.08);
  color: var(--sun-deep);
  font-size: 8.5px;
  font-style: italic;
}

.word-def {
  margin: 8px 0 0;
  font-size: 10.5px;
  line-height: 1.65;
}

.word-example {
  margin: 10px 0 0;
  padding-left: 8px;
  border-left: 2px solid rgba(224, 93, 47, 0.35);
  color: #5b6057;
  font-family: var(--serif);
  font-size: 10px;
  line-height: 1.7;
}

.word-source {
  margin: auto 0 0;
  padding-top: 14px;
  color: var(--muted);
  font-size: 8.5px;
}

.word-status {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 8px;
}

.word-status span:last-child {
  color: var(--sun-deep);
}

.float-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 16px 32px -20px rgba(32, 37, 31, 0.5);
  color: var(--ink-soft);
  font-size: 10px;
  backdrop-filter: blur(10px);
}

.chip-today {
  top: -16px;
  right: -16px;
}

.chip-streak {
  bottom: 34px;
  left: -20px;
}

.chip-today strong {
  margin: 0 2px;
  color: var(--ink);
  font-size: 15px;
}

.chip-ring {
  width: 25px;
  height: 25px;
}

.chip-icon {
  width: 17px;
  height: 17px;
  color: var(--sun-deep);
}

.stage-hint {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 10.5px;
  text-align: right;
}

/* Principle strip */

.principle-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 62px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.principle-strip > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 14px;
  padding: 21px 27px;
}

.principle-strip > div + div {
  border-left: 1px solid var(--line);
}

.principle-strip span {
  grid-row: span 2;
  padding-top: 3px;
  color: var(--sun-deep);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.principle-strip strong {
  font-size: 14px;
  font-weight: 600;
}

.principle-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

/* Philosophy steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.step {
  display: flex;
  flex-direction: column;
  min-height: 370px;
  padding: 26px 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.step:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.step-no {
  color: var(--sun-deep);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.step h3 {
  margin: 10px 0 10px;
  font-size: 19px;
  font-weight: 600;
}

.step > p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

.step-visual {
  margin-top: auto;
  padding-top: 26px;
}

.file-stack {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.file-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f1e6;
  color: var(--ink-soft);
  font-size: 10px;
}

.file-chip > span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-chip i {
  margin-left: auto;
  color: var(--muted);
  font-size: 8.5px;
  font-style: normal;
  white-space: nowrap;
}

.file-type {
  flex: none;
  padding: 3px 5px;
  border-radius: 3px;
  background: rgba(31, 74, 61, 0.08);
  color: var(--pine);
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.file-type.pdf {
  background: rgba(184, 74, 58, 0.1);
  color: #a54235;
}

.file-type.md {
  background: rgba(31, 74, 61, 0.1);
  color: var(--pine);
}

.file-type.txt {
  background: rgba(201, 147, 47, 0.14);
  color: #8a6518;
}

.mini-doc {
  position: relative;
  padding: 12px 12px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f6f1e6;
}

.mini-line {
  height: 5px;
  margin-bottom: 6px;
  border-radius: 3px;
  background: #e3dbcb;
}

.mini-line.w90 {
  width: 90%;
}

.mini-line.w100 {
  width: 100%;
}

.mini-line.w70 {
  width: 70%;
}

.mini-highlight {
  display: inline-block;
  margin: 2px 0 6px;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(224, 93, 47, 0.2);
  color: var(--sun-deep);
  font-size: 10px;
}

.mini-word-chip {
  position: absolute;
  right: 10px;
  bottom: -8px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 7px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 24px -16px rgba(32, 37, 31, 0.45);
}

.mini-word-chip strong {
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 600;
}

.mini-word-chip span {
  color: var(--muted);
  font-size: 8px;
}

.mini-cal {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f6f1e6;
}

.mini-cal i {
  aspect-ratio: 1;
  border-radius: 3px;
  background: #e6ded0;
}

.mini-cal i.soft {
  background: rgba(224, 93, 47, 0.25);
}

.mini-cal i.on {
  background: var(--sun);
}

/* Features */

.section-features {
  padding-top: 100px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 238px;
  padding: 28px 26px 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.feature:hover {
  transform: translateY(-5px);
  border-color: rgba(224, 93, 47, 0.35);
  box-shadow: 0 30px 54px -36px rgba(32, 37, 31, 0.38);
}

.feature-index {
  position: absolute;
  top: 26px;
  right: 26px;
  color: #b3ab9b;
  font-size: 9.5px;
  letter-spacing: 0.1em;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  border-radius: 12px;
  background: rgba(31, 74, 61, 0.07);
  color: var(--pine);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature h3 {
  margin: 0 0 9px;
  font-size: 18px;
  font-weight: 600;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

/* Review */

.section-dark {
  overflow: hidden;
  background-color: var(--pine-deep);
  background-image:
    radial-gradient(760px 480px at 87% 18%, rgba(201, 147, 47, 0.16), transparent 64%),
    radial-gradient(600px 420px at 0% 100%, rgba(224, 93, 47, 0.08), transparent 60%);
  color: #f3eee2;
}

.section-dark::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(233, 180, 95, 0.35), transparent);
}

.section-dark .eyebrow {
  color: #e9b45f;
}

.section-dark h2 {
  color: #fbf7ee;
}

.section-dark .lead {
  color: rgba(243, 238, 226, 0.72);
}

.review-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 76px;
  align-items: center;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 10px;
  color: rgba(243, 238, 226, 0.8);
  font-size: 14px;
  line-height: 1.7;
}

.check-list svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 2px;
  color: #e9b45f;
}

.review-card {
  padding: 26px 26px 22px;
  border-radius: 22px;
  background: #fbf7ee;
  color: var(--ink);
  box-shadow: 0 44px 84px -34px rgba(0, 0, 0, 0.58);
}

.review-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.review-progress {
  height: 3px;
  margin: 10px 0 22px;
  overflow: hidden;
  border-radius: 2px;
  background: #e8dfd0;
}

.review-progress i {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--sun), var(--gold));
}

.review-word {
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1.1;
}

.review-phon {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.review-def {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.review-prompt {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.rating-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 4px 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.rating .rating-label {
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
}

.rating .rating-time {
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 400;
}

.rating:hover {
  transform: translateY(-2px);
  border-color: var(--sun);
}

.rating.is-selected {
  border-color: var(--sun);
  background: rgba(224, 93, 47, 0.06);
}

.review-result {
  min-height: 18px;
  margin: 14px 0 0;
  color: var(--sun-deep);
  font-size: 10.5px;
  text-align: center;
}

.review-result.is-updated {
  animation: result-pop 0.35s ease;
}

@keyframes result-pop {
  from {
    opacity: 0.2;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.review-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9.5px;
}

/* Platforms */

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.platform-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 588px;
  padding: 30px 30px 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.platform-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.platform-tag {
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.status-badge {
  flex: none;
  padding: 4px 8px;
  border: 1px solid rgba(224, 93, 47, 0.16);
  border-radius: 999px;
  background: rgba(224, 93, 47, 0.07);
  color: var(--sun-deep);
  font-size: 9.5px;
}

.platform-card h3 {
  margin: 18px 0 12px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.platform-card > p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.platform-card ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 18px;
  margin: 19px 0 26px;
  padding: 0;
  list-style: none;
}

.platform-card li {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 12px;
}

.platform-card li::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: var(--gold);
}

.platform-visual {
  position: relative;
  height: 232px;
  margin-top: auto;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
}

.visual-win {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 30px 24px 0;
  background: linear-gradient(180deg, #f2ecdf, #ece4d5);
}

.mini-window {
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: var(--surface);
  box-shadow: 0 22px 44px -26px rgba(32, 37, 31, 0.42);
}

.mini-window-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 9px;
  border-bottom: 1px solid var(--line);
  background: #ece5d7;
}

.mini-window-bar i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #cfc4b3;
}

.mini-window-bar span {
  margin-left: 5px;
  color: var(--muted);
  font-size: 7.5px;
}

.mini-window-body {
  display: flex;
  height: 176px;
}

.mini-side {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 7px;
  width: 52px;
  padding: 11px 8px;
  border-right: 1px solid var(--line);
  background: #f8f3e9;
}

.mini-side i {
  height: 5px;
  border-radius: 3px;
  background: #ddd4c4;
}

.mini-side i:first-child {
  background: rgba(31, 74, 61, 0.38);
}

.mini-main {
  flex: 1;
  padding: 14px;
}

.mini-title {
  width: 52%;
  height: 8px;
  margin-bottom: 13px;
  border-radius: 4px;
  background: #cfc5b4;
}

.mini-bar {
  height: 5px;
  margin-bottom: 7px;
  border-radius: 3px;
  background: #e8e0d2;
}

.mini-bar.w95 {
  width: 95%;
}

.mini-bar.w90 {
  width: 90%;
}

.mini-bar.w80 {
  width: 80%;
}

.mini-bar.w70 {
  width: 70%;
}

.mini-bar.w60 {
  width: 60%;
}

.mini-bar.hl {
  width: 56%;
  background: rgba(224, 93, 47, 0.36);
}

.visual-android {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: linear-gradient(180deg, #f8ead9, #f0dfc8);
}

.phone {
  position: relative;
  width: 156px;
  height: 228px;
  padding: 16px 13px 0;
  border: 5px solid #2b302a;
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  background: var(--surface);
  box-shadow: 0 22px 44px -24px rgba(32, 37, 31, 0.5);
}

.phone::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 34px;
  height: 4px;
  border-radius: 2px;
  background: #d7ccbb;
  transform: translateX(-50%);
}

.phone-head {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  color: var(--muted);
  font-size: 7.5px;
}

.phone-word {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.2;
}

.phone-phon {
  margin-top: 2px;
  color: var(--muted);
  font-size: 7.5px;
}

.phone-line {
  height: 4px;
  margin-top: 10px;
  border-radius: 2px;
  background: #e9e0d1;
}

.phone-line.short {
  width: 60%;
}

.phone-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-top: 12px;
}

.phone-btns i {
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}

.phone-nav {
  position: absolute;
  right: 13px;
  bottom: 0;
  left: 13px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 30px;
  border-top: 1px solid var(--line);
}

.phone-nav i {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: #ddd4c4;
}

.phone-nav i.active {
  background: rgba(31, 74, 61, 0.45);
}

.platform-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 26px;
  padding: 21px 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.6);
}

.platform-download {
  align-self: flex-start;
  margin: 0 0 24px;
}

.platform-download small {
  font-weight: 400;
  opacity: 0.7;
}

.platform-note p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

/* About */

.section-about {
  padding-top: 100px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 76px;
  align-items: start;
}

.about-copy .lead {
  margin-top: 0;
}

.about-copy blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 22px;
  border-left: 2px solid var(--sun);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.7;
}

.service-list {
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.service-row > span {
  padding-top: 3px;
  color: var(--sun-deep);
  font-size: 10.5px;
  letter-spacing: 0.1em;
}

.service-row h3 {
  margin: 0 0 5px;
  font-size: 16px;
  font-weight: 600;
}

.service-row p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.site-statement {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 64px;
  padding: 27px 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.statement-label {
  color: var(--sun-deep);
  font-size: 10.5px;
  letter-spacing: 0.12em;
}

.site-statement p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.9;
}

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
  padding: 28px 32px;
  border-radius: 16px;
  background: var(--pine);
  color: #f6f1e6;
}

.contact-band .eyebrow {
  color: #e9b45f;
}

.contact-band h3 {
  margin: 7px 0 0;
  font-size: 20px;
  font-weight: 600;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: none;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.contact-link:hover {
  border-color: #fff;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex: none;
}

.contact-address {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12.5px;
  text-align: right;
}

/* Footer */

.site-footer {
  padding: 64px 0 28px;
  background: #1b201c;
  color: #e8e2d5;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
  gap: 48px;
  padding-bottom: 42px;
  border-bottom: 1px solid rgba(232, 226, 213, 0.12);
}

.brand-light {
  color: #f3eee2;
}

.brand-light .brand-mark {
  padding: 2px;
  background: #f7f3ea;
}

.brand-light .brand-sub {
  border-color: rgba(232, 226, 213, 0.2);
  color: rgba(232, 226, 213, 0.55);
}

.footer-brand > p {
  margin: 16px 0 0;
  color: rgba(232, 226, 213, 0.5);
  font-size: 13px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-nav span,
.footer-contact > span {
  margin-bottom: 4px;
  color: rgba(232, 226, 213, 0.4);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-nav a,
.footer-contact a {
  color: rgba(232, 226, 213, 0.72);
  font-size: 13px;
  transition: color 0.2s ease;
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: #fff;
}

.footer-contact p {
  margin: 10px 0 0;
  color: rgba(232, 226, 213, 0.42);
  font-size: 12px;
}

.footer-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding-top: 22px;
  color: rgba(232, 226, 213, 0.42);
  font-size: 11px;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom .icp {
  color: rgba(232, 226, 213, 0.68);
  font-size: 12px;
  text-align: center;
}

.footer-bottom .icp a {
  padding-bottom: 1px;
  border-bottom: 1px solid rgba(232, 226, 213, 0.25);
  color: rgba(232, 226, 213, 0.86);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-bottom .icp a:hover {
  border-color: #fff;
  color: #fff;
}

.footer-note {
  text-align: right;
}

.footer-note a {
  color: rgba(232, 226, 213, 0.72);
  border-bottom: 1px solid rgba(232, 226, 213, 0.25);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-note a:hover {
  color: #fff;
  border-color: #fff;
}

.footer-note span {
  margin: 0 6px;
  color: rgba(232, 226, 213, 0.28);
}

/* Auth dialog */

body.modal-open {
  overflow: hidden;
}

.auth-dialog {
  width: min(420px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 24px;
  background: transparent;
  color: var(--ink);
}

[hidden] { display: none !important; }
.auth-text-button { font: inherit; cursor: pointer; border: 0; color: inherit; background: transparent; }
.auth-password-login { margin-top: 16px; text-align: left; }
.auth-password-login summary { cursor: pointer; text-align: center; }
.wechat-login { display: flex; justify-content: center; margin: 8px auto 0; max-width: 100%; }
.wechat-login:empty { display: none; }
.wechat-login iframe { max-width: 100%; }
.auth-text-button { padding: 10px 6px; text-decoration: underline; text-underline-offset: 4px; }
.account-form { text-align: left; margin: 20px 0; padding-top: 16px; border-top: 1px solid var(--line); }
.account-form label { display: block; margin: 12px 0 6px; font-weight: 600; }
.account-form input { display: block; box-sizing: border-box; width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: inherit; font: inherit; }
.account-form input:disabled { opacity: .7; }
.account-form .auth-hint { margin: 10px 0 16px; text-align: left; }
.account-form button { width: 100%; }
#password-login-form button { margin-top: 12px; }
.account-actions { display: flex; justify-content: space-between; gap: 12px; }
.auth-wechat:disabled { opacity: .5; cursor: wait; }

.auth-dialog::backdrop {
  background: rgba(12, 16, 12, 0.62);
  backdrop-filter: blur(4px);
}

.auth-card {
  position: relative;
  padding: 30px 28px 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.auth-close:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.auth-close svg {
  width: 15px;
  height: 15px;
}

.auth-mark {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
}

.auth-title {
  margin: 0;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.auth-sub {
  max-width: 300px;
  margin: 8px auto 18px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.auth-qr {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.auth-qr img {
  width: 100%;
  height: 100%;
}

.auth-qr-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #07c160;
  color: #fff;
  box-shadow: 0 0 0 4px #fff;
  transform: translate(-50%, -50%);
}

.auth-qr-badge svg {
  width: 22px;
  height: 22px;
}

.auth-hint {
  margin: 12px 0 16px;
  color: var(--muted);
  font-size: 11px;
}

.auth-wechat {
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  background: #07c160;
  color: #fff;
  font-weight: 650;
}


.auth-wechat:hover {
  background: #06ad56;
  transform: none;
}

.auth-wechat svg {
  width: 20px;
  height: 20px;
}

.auth-status {
  min-height: 18px;
  margin: 10px 0 0;
  color: var(--sun-deep);
  font-size: 11px;
  line-height: 1.6;
}

.auth-terms {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.7;
}

.auth-terms a {
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.auth-terms a:hover {
  color: var(--sun-deep);
  border-color: var(--sun);
}

/* Legal pages */

.legal-page {
  padding: 138px 0 88px;
}

.legal-doc {
  max-width: 820px;
}

.legal-doc h1 {
  margin: 14px 0 10px;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.legal-meta {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 12px;
}

.legal-lead {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.9;
}

.legal-doc section {
  margin-top: 30px;
}

.legal-doc h2 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 650;
}

.legal-doc p {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.9;
}

.legal-doc ul {
  margin: 0 0 12px;
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.9;
}

.legal-doc li {
  margin-bottom: 6px;
}

.legal-doc a {
  color: var(--sun-deep);
  border-bottom: 1px solid rgba(224, 93, 47, 0.3);
}

.legal-note {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.legal-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 16px 32px;
  align-items: center;
  color: rgba(232, 226, 213, 0.42);
  font-size: 11px;
}

.legal-footer .copyright {
  margin: 0;
  color: rgba(232, 226, 213, 0.42);
}

.legal-footer .icp {
  margin: 0;
  color: rgba(232, 226, 213, 0.68);
  font-size: 12px;
  text-align: right;
}

.legal-footer .icp a {
  color: #fff;
  border-bottom: 1px solid rgba(232, 226, 213, 0.35);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 0;
}

.legal-links a {
  color: rgba(232, 226, 213, 0.72);
  border-bottom: 1px solid rgba(232, 226, 213, 0.25);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.legal-links a:hover {
  color: #fff;
  border-color: #fff;
}

@media (max-width: 900px) {
  .legal-page {
    padding: 120px 0 64px;
  }

  .legal-footer {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }

  .legal-links {
    justify-content: center;
  }

  .legal-footer .icp {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .auth-card {
    padding: 26px 20px 22px;
  }

  .auth-qr {
    width: 160px;
    height: 160px;
  }
}

/* 404 */

.not-found {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: calc(100vh - 300px);
  padding: 150px 20px 90px;
  text-align: center;
}

.not-found > * {
  max-width: 100%;
}

.not-found .eyebrow {
  justify-content: center;
}

.not-found h1 {
  margin: 16px 0 14px;
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.not-found > p {
  width: 100%;
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.not-found .btn {
  margin-top: 28px;
}

.footer-compact {
  padding: 26px 0;
}

.page-404 {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-404 .not-found {
  min-height: 0;
}

/* Language-specific sizing */

html[data-lang="en"] .hero h1 {
  font-size: clamp(33px, 4.6vw, 56px);
  letter-spacing: -0.045em;
}

/* Dark theme */

html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #12150f;
  --paper-deep: #1d211a;
  --surface: #191d16;
  --ink: #ece7db;
  --ink-soft: #c6c2b6;
  --muted: #9b9f94;
  --line: rgba(236, 231, 219, 0.12);
  --line-strong: rgba(236, 231, 219, 0.24);
  --sun: #ef7a4c;
  --sun-deep: #f08a5e;
  --gold: #dfb05a;
  --pine: #2d6352;
  --pine-deep: #0f2a21;
  --shadow-soft: 0 24px 60px -38px rgba(0, 0, 0, 0.72);
}

html[data-theme="dark"] .site-header.is-scrolled {
  background: rgba(18, 21, 15, 0.86);
}

html[data-theme="dark"] .nav a:hover {
  background: rgba(236, 231, 219, 0.08);
}

html[data-theme="dark"] .btn-primary:hover {
  background: var(--sun-deep);
  color: #17130f;
}

html[data-theme="dark"] .btn-ghost:hover {
  background: rgba(236, 231, 219, 0.07);
}

html[data-theme="dark"] .tool-btn:hover {
  background: rgba(236, 231, 219, 0.08);
}

html[data-theme="dark"] .hero-stage::before {
  background: rgba(255, 255, 255, 0.035);
}

html[data-theme="dark"] .feature-icon {
  background: rgba(236, 231, 219, 0.07);
  color: var(--gold);
}

html[data-theme="dark"] .feature-index {
  color: var(--muted);
}

html[data-theme="dark"] .platform-note {
  background: rgba(255, 255, 255, 0.035);
}

html[data-theme="dark"] .site-footer {
  border-top: 1px solid var(--line);
  background: #0b0e0a;
}

/* Product UI illustrations stay light, like real app screenshots. */
html[data-theme="dark"] .app-window,
html[data-theme="dark"] .float-chip,
html[data-theme="dark"] .review-card,
html[data-theme="dark"] .step-visual,
html[data-theme="dark"] .platform-visual {
  --paper: #f7f3ea;
  --paper-deep: #f0eadc;
  --surface: #fffdf8;
  --ink: #20251f;
  --ink-soft: #4d534b;
  --muted: #74796f;
  --line: rgba(32, 37, 31, 0.11);
  --line-strong: rgba(32, 37, 31, 0.2);
  --sun: #e05d2f;
  --sun-deep: #c44a22;
  --gold: #c9932f;
  --pine: #1f4a3d;
  color: var(--ink);
}

html[data-theme="dark"] .app-window {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 42px 90px -42px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

@media (max-width: 900px) {
  html[data-theme="dark"] .site-header {
    background: rgba(18, 21, 15, 0.92);
  }
}

/* Responsive */

@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 52px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-stage {
    width: 100%;
    max-width: 640px;
    margin-inline: auto;
  }

  .chip-today {
    right: 0;
  }

  .chip-streak {
    left: 0;
  }

  .review-grid {
    gap: 52px;
  }

  .about-grid {
    gap: 52px;
  }
}

@media (max-width: 1000px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .platform-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .platform-card {
    min-height: auto;
  }

  .platform-visual {
    margin-top: 6px;
  }
}

@media (max-width: 900px) {
  .site-header {
    background: rgba(247, 243, 234, 0.9);
    border-bottom-color: var(--line);
    backdrop-filter: blur(18px);
  }

  .nav {
    position: fixed;
    top: 78px;
    right: 0;
    left: 0;
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 28px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 30px 40px -30px rgba(32, 37, 31, 0.35);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }

  .nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 15px;
  }

  .nav .nav-cta {
    margin: 16px 0 0;
    padding: 13px 18px;
    border-bottom: 0;
    border-radius: 999px;
    text-align: center;
  }

  body.nav-open {
    overflow: hidden;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .step {
    min-height: auto;
  }

  .step-visual {
    padding-top: 22px;
  }

  .review-grid,
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .review-stage {
    max-width: 520px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .container {
    width: min(var(--container), calc(100% - 40px));
  }

  .hero {
    padding-top: 128px;
  }

  .hero h1 {
    font-size: clamp(38px, 10.8vw, 54px);
  }

  .hero-lead {
    font-size: 15.5px;
  }

  .principle-strip {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 46px;
  }

  .principle-strip > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .app-rail {
    display: none;
  }

  .app-body {
    display: block;
  }

  .doc {
    border-bottom: 1px solid var(--line);
  }

  .word-panel {
    width: auto;
    border-left: 0;
  }

  .word-source {
    margin-top: 12px;
    padding-top: 0;
  }

  .float-chip {
    font-size: 9px;
  }

  .chip-streak {
    display: none;
  }

  .chip-today {
    top: -14px;
    right: 8px;
  }

  .stage-hint {
    text-align: center;
  }

  .section {
    padding: 78px 0;
  }

  .section-features,
  .section-about {
    padding-top: 72px;
  }

  .section-head {
    margin-bottom: 38px;
  }

  .lead {
    font-size: 15px;
  }

  .site-statement {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 24px;
  }

  .contact-band,
  .platform-note {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-band {
    padding: 26px 24px;
  }

  .contact-detail {
    align-items: flex-start;
  }

  .contact-address {
    text-align: left;
  }
}

@media (max-width: 680px) {
  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature {
    min-height: auto;
    padding: 24px 22px;
  }

  .feature-index {
    top: 22px;
    right: 22px;
  }

  .platform-card {
    padding: 26px 22px 0;
    border-radius: 20px;
  }

  .platform-card h3 {
    font-size: 24px;
  }

  .platform-card ul {
    grid-template-columns: minmax(0, 1fr);
  }

  .rating-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .review-card {
    padding: 22px 20px 19px;
  }

  .review-word {
    font-size: 32px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    text-align: center;
  }

  .footer-note {
    text-align: center;
  }
}

@media (max-width: 560px) {
  .app-crumb {
    display: none;
  }

  .app-saved {
    margin-left: auto;
  }

  .doc-third {
    display: none;
  }

  .doc {
    padding: 17px 18px 20px;
  }

  .word-panel {
    padding: 15px 18px 14px;
  }

  .brand-sub {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-actions .hero-learn {
    border-bottom: 0;
    text-align: center;
  }

  .header-back {
    display: none;
  }

  .hero-meta {
    gap: 7px 16px;
  }

  .review-foot {
    flex-direction: column;
    gap: 4px;
  }

  .site-statement {
    margin-top: 46px;
  }

  .contact-link {
    font-size: 13px;
  }
}

@media (max-width: 400px) {
  .container {
    width: calc(100% - 32px);
  }

  .hero h1 {
    font-size: 35px;
  }

  .nav {
    padding-right: 16px;
    padding-left: 16px;
  }

  .step,
  .feature {
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
