@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/InterVariable.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono Variable";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("/assets/fonts/JetBrainsMonoVariable.woff2") format("woff2");
}

:root {
  --font-sans: "Inter Variable", "Inter", "MiSans VF", "MiSans", "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans CJK SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: "JetBrains Mono Variable", "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --bg: #FAFBFD;
  --bg-soft: #F2F5FA;
  --ink: #141923;
  --ink-2: #525E70;
  --ink-3: #838E9E;
  --line: rgba(20, 25, 35, 0.08);
  --accent: #2564CF;
  --accent-hover: #1C51AC;
  --dark-bg: #0E1726;
  --dark-line: rgba(255, 255, 255, 0.09);
  --radius-md: 14px;
  --radius-lg: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  font-feature-settings: "cv02" 1, "cv03" 1, "cv04" 1, "cv11" 1;
  font-optical-sizing: auto;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }

.container {
  width: min(1080px, calc(100% - 48px));
  margin-inline: auto;
}

/* Top Reading Progress Line */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  z-index: 100;
  pointer-events: none;
  transition: width 0.08s linear;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 251, 253, 0.84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-name {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1;
  font-feature-settings: "cv05" 1, "ss01" 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  color: var(--ink-2);
}

.site-nav a { transition: color 0.14s ease; }
.site-nav a:hover { color: var(--ink); }

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

.lang-dropdown {
  position: relative;
}

.lang-btn {
  height: 34px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.14s ease, color 0.14s ease, transform 0.1s ease, border-color 0.14s ease;
}

.lang-btn:hover,
.lang-btn[aria-expanded="true"] {
  background: #FFFFFF;
  color: var(--ink);
  border-color: rgba(37, 100, 207, 0.28);
}

.lang-btn:active {
  transform: scale(0.96);
}

.lang-globe-icon {
  color: var(--accent);
  flex-shrink: 0;
}

.lang-chevron-icon {
  opacity: 0.65;
  flex-shrink: 0;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 152px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 16px 38px rgba(15, 29, 54, 0.14), 0 2px 6px rgba(15, 29, 54, 0.05);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 120;
}

.lang-menu[hidden] {
  display: none !important;
}

.lang-option {
  width: 100%;
  border: none;
  background: transparent;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s ease, color 0.12s ease;
}

.lang-option:hover {
  background: rgba(37, 100, 207, 0.07);
  color: var(--ink);
}

.lang-option.is-active {
  background: rgba(37, 100, 207, 0.1);
  color: var(--accent);
  font-weight: 600;
}

.lang-check {
  opacity: 0;
  font-size: 12px;
  color: var(--accent);
}

.lang-option.is-active .lang-check {
  opacity: 1;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 10px rgba(37, 100, 207, 0.22);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 100, 207, 0.26);
}

.btn-primary:active { transform: scale(0.97); }
.btn-sm { height: 34px; padding: 0 16px; font-size: 13.5px; box-shadow: none; }
.btn-lg { height: 50px; padding: 0 32px; font-size: 15.5px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.14s ease;
}

.btn-ghost:hover { color: var(--ink); }

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero */
.hero {
  position: relative;
  padding: 82px 0 100px;
}

.hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: min(980px, 100%);
  height: 520px;
  background: radial-gradient(ellipse at 50% 25%, rgba(37, 100, 207, 0.1) 0%, rgba(37, 100, 207, 0.03) 48%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.hero-title {
  font-size: clamp(36px, 5.4vw, 60px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.hero-lead {
  margin: 22px auto 0;
  max-width: 560px;
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

.hero-cta {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Chapters & Sections */
.section {
  padding: 108px 0;
}

.section--tinted {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.dark-band {
  background: var(--dark-bg);
  color: #FFFFFF;
}

.chapter-head {
  text-align: center;
  max-width: 660px;
  margin-inline: auto;
}

.chapter-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
}

.chapter-kicker--dark {
  color: #93C5FD;
}

.section-title {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.section-title--light {
  color: #FFFFFF;
}

.section-body {
  margin: 16px auto 0;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink-2);
  max-width: 580px;
}

.section-body--light {
  color: rgba(255, 255, 255, 0.72);
}

/* Annotated Screenshot Boards (Hand-drawn Arrows + Handwritten Notes) */
.anatomy-board {
  margin-top: 48px;
  max-width: 1020px;
  margin-inline: auto;
}

.anatomy-board--hero {
  margin-top: 56px;
}

.anatomy-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: end;
}

.anatomy-row--top { margin-bottom: -6px; }
.anatomy-row--bottom { align-items: start; margin-top: -6px; }

.callout {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--callout-ink, var(--accent));
}

/* Restrained Editorial Stationery Ink Palette (Light Mode) */
.callout--cobalt { --callout-ink: #2564CF; }
.callout--sage   { --callout-ink: #1F7A4D; }
.callout--amber  { --callout-ink: #B4690E; }
.callout--indigo { --callout-ink: #5B4FD9; }
.callout--rose   { --callout-ink: #B84A6E; }

/* Luminous Restrained Ink Palette (Dark Band) */
.callout--dark-sky    { --callout-ink: #93C5FD; }
.callout--dark-indigo { --callout-ink: #C4B5FD; }
.callout--dark-mint   { --callout-ink: #6EE7B7; }
.callout--dark-gold   { --callout-ink: #FCD34D; }

.callout--tl { align-items: flex-start; padding-left: 6%; }
.callout--tr { align-items: flex-start; padding-left: 16%; }
.callout--bl { align-items: flex-start; padding-left: 4%; }
.callout--br { align-items: flex-end; text-align: right; padding-right: 6%; }

.callout-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.callout-title {
  font-family: "Kaiti SC", "STKaiti", "Bradley Hand", "Segoe Print", "Marker Felt", cursive;
  font-size: 17.5px;
  font-weight: 600;
  color: var(--callout-ink, var(--ink));
  letter-spacing: 0.01em;
  display: inline-block;
}

.callout--tl .callout-title,
.callout--br .callout-title {
  transform: rotate(-1deg);
}

.callout--tr .callout-title,
.callout--bl .callout-title {
  transform: rotate(0.8deg);
}

.callout-desc {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.5;
}

.callout-desc--dark {
  color: rgba(255, 255, 255, 0.68);
}

.hand-arrow {
  color: var(--callout-ink, var(--accent));
  opacity: 0.88;
  flex-shrink: 0;
}

.hand-arrow--tl { margin-left: 34px; }
.hand-arrow--tr { margin-left: 14px; }
.hand-arrow--bl { margin-left: 28px; }
.hand-arrow--br { margin-right: 36px; }

.anatomy-frame {
  position: relative;
  z-index: 2;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(20, 25, 35, 0.09);
  background: #E8EFF8;
  box-shadow: 0 28px 72px rgba(15, 29, 54, 0.13), 0 2px 8px rgba(15, 29, 54, 0.05);
}

.anatomy-frame--dark {
  background: #0B1320;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 32px 84px rgba(0, 0, 0, 0.55);
}

.anatomy-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* Atmosphere Flat Showcase */
.palette-bar {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(15, 29, 54, 0.04);
}

.palette-bar span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-block;
}

.wallpaper-strip {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.wp-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  background: #E2E8F0;
}

.wp-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.wp-card:hover img { transform: scale(1.04); }

.wp-card figcaption {
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-size: 12.5px;
  font-weight: 500;
  color: #FFFFFF;
  background: rgba(14, 23, 38, 0.48);
  backdrop-filter: blur(8px);
  padding: 3px 10px;
  border-radius: 999px;
}

/* Comparison */
.compare-table {
  margin-top: 40px;
  border-top: 1px solid rgba(20, 25, 35, 0.14);
}

.compare-row {
  display: grid;
  grid-template-columns: 160px 1fr 1fr;
  gap: 28px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}

.compare-row--head {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-3);
  padding: 14px 0;
}

.compare-row--head .is-wd { color: var(--accent); }
.compare-dim { font-weight: 600; color: var(--ink); }
.compare-old { color: var(--ink-3); }
.compare-wd { color: var(--ink); font-weight: 500; }

/* Platforms Spec Grid */
.spec-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.spec-item {
  padding-top: 20px;
  border-top: 1px solid rgba(20, 25, 35, 0.14);
}

.spec-label { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--accent); margin-bottom: 10px; }
.spec-item h3 { font-size: 16.5px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.spec-item p { font-size: 14px; line-height: 1.65; color: var(--ink-2); }

/* Closing & Footer */
.closing { padding: 120px 0; text-align: center; }

.closing-motto {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.closing-title {
  margin: 14px auto 32px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-3);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 600;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer-link:hover {
  color: var(--accent);
}

/* Privacy Policy Page */
.privacy-main {
  padding: 72px 0 96px;
}

.privacy-article {
  max-width: 720px;
}

.privacy-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
}

.privacy-title {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 10px;
}

.privacy-updated {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 40px;
}

.privacy-section {
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.privacy-section h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.privacy-section p,
.privacy-section li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-2);
}

.privacy-section ul {
  margin-top: 10px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Responsive */
@media (max-width: 900px) {
  .wallpaper-strip { grid-template-columns: repeat(2, 1fr); }
  .spec-grid { grid-template-columns: 1fr; }
  .compare-row { grid-template-columns: 110px 1fr 1fr; gap: 16px; }
}

@media (max-width: 640px) {
  .site-nav { display: none; }
  .hero { padding: 52px 0 68px; }
  .section { padding: 72px 0; }
  .anatomy-row {
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 0;
  }
  .anatomy-row--top { margin-bottom: 18px; }
  .anatomy-row--bottom { margin-top: 18px; }
  .callout--tl,
  .callout--tr,
  .callout--bl,
  .callout--br {
    padding: 0;
    align-items: flex-start;
    text-align: left;
  }
  .callout-title { transform: none !important; }
  .hand-arrow { display: none; }
  .wallpaper-strip,
  .compare-row { grid-template-columns: 1fr; }
  .compare-row--head { display: none; }
  .palette-bar { flex-wrap: wrap; justify-content: center; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
