:root {
  --bg-base: #eef6ff;
  --bg-soft: #f8fbff;
  --bg-card: rgba(255, 255, 255, 0.74);
  --bg-card-strong: rgba(255, 255, 255, 0.9);
  --line: rgba(102, 159, 214, 0.26);
  --line-strong: rgba(66, 140, 211, 0.48);
  --text: #081c33;
  --text-muted: #43617f;
  --text-dim: #6683a2;
  --primary: #0f6fcc;
  --primary-strong: #0a4f98;
  --accent: #00aab6;
  --accent-strong: #02828d;
  --success: #0f9d7f;
  --danger: #ca4f56;
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --shadow-soft: 0 18px 44px rgba(18, 74, 123, 0.16);
  --shadow-card: 0 16px 34px rgba(16, 78, 133, 0.11);
  --shadow-strong: 0 24px 58px rgba(12, 58, 104, 0.2);
  --container: min(1320px, calc(100% - 72px));
  --content-max: 920px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  overflow-x: hidden;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 6%, rgba(59, 143, 224, 0.22), transparent 32%),
    radial-gradient(circle at 92% 14%, rgba(17, 190, 173, 0.2), transparent 30%),
    radial-gradient(circle at 40% 108%, rgba(49, 108, 223, 0.2), transparent 34%),
    linear-gradient(168deg, #f5faff 0%, #e9f3ff 38%, #eef8ff 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  inset: -24%;
}

body::before {
  z-index: -3;
  background:
    linear-gradient(rgba(50, 129, 207, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(50, 129, 207, 0.12) 1px, transparent 1px);
  background-size: 110px 110px;
  opacity: 0.44;
  animation: globalGridShift 28s linear infinite;
}

body::after {
  z-index: -2;
  background: repeating-radial-gradient(circle at 70% 34%, rgba(49, 130, 212, 0.2) 0 2px, transparent 2px 16px);
  mask-image: radial-gradient(circle at 70% 34%, rgba(0, 0, 0, 0.85) 0 48%, transparent 74%);
  opacity: 0.46;
  animation: orbitLayerSpin 64s linear infinite;
}

.site-motion-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity 1s ease;
}

body.site-motion-ready .site-motion-canvas {
  opacity: 0.72;
}

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

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

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  backdrop-filter: blur(16px) saturate(1.2);
  background: rgba(245, 251, 255, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: 33px;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.brand img {
  width: 40px;
  height: 40px;
}

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

.main-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 17px;
  color: var(--text-muted);
  font-weight: 700;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary-strong);
  background: rgba(16, 111, 198, 0.11);
  border-color: rgba(33, 125, 208, 0.24);
  transform: translateY(-1px);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 10px;
}

.lang-label {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 700;
}

.lang-select {
  min-width: 110px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-size: 14px;
  padding: 0 10px;
}

.lang-select:focus {
  outline: 2px solid rgba(15, 111, 200, 0.25);
  outline-offset: 2px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.nav-toggle img {
  width: 20px;
  height: 20px;
}

main {
  position: relative;
  z-index: 2;
  padding-bottom: 80px;
}

section {
  position: relative;
  padding: 40px 0;
}

main > section::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 100vw;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: -1;
}

main > section:nth-of-type(odd)::before {
  background: linear-gradient(180deg, rgba(251, 254, 255, 0.55), rgba(244, 250, 255, 0.2));
}

main > section:nth-of-type(even)::before {
  background: linear-gradient(180deg, rgba(237, 247, 255, 0.34), rgba(251, 254, 255, 0.14));
}

.hero {
  min-height: calc(100vh - 82px);
  padding: 22px 0 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  inset: -8% -6%;
  background:
    radial-gradient(circle at 12% 24%, rgba(47, 142, 230, 0.22), transparent 34%),
    radial-gradient(circle at 90% 20%, rgba(7, 178, 158, 0.18), transparent 30%);
}

.hero::after {
  left: -10%;
  right: -10%;
  bottom: -80px;
  height: 140px;
  background: linear-gradient(180deg, rgba(238, 247, 255, 0), rgba(238, 247, 255, 0.92));
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(56, 137, 216, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 137, 216, 0.13) 1px, transparent 1px);
  background-size: 150px 150px;
  opacity: 0.28;
  animation: heroGridPulse 20s linear infinite;
}

.hero-orbit {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  border: 1px dashed rgba(36, 126, 216, 0.28);
  filter: drop-shadow(0 0 24px rgba(16, 100, 179, 0.2));
  translate: var(--parallax-x, 0px) var(--parallax-y, 0px);
}

.hero-orbit-a {
  width: min(960px, 78vw);
  height: min(960px, 78vw);
  right: -260px;
  top: -300px;
  animation: orbitLayerSpin 35s linear infinite;
}

.hero-orbit-b {
  width: min(1180px, 90vw);
  height: min(1180px, 90vw);
  right: -430px;
  top: -470px;
  border-color: rgba(0, 166, 166, 0.24);
  animation: orbitLayerSpinReverse 52s linear infinite;
}

.hero-grid {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: clamp(380px, 58vh, 640px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-content: center;
  align-items: center;
  justify-items: center;
  text-align: center;
}

.hero-main {
  max-width: none;
  width: 100%;
}

body[data-page="home"] .hero-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(20, 114, 194, 0.3);
  background: rgba(255, 255, 255, 0.63);
  color: var(--primary-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 7px 14px;
  margin-bottom: 10px;
}

.hero h1,
.page-hero h1 {
  margin: 16px 0;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: clamp(48px, 7vw, 94px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  max-width: 14ch;
  text-wrap: balance;
}

body[data-page="home"] .hero .container {
  width: min(1600px, calc(100% - 88px));
}

body[data-page="home"] .hero-title-typing {
  max-width: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.14em;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 900;
  font-size-adjust: 0.62;
  font-size: clamp(46px, 6.5vw, 96px);
  line-height: 1;
  letter-spacing: -0.028em;
  color: #1c436b;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
  text-wrap: balance;
  margin: 18px 0 26px;
}

.hero-title-line {
  display: block;
  line-height: 1.03;
}

.hero-title-brand {
  white-space: nowrap;
  margin-bottom: 0;
}

.hero-title-subline {
  margin-top: 0;
  white-space: nowrap;
  word-break: keep-all;
}

.hero-slogan {
  min-height: 34px;
  margin: 8px 0 20px;
  font-family: "JetBrains Mono", "Consolas", monospace;
  font-size: clamp(14px, 1.2vw, 18px);
  color: var(--primary-strong);
  letter-spacing: 0.01em;
}

.typing-caret {
  display: inline-block;
  width: 1px;
  height: 1.15em;
  background: var(--primary-strong);
  margin-left: 6px;
  vertical-align: -0.14em;
  animation: typingCaretBlink 0.9s steps(1, end) infinite;
}

.hero-lead,
.page-hero p {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(17px, 1.8vw, 24px);
  max-width: 760px;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

body[data-page="home"] .hero-actions {
  justify-content: center;
}

.hero-kpis {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.kpi-item {
  min-height: 90px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(118, 176, 224, 0.48);
  background: rgba(255, 255, 255, 0.7);
  padding: 11px 13px;
  box-shadow: 0 10px 22px rgba(18, 91, 153, 0.1);
}

.kpi-item strong {
  display: block;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: 28px;
  line-height: 1;
}

.kpi-item span {
  display: block;
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.24s ease, border-color 0.24s ease, background-color 0.24s ease;
}

.btn img {
  width: 16px;
  height: 16px;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #0d5eb5, #0b4e98);
  border-color: rgba(10, 69, 130, 0.68);
  box-shadow: 0 12px 30px rgba(12, 80, 146, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 18px 36px rgba(12, 80, 146, 0.36);
}

.btn-secondary {
  color: var(--primary-strong);
  background: rgba(236, 246, 255, 0.8);
  border-color: rgba(68, 140, 210, 0.4);
  backdrop-filter: blur(6px);
}

.btn-secondary:hover {
  border-color: rgba(58, 130, 201, 0.58);
  background: rgba(231, 244, 255, 0.92);
}

.btn-accent {
  color: #fff;
  background: linear-gradient(135deg, #0d5eb5, #0b4e98);
  border-color: rgba(10, 69, 130, 0.68);
  box-shadow: 0 12px 30px rgba(12, 80, 146, 0.3);
}

.hero-scroll-hint {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

.hero-scroll-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(72, 145, 215, 0.32);
  background: rgba(255, 255, 255, 0.62);
  color: var(--primary-strong);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 14px;
  animation: scrollHintFloat 2.1s ease-in-out infinite;
}

.hero-scroll-link img {
  width: 14px;
  height: 14px;
  transform: rotate(90deg);
}

.hero-scroll-link:hover {
  border-color: rgba(43, 124, 203, 0.5);
}

.hero-panel {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(120, 176, 222, 0.56);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(242, 249, 255, 0.8));
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
  padding: 28px;
}

.hero-panel h3 {
  margin: 0 0 12px;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: clamp(30px, 2.6vw, 42px);
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero-panel p {
  margin: 0;
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1.6;
}

.release-link-wrap {
  margin-top: 12px;
}

.release-link {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--primary-strong);
  font-weight: 700;
}

.panel-note-title {
  margin-top: 18px !important;
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
}

.panel-checklist {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 14px;
}

.panel-checklist li {
  margin: 8px 0;
}

.page-hero {
  padding-top: 62px;
  padding-bottom: 20px;
}

.page-hero h1 {
  font-size: clamp(38px, 5.8vw, 74px);
  max-width: 18ch;
}

.page-hero p {
  font-size: clamp(16px, 1.4vw, 22px);
}

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

.section-head h2 {
  margin: 0;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: clamp(34px, 4.3vw, 62px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 18px;
}

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

.card,
.highlight-band,
.hero-panel {
  position: relative;
  overflow: hidden;
  --glow-x: 50%;
  --glow-y: 50%;
}

.card::after,
.highlight-band::after,
.hero-panel::after {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(560px circle at var(--glow-x) var(--glow-y), rgba(116, 190, 255, 0.28), transparent 68%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card.is-interacting::after,
.highlight-band.is-interacting::after,
.hero-panel.is-interacting::after {
  opacity: 1;
}

.card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(122, 176, 221, 0.45);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
  padding: 20px;
  transition: transform 0.24s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(67, 145, 218, 0.54);
  box-shadow: 0 24px 44px rgba(14, 77, 132, 0.2);
}

.card h3 {
  margin: 0 0 8px;
  font-size: clamp(24px, 2vw, 31px);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  font-size: 17px;
  color: var(--text-muted);
}

.card .meta {
  margin-top: 12px;
  color: var(--primary-strong);
  font-size: 14px;
  font-weight: 700;
}

.card .actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.card-icon {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(119, 173, 219, 0.46);
  background: rgba(242, 250, 255, 0.9);
  margin-bottom: 12px;
}

.highlight-band {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(111, 171, 218, 0.52);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.76), rgba(238, 249, 255, 0.72)),
    linear-gradient(120deg, rgba(94, 183, 242, 0.14), rgba(86, 227, 206, 0.12));
  box-shadow: var(--shadow-soft);
  padding: 30px;
}

.highlight-band ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--text-muted);
}

.highlight-band li {
  margin: 8px 0;
}

.quickstart-band {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 20px;
  align-items: center;
}

.quickstart-title {
  margin: 0;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.quickstart-list {
  margin: 14px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.quickstart-list li {
  color: var(--text-muted);
  font-size: 17px;
}

.quickstart-list strong {
  color: var(--text);
  font-size: 18px;
  margin-right: 6px;
}

.quickstart-media {
  min-height: 390px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(116, 170, 216, 0.52);
  background: rgba(247, 252, 255, 0.9);
  overflow: hidden;
}

.quickstart-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.media-frame {
  border-radius: var(--radius-md);
  border: 1px solid rgba(122, 175, 220, 0.45);
  background: rgba(248, 253, 255, 0.86);
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(14, 84, 145, 0.14);
}

.home-feature-grid .card {
  min-height: 210px;
}

.home-link-grid .card {
  min-height: 250px;
}

.notice {
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 14px 0;
  background: rgba(219, 251, 245, 0.72);
  color: #095f5e;
}

.tutorial-section .notice {
  margin: 20px 0;
}

.tutorial-section .table-wrap {
  margin: 20px 0;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(120, 177, 223, 0.46);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 24px rgba(15, 80, 137, 0.12);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

th,
td {
  text-align: left;
  padding: 12px 13px;
  border-bottom: 1px solid rgba(136, 187, 228, 0.24);
  font-size: 15px;
}

th {
  background: rgba(228, 242, 255, 0.86);
  color: var(--primary-strong);
  font-weight: 800;
}

.code-block {
  position: relative;
  border-radius: var(--radius-md);
  border: 1px solid rgba(100, 153, 201, 0.44);
  background: linear-gradient(160deg, #f4f9ff 0%, #e9f3ff 100%);
  color: #153752;
  padding: 14px;
  font-family: "JetBrains Mono", "Consolas", monospace;
  font-size: 13px;
  line-height: 1.6;
  overflow-x: auto;
}

.code-block code {
  white-space: pre;
}

.code-block.has-copy {
  padding-top: 46px;
}

.code-copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 999px;
  border: 1px solid rgba(117, 175, 222, 0.52);
  background: rgba(255, 255, 255, 0.88);
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  cursor: pointer;
}

.code-copy-btn:hover {
  border-color: rgba(68, 146, 218, 0.56);
}

.code-copy-btn[data-state="copied"] {
  border-color: rgba(41, 180, 143, 0.52);
  color: #0f8d6a;
  background: rgba(230, 255, 247, 0.9);
}

.code-copy-btn[data-state="failed"] {
  border-color: rgba(208, 104, 104, 0.52);
  color: #a63d40;
  background: rgba(255, 244, 244, 0.9);
}

.platform-grid {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.platform-link {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  border: 1px solid rgba(116, 171, 218, 0.42);
  background: rgba(247, 253, 255, 0.84);
  padding: 11px 12px;
  transition: border-color 0.22s ease, transform 0.22s ease, background-color 0.22s ease;
}

.platform-link:hover {
  transform: translateY(-2px);
  border-color: rgba(76, 146, 216, 0.5);
  background: rgba(255, 255, 255, 0.96);
}

/* Recommended platform (auto-detected OS) */
.platform-link.recommended {
  border-color: rgba(25, 118, 210, 0.7);
  background: rgba(227, 242, 253, 0.9);
  box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.15);
  position: relative;
  transform: scale(1.03);
}
.platform-link.recommended::after {
  content: "\63a8\8350";
  position: absolute;
  top: -8px;
  right: 10px;
  background: #1976d2;
  color: #fff;
  font-size: 10px;
  padding: 1px 8px;
  border-radius: 8px;
  font-weight: 600;
}

/* ── Download channel sections ── */
.download-channel {
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border, #e0e0e0);
  background: var(--bg-alt, #f8f9fa);
}
.channel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.channel-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.channel-dev {
  background: linear-gradient(135deg, #1976d2, #2196f3);
  color: #fff;
}
.channel-stable {
  background: linear-gradient(135deg, #2e7d32, #43a047);
  color: #fff;
}
.channel-version {
  font-size: 14px;
  font-weight: 600;
  color: var(--text, #1a1a1a);
}
.channel-date {
  font-size: 12px;
  color: var(--text-muted, #888);
}
.channel-buttons {
  margin-bottom: 12px;
}
.download-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 14px 36px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.download-btn:hover {
  transform: translateY(-2px);
}
.download-btn-primary {
  background: linear-gradient(135deg, #0d5eb5, #1976d2);
  color: #fff;
  box-shadow: 0 6px 20px rgba(13, 94, 181, 0.3);
}
.download-btn-primary:hover {
  box-shadow: 0 10px 28px rgba(13, 94, 181, 0.4);
}
.download-btn-stable {
  background: linear-gradient(135deg, #2e7d32, #388e3c);
  color: #fff;
  box-shadow: 0 6px 20px rgba(46, 125, 50, 0.3);
}
.download-btn-stable:hover {
  box-shadow: 0 10px 28px rgba(46, 125, 50, 0.4);
}
.download-btn-os {
  font-size: 15px;
}
.download-btn-meta {
  font-size: 11px;
  opacity: 0.85;
}
.channel-platforms {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
}
.channel-platforms a {
  color: var(--primary, #1976d2);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border, #e0e0e0);
  background: rgba(255,255,255,0.8);
  transition: background 0.2s, border-color 0.2s;
}
.channel-platforms a:hover {
  background: rgba(25, 118, 210, 0.08);
  border-color: rgba(25, 118, 210, 0.4);
}

.platform-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(113, 169, 216, 0.48);
  background: rgba(239, 248, 255, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.platform-icon img {
  width: 16px;
  height: 16px;
}

.platform-meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.platform-meta strong {
  font-size: 14px;
  color: var(--text);
}

.platform-meta span {
  color: var(--text-dim);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.step-list {
  display: grid;
  gap: 12px;
}

.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(118, 176, 223, 0.44);
  background: rgba(255, 255, 255, 0.86);
  padding: 14px;
}

.step .index {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(73, 146, 215, 0.45);
  background: rgba(232, 244, 255, 0.95);
  color: var(--primary-strong);
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h4 {
  margin: 2px 0 5px;
  font-size: 22px;
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
}

.tutorial-shell {
  display: grid;
  grid-template-columns: 264px 1fr;
  gap: 20px;
  align-items: start;
}

.side-nav {
  position: sticky;
  top: 98px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(119, 177, 223, 0.46);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  padding: 14px;
  box-shadow: 0 14px 30px rgba(16, 85, 146, 0.12);
}

.side-nav h3 {
  margin: 2px 0 10px;
  font-size: 20px;
}

.side-nav a {
  display: block;
  padding: 8px 9px;
  border-radius: 9px;
  color: var(--text-muted);
  font-size: 15px;
}

.side-nav a:hover {
  background: rgba(237, 247, 255, 0.92);
  color: var(--primary-strong);
}

.tutorial-section {
  margin-top: 16px;
  scroll-margin-top: 104px;
}

section[id] {
  scroll-margin-top: 104px;
}

.tutorial-section h2,
.tutorial-section h3 {
  letter-spacing: -0.02em;
}

.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.tutorial-panel {
  border-radius: var(--radius-md);
  border: 1px solid rgba(119, 175, 220, 0.45);
  background: rgba(255, 255, 255, 0.84);
  padding: 13px;
}

.tutorial-panel h4 {
  margin: 0 0 6px;
  font-size: 17px;
}

.tutorial-panel p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.tutorial-link-panel {
  display: block;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.tutorial-link-panel:hover {
  transform: translateY(-2px);
}

.tutorial-link-panel:hover .tutorial-panel {
  border-color: rgba(43, 124, 203, 0.62);
}

.tutorial-link-panel:focus-visible {
  outline: 2px solid rgba(43, 124, 203, 0.6);
  outline-offset: 2px;
}

.tutorial-link-panel .tutorial-panel {
  position: relative;
  padding-right: 52px;
}

.tutorial-link-arrow {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tutorial-link-arrow img {
  width: 14px;
  height: 14px;
}

.setup-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 30, 54, 0.44);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
  z-index: 70;
}

.setup-drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.setup-drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: min(94vw, 1180px);
  background: linear-gradient(180deg, rgba(247, 252, 255, 0.99), rgba(239, 248, 255, 0.98));
  border-right: 1px solid rgba(117, 175, 221, 0.46);
  box-shadow: 18px 0 52px rgba(8, 50, 90, 0.22);
  transform: translateX(-104%);
  transition: transform 0.28s ease;
  z-index: 71;
  display: grid;
  grid-template-rows: auto 1fr;
}

.setup-drawer.is-open {
  transform: translateX(0);
}

.setup-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(117, 175, 221, 0.35);
  background: rgba(252, 255, 255, 0.85);
}

.setup-drawer-title {
  margin: 0;
  font-size: 22px;
}

.setup-drawer-close {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(117, 175, 221, 0.56);
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-strong);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.setup-drawer-body {
  min-height: 0;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
}

.setup-drawer-nav {
  border-right: 1px solid rgba(117, 175, 221, 0.3);
  padding: 14px 12px;
  overflow: auto;
  background: rgba(243, 250, 255, 0.85);
}

.setup-drawer-nav a {
  display: block;
  border-radius: 10px;
  padding: 9px 10px;
  color: var(--primary-strong);
  text-decoration: none;
  font-weight: 700;
  margin-bottom: 6px;
}

.setup-drawer-nav a:hover {
  background: rgba(221, 239, 255, 0.9);
}

.setup-drawer-nav a.setup-nav-l1 {
  font-size: 14px;
  font-weight: 800;
}

.setup-drawer-nav a.setup-nav-l2 {
  font-size: 13px;
  font-weight: 700;
  padding-left: 18px;
  color: #2f577b;
}

.setup-drawer-nav a.setup-nav-l3 {
  font-size: 12px;
  font-weight: 600;
  padding-left: 28px;
  color: #476b8e;
}

.setup-drawer-content {
  min-height: 0;
  overflow: auto;
  padding: 16px;
}

.setup-drawer-content section {
  scroll-margin-top: 12px;
  margin-bottom: 18px;
}

.setup-drawer-content h3 {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

.setup-drawer-content h4 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.2;
  color: var(--primary-strong);
}

.setup-drawer-content h5 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.3;
  color: #385d81;
}

.setup-drawer-content .tutorial-shot {
  margin: 14px 0 18px;
}

.setup-drawer-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .setup-drawer {
    width: 100vw;
    max-width: 100vw;
  }

  .setup-drawer-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .setup-drawer-nav {
    border-right: 0;
    border-bottom: 1px solid rgba(117, 175, 221, 0.3);
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 10px 12px;
  }

  .setup-drawer-nav a {
    white-space: nowrap;
    margin-bottom: 0;
  }
}

.image-placeholder {
  margin-top: 10px;
  border-radius: 14px;
  border: 1px dashed rgba(65, 141, 211, 0.56);
  background:
    linear-gradient(145deg, rgba(245, 252, 255, 0.95), rgba(233, 246, 255, 0.88)),
    repeating-linear-gradient(45deg, rgba(49, 129, 206, 0.06), rgba(49, 129, 206, 0.06) 12px, rgba(49, 129, 206, 0.02) 12px, rgba(49, 129, 206, 0.02) 24px);
  min-height: 210px;
  padding: 14px;
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--text-dim);
}

.image-placeholder strong {
  display: block;
  color: var(--primary-strong);
  font-size: 17px;
  margin-bottom: 4px;
}

.image-placeholder span {
  font-size: 13px;
}

.tutorial-shot {
  margin: 20px 0;
  border-radius: 14px;
  border: 1px solid rgba(119, 175, 220, 0.45);
  background: rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.tutorial-shot img {
  display: block;
  width: 100%;
  height: auto;
  background: #f3f8fc;
}

.tutorial-shot figcaption {
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-dim);
  border-top: 1px solid rgba(119, 175, 220, 0.32);
}

.feature-list,
.checklist,
.link-list {
  margin-top: 10px;
  padding-left: 18px;
}

.feature-list,
.checklist {
  color: var(--text-muted);
}

.feature-list li,
.checklist li,
.link-list li {
  margin: 7px 0;
}

.link-list a {
  color: var(--primary-strong);
}

.faq-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.faq-item {
  border-radius: 12px;
  border: 1px solid rgba(120, 173, 218, 0.46);
  background: rgba(255, 255, 255, 0.84);
  padding: 12px;
}

.faq-item h4 {
  margin: 0 0 4px;
  font-size: 15px;
}

.faq-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.video-block {
  border-radius: var(--radius-md);
  border: 1px dashed rgba(84, 155, 219, 0.56);
  background: rgba(244, 251, 255, 0.86);
  padding: 16px;
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(117, 175, 221, 0.44);
  background: linear-gradient(150deg, #f4fbff, #e6f2ff);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  overflow: hidden;
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid rgba(114, 172, 218, 0.46);
  background: rgba(243, 250, 255, 0.9);
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
}

.badge img {
  width: 13px;
  height: 13px;
}

.social-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.social-list li {
  margin: 0;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
}

.social-link img {
  width: 16px;
  height: 16px;
}

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

.qr-card {
  text-align: center;
}

.qr-card h4 {
  margin: 0 0 8px;
  font-size: 18px;
}

.qr-card p {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.qr-image {
  margin: 0 auto;
  width: min(100%, 270px);
  border-radius: 12px;
  border: 1px solid rgba(112, 172, 220, 0.48);
  box-shadow: 0 12px 28px rgba(15, 83, 143, 0.16);
}

.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(111, 170, 217, 0.48);
  background: rgba(249, 253, 255, 0.8);
  backdrop-filter: blur(8px);
  padding: 30px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 16px;
}

.footer-grid h4 {
  margin: 0 0 10px;
  font-size: 18px;
}

.footer-grid p,
.footer-grid li,
.footer-grid a {
  color: var(--text-muted);
  font-size: 15px;
}

.footer-grid ul {
  margin: 0;
  padding-left: 18px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.52s ease, transform 0.52s ease;
}

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

body[data-page="home"] .home-section .reveal {
  opacity: 0;
  transform: translateY(46px) scale(0.9);
  filter: blur(3px);
  transition:
    opacity 0.58s ease,
    transform 0.74s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.58s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

body[data-page="home"] .home-section .reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

@keyframes globalGridShift {
  0% {
    transform: translate3d(0, 0, 0);
    background-position: 0 0, 0 0;
  }
  50% {
    transform: translate3d(1.2%, 0.7%, 0);
    background-position: 22px 14px, 22px 14px;
  }
  100% {
    transform: translate3d(0, 0, 0);
    background-position: 0 0, 0 0;
  }
}

@keyframes orbitLayerSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes orbitLayerSpinReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes heroGridPulse {
  0%,
  100% {
    opacity: 0.24;
    transform: translateX(0);
  }
  50% {
    opacity: 0.35;
    transform: translateX(-10px);
  }
}

@keyframes typingCaretBlink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@keyframes scrollHintFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

@media (max-width: 1200px) {
  :root {
    --container: min(1320px, calc(100% - 56px));
  }

  .hero h1 {
    font-size: clamp(42px, 6.6vw, 78px);
    line-height: 0.98;
  }

  .hero-lead,
  .page-hero p {
    font-size: clamp(16px, 1.6vw, 20px);
  }

  .hero-panel p {
    font-size: 18px;
  }

  .section-head h2 {
    font-size: clamp(30px, 3.8vw, 52px);
  }

  .card h3 {
    font-size: clamp(22px, 1.8vw, 27px);
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .tutorial-shell,
  .footer-grid,
  .card-grid,
  .two-col,
  .contact-grid,
  .tutorial-grid,
  .quickstart-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 44px 0 30px;
  }

  .hero h1,
  .page-hero h1 {
    max-width: 100%;
    line-height: 1.03;
  }

  body[data-page="home"] .hero-title-typing {
    font-size: clamp(38px, 8.4vw, 64px);
    gap: 0.12em;
    line-height: 1;
    letter-spacing: -0.024em;
    margin: 16px 0 22px;
  }

  .hero-slogan {
    margin: 8px 0 18px;
  }

  .hero-actions {
    margin-top: 20px;
  }

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

  .hero-panel {
    padding: 22px;
  }

  .side-nav {
    position: static;
  }

  .quickstart-media {
    min-height: 300px;
  }

  .home-feature-grid .card,
  .home-link-grid .card {
    min-height: auto;
  }
}

@media (max-width: 780px) {
  :root {
    --container: min(1320px, calc(100% - 26px));
  }

  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 12px 14px 16px;
    background: rgba(245, 251, 255, 0.96);
    border-bottom: 1px solid rgba(113, 171, 217, 0.46);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    justify-content: flex-start;
  }

  .lang-switch {
    width: 100%;
    margin: 2px 0 6px;
    padding: 0 2px;
  }

  .lang-label {
    min-width: 34px;
  }

  .lang-select {
    width: 100%;
  }

  .hero-bg {
    opacity: 0.2;
    background-size: 80px 80px;
  }

  .hero-orbit {
    display: none;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(34px, 11.2vw, 52px);
    line-height: 1.08;
  }

  body[data-page="home"] .hero .container {
    width: min(1600px, calc(100% - 24px));
  }

  body[data-page="home"] .hero-title-typing {
    font-size: clamp(24px, 7.4vw, 32px);
    gap: 0.1em;
    line-height: 1;
    letter-spacing: -0.012em;
    margin: 14px 0 18px;
  }

  .hero-slogan {
    margin: 6px 0 14px;
  }

  .hero-actions {
    margin-top: 16px;
  }

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

  .kpi-item strong {
    font-size: 24px;
  }

  .btn {
    width: 100%;
  }

  .card,
  .highlight-band,
  .hero-panel,
  .step,
  .tutorial-panel {
    border-radius: 15px;
  }

  .quickstart-media {
    min-height: 220px;
  }

  .section-head h2 {
    font-size: clamp(28px, 9.8vw, 40px);
  }

  .step h4 {
    font-size: 18px;
  }

  .step p,
  .card p,
  .hero-lead,
  .page-hero p,
  .section-head p {
    font-size: 15px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
