/* ================================================================
   BlockPrint Cat — Landing page styles
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #08080F;
  --bg-2:      #141420;
  --bg-3:      #0F0F17;
  --primary:   #22D3EE;
  --primary-2: #38BDF8;
  --gold:      #F59E0B;
  --muted:     #64748B;
  --text:      #E2E8F0;
  --text-dim:  rgba(226, 232, 240, 0.7);
  --border:    rgba(100, 116, 139, 0.14);
  --grid-line: rgba(34, 211, 238, 0.05);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", "Consolas", monospace;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'kern';
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }
::selection { background: rgba(34, 211, 238, 0.25); color: var(--text); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ====== Pre-FOUC ====== */
.no-fouc { visibility: hidden; }
.no-fouc.ready { visibility: visible; }

/* ====== Language toggle ====== */
.lang-toggle {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  background: rgba(20, 20, 32, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(100, 116, 139, 0.22);
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.lang-btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: var(--font);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  transition: color 0.2s, background 0.2s;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active { background: var(--primary); color: var(--bg); }
.lang-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (max-width: 640px) {
  .lang-toggle { top: 10px; right: 10px; }
  .lang-btn { padding: 5px 10px; font-size: 11px; }
}

/* ====== Back-to-top ====== */
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 180;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: rgba(34, 211, 238, 0.22);
  box-shadow: 0 6px 22px rgba(34, 211, 238, 0.35);
}
.back-to-top:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.back-to-top svg { width: 18px; height: 18px; }
@media (max-width: 640px) {
  .back-to-top { right: 12px; bottom: 12px; width: 40px; height: 40px; }
}

/* ====== Scroll progress ====== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--gold), var(--primary));
  z-index: 1000;
  pointer-events: none;
  transition: width 0.1s linear;
}

/* ====== Containers ====== */
.section { padding: 96px 24px; max-width: 1100px; margin: 0 auto; }
.section--tight { padding-top: 0; }
@media (max-width: 640px) { .section { padding: 64px 20px; } }

/* ====== Section divider (animated line) ====== */
.section-divider {
  display: flex;
  justify-content: center;
  padding: 0 24px;
  margin: 0 auto;
  max-width: 1100px;
}
.section-divider span {
  display: block;
  width: 100%;
  max-width: 240px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
.section-divider.visible span { transform: scaleX(1); }

/* ====== Hero ====== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 88px 24px 56px;
  overflow: hidden;
  background: var(--bg);
}
.particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.block-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, 48px);
  grid-template-rows: repeat(auto-fill, 48px);
  opacity: 0.1;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 65% 50% at 50% 40%, black 25%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 65% 50% at 50% 40%, black 25%, transparent 70%);
}
.block-cell {
  width: 48px; height: 48px;
  border: 1px solid var(--grid-line);
  transition: background-color 2s ease;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 65%);
  z-index: 2;
}
.hero-glow {
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 3;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.hero-content {
  position: relative;
  z-index: 4;
  max-width: 720px;
}
.hero-icon {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 20px;
  margin-bottom: 32px;
  image-rendering: pixelated;
  border: 1px solid rgba(34, 211, 238, 0.3);
  background: transparent;
  animation: iconFloat 4s ease-in-out infinite;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.hero-icon::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 23px;
  background: conic-gradient(from 0deg, var(--primary), #38BDF8, #A78BFA, var(--primary));
  z-index: -1;
  opacity: 0.4;
  filter: blur(10px);
  animation: iconSpin 6s linear infinite;
}
@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes iconSpin { to { --angle: 360deg; } }
@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.hero-title {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1.04;
  margin-bottom: 16px;
  text-wrap: balance;
}
.hero-title .accent {
  background: linear-gradient(135deg, #22D3EE 0%, #38BDF8 50%, #A78BFA 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.hero-sub {
  font-size: clamp(16px, 2.4vw, 19px);
  color: var(--muted);
  margin-bottom: 8px;
  letter-spacing: 0.005em;
  font-weight: 400;
}
.hero-sub-en {
  font-size: 13px;
  color: rgba(100, 116, 139, 0.55);
  font-family: var(--mono);
  letter-spacing: 0.04em;
  margin-bottom: 36px;
}
html[data-lang="en"] .hero-sub-en { display: none; }
html[data-lang="zh"] .hero-sub-en { display: block; }
html[data-lang="en"] .lang-mode-zh { display: none; }
html[data-lang="zh"] .lang-mode-en { display: none; }

.badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 28px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 550;
  color: var(--muted);
  background: rgba(100, 116, 139, 0.08);
  border: 1px solid var(--border);
}
.badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.6);
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ====== Buttons (with magnet support) ====== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  background: transparent;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.btn > * { position: relative; z-index: 1; }
.btn-primary {
  background: var(--primary);
  color: var(--bg);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s ease;
}
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover {
  background: #38D9F2;
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.35);
}
.btn-outline {
  color: var(--text);
  border-color: rgba(100, 116, 139, 0.3);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(34, 211, 238, 0.15);
}

/* ====== Section headers ====== */
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  font-family: var(--mono);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(28px, 4.4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.15;
  text-wrap: balance;
}
.section-desc {
  font-size: 16px;
  color: var(--muted);
  max-width: 580px;
  margin-bottom: 56px;
  line-height: 1.7;
}
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ====== Features (3-up compact) ====== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 820px) {
  .features-grid { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; }
}

.feature-card {
  --brand: var(--primary);
  --brand-rgb: 34, 211, 238;
  background: var(--bg-2);
  border: 1px solid rgba(100, 116, 139, 0.14);
  border-top: 2px solid var(--brand);
  border-radius: 14px;
  padding: 22px 22px 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(var(--brand-rgb), 0.18) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--brand-rgb), 0.45);
  box-shadow: 0 12px 28px rgba(var(--brand-rgb), 0.18);
}
.feature-card:hover::before { opacity: 1; }

.feature-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.feature-num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--brand);
  opacity: 0.85;
}
.feature-tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  padding: 3px 9px;
  border-radius: 5px;
  background: rgba(var(--brand-rgb), 0.1);
  border: 1px solid rgba(var(--brand-rgb), 0.2);
}

.feature-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  background: rgba(var(--brand-rgb), 0.12);
  border: 1px solid rgba(var(--brand-rgb), 0.22);
  color: var(--brand);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.feature-card:hover .feature-icon { transform: scale(1.06) rotate(-4deg); }
.feature-icon svg { width: 19px; height: 19px; stroke-width: 1.8; }

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.feature-card p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.65;
}

.feature-meta {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(100, 116, 139, 0.15);
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(100, 116, 139, 0.7);
  letter-spacing: 0.04em;
  line-height: 1.5;
}

/* ====== Screenshots ====== */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  perspective: 800px;
}
@media (max-width: 900px) {
  .screenshots-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-left: auto; margin-right: auto;
  }
}
.screenshot-card {
  position: relative;
  border-radius: 18px;
  padding: 7px;
  background: linear-gradient(150deg, #2A2A3A, #141420);
  border: 1px solid rgba(100, 116, 139, 0.18);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
  transform-style: preserve-3d;
}
.screenshot-card::before {
  content: '';
  position: absolute;
  top: 11px; left: 50%;
  transform: translateX(-50%);
  width: 36px; height: 3px;
  border-radius: 3px;
  background: rgba(100, 116, 139, 0.5);
  z-index: 2;
}
.screenshot-card:hover {
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 16px 48px rgba(34, 211, 238, 0.1);
}
.screenshot-inner {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-2);
}
.screenshot-inner img {
  width: 100%;
  display: block;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
}
.screenshot-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: linear-gradient(transparent, rgba(8, 8, 15, 0.92));
  z-index: 2;
}

/* ====== Workflow ====== */
.workflow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: step;
}
@media (max-width: 900px) {
  .workflow { grid-template-columns: 1fr 1fr; gap: 16px; }
}
@media (max-width: 540px) {
  .workflow { grid-template-columns: 1fr; }
}
.workflow-step {
  position: relative;
  padding: 32px 20px;
  text-align: center;
  border-right: 1px dashed rgba(100, 116, 139, 0.18);
}
.workflow-step:last-child { border-right: none; }
@media (max-width: 900px) {
  .workflow-step {
    border-right: none;
    border: 1px solid rgba(100, 116, 139, 0.14);
    border-radius: 14px;
    padding: 24px 18px;
  }
}
.workflow-arrow {
  position: absolute;
  right: -7px;
  top: 50%;
  width: 14px; height: 14px;
  border-right: 1.5px solid var(--primary);
  border-top: 1.5px solid var(--primary);
  transform: translateY(-50%) rotate(45deg) scale(0);
  transform-origin: center;
  opacity: 0;
}
.workflow-step.visible .workflow-arrow {
  animation: arrowGrow 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s forwards,
             arrowPulse 2s ease-in-out 1.2s infinite;
}
@keyframes arrowGrow {
  0%   { transform: translateY(-50%) rotate(45deg) scale(0); opacity: 0; }
  100% { transform: translateY(-50%) rotate(45deg) scale(1); opacity: 0.55; }
}
@keyframes arrowPulse {
  0%, 100% { opacity: 0.3; transform: translateY(-50%) rotate(45deg) translateX(0); }
  50%      { opacity: 1;   transform: translateY(-50%) rotate(45deg) translateX(3px); }
}
@media (max-width: 900px) { .workflow-arrow { display: none; } }
.step-num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.22);
  margin-bottom: 14px;
  font-family: var(--mono);
}
.workflow-step.visible .step-num {
  animation: stepPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}
@keyframes stepPop {
  0%   { transform: scale(0.6); opacity: 0; }
  60%  { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}
.workflow-step h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.workflow-step p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ====== Tech ====== */
.tech-section {
  position: relative;
  background: var(--bg-3);
  border-top: 1px solid rgba(100, 116, 139, 0.08);
  border-bottom: 1px solid rgba(100, 116, 139, 0.08);
  overflow: hidden;
}
.tech-section::before,
.tech-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.35;
}
.tech-section::before {
  width: 480px; height: 480px;
  background: var(--primary);
  top: -120px; left: -120px;
  animation: aurora1 16s ease-in-out infinite;
}
.tech-section::after {
  width: 520px; height: 520px;
  background: #A78BFA;
  bottom: -160px; right: -160px;
  animation: aurora2 20s ease-in-out infinite;
}
@keyframes aurora1 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(80px, 60px); }
}
@keyframes aurora2 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-100px, -50px); }
}
@media (max-width: 768px) {
  .tech-section::before, .tech-section::after { width: 320px; height: 320px; }
}
.tech-section > * { position: relative; z-index: 1; }
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}
@media (max-width: 900px) { .tech-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .tech-grid { grid-template-columns: 1fr; } }
.tech-item {
  --brand: var(--primary);
  --brand-rgb: 34, 211, 238;
  position: relative;
  background: linear-gradient(165deg, rgba(var(--brand-rgb), 0.06) 0%, var(--bg-2) 60%);
  border: 1px solid rgba(100, 116, 139, 0.14);
  border-top: 2px solid var(--brand);
  border-radius: 14px;
  padding: 24px 22px;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.tech-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(var(--brand-rgb), 0.22) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.tech-item:hover {
  border-color: rgba(var(--brand-rgb), 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(var(--brand-rgb), 0.18);
}
.tech-item:hover::before { opacity: 1; }
.tech-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.tech-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 11px;
  color: var(--brand);
  background: rgba(var(--brand-rgb), 0.12);
  border: 1px solid rgba(var(--brand-rgb), 0.22);
  transition: transform 0.3s ease;
}
.tech-item:hover .tech-icon { transform: scale(1.08) rotate(-3deg); }
.tech-meta {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  opacity: 0.85;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(var(--brand-rgb), 0.08);
  border: 1px solid rgba(var(--brand-rgb), 0.15);
  font-family: var(--mono);
}
.tech-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.tech-role {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
}
.companion-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.companion-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--bg-2);
  border: 1px solid rgba(100, 116, 139, 0.15);
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--mono);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.companion-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(34, 211, 238, 0.05);
}
.companion-link .arrow { transition: transform 0.15s ease; display: inline-block; }
.companion-link:hover .arrow { transform: translateX(3px); }
.companion-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
  font-family: var(--mono);
  letter-spacing: 0.05em;
}

/* ====== Download ====== */
.download-options {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ====== Footer ====== */
.footer {
  text-align: center;
  padding: 56px 24px 40px;
  color: rgba(100, 116, 139, 0.5);
  font-size: 13px;
  border-top: 1px solid rgba(100, 116, 139, 0.06);
}
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 12px;
}
.footer a {
  color: rgba(100, 116, 139, 0.7);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer a:hover { color: var(--primary); }

/* ====== Scroll hint ====== */
.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  font-family: var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 4;
  pointer-events: none;
  opacity: 0.55;
}
.scroll-arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--muted), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-arrow::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 14px;
  background: linear-gradient(180deg, var(--primary), transparent);
  animation: scrollArrow 1.8s ease-in-out infinite;
}
@keyframes scrollArrow {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(330%); }
}

/* ====== Reveal ====== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.45s ease, transform 0.45s ease; }
.reveal-stagger > *.visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger > *:nth-child(6) { transition-delay: 0.40s; }

/* ====== Reduced motion ====== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .hero-glow { display: none; }
}

/* ====== Language switch transition ====== */
@keyframes i18nOut {
  to {
    opacity: 0;
    transform: translateY(-6px);
    filter: blur(2px);
  }
}
@keyframes i18nIn {
  from {
    opacity: 0;
    transform: translateY(8px);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}
body.lang-switching [data-i18n] { animation: i18nOut 0.18s ease forwards; }
body.lang-entered [data-i18n]   { animation: i18nIn 0.34s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

/* ====== Mobile (≤ 640px) ====== */
@media (max-width: 640px) {
  .hero { padding: 76px 16px 40px; min-height: 92vh; }
  .hero-icon { width: 64px; height: 64px; margin-bottom: 22px; }
  .badges { gap: 6px; margin-bottom: 24px; }
  .badge { padding: 4px 10px; font-size: 11px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; padding: 12px 18px; font-size: 14px; }
  .scroll-hint { display: none; }

  .section { padding: 56px 18px; }
  .section--tight { padding-top: 0; }
  .section-title { font-size: 26px; }
  .section-desc { font-size: 14px; margin-bottom: 36px; }

  .features-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 22px 20px; }

  .workflow { grid-template-columns: 1fr; gap: 12px; }
  .workflow-step { padding: 22px 18px; }

  .screenshots-grid { grid-template-columns: 1fr; max-width: 280px; margin-left: auto; margin-right: auto; }
  .screenshot-inner img { aspect-ratio: 9 / 17; }

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

  .companion-links { flex-direction: column; align-items: stretch; }
  .companion-link { justify-content: center; width: 100%; }

  .download-options { flex-direction: column; align-items: stretch; }
  .download-options .btn { justify-content: center; }

  .footer { padding: 44px 18px 28px; font-size: 12px; }
  .footer-links { gap: 14px; font-size: 11px; }

  .lang-toggle { top: 10px; right: 10px; padding: 3px; }
  .lang-btn { padding: 5px 10px; font-size: 11px; }

  .back-to-top { right: 12px; bottom: 12px; width: 40px; height: 40px; }

  .tech-item { padding: 22px 20px; }
}

/* ====== Tablet (≤ 820px) ====== */
@media (max-width: 820px) and (min-width: 641px) {
  .hero { padding: 80px 24px 48px; }
  .features-grid { max-width: 600px; margin-left: auto; margin-right: auto; }
}
