@font-face {
  font-family: "FK Serif";
  src: url("fonts/noto-serif-sc-500-subset.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4f5f7;
  --white: #ffffff;
  --ink: #111622;
  --ink-soft: #2a3140;
  --muted: #5a6170;
  --line: #e3e6eb;
  --accent: #2563eb;
  --dark: #0b0f16;
  --dark-muted: #9aa2b1;
  --dark-line: rgba(255, 255, 255, 0.12);

  --serif: "FK Serif", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei",
    "Noto Sans SC", sans-serif;

  --radius-card: 16px;
  --radius-window: 10px;
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(88px, 9vw, 136px);
  --nav-h: 72px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
}

.skip:focus {
  top: 12px;
}

.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.display {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.display .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}

.display .line > span {
  display: inline-block;
}

.display-xl {
  font-size: clamp(34px, min(5vw, 7.4vh), 76px);
}

.display-lg {
  font-size: clamp(36px, 5vw, 72px);
}

.display-md {
  font-size: clamp(34px, 4.2vw, 60px);
}

/* Buttons */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease, transform 120ms ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-sm {
  min-height: 38px;
  padding: 0 18px;
  font-size: 14px;
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
}

.btn-primary:hover {
  background: #262d3c;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(17, 22, 34, 0.28);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--ink);
  background: var(--white);
}

/* Navigation */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  transition: background-color 240ms ease, box-shadow 240ms ease;
}

.nav.is-scrolled {
  background: rgba(244, 245, 247, 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 rgba(17, 22, 34, 0.06);
}

.nav.is-dark {
  background: rgba(11, 15, 22, 0.78);
  color: var(--white);
  box-shadow: 0 1px 0 var(--dark-line);
}

.nav.is-dark .btn-primary {
  background: var(--white);
  color: var(--ink);
}

.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  width: min(100% - var(--gutter) * 2, 1360px);
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-lg {
  font-size: 22px;
}

.nav-links {
  display: flex;
  gap: clamp(20px, 3vw, 44px);
  font-size: 15px;
}

.nav-links a,
.nav-text {
  opacity: 0.78;
  transition: opacity 160ms ease;
}

.nav-links a:hover,
.nav-text:hover {
  opacity: 1;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  font-size: 15px;
}

/* Hero */
.hero {
  position: relative;
  background: var(--paper);
}

.hero-stage {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-bg,
.hero-front {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  pointer-events: none;
  user-select: none;
}

.hero-bg {
  z-index: 0;
  transform-origin: 50% 70%;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(var(--nav-h) + clamp(12px, 3vh, 32px)) var(--gutter) 0;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 clamp(14px, 2.4vh, 24px);
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 0 0 1px rgba(17, 22, 34, 0.08);
  font-size: 14px;
  color: var(--ink-soft);
}

.hero-sub {
  max-width: 40em;
  margin: clamp(12px, 2vh, 20px) 0 clamp(20px, 3.2vh, 32px);
  font-size: clamp(16px, 1.35vw, 19px);
  color: var(--muted);
}

.hero-copy .actions {
  justify-content: center;
}

.hero-window {
  position: relative;
  z-index: 2;
  flex: none;
  width: min(1120px, 86vw);
  margin: clamp(20px, 3.4vh, 36px) 0 0;
  border-radius: var(--radius-window);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(17, 22, 34, 0.08), 0 24px 60px -28px rgba(17, 22, 34, 0.28);
  transform-origin: 50% 0;
}

.hero-window img {
  width: 100%;
  height: auto;
}

.hero-front {
  z-index: 3;
  inset: 7% 0 auto;
}

.hero-facts {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: clamp(36px, 5.4vh, 56px) var(--gutter) clamp(14px, 2.6vh, 28px);
  background: linear-gradient(to bottom, rgba(33, 37, 45, 0), #21252d 62%);
  text-align: center;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.76);
  pointer-events: none;
}

/* Tools */
.tools {
  padding-block: var(--section-y);
  background: var(--white);
}

.tools-grid {
  display: grid;
  grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

.tabs {
  position: relative;
  display: flex;
  gap: clamp(18px, 2.2vw, 30px);
  margin-bottom: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tabs [role="tab"] {
  flex: none;
  padding: 10px 0 14px;
  border: 0;
  background: none;
  font-size: 16px;
  color: var(--muted);
  cursor: pointer;
  transition: color 160ms ease;
}

.tabs [role="tab"]:hover {
  color: var(--ink);
}

.tabs [role="tab"][aria-selected="true"] {
  color: var(--accent);
}

.tabs [role="tab"]:focus-visible {
  outline-offset: -2px;
}

.tabs-indicator {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), width 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tools-panel {
  margin-top: clamp(24px, 3vw, 36px);
  min-height: 25rem;
}

.tools-lead {
  margin: 0;
  max-width: 30em;
  color: var(--muted);
}

.tools-count {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 28px 0 20px;
}

.tools-count .num {
  font-family: var(--serif);
  font-size: 56px;
  line-height: 1;
  color: var(--ink);
}

.tools-count .unit {
  font-size: 14px;
  color: var(--muted);
}

.tool-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tool-list li {
  min-width: 0;
}

.tool-list strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.tool-list span {
  display: block;
  margin-top: 2px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

.art {
  margin: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--paper);
}

.art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.art-tools {
  aspect-ratio: 775 / 846;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

/* Privacy */
.privacy {
  position: relative;
  overflow: hidden;
  padding-block: clamp(120px, 13vw, 184px) clamp(180px, 18vw, 260px);
  background: var(--dark);
  color: var(--white);
  text-align: center;
}

.privacy-paper {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  min-height: 160px;
  object-fit: cover;
  object-position: center top;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40%);
  mask-image: linear-gradient(to bottom, transparent, #000 40%);
  pointer-events: none;
}

.privacy-inner {
  position: relative;
}

.privacy .display {
  color: var(--white);
}

.privacy .line-muted {
  color: #a7afbd;
}

.privacy-sub {
  max-width: 38em;
  margin: 28px auto 0;
  font-size: clamp(16px, 1.3vw, 18px);
  color: var(--dark-muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 760px;
  margin: clamp(56px, 6vw, 80px) auto 0;
}

.stat {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 6px;
  padding: 4px 16px;
}

.stat + .stat {
  border-left: 1px solid var(--dark-line);
}

.stat dt {
  font-size: 15px;
  color: var(--dark-muted);
}

.stat dd {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(48px, 5vw, 68px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat dd .dot {
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  width: 9px;
  height: 9px;
}

/* Closing */
.closing {
  padding-block: var(--section-y) clamp(56px, 6vw, 88px);
  background: var(--white);
}

.closing-grid {
  display: grid;
  grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.closing-sub {
  margin: 24px 0 32px;
  font-size: clamp(16px, 1.3vw, 18px);
  color: var(--muted);
}

.closing-meta {
  margin: 24px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.closing-meta a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: rgba(17, 22, 34, 0.28);
  text-underline-offset: 3px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.closing-meta a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.art-closing {
  aspect-ratio: 746 / 535;
}

/* Footer */
.footer {
  padding-block: clamp(48px, 5vw, 72px) 40px;
  background: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 48px;
}

.footer-brand p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.footer-brand .status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 14px;
}

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

.footer-cols h3 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
}

.footer-cols a {
  display: block;
  width: fit-content;
  padding: 3px 0;
  font-size: 14.5px;
  color: var(--muted);
  transition: color 160ms ease;
}

.footer-cols a:hover {
  color: var(--ink);
}

.copyright {
  grid-column: 1 / -1;
  margin: 24px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .nav-inner {
    grid-template-columns: 1fr auto;
  }

  .tools-grid,
  .closing-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .art-tools {
    position: relative;
    top: auto;
    aspect-ratio: 4 / 3;
    order: -1;
  }

  .art-tools img {
    object-position: center 40%;
  }

  .tools-panel {
    min-height: 0;
  }

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

@media (max-width: 600px) {
  :root {
    --nav-h: 60px;
  }

  .nav-text {
    display: none;
  }

  .hero-stage {
    min-height: 600px;
  }

  .hero-window {
    width: 92vw;
  }

  .hero-facts {
    font-size: 13px;
    line-height: 1.6;
  }

  .tool-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .stats {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    max-width: 260px;
  }

  .stat + .stat {
    border-left: 0;
    border-top: 1px solid var(--dark-line);
    padding-top: 32px;
  }

  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 32px;
  }

  .actions .btn {
    flex: 1 1 auto;
  }
}
