/* ==========================================================================
   搜狗输入法 · 全站样式 — main.css
   Author: Site Engineering
   ========================================================================== */

:root {
  --brand: #ff5a1f;
  --brand-strong: #e8460c;
  --brand-soft: #fff0e7;
  --brand-softer: #fff8f3;
  --ink: #121b2e;
  --ink-2: #29344a;
  --muted: #677187;
  --muted-2: #8d96a8;
  --line: #ece6e0;
  --line-strong: #ddd4cc;
  --surface: #ffffff;
  --surface-2: #fffaf6;
  --surface-3: #f7f2ed;
  --dark: #0f1a2d;
  --blue: #246bfd;
  --green: #16a97a;
  --shadow-sm: 0 6px 18px rgba(27, 21, 16, 0.06);
  --shadow-md: 0 18px 44px rgba(27, 21, 16, 0.09);
  --shadow-lg: 0 34px 80px rgba(45, 28, 17, 0.14);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --container: 1180px;
  --header-h: 76px;
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans SC", Arial, sans-serif;
  --font-mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono",
    monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

[hidden] {
  display: none !important;
}

img {
  height: auto;
}

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

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

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin-top: 0;
}

ul,
ol {
  padding-left: 1.25em;
}

::selection {
  color: #fff;
  background: var(--brand);
}

:focus-visible {
  outline: 3px solid rgba(255, 90, 31, 0.4);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 18px;
  color: #fff;
  background: var(--dark);
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* --------------------------------------------------------------------------
   Buttons, labels and shared elements
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 11px 24px;
  font-weight: 650;
  line-height: 1.35;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn svg {
  flex: none;
  width: 18px;
  height: 18px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #ff7438 0%, var(--brand) 55%, #f0490d 100%);
  box-shadow: 0 12px 26px rgba(240, 73, 13, 0.26);
}

.btn--primary:hover {
  box-shadow: 0 16px 34px rgba(240, 73, 13, 0.32);
}

.btn--ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  background: #fff;
  border-color: #cdbfb4;
}

.btn--dark {
  color: #fff;
  background: var(--dark);
  box-shadow: 0 12px 26px rgba(15, 26, 45, 0.2);
}

.btn--dark:hover {
  background: #172540;
}

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

.btn--lg {
  min-height: 54px;
  padding: 14px 28px;
  font-size: 16px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--brand-strong);
  font-weight: 650;
  white-space: nowrap;
}

.text-link svg {
  width: 17px;
  height: 17px;
  transition: transform 0.2s ease;
}

.text-link:hover svg {
  transform: translateX(3px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  margin-bottom: 22px;
  color: var(--brand-strong);
  background: rgba(255, 90, 31, 0.09);
  border: 1px solid rgba(255, 90, 31, 0.16);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.eyebrow__dot {
  width: 7px;
  height: 7px;
  background: var(--brand);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.12);
}

.kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section {
  padding: 92px 0;
}

.section--tint {
  background:
    radial-gradient(circle at 8% 20%, rgba(255, 119, 54, 0.055), transparent 38%),
    var(--surface-2);
  border-block: 1px solid rgba(236, 230, 224, 0.66);
}

.section-head {
  max-width: 680px;
  margin-bottom: 42px;
}

.section-head.is-center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  margin-bottom: 13px;
  font-size: clamp(28px, 3.3vw, 42px);
  line-height: 1.22;
  letter-spacing: -0.025em;
}

.section-head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16.5px;
}

.section-head--row {
  display: flex;
  max-width: none;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-head--row > div {
  max-width: 680px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--header-h);
  background: rgba(255, 253, 251, 0.86);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease,
    background-color 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 253, 251, 0.96);
  border-color: rgba(232, 224, 216, 0.86);
  box-shadow: 0 8px 30px rgba(25, 20, 16, 0.05);
}

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

.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
}

.brand__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(240, 73, 13, 0.18);
}

.brand__copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__copy strong {
  font-size: 18px;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.brand__copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
}

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

.main-nav > a:not(.btn) {
  position: relative;
  padding: 9px 14px;
  color: #4c566b;
  font-size: 14.5px;
  font-weight: 560;
  border-radius: 8px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.main-nav > a:not(.btn):hover {
  color: var(--ink);
  background: rgba(28, 36, 52, 0.045);
}

.main-nav > a.is-active {
  color: var(--brand-strong);
  font-weight: 700;
}

.main-nav > a.is-active::after {
  position: absolute;
  right: 14px;
  bottom: 2px;
  left: 14px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  content: "";
}

.nav-divider {
  width: 1px;
  height: 22px;
  margin: 0 8px;
  background: var(--line);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Home hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 0;
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 196, 151, 0.3), transparent 30%),
    radial-gradient(circle at 89% 26%, rgba(255, 229, 212, 0.68), transparent 36%),
    linear-gradient(180deg, #fffaf6 0%, #fffdfb 78%);
}

.hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(79, 55, 39, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 55, 39, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 75%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 75%);
  content: "";
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(400px, 0.98fr);
  align-items: center;
  gap: 54px;
  padding-bottom: 64px;
}

.hero__content {
  max-width: 620px;
}

.hero h1 {
  margin-bottom: 22px;
  font-size: clamp(42px, 5.2vw, 68px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.045em;
}

.hero h1 .text-gradient {
  position: relative;
  display: inline-block;
  color: transparent;
  background: linear-gradient(100deg, #ff7438 4%, #ff4b10 52%, #e53c04 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero h1 .text-gradient::after {
  position: absolute;
  right: 2%;
  bottom: 2px;
  left: 3%;
  height: 9px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='12' viewBox='0 0 320 12'%3E%3Cpath d='M3 9.5C89 2.6 219 2 317 7.7' stroke='%23ff7a3c' stroke-width='5' stroke-linecap='round' fill='none' opacity='.35'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  content: "";
}

.hero__lead {
  max-width: 545px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 17.5px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-bottom: 26px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 0;
  margin: 0;
  color: #5b6579;
  font-size: 13.5px;
  list-style: none;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-points svg {
  width: 16px;
  height: 16px;
  color: var(--green);
}

/* IME scene */

.hero__visual {
  position: relative;
  min-width: 0;
}

.ime-scene {
  position: relative;
  padding: 22px 12px 28px;
}

.ime-scene::before {
  position: absolute;
  inset: 2% 2% 7% 7%;
  background: linear-gradient(135deg, rgba(255, 111, 47, 0.22), rgba(255, 209, 177, 0.2));
  border-radius: 42% 58% 60% 40% / 42% 34% 66% 58%;
  filter: blur(10px);
  content: "";
}

.ime-glow {
  position: absolute;
  top: 18%;
  right: -8%;
  width: 240px;
  height: 240px;
  background: rgba(255, 144, 84, 0.26);
  border-radius: 50%;
  filter: blur(50px);
}

.ime-window {
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.91);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  box-shadow: var(--shadow-lg), inset 0 1px 0 #fff;
  transform: rotate(-1.3deg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.ime-window__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 17px;
  background: #fbf8f5;
  border-bottom: 1px solid #f0eae4;
  color: #89909e;
  font-size: 11.5px;
}

.ime-window__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.ime-window__title::before {
  width: 7px;
  height: 7px;
  background: var(--brand);
  border-radius: 50%;
  content: "";
}

.window-dots {
  display: flex;
  gap: 5px;
}

.window-dots i {
  display: block;
  width: 7px;
  height: 7px;
  background: #ddd5cd;
  border-radius: 50%;
}

.ime-window__body {
  min-height: 180px;
  padding: 34px 28px 26px;
  background:
    linear-gradient(180deg, #fff, #fffcf9);
}

.type-line {
  display: flex;
  min-height: 33px;
  align-items: center;
  gap: 4px;
  color: #233047;
  font-size: 18px;
  font-weight: 560;
  letter-spacing: 0.02em;
}

.type-line--muted {
  color: #bcc2cc;
  font-weight: 400;
}

.type-caret {
  display: inline-block;
  width: 2px;
  height: 24px;
  background: var(--brand);
  border-radius: 2px;
  animation: caret-blink 1.2s step-end infinite;
}

@keyframes caret-blink {
  0%,
  55% {
    opacity: 1;
  }
  56%,
  100% {
    opacity: 0;
  }
}

.ime-panel {
  position: relative;
  z-index: 3;
  margin: -2px 16px 16px;
  padding: 14px 16px 12px;
  background: #fff;
  border: 1px solid #efe8e2;
  border-radius: 17px;
  box-shadow: 0 14px 34px rgba(38, 23, 13, 0.11);
}

.ime-panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.ime-code {
  color: var(--brand-strong);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
}

.ime-brand {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #9a928a;
  font-size: 10.5px;
}

.ime-brand img {
  width: 15px;
  height: 15px;
  border-radius: 4px;
}

.ime-candidates {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 11px;
}

.candidate {
  padding: 5px 9px;
  color: #344057;
  background: #f9f6f3;
  border-radius: 6px;
  font-size: 12.5px;
}

.candidate.is-active {
  color: #fff;
  background: var(--brand);
}

.ime-tools {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-top: 9px;
  color: #a7a099;
  border-top: 1px solid #f3efeb;
  font-size: 10px;
}

.ime-tools span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ime-tools svg {
  width: 12px;
  height: 12px;
}

.float-chip {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 13px;
  box-shadow: 0 13px 30px rgba(46, 27, 14, 0.13);
  color: #354056;
  font-size: 12px;
  font-weight: 650;
  animation: float-soft 5s ease-in-out infinite;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.float-chip__icon {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: var(--brand-strong);
  background: var(--brand-soft);
  border-radius: 8px;
}

.float-chip__icon svg {
  width: 15px;
  height: 15px;
}

.float-chip--one {
  top: 9%;
  right: -3%;
}

@keyframes float-soft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.hero-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #f0e7df;
  border-radius: 20px;
  box-shadow: 0 22px 54px rgba(40, 26, 17, 0.09);
}

.stat {
  position: relative;
  padding: 23px 26px;
}

.stat + .stat::before {
  position: absolute;
  top: 26%;
  bottom: 26%;
  left: 0;
  width: 1px;
  background: var(--line);
  content: "";
}

.stat strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.stat strong em {
  color: var(--brand);
  font-style: normal;
}

.stat span {
  color: var(--muted);
  font-size: 12.5px;
}

/* --------------------------------------------------------------------------
   Features
   -------------------------------------------------------------------------- */

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

.feature-card {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 0.28s ease, box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.feature-card:hover {
  border-color: #e2d4c8;
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.feature-card--wide {
  grid-column: span 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 25%, rgba(255, 144, 86, 0.42), transparent 30%),
    linear-gradient(135deg, #19243b 0%, #0f1a2d 64%);
  border-color: #1a253b;
}

.feature-card--wide::after {
  position: absolute;
  top: -110px;
  right: -40px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  box-shadow: 0 0 0 40px rgba(255, 255, 255, 0.025),
    0 0 0 82px rgba(255, 255, 255, 0.02);
  content: "";
}

.feature-card__content {
  position: relative;
  z-index: 2;
  max-width: 380px;
}

.feature-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  place-items: center;
  color: var(--brand-strong);
  background: var(--brand-soft);
  border-radius: 13px;
}

.feature-icon svg {
  width: 23px;
  height: 23px;
}

.feature-card--wide .feature-icon {
  color: #ffd1b8;
  background: rgba(255, 255, 255, 0.1);
}

.feature-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.feature-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

.feature-card--wide h3 {
  font-size: 24px;
}

.feature-card--wide p {
  max-width: 430px;
  color: #b8c1d2;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.feature-tags li {
  padding: 5px 10px;
  color: #cad2df;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-size: 11.5px;
}

.keyboard-art {
  position: relative;
  z-index: 2;
  flex: none;
  width: 230px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  transform: rotate(5deg);
}

.keyboard-art__row {
  display: flex;
  gap: 5px;
}

.keyboard-art__row + .keyboard-art__row {
  margin-top: 5px;
}

.keyboard-art__row i {
  display: block;
  height: 24px;
  flex: 1;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 5px;
}

.keyboard-art__row i.is-accent {
  background: var(--brand);
  box-shadow: 0 0 16px rgba(255, 90, 31, 0.4);
}

.keyboard-art__row i.is-wide {
  flex: 2.2;
}

.feature-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 22px;
  color: #ffc4a5;
  font-size: 12px;
  font-weight: 600;
}

.feature-note svg {
  width: 14px;
  height: 14px;
}

.feature-card--cta {
  grid-column: span 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background:
    radial-gradient(circle at 86% 24%, rgba(255, 255, 255, 0.75), transparent 25%),
    linear-gradient(120deg, #fff3e9 0%, #fff9f4 56%, #ffe9d9 100%);
  border-color: #f2d9c8;
}

.feature-card--cta:hover {
  border-color: #ecc9b2;
}

.feature-card--cta .feature-card__content {
  max-width: 520px;
}

.feature-card--cta .feature-note {
  margin: 0 0 15px;
  color: var(--brand-strong);
}

.feature-card--cta h3 {
  margin-bottom: 7px;
  font-size: 24px;
}

.feature-card--cta p {
  margin-bottom: 19px;
}

.feature-card--cta .btn {
  border: 0;
}

.cta-orbit {
  position: relative;
  display: grid;
  width: 155px;
  height: 155px;
  flex: none;
  place-items: center;
}

.cta-orbit img {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  box-shadow: 0 12px 25px rgba(219, 77, 22, 0.22);
}

.cta-orbit__ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 111, 47, 0.17);
  border-radius: 50%;
}

.cta-orbit__ring--two {
  inset: 23px;
  border-color: rgba(255, 111, 47, 0.25);
  border-style: dashed;
}

/* --------------------------------------------------------------------------
   Article cards
   -------------------------------------------------------------------------- */

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

.post-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: transform 0.28s ease, box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.post-card:hover {
  border-color: #e1d5ca;
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.post-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--surface-3);
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.post-card:hover .post-card__media img {
  transform: scale(1.045);
}

.post-card__badge {
  position: absolute;
  top: 13px;
  left: 13px;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  color: #fff;
  background: rgba(15, 26, 45, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.post-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 21px 22px;
}

.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
  color: var(--muted-2);
  font-size: 11.5px;
}

.post-card__meta .meta-dot {
  width: 3px;
  height: 3px;
  background: #cfc6bd;
  border-radius: 50%;
}

.post-card h3 {
  margin-bottom: 8px;
  font-size: 17.5px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.012em;
}

.post-card h3 a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color 0.2s ease;
}

.post-card h3 a:hover {
  color: var(--brand-strong);
}

.post-card__desc {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.72;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.post-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 13px;
  margin-top: auto;
  border-top: 1px solid #f3eee9;
}

.post-card__read {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 650;
}

.post-card__read svg {
  width: 14px;
  height: 14px;
}

.post-card__more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 600;
}

.post-card__more svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.post-card:hover .post-card__more svg {
  transform: translateX(2px);
}

.articles-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 28px;
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.articles-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.articles-footer strong {
  color: var(--ink);
}

/* Empty state */

.empty-state {
  grid-column: 1 / -1;
  padding: 52px 28px;
  text-align: center;
  background: #fff;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
}

.empty-state__icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  place-items: center;
  color: var(--brand-strong);
  background: var(--brand-soft);
  border-radius: 16px;
}

.empty-state__icon svg {
  width: 25px;
  height: 25px;
}

.empty-state h3 {
  margin-bottom: 6px;
  font-size: 18px;
}

.empty-state p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   Download CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  position: relative;
  overflow: hidden;
  padding: 64px;
  background:
    radial-gradient(circle at 84% 10%, rgba(255, 140, 79, 0.32), transparent 32%),
    linear-gradient(130deg, #17233a 0%, #0e182a 72%);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.cta-band::before {
  position: absolute;
  right: -60px;
  bottom: -120px;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 56px rgba(255, 255, 255, 0.035),
    0 0 0 118px rgba(255, 255, 255, 0.02);
  content: "";
}

.cta-band__content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.cta-band h2 {
  margin-bottom: 14px;
  color: #fff;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.cta-band p {
  max-width: 520px;
  margin-bottom: 28px;
  color: #b7c2d4;
  font-size: 16px;
}

.cta-band .btn--ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
}

.cta-band .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

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

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  color: #aab4c5;
  background: var(--dark);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 1.7fr) repeat(3, 0.7fr);
  gap: 48px;
  padding: 62px 0 48px;
}

.footer-brand .brand {
  margin-bottom: 16px;
}

.footer-brand .brand__copy strong {
  color: #fff;
}

.footer-brand .brand__copy small {
  color: #7f8ca1;
}

.footer-brand p {
  max-width: 330px;
  margin-bottom: 20px;
  color: #8996aa;
  font-size: 13px;
  line-height: 1.8;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  color: #c6d0df;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-size: 11px;
}

.footer-badge svg {
  width: 13px;
  height: 13px;
  color: #ffb98f;
}

.footer-col h2 {
  margin: 4px 0 16px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.footer-col a {
  display: block;
  width: fit-content;
  margin-bottom: 10px;
  color: #98a5b8;
  font-size: 13px;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: #768398;
  font-size: 11.5px;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-bottom a:hover {
  color: #fff;
}

/* --------------------------------------------------------------------------
   Internal page hero and breadcrumbs
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 34px 0 66px;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 204, 168, 0.27), transparent 34%),
    radial-gradient(circle at 88% 36%, rgba(255, 226, 208, 0.56), transparent 35%),
    linear-gradient(180deg, #fffaf6 0%, #fffdfb 100%);
  border-bottom: 1px solid rgba(236, 230, 224, 0.7);
}

.page-hero::after {
  position: absolute;
  top: 0;
  right: 8%;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255, 135, 77, 0.11);
  border-radius: 50%;
  transform: translateY(-52%);
  content: "";
}

.page-hero__inner {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  max-width: 800px;
  margin-bottom: 16px;
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.page-hero__lead {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16.5px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 30px;
  color: var(--muted-2);
  font-size: 12.5px;
}

.breadcrumbs a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: var(--brand-strong);
}

.breadcrumbs svg {
  width: 12px;
  height: 12px;
  color: #b5aa9f;
}

.breadcrumbs span[aria-current="page"] {
  color: #4f5a6d;
}

/* --------------------------------------------------------------------------
   Download page
   -------------------------------------------------------------------------- */

.download-hero .page-hero__lead {
  max-width: 720px;
}

.download-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 24px;
  color: #7c6b5f;
  font-size: 12.5px;
}

.download-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.download-hero__meta svg {
  width: 15px;
  height: 15px;
  color: var(--brand);
}

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

.platform-card {
  position: relative;
  display: flex;
  min-height: 255px;
  flex-direction: column;
  padding: 26px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 0.28s ease, box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.platform-card:hover {
  border-color: #dfd2c6;
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.platform-card::after {
  position: absolute;
  top: -45px;
  right: -50px;
  width: 135px;
  height: 135px;
  background: var(--platform-tint, #fff3eb);
  border-radius: 50%;
  content: "";
}

.platform-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 21px;
  place-items: center;
  color: var(--platform-color, var(--brand));
  background: var(--platform-tint, var(--brand-soft));
  border-radius: 14px;
}

.platform-icon svg {
  width: 24px;
  height: 24px;
}

.platform-card h2 {
  position: relative;
  z-index: 1;
  margin-bottom: 5px;
  font-size: 18px;
}

.platform-card__version {
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
  color: var(--muted-2);
  font-size: 11.5px;
}

.platform-card p {
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.platform-card .btn {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: auto;
}

.platform-card--windows {
  --platform-color: #1769e0;
  --platform-tint: #eef5ff;
}

.platform-card--macos {
  --platform-color: #394456;
  --platform-tint: #f2f4f7;
}

.platform-card--android {
  --platform-color: #16a06d;
  --platform-tint: #ecf9f3;
}

.platform-card--ios {
  --platform-color: #8d5bdf;
  --platform-tint: #f5efff;
}

.install-guide {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}

.install-guide__intro {
  position: sticky;
  top: calc(var(--header-h) + 28px);
}

.install-guide__intro h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.install-guide__intro p {
  margin-bottom: 22px;
  color: var(--muted);
}

.guide-note {
  display: flex;
  gap: 12px;
  padding: 16px;
  margin-top: 24px;
  color: #6f5c4f;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 12.5px;
  line-height: 1.65;
}

.guide-note svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--brand);
}

.steps {
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 0 0 30px 58px;
  counter-increment: step;
}

.step:last-child {
  padding-bottom: 0;
}

.step::before {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--brand-strong);
  background: var(--brand-soft);
  border: 1px solid #ffd8c3;
  border-radius: 12px;
  content: counter(step, decimal-leading-zero);
  font-size: 11px;
  font-weight: 750;
}

.step::after {
  position: absolute;
  top: 38px;
  bottom: 0;
  left: 18px;
  width: 1px;
  background: var(--line);
  content: "";
}

.step:last-child::after {
  display: none;
}

.step h3 {
  margin: 2px 0 6px;
  font-size: 16.5px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
}

.requirements {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.requirements__head {
  padding: 22px 26px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.requirements__head h3 {
  margin: 0;
  font-size: 17px;
}

.requirements table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.requirements th,
.requirements td {
  padding: 16px 26px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #f1ece7;
}

.requirements tr:last-child th,
.requirements tr:last-child td {
  border-bottom: 0;
}

.requirements th {
  width: 155px;
  color: #4d5668;
  font-weight: 650;
  background: #fffdfb;
}

.requirements td {
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Help center
   -------------------------------------------------------------------------- */

.help-hero__search {
  position: relative;
  max-width: 620px;
  margin-top: 30px;
}

.help-hero__search svg {
  position: absolute;
  top: 50%;
  left: 20px;
  width: 19px;
  height: 19px;
  color: #a69a90;
  pointer-events: none;
  transform: translateY(-50%);
}

.help-search {
  width: 100%;
  height: 56px;
  padding: 0 132px 0 52px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(36, 26, 18, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.help-search::placeholder {
  color: #a39b93;
}

.help-search:focus {
  border-color: #f2a17d;
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.1),
    0 10px 28px rgba(36, 26, 18, 0.06);
}

.help-search__hint {
  position: absolute;
  top: 50%;
  right: 14px;
  padding: 4px 9px;
  color: #9e948b;
  background: var(--surface-3);
  border: 1px solid #e9e1da;
  border-radius: 6px;
  font-size: 10.5px;
  pointer-events: none;
  transform: translateY(-50%);
}

.help-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 46px;
}

.help-main {
  min-width: 0;
}

.help-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.filter-pill {
  padding: 7px 14px;
  color: #5e687b;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 560;
  transition: color 0.2s ease, background-color 0.2s ease,
    border-color 0.2s ease;
}

.filter-pill:hover {
  color: var(--brand-strong);
  border-color: #f0bfa5;
}

.filter-pill.is-active {
  color: #fff;
  background: var(--dark);
  border-color: var(--dark);
}

.filter-pill span {
  margin-left: 4px;
  opacity: 0.65;
  font-size: 10.5px;
}

.help-result-count {
  margin: 0;
  color: var(--muted-2);
  font-size: 12px;
  white-space: nowrap;
}

.help-result-count strong {
  color: var(--ink);
  font-weight: 700;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.help-grid .post-card h3 {
  font-size: 16px;
}

.help-grid .post-card__body {
  padding: 17px 18px 19px;
}

.help-empty {
  padding: 42px 24px;
  text-align: center;
  background: var(--surface-2);
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
}

.help-empty[hidden] {
  display: none;
}

.help-empty h3 {
  margin-bottom: 6px;
  font-size: 17px;
}

.help-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 30px;
}

.pagination:empty {
  display: none;
}

.page-btn {
  display: inline-flex;
  min-width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  color: #596376;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease,
    background-color 0.2s ease;
}

.page-btn:hover:not(:disabled) {
  color: var(--brand-strong);
  border-color: #f0bfa5;
}

.page-btn.is-current {
  color: #fff;
  background: var(--dark);
  border-color: var(--dark);
}

.page-btn:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.page-ellipsis {
  padding: 0 2px;
  color: var(--muted-2);
  font-size: 12px;
}

.help-aside {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.side-card {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.side-card h2 {
  margin-bottom: 16px;
  font-size: 15px;
  font-weight: 700;
}

.side-links {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.side-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  color: #5a6478;
  border-bottom: 1px solid #f4efea;
  font-size: 12.5px;
  transition: color 0.2s ease;
}

.side-links li:last-child a {
  border-bottom: 0;
}

.side-links a:hover {
  color: var(--brand-strong);
}

.side-links svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.side-card--accent {
  position: relative;
  overflow: hidden;
  padding: 26px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 145, 85, 0.35), transparent 37%),
    var(--dark);
  border-color: var(--dark);
}

.side-card--accent::after {
  position: absolute;
  right: -45px;
  bottom: -65px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  content: "";
}

.side-card--accent h2 {
  margin-bottom: 8px;
  color: #fff;
  font-size: 18px;
}

.side-card--accent p {
  position: relative;
  z-index: 1;
  margin-bottom: 17px;
  color: #b9c3d2;
  font-size: 12.5px;
  line-height: 1.7;
}

.side-card--accent .btn {
  position: relative;
  z-index: 1;
}

/* FAQ */

.faq-layout {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 64px;
  align-items: start;
}

.faq-intro h2 {
  margin-bottom: 13px;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.025em;
}

.faq-intro p {
  margin-bottom: 20px;
  color: var(--muted);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.6;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  flex: none;
  width: 25px;
  height: 25px;
  color: var(--brand-strong);
  background: var(--brand-soft);
  border-radius: 50%;
  content: "+";
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  text-align: center;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.faq-item[open] summary::after {
  color: #fff;
  background: var(--brand);
  transform: rotate(45deg);
}

.faq-item__answer {
  padding: 0 42px 20px 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

.faq-item__answer p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Article page
   -------------------------------------------------------------------------- */

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 100%;
  height: 3px;
  pointer-events: none;
}

.reading-progress__bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #ff8b4e, var(--brand), #e8460c);
  box-shadow: 0 0 8px rgba(255, 90, 31, 0.4);
}

.article-page {
  background: #fffdfb;
}

.article-hero {
  padding: 34px 0 0;
  background:
    radial-gradient(circle at 8% 5%, rgba(255, 208, 176, 0.3), transparent 30%),
    radial-gradient(circle at 91% 18%, rgba(255, 229, 211, 0.58), transparent 34%),
    linear-gradient(180deg, #fffaf6 0%, #fffdfb 84%);
}

.article-hero__inner {
  max-width: 900px;
  margin-inline: auto;
}

.article-category {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 20px;
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.article-category::before {
  width: 19px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  content: "";
}

.article-hero h1 {
  margin-bottom: 20px;
  font-size: clamp(33px, 4.2vw, 50px);
  line-height: 1.28;
  letter-spacing: -0.035em;
}

.article-hero__lead {
  max-width: 790px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.8;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 16px;
  padding-bottom: 32px;
  color: var(--muted-2);
  font-size: 12px;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-meta svg {
  width: 14px;
  height: 14px;
}

.article-meta__author {
  color: #4b5669;
  font-weight: 600;
}

.article-meta__dot {
  width: 3px;
  height: 3px;
  background: #d2c8be;
  border-radius: 50%;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  align-items: start;
  gap: 62px;
  padding: 44px 0 88px;
}

.article-main {
  min-width: 0;
}

.article-cover {
  overflow: hidden;
  margin: 0 0 34px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.article-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.prose {
  color: #30394b;
  font-size: 16.5px;
  line-height: 1.95;
  word-break: break-word;
}

.prose > *:first-child {
  margin-top: 0;
}

.prose p {
  margin-bottom: 1.25em;
}

.prose h2 {
  position: relative;
  padding-top: 9px;
  margin: 2.1em 0 0.7em;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.prose h2::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 25px;
  height: 3px;
  background: var(--brand);
  border-radius: 3px;
  content: "";
}

.prose h3 {
  margin: 1.7em 0 0.5em;
  color: var(--ink);
  font-size: 18.5px;
  line-height: 1.5;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.prose strong {
  color: var(--ink);
  font-weight: 700;
}

.prose a {
  color: var(--brand-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose ul,
.prose ol {
  padding-left: 1.4em;
  margin-bottom: 1.4em;
}

.prose li {
  margin-bottom: 0.5em;
  padding-left: 0.25em;
}

.prose li::marker {
  color: var(--brand);
  font-weight: 700;
}

.prose blockquote {
  padding: 18px 22px;
  margin: 1.8em 0;
  color: #5e5147;
  background: var(--brand-softer);
  border-left: 3px solid var(--brand);
  border-radius: 0 12px 12px 0;
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose code {
  padding: 2px 6px;
  color: #a63c10;
  background: #fff0e7;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.88em;
}

.prose hr {
  height: 1px;
  margin: 2.2em 0;
  background: var(--line);
  border: 0;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding-top: 28px;
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

.article-tags span {
  margin-right: 4px;
  color: var(--muted-2);
  font-size: 12px;
}

.article-tags a {
  padding: 5px 10px;
  color: #6b6158;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11.5px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.article-tags a:hover {
  color: var(--brand-strong);
  border-color: #eec3ac;
}

.article-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 0;
  margin-top: 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.article-end p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
}

.article-end__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.copy-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  color: #5f6878;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.copy-link:hover {
  color: var(--brand-strong);
  border-color: #efc3ac;
}

.copy-link svg {
  width: 15px;
  height: 15px;
}

.article-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 28px;
  margin-top: 34px;
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 144, 84, 0.25), transparent 35%),
    var(--dark);
  border-radius: 20px;
}

.article-cta h2 {
  margin-bottom: 5px;
  color: #fff;
  font-size: 20px;
}

.article-cta p {
  margin: 0;
  color: #aeb9ca;
  font-size: 12.5px;
}

.article-cta .btn {
  flex: none;
}

.article-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.toc-card {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.toc-card h2 {
  margin-bottom: 13px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.toc {
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
}

.toc a {
  display: flex;
  gap: 8px;
  padding: 7px 0;
  color: #6a7282;
  font-size: 12px;
  line-height: 1.55;
  transition: color 0.2s ease;
}

.toc a::before {
  color: #c2b5a9;
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.9;
}

.toc a:hover {
  color: var(--brand-strong);
}

.related-card {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.related-card h2 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

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

.related-list li {
  border-bottom: 1px solid #f3eee9;
}

.related-list li:last-child {
  border-bottom: 0;
}

.related-list a {
  display: block;
  padding: 10px 0;
  color: #5b6476;
  font-size: 12.5px;
  line-height: 1.6;
  transition: color 0.2s ease;
}

.related-list a:hover {
  color: var(--brand-strong);
}

.related-list span {
  display: block;
  margin-top: 3px;
  color: #a29a92;
  font-size: 10px;
}

.sidebar-help {
  padding: 22px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.sidebar-help p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.sidebar-help a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-strong);
  font-size: 12.5px;
  font-weight: 650;
}

.sidebar-help svg {
  width: 14px;
  height: 14px;
}

.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  z-index: 200;
  padding: 11px 18px;
  color: #fff;
  background: rgba(15, 26, 45, 0.94);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  font-size: 12.5px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* --------------------------------------------------------------------------
   404 page
   -------------------------------------------------------------------------- */

.error-page {
  display: grid;
  min-height: calc(100vh - var(--header-h));
  padding: 70px 0;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 202, 166, 0.3), transparent 35%),
    var(--surface-2);
}

.error-code {
  margin-bottom: 4px;
  color: transparent;
  background: linear-gradient(100deg, #ff8a52, #ff4d10);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(90px, 16vw, 160px);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.06em;
}

.error-page h1 {
  margin-bottom: 12px;
  font-size: clamp(26px, 3.5vw, 36px);
}

.error-page p {
  max-width: 480px;
  margin: 0 auto 27px;
  color: var(--muted);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 11px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1060px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.86fr);
    gap: 30px;
  }

  .float-chip--one {
    right: -1%;
  }

  .keyboard-art {
    width: 190px;
  }

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

  .help-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 30px;
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 36px;
  }

  .footer-main {
    grid-template-columns: minmax(250px, 1.6fr) repeat(3, 0.75fr);
    gap: 30px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 68px;
  }

  .container {
    width: min(var(--container), calc(100% - 36px));
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    padding-top: 52px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-bottom: 48px;
  }

  .hero__content {
    max-width: 720px;
  }

  .hero__visual {
    max-width: 590px;
    width: 100%;
    margin-inline: auto;
  }

  .ime-window {
    transform: none;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(3)::before {
    display: none;
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

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

  .feature-card--wide {
    grid-column: span 2;
  }

  .feature-card--cta {
    grid-column: auto;
  }

  .feature-card--cta .cta-orbit {
    display: none;
  }

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

  .cta-band {
    padding: 48px 38px;
  }

  .install-guide {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .install-guide__intro {
    position: static;
  }

  .help-layout {
    grid-template-columns: 1fr;
  }

  .help-aside {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .help-aside .side-card--accent {
    grid-column: 1 / -1;
  }

  .article-layout {
    grid-template-columns: 1fr;
    padding-top: 30px;
  }

  .article-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-sidebar .sidebar-help {
    grid-column: 1 / -1;
  }

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

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

  .footer-brand {
    grid-column: 1 / -1;
    padding-bottom: 6px;
  }

  .footer-main {
    gap: 32px;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 15px;
  }

  .container {
    width: calc(100% - 32px);
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    left: 0;
    display: flex;
    max-height: calc(100vh - var(--header-h));
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    padding: 12px 16px 20px;
    overflow-y: auto;
    background: #fffdfb;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 36px rgba(25, 18, 13, 0.1);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease,
      visibility 0s linear 0.2s;
  }

  .main-nav.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0s;
  }

  .main-nav > a:not(.btn) {
    padding: 13px 12px;
    font-size: 15px;
  }

  .main-nav > a.is-active::after {
    display: none;
  }

  .main-nav > a.is-active {
    background: var(--brand-soft);
  }

  .nav-divider {
    width: 100%;
    height: 1px;
    margin: 8px 0;
  }

  .main-nav .btn {
    margin-top: 5px;
  }

  .brand__icon {
    width: 38px;
    height: 38px;
  }

  .brand__copy strong {
    font-size: 16px;
  }

  .brand__copy small {
    font-size: 10px;
  }

  .hero {
    padding-top: 38px;
  }

  .hero h1 {
    font-size: clamp(36px, 10.5vw, 48px);
  }

  .hero__lead {
    font-size: 15.5px;
  }

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

  .ime-window__body {
    min-height: 150px;
    padding: 26px 21px 22px;
  }

  .ime-panel {
    margin-inline: 10px;
  }

  .float-chip {
    padding: 8px 10px;
    font-size: 10.5px;
  }

  .float-chip__icon {
    width: 23px;
    height: 23px;
  }

  .stat {
    padding: 19px 20px;
  }

  .stat strong {
    font-size: 19px;
  }

  .section {
    padding: 60px 0;
  }

  .section-head {
    margin-bottom: 30px;
  }

  .section-head--row {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

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

  .feature-card,
  .feature-card--wide,
  .feature-card--cta {
    grid-column: auto;
    min-height: 0;
    padding: 25px;
  }

  .feature-card--wide,
  .feature-card--cta {
    display: block;
  }

  .keyboard-art {
    display: none;
  }

  .feature-card--cta h3 {
    font-size: 21px;
  }

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

  .cta-band {
    padding: 38px 26px;
    border-radius: 22px;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 46px 0 34px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

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

  .footer-bottom nav {
    gap: 12px;
  }

  .page-hero {
    padding: 24px 0 48px;
  }

  .page-hero__lead {
    font-size: 15px;
  }

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

  .platform-card {
    min-height: 0;
  }

  .requirements {
    overflow-x: auto;
  }

  .requirements table {
    min-width: 570px;
  }

  .help-search {
    height: 52px;
    padding-right: 20px;
  }

  .help-search__hint {
    display: none;
  }

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

  .help-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .help-aside {
    grid-template-columns: 1fr;
  }

  .article-hero {
    padding-top: 24px;
  }

  .article-meta {
    padding-bottom: 24px;
  }

  .article-layout {
    padding-bottom: 62px;
  }

  .prose {
    font-size: 15.8px;
    line-height: 1.9;
  }

  .prose h2 {
    font-size: 21px;
  }

  .article-sidebar {
    grid-template-columns: 1fr;
  }

  .article-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-end {
    align-items: flex-start;
    flex-direction: column;
  }

  .faq-item summary {
    font-size: 14.5px;
  }

  .faq-item__answer {
    padding-right: 0;
  }
}

@media (max-width: 430px) {
  .hero-points {
    gap: 8px 14px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .stat + .stat::before {
    display: none;
  }

  .stat:nth-child(n + 2) {
    border-top: 1px solid var(--line);
  }

  .stat:nth-child(3)::before {
    display: none;
  }

  .ime-tools {
    gap: 10px;
  }

  .float-chip--one {
    top: 3%;
    right: -2%;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-col {
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }

  .article-hero h1 {
    font-size: 30px;
  }

  .cta-band {
    padding: 32px 22px;
  }
}

@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;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .article-sidebar,
  .reading-progress,
  .article-end,
  .article-cta,
  .toast {
    display: none !important;
  }

  .article-layout {
    display: block;
    padding: 0;
  }

  .article-cover {
    max-width: 560px;
  }

  body {
    background: #fff;
  }
}
