:root {
  --color-bg: #ffffff;
  --color-panel: #f6f6f8;
  --color-panel-rose: #fbeef4;
  --color-border: #e4e4ea;
  --color-accent: #b5206c;
  --color-accent-dark: #86154f;
  --color-honey: #f4a51c;
  --color-text: #1c1626;
  --color-text-muted: #5d5868;
  --color-success: #178a5c;
  --color-warn: #d98a00;
  --color-error: #d13b3b;
  --color-on-dark: #ffffff;
  --color-canvas-a: #f6c6db;
  --color-canvas-b: #f1a4c3;
  --color-canvas-c: #f7b56e;
  --color-canvas-d: #f9cd93;
  --color-device: #17141d;
  --color-screen-a: #ece4f8;
  --color-screen-b: #ffffff;
  --color-screen-ink: rgba(134, 21, 79, 0.72);
  --color-screen-rule: rgba(134, 21, 79, 0.14);
  --color-canvas-light: rgba(255, 255, 255, 0.55);
  --color-glass: rgba(255, 255, 255, 0.62);
  --color-glass-stroke: rgba(181, 32, 108, 0.38);
  --color-glass-highlight: rgba(255, 255, 255, 0.95);
  --color-strip: rgba(255, 255, 255, 0.58);
  --color-strip-stroke: rgba(255, 255, 255, 0.75);
  --color-divider: rgba(28, 22, 38, 0.16);
  --color-dot-ring: rgba(255, 255, 255, 0.70);
  --color-device-edge: rgba(255, 255, 255, 0.55);
  --color-shadow-soft: rgba(28, 22, 38, 0.24);
  --color-shadow-soft-2: rgba(28, 22, 38, 0.12);
  --color-shadow-float: rgba(28, 22, 38, 0.34);
  --color-shadow-float-2: rgba(28, 22, 38, 0.16);
  --color-shadow-phone: rgba(70, 10, 40, 0.55);
  --color-shadow-phone-2: rgba(28, 22, 38, 0.36);
  --color-shadow-button: rgba(28, 22, 38, 0.50);
  --color-shadow-button-light: rgba(28, 22, 38, 0.28);
  --color-overlay: rgba(28, 22, 38, 0.38);
  --color-focus: rgba(181, 32, 108, 0.24);
  --color-table-stripe: rgba(246, 246, 248, 0.72);
  --gradient-canvas: linear-gradient(108deg, var(--color-canvas-a) 0%, var(--color-canvas-b) 34%, var(--color-canvas-c) 74%, var(--color-canvas-d) 100%);
  --gradient-accent: linear-gradient(135deg, var(--color-accent) 0%, var(--color-honey) 100%);
  --gradient-screen: linear-gradient(180deg, var(--color-screen-a) 0%, var(--color-screen-b) 62%);
  --font-display: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-card: 28px;
  --radius-card-lg: 32px;
  --radius-hero: 56px;
  --radius-pill: 999px;
  --shadow-soft: 0 24px 60px -26px var(--color-shadow-soft), 0 8px 22px -12px var(--color-shadow-soft-2);
  --shadow-float: 0 30px 60px -28px var(--color-shadow-float), 0 12px 24px -12px var(--color-shadow-float-2);
  --shadow-phone: 0 70px 100px -44px var(--color-shadow-phone), 0 26px 44px -22px var(--color-shadow-phone-2);
  --shadow-button: 0 16px 30px -16px var(--color-shadow-button);
  --shadow-button-light: 0 16px 30px -18px var(--color-shadow-button-light);
  --content-width: 1180px;
  --reading-width: 820px;
  --header-width: 1280px;
  --header-height: 76px;
  --gutter: 64px;
  --section-space: 112px;
  --transition-fast: 180ms ease;
  --transition-reveal: 680ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html.nav-open {
  overflow: hidden;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main,
section,
article,
aside,
header,
footer,
nav,
div {
  min-width: 0;
}

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

img {
  height: auto;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

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

a,
button,
summary {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

::selection {
  background: var(--color-panel-rose);
  color: var(--color-accent-dark);
}

.wrap {
  width: 100%;
  max-width: calc(var(--content-width) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.reading-wrap {
  width: 100%;
  max-width: calc(var(--reading-width) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.header-wrap {
  width: 100%;
  max-width: min(100%, calc(var(--header-width) + var(--gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.nowrap-term {
  white-space: nowrap;
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 800;
  text-wrap: balance;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(34px, 3.4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.018em;
}

h3 {
  margin-bottom: 14px;
  font-size: clamp(21px, 2vw, 26px);
  line-height: 1.28;
  letter-spacing: -0.012em;
}

h4 {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.4;
}

p,
ul,
ol,
dl,
blockquote,
pre,
table {
  margin-top: 0;
  margin-bottom: 1.25em;
}

p:last-child,
ul:last-child,
ol:last-child,
dl:last-child,
blockquote:last-child,
pre:last-child,
table:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 800;
}

small {
  color: var(--color-text-muted);
}

code,
kbd,
samp {
  font-family: var(--font-mono);
}

:not(pre) > code {
  padding: 0.14em 0.42em;
  border-radius: var(--radius-sm);
  background: var(--color-panel);
  color: var(--color-accent-dark);
  overflow-wrap: anywhere;
}

pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-device);
  color: var(--color-on-dark);
  font-family: var(--font-mono);
  line-height: 1.65;
  -webkit-overflow-scrolling: touch;
}

pre code {
  white-space: pre;
}

.prose {
  color: var(--color-text);
}

.prose > * {
  max-width: 100%;
}

.prose h2 {
  margin-top: 2.4em;
  scroll-margin-top: calc(var(--header-height) + 28px);
}

.prose h3 {
  margin-top: 1.9em;
  scroll-margin-top: calc(var(--header-height) + 28px);
}

.prose a:not(.button):not(.app-store-button) {
  color: var(--color-accent-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.prose li + li {
  margin-top: 0.45em;
}

.section {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}

.section-rose {
  overflow-x: clip;
  border-radius: var(--radius-hero);
  background: var(--color-panel-rose);
  color: var(--color-text);
}

.section-panel {
  overflow-x: clip;
  border-radius: var(--radius-hero);
  background: var(--color-panel);
  color: var(--color-text);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 48px;
}

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

.kicker::before {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-dot-ring);
  content: "";
}

.lede {
  max-width: 700px;
  color: var(--color-text-muted);
  font-size: 18px;
  line-height: 1.72;
}

.text-accent {
  color: var(--color-accent-dark);
}

.text-muted {
  color: var(--color-text-muted);
}

.card {
  min-width: 0;
  padding: 30px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-bg);
  color: var(--color-text);
  box-shadow: var(--shadow-soft);
}

.card-soft {
  min-width: 0;
  padding: 30px;
  border-radius: var(--radius-card);
  background: var(--color-panel);
  color: var(--color-text);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.panel-stack {
  position: relative;
  overflow-x: clip;
}

.panel-stack::before {
  position: absolute;
  inset: 12% 6% 8% 22%;
  z-index: -1;
  border-radius: 38% 62% 58% 42%;
  background: var(--gradient-accent);
  content: "";
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.button svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

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

.button-primary {
  background: var(--color-text);
  color: var(--color-on-dark);
  box-shadow: var(--shadow-button);
}

.button-secondary {
  border-color: var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  box-shadow: var(--shadow-button-light);
}

.button-accent {
  background: var(--color-accent-dark);
  color: var(--color-on-dark);
  box-shadow: var(--shadow-button);
}

.button[aria-disabled="true"],
.button:disabled {
  opacity: 0.55;
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
}

.site-header__row {
  display: flex;
  height: var(--header-height);
  align-items: center;
  gap: 30px;
}

.site-brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
}

.site-brand__logo {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 11px;
}

.site-brand__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.desktop-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
  color: var(--color-text);
}

.desktop-nav a[aria-current="page"] {
  font-weight: 800;
}

.header-tools {
  position: relative;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
}

.language-button,
.menu-button {
  min-height: 44px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-panel);
  color: var(--color-text);
}

.language-button {
  display: inline-flex;
  min-width: 116px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding-inline: 16px;
  font-size: 14px;
  font-weight: 700;
}

.language-button__short {
  display: none;
}

.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 130;
  width: 180px;
  padding: 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-text);
  box-shadow: var(--shadow-float);
}

.language-menu[hidden] {
  display: none;
}

.language-menu a {
  display: flex;
  min-height: 44px;
  width: 100%;
  align-items: center;
  padding-inline: 13px;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 650;
}

.language-menu a:hover,
.language-menu a[aria-current="true"] {
  background: var(--color-panel);
  color: var(--color-text);
}

.menu-button {
  display: none;
  min-width: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.menu-button__lines,
.menu-button__lines::before,
.menu-button__lines::after {
  width: 19px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--color-text);
}

.menu-button__lines {
  position: relative;
}

.menu-button__lines::before,
.menu-button__lines::after {
  position: absolute;
  left: 0;
  content: "";
}

.menu-button__lines::before {
  top: -6px;
}

.menu-button__lines::after {
  top: 6px;
}

.mobile-nav {
  display: none;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav__group {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-nav a {
  display: flex;
  min-height: 48px;
  width: 100%;
  align-items: center;
  padding-inline: var(--gutter);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  font-weight: 700;
}

.mobile-nav__label {
  padding: 18px var(--gutter) 8px;
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.mobile-nav-veil {
  display: none;
}

.site-footer {
  margin-top: var(--section-space);
  padding-top: 72px;
  padding-bottom: 28px;
  border-radius: var(--radius-hero) var(--radius-hero) 0 0;
  background: var(--color-panel-rose);
  color: var(--color-text);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) repeat(3, minmax(160px, 0.8fr));
  gap: 48px;
}

.footer-brand {
  max-width: 390px;
}

.footer-brand .site-brand {
  margin-bottom: 18px;
}

.footer-brand p {
  color: var(--color-text-muted);
}

.footer-title {
  margin-bottom: 14px;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 800;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li + li {
  margin-top: 9px;
}

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

.footer-links a:hover {
  color: var(--color-text);
}

.footer-legal {
  display: flex;
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--color-text-muted);
  font-size: 13px;
}

.footer-legal p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-reveal), transform var(--transition-reveal);
}

.reveal.shown {
  opacity: 1;
  transform: translateY(0);
}

.tilt-left {
  transform: rotate(-0.45deg);
}

.tilt-right {
  transform: rotate(0.45deg);
}

.decorated-section {
  position: relative;
  overflow-x: clip;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-bg);
  color: var(--color-text);
}

th,
td {
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--color-panel);
  color: var(--color-text);
  font-weight: 800;
}

tbody tr:nth-child(even) {
  background: var(--color-table-stripe);
  color: var(--color-text);
}

@media (max-width: 1180px) {
  :root {
    --gutter: 40px;
    --section-space: 92px;
  }

  .desktop-nav {
    gap: 18px;
  }

  .desktop-nav a {
    font-size: 13px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .desktop-nav,
  .language-menu {
    display: none;
  }

  .header-tools {
    margin-left: auto;
  }

  .language-button {
    min-width: 108px;
  }

  .menu-button {
    display: inline-flex;
  }

  .mobile-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    z-index: 120;
    display: block;
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text);
    box-shadow: var(--shadow-float);
    overscroll-behavior: contain;
  }

  .mobile-nav-veil {
    position: fixed;
    inset: var(--header-height) 0 0;
    z-index: 90;
    display: block;
    border: 0;
    background: var(--color-overlay);
  }

  .mobile-nav-veil[hidden] {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --gutter: 22px;
    --section-space: 76px;
    --radius-hero: 38px;
  }

  h1 {
    font-size: clamp(24px, 7.5vw, 30px);
    line-height: 1.14;
    letter-spacing: -0.015em;
  }

  h2 {
    font-size: clamp(25px, 6.8vw, 32px);
  }

  .lede {
    font-size: 16px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
    --header-height: 68px;
  }

  .site-header,
  .site-header__row {
    height: var(--header-height);
  }

  .site-brand__logo {
    width: 34px;
    height: 34px;
  }

  .site-brand {
    min-width: 0;
    flex-shrink: 1;
  }

  .site-brand__name {
    min-width: 0;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-tools {
    margin-left: auto;
  }

  .language-button {
    min-width: 50px;
    padding-inline: 12px;
  }

  .language-button__full {
    display: none;
  }

  .language-button__short {
    display: inline;
  }

  .button-row {
    align-items: stretch;
  }

  .button-row .button {
    flex: 1 1 150px;
  }

  .card,
  .card-soft {
    padding: 22px;
  }

  .tilt-left,
  .tilt-right {
    transform: none;
  }

  .section-rose,
  .section-panel {
    border-radius: var(--radius-card-lg);
  }

  .prose > .data-table,
  .data-table {
    display: block;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 380px) {
  .site-brand__name {
    max-width: 128px;
    line-height: 1.25;
  }

  .header-tools {
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    transition-duration: 0.01ms;
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}