:root {
  --bg: #f3ece1;
  --bg-deep: #e9dfd0;
  --paper: #faf6ef;
  --ink: #1c1712;
  --text: #3a322b;
  --muted: #6f6458;
  --line: #d8ccbb;
  --accent: #b24a28;
  --accent-deep: #8d371c;
  --pine: #2f4a3d;
  --gold: #c4a574;
  --shadow: 0 24px 60px rgba(48, 32, 18, 0.12);
  --radius: 22px;
  --header: 76px;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 18px);
}

html[lang="en"] [data-zh] {
  display: none !important;
}

html[lang="zh-CN"] [data-en] {
  display: none !important;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 10% -10%, #fff8ec 0%, transparent 55%),
    radial-gradient(900px 420px at 100% 0%, #eadcc8 0%, transparent 48%),
    var(--bg);
  font-family:
    "Sora",
    "PingFang SC",
    "Hiragino Sans GB",
    "Noto Sans SC",
    sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  z-index: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
.serif {
  font-family: "Fraunces", "Songti SC", "Noto Serif SC", serif;
  font-optical-sizing: auto;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 30;
  padding: 8px 12px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
}

.skip:focus {
  top: 16px;
}

.shell {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header);
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg) 82%, white);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand img {
  width: 38px;
  height: 38px;
  color: var(--ink);
}

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

.nav a {
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover,
.nav a.is-active {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-toggle,
.menu-toggle {
  min-width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.menu-toggle {
  display: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

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

.button-primary {
  background: var(--ink);
  color: #f6efe4;
}

.button-primary:hover {
  background: #2a231c;
}

.button-ghost {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.hero {
  position: relative;
  z-index: 1;
  padding: 28px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  color: var(--ink);
  font-size: clamp(42px, 6vw, 82px);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.lede {
  max-width: 520px;
  margin: 22px 0 32px;
  color: var(--muted);
  font-size: 17px;
}

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

.hero-meta {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.hero-meta b {
  display: block;
  color: var(--ink);
  font-size: 22px;
  letter-spacing: -0.03em;
}

.hero-meta span {
  color: var(--muted);
  font-size: 13px;
}

.device-stage {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}

.device {
  width: 270px;
  height: 540px;
  padding: 14px;
  border-radius: 42px;
  background: linear-gradient(180deg, #2a241e, #15110e);
  box-shadow: var(--shadow), 0 0 0 1px #0003;
  transform: rotate(6deg);
}

.device-screen {
  height: 100%;
  overflow: hidden;
  border-radius: 30px;
  background: #f7f1e7;
  color: var(--ink);
}

.screen-bar {
  display: flex;
  justify-content: space-between;
  padding: 16px 16px 8px;
  font-size: 11px;
  color: var(--muted);
}

.screen-body {
  padding: 8px 16px 18px;
}

.screen-body h3 {
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.task-card,
.task-chip {
  border: 1px solid #e5d9c8;
  background: #fff;
}

.task-chip {
  display: inline-block;
  margin: 12px 0 16px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  color: var(--accent);
}

.task-card {
  padding: 14px;
  border-radius: 16px;
  margin-bottom: 10px;
}

.task-card strong {
  display: block;
  font-size: 13px;
}

.task-card span {
  color: var(--muted);
  font-size: 12px;
}

.blob {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: #d9b48a55;
  filter: blur(20px);
  z-index: -1;
}

.blob-a {
  top: 30px;
  right: 20px;
}

.blob-b {
  bottom: 40px;
  left: 10px;
  background: #b24a2830;
}

section {
  position: relative;
  z-index: 1;
  padding: 88px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-head h2 {
  color: var(--ink);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-head p {
  margin-top: 14px;
  color: var(--muted);
}

.studio-grid,
.practice-grid,
.support-grid {
  display: grid;
  gap: 18px;
}

.studio-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.panel h3 {
  color: var(--ink);
  font-size: 24px;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.quote {
  background: var(--ink);
  color: #f4eadc;
}

.quote p {
  font-family: "Fraunces", serif;
  font-size: 28px;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.quote span {
  display: block;
  margin-top: 20px;
  color: #cbbba4;
  font-size: 13px;
}

.app-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.app-visual {
  min-height: 360px;
  padding: 36px;
  background:
    linear-gradient(160deg, #2f4a3d 0%, #1c1712 70%),
    var(--pine);
  color: #f6efe4;
}

.app-visual span {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 10px;
  border: 1px solid #ffffff35;
  border-radius: 999px;
  font-size: 12px;
}

.app-visual h3 {
  font-size: 42px;
  line-height: 1.1;
}

.app-copy {
  padding: 36px;
}

.app-copy ul {
  margin: 20px 0 28px;
  padding: 0;
  list-style: none;
}

.app-copy li {
  position: relative;
  padding: 8px 0 8px 22px;
  color: var(--text);
}

.app-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.practice-grid {
  grid-template-columns: repeat(3, 1fr);
}

.practice-grid article {
  min-height: 230px;
}

.practice-grid small {
  display: block;
  margin-bottom: 28px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.support-grid {
  grid-template-columns: 1fr 1fr;
}

details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 600;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

details p {
  margin-top: 8px;
  color: var(--muted);
}

.contact-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.email-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.email-row code {
  font-size: 16px;
  color: var(--ink);
}

.legal {
  background: color-mix(in srgb, var(--bg-deep) 70%, white);
}

.legal-wrap {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
}

.legal-nav {
  position: sticky;
  top: calc(var(--header) + 18px);
  align-self: start;
  display: grid;
  gap: 10px;
}

.legal-nav a {
  color: var(--muted);
  font-size: 14px;
}

.legal-nav a:hover,
.legal-nav a.is-active {
  color: var(--ink);
}

.legal-block + .legal-block {
  margin-top: 56px;
}

.legal-block h2 {
  color: var(--ink);
  font-size: 36px;
  margin-bottom: 8px;
}

.legal-date {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 24px;
}

.legal-block h3 {
  margin: 22px 0 8px;
  color: var(--ink);
  font-size: 18px;
}

.legal-block p,
.legal-block li {
  color: var(--text);
  font-size: 15px;
}

.legal-block ul {
  padding-left: 18px;
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.mobile-nav {
  display: none;
}

@media (max-width: 900px) {
  .hero-grid,
  .studio-grid,
  .app-card,
  .practice-grid,
  .support-grid,
  .legal-wrap {
    grid-template-columns: 1fr;
  }

  .nav,
  .header-actions .button {
    display: none;
  }

  .brand {
    white-space: nowrap;
    font-size: 15px;
  }

  .lang-toggle,
  .menu-toggle {
    min-width: 38px;
    height: 38px;
  }

  .menu-toggle,
  .mobile-nav.is-open {
    display: block;
  }

  .mobile-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header);
    display: none;
    padding: 12px 24px 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .mobile-nav a {
    display: block;
    padding: 12px 0;
  }

  .device {
    transform: none;
  }

  .device-stage {
    min-height: 480px;
  }

  .legal-nav {
    position: static;
    grid-template-columns: repeat(2, 1fr);
  }

  section {
    padding: 64px 0;
  }
}

@media (max-width: 640px) {
  .shell,
  .header-inner {
    width: calc(100% - 32px);
  }

  .hero-meta {
    flex-direction: column;
    gap: 14px;
  }

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

:focus-visible {
  outline: 3px solid #d08a68;
  outline-offset: 3px;
}
