/* ===================================================
   随手AI — 摩卡主题 · 编辑式设计 · v2 细化版
   =================================================== */

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

:root {
  --bg:        #1e1714;
  --bg2:       #2a211c;
  --bg3:       #382e27;
  --bg4:       #453a32;
  --text:      #ede0d4;
  --text2:     #9c8675;
  --text3:     #6b5a4d;
  --accent:    #d4a373;
  --accent2:   #c9a887;
  --accent-dim:rgba(212,163,115,0.12);
  --success:   #87b68a;
  --warn:      #d4b87a;
  --error:     #c98e8e;
  --border:    rgba(212,163,115,0.08);
  --border2:   rgba(212,163,115,0.15);
  --font:  'Space Grotesk', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --font-cn: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --container: 1180px;
  --gap: 24px;
  --ease: cubic-bezier(0.16,1,0.3,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: rgba(212,163,115,0.3); color: var(--text); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }

/* ===== SKIP LINK (A11y) ===== */
.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 100001;
  background: var(--accent); color: var(--bg); padding: 12px 24px;
  border-radius: 0 0 8px 8px; font-weight: 700; font-size: 14px;
  transition: top 0.3s;
}
.skip-link:focus { top: 0; }

/* ===== NOISE ===== */
.noise {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat; background-size: 256px;
}

/* ===== LOADER ===== */
#loader {
  position: fixed; inset: 0; z-index: 100000; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s 0.2s, visibility 0.5s 0.2s;
}
#loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.loader-logo { border-radius: 12px; animation: loaderPulse 1.2s ease-in-out infinite; }
@keyframes loaderPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}
.loader-bar { width: 120px; height: 2px; background: var(--bg3); border-radius: 1px; overflow: hidden; }
.loader-bar-fill { width: 0%; height: 100%; background: var(--accent); border-radius: 1px; animation: loaderFill 1s ease-out forwards; }
@keyframes loaderFill { to { width: 100%; } }

/* ===== SCROLL PROGRESS ===== */
#scrollProgress {
  position: fixed; top: 0; left: 0; height: 2px; z-index: 10001;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  width: 0%; transition: none;
  box-shadow: 0 0 8px rgba(212,163,115,0.3);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg3); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
html { scrollbar-width: thin; scrollbar-color: var(--bg3) transparent; }

/* ===== NAVBAR ===== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 20px 0; transition: all 0.4s var(--ease);
}
#navbar.scrolled {
  padding: 12px 0;
  background: rgba(30,23,20,0.88);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center;
}
.nav-logo { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.nav-logo img { border-radius: 8px; }
.nav-links { display: flex; gap: 36px; margin-right: 36px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--text3);
  transition: color 0.3s; letter-spacing: 0.02em; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1.5px; background: var(--accent); border-radius: 1px;
  transform: scaleX(0); transition: transform 0.3s var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-links a.active::after,
.nav-links a:hover::after { transform: scaleX(1); }
/* Language Switcher */
.lang-switcher {
  display: flex; gap: 2px; margin-right: 16px;
  background: var(--bg3); border-radius: 6px; padding: 2px;
}
.lang-opt {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  padding: 4px 8px; border-radius: 4px; color: var(--text3);
  transition: all 0.3s; letter-spacing: 0.5px;
}
.lang-opt:hover { color: var(--text); }
.lang-opt.active { background: var(--accent-dim); color: var(--accent); }

.nav-cta {
  font-size: 13px; font-weight: 600; color: var(--bg) !important;
  background: var(--accent); padding: 8px 22px; border-radius: 8px;
  transition: opacity 0.3s, transform 0.3s;
}
.nav-cta:hover { opacity: 0.85; transform: translateY(-1px); }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 24px; height: 14px; position: relative; margin-left: 20px;
}
.nav-toggle span {
  position: absolute; left: 0; width: 100%; height: 1.5px;
  background: var(--text); transition: all 0.3s;
}
.nav-toggle span:first-child { top: 0; }
.nav-toggle span:last-child { bottom: 0; }
.nav-toggle.active span:first-child { top: 50%; transform: rotate(45deg); }
.nav-toggle.active span:last-child { bottom: 50%; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 999;
  background: rgba(30,23,20,0.97); backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all 0.5s var(--ease);
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu-inner { display: flex; flex-direction: column; align-items: center; gap: 32px; }
.mobile-menu-inner a { font-size: 28px; font-weight: 700; color: var(--text2); transition: color 0.3s; }
.mobile-menu-inner a:hover { color: var(--accent); }
.mobile-lang {
  display: flex; gap: 16px; margin-top: 16px; padding-top: 24px;
  border-top: 1px solid var(--border);
}
.mobile-lang a {
  font-size: 14px !important; font-weight: 500 !important;
  color: var(--text3) !important; transition: color 0.3s;
}
.mobile-lang a.active { color: var(--accent) !important; }
.mobile-lang a:hover { color: var(--text) !important; }

/* ===== HERO ===== */
#hero {
  position: relative; min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; overflow: hidden; padding-top: 80px;
}
#fluidCanvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(212,163,115,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,163,115,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, black 20%, transparent 70%);
}
.hero-content {
  position: relative; z-index: 2; max-width: var(--container);
  margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: center; width: 100%;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 14px; margin-bottom: 32px;
  font-size: 12px; font-weight: 500; color: var(--text2);
  text-transform: uppercase; letter-spacing: 3px;
}
.eyebrow-line { display: block; width: 40px; height: 1px; background: var(--accent); }
.hero-title {
  font-family: var(--font-cn); font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 28px;
}
.title-line { display: block; overflow: hidden; }
.title-word { display: inline-block; }
.title-word.accent { color: var(--accent); font-style: italic; }
.title-comma, .title-period { color: var(--text3); font-style: normal; }
.hero-desc { font-size: 16px; line-height: 1.8; color: var(--text2); margin-bottom: 40px; max-width: 400px; }
.hero-actions { display: flex; align-items: center; gap: 28px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 36px; background: var(--accent); color: var(--bg);
  font-weight: 700; font-size: 15px; border-radius: 12px;
  transition: all 0.4s var(--ease); border: none; cursor: pointer;
  position: relative; overflow: hidden;
}
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
  transform: translateX(-100%); transition: transform 0.6s;
}
.btn-primary:hover::after { transform: translateX(100%); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(212,163,115,0.25); }
.btn-primary .btn-arrow { transition: transform 0.3s; position: relative; z-index: 1; }
.btn-primary .btn-text { position: relative; z-index: 1; }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }
.hero-meta { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--text3); }
.meta-sep { opacity: 0.3; }

/* Hero Mascot */
.hero-right { position: relative; display: flex; justify-content: center; }
.hero-visual { position: relative; width: 100%; max-width: 420px; display: flex; align-items: center; justify-content: center; }
.mascot-wrap { position: relative; display: flex; align-items: center; justify-content: center; }
.mascot-img {
  border-radius: 40px; position: relative; z-index: 2;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,0.4));
  animation: mascotFloat 6s ease-in-out infinite;
}
@keyframes mascotFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.mascot-glow {
  position: absolute; inset: -40px;
  background: radial-gradient(circle, rgba(212,163,115,0.15) 0%, transparent 65%);
  border-radius: 50%; filter: blur(40px); z-index: 1;
  animation: glowPulse 4s ease-in-out infinite;
}
.mascot-ring {
  position: absolute; inset: -20px; border: 1px solid rgba(212,163,115,0.06);
  border-radius: 50%; z-index: 0;
  animation: ringExpand 6s ease-in-out infinite;
}
@keyframes ringExpand {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.08); opacity: 0.2; }
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* Floating cards */
.float-card {
  position: absolute; z-index: 3; background: rgba(42,33,28,0.85);
  border: 1px solid var(--border2); border-radius: 10px;
  padding: 10px 16px; font-size: 13px;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  animation: cardFloat 5s ease-in-out infinite;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  will-change: transform;
}
.fc-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(212,163,115,0.4); }
.fc-dot.green { background: var(--success); box-shadow: 0 0 8px rgba(135,182,138,0.4); }
.fc-dot.warm { background: var(--warn); box-shadow: 0 0 8px rgba(212,184,122,0.4); }
.fc-text { color: var(--text2); font-weight: 500; }
.fc-text.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 1px; color: var(--accent); }
.fc-arrow { color: var(--accent); }
.float-card-1 { top: 5%; right: -10px; animation-delay: 0s; }
.float-card-2 { bottom: 28%; left: -40px; animation-delay: -1.5s; }
.float-card-3 { bottom: 5%; right: 5%; animation-delay: -3s; }
.float-card-4 { top: 35%; left: -25px; animation-delay: -4s; }
@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Marquee */
.hero-marquee {
  position: relative; z-index: 2; margin-top: 80px; overflow: hidden;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 18px 0;
}
.marquee-track {
  display: flex; gap: 40px; white-space: nowrap;
  animation: marquee 30s linear infinite;
  font-size: 13px; font-weight: 500; color: var(--text3);
  text-transform: uppercase; letter-spacing: 2px;
}
.marquee-dot { color: var(--accent); font-size: 6px; display: flex; align-items: center; opacity: 0.4; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== SECTION INTRO ===== */
.section-intro {
  display: flex; align-items: baseline; gap: 24px;
  margin-bottom: 64px; padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.intro-num { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: 1px; }
.section-intro h2 {
  font-family: var(--font-cn); font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900; letter-spacing: -0.02em;
}

/* ===== FEATURES BENTO ===== */
#features { padding: 140px 0; }
.features-bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.bento-card {
  position: relative; border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; transition: border-color 0.4s, transform 0.4s, box-shadow 0.4s;
  background: var(--bg);
}
.bento-card:hover {
  border-color: var(--border2); transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.15);
}
.bento-card.bento-large { grid-row: span 2; }
.bento-inner { padding: 32px; height: 100%; display: flex; flex-direction: column; position: relative; }
.bento-label {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 2px; color: var(--accent); margin-bottom: 20px;
}
.bento-card h3 {
  font-family: var(--font-cn); font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 900; line-height: 1.3; margin-bottom: 16px; letter-spacing: -0.01em;
}
.bento-card p { font-size: 14px; color: var(--text2); line-height: 1.7; margin-top: auto; }

/* Bento decorative SVGs */
.bento-deco {
  position: absolute; bottom: 16px; right: 16px;
  color: var(--accent); opacity: 0.12; transition: opacity 0.4s, transform 0.4s;
  pointer-events: none;
}
.bento-card:hover .bento-deco { opacity: 0.25; transform: scale(1.05); }
.deco-pulse { width: 120px; height: 120px; }
.deco-blocks { width: 100px; height: 100px; }
.deco-wave { width: 110px; height: 66px; }
.deco-palette { width: 100px; height: 100px; }
.deco-key { width: 100px; height: 60px; }
.deco-platform { width: 100px; height: 80px; }

/* Card shimmer */
.bento-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(212,163,115,0.04) 50%, transparent 60%);
  opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.bento-card:hover::before { opacity: 1; }

/* Top accent line on hover */
.bento-card::after {
  content: ''; position: absolute; top: 0; left: 20%; right: 20%;
  height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.bento-card:hover::after { opacity: 0.4; }

/* ===== WORKFLOW ===== */
#workflow { padding: 140px 0; background: var(--bg2); }
.workflow-steps { display: flex; flex-direction: column; gap: 0; }
.wf-step {
  display: grid; grid-template-columns: 120px 1fr 1fr; gap: 40px;
  align-items: center; padding: 60px 0;
  border-bottom: 1px solid var(--border); position: relative;
}
.wf-step:last-child { border-bottom: none; }
.wf-num-big {
  font-family: var(--mono); font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700; color: var(--bg3); line-height: 1; transition: color 0.5s;
}
.wf-step:hover .wf-num-big { color: var(--accent); }
.wf-content h3 { font-family: var(--font-cn); font-size: 24px; font-weight: 900; margin-bottom: 12px; }
.wf-content p { font-size: 14px; color: var(--text2); line-height: 1.8; }
.wf-visual { display: flex; justify-content: flex-end; }

/* Mock UIs */
.wf-mock-select {
  background: var(--bg); border: 1px solid var(--border2); border-radius: 10px;
  padding: 16px 20px; font-family: var(--mono); font-size: 13px;
  line-height: 2; color: var(--text3); max-width: 300px; position: relative;
}
.wf-highlight {
  display: block; background: rgba(212,163,115,0.15); color: var(--text);
  border-radius: 3px; padding: 0 4px;
}
.wf-cursor-hint {
  position: absolute; bottom: -8px; right: 20px;
  font-size: 14px; color: var(--accent); opacity: 0.6;
  animation: cursorBounce 1.5s ease-in-out infinite;
}
@keyframes cursorBounce {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(2px, -3px); }
}
.wf-mock-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.wf-action {
  padding: 10px 18px; background: var(--bg); border: 1px solid var(--border2);
  border-radius: 8px; font-size: 12px; color: var(--text2); transition: all 0.3s;
  white-space: nowrap;
}
.wf-action.glow {
  background: var(--accent); color: var(--bg); font-weight: 600;
  border-color: var(--accent); box-shadow: 0 4px 20px rgba(212,163,115,0.2);
}
.wf-mock-stream {
  background: var(--bg); border: 1px solid var(--border2); border-radius: 10px;
  padding: 0; font-size: 14px; max-width: 300px; overflow: hidden;
}
.stream-think {
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text3);
}
.stream-think-label { color: var(--warn); }
.stream-think-text { opacity: 0.5; }
.stream-reply { padding: 16px; }
.stream-char {
  display: inline; opacity: 0;
  animation: charAppear 0.3s forwards;
  animation-delay: calc(var(--i) * 0.15s);
  color: var(--text);
}
@keyframes charAppear { to { opacity: 1; } }
.stream-caret {
  display: inline-block; width: 2px; height: 16px;
  background: var(--accent); vertical-align: text-bottom;
  margin-left: 2px; animation: caretBlink 1s step-end infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }

/* ===== ARENA ===== */
#arena { padding: 140px 0; }
.arena-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start; }
.arena-lead {
  font-family: var(--font-cn); font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900; line-height: 1.5; margin-bottom: 20px;
}
.arena-sub { font-size: 15px; color: var(--text2); line-height: 1.8; margin-bottom: 32px; }
.arena-features { display: flex; flex-direction: column; gap: 16px; }
.af-item { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--text2); }
.af-line { width: 16px; height: 1px; background: var(--accent); flex-shrink: 0; }
.arena-visual { position: relative; }
.arena-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.arena-model-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px; transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.arena-model-card:hover {
  border-color: var(--border2); transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.15);
}
.amc-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.amc-name { font-weight: 700; font-size: 14px; }
.amc-badge {
  font-family: var(--mono); font-size: 11px; color: var(--text3);
  background: var(--bg3); padding: 3px 10px; border-radius: 100px;
}
.amc-badge.top { color: var(--accent); background: var(--accent-dim); }
.amc-body { display: flex; flex-direction: column; gap: 10px; }
.amc-row { display: flex; align-items: center; gap: 8px; }
.amc-label { font-family: var(--mono); font-size: 10px; color: var(--text3); width: 24px; flex-shrink: 0; }
.amc-line {
  flex: 1; height: 4px; background: var(--bg4); border-radius: 2px;
  position: relative; overflow: hidden;
}
.amc-line::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: var(--w); background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform 1.2s var(--ease);
  transition-delay: var(--card-delay, 0s);
}
.arena-model-card.animate .amc-line::after { transform: scaleX(1); }
.arena-models-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.arena-models-list span {
  font-family: var(--mono); font-size: 11px; color: var(--text3);
  padding: 4px 12px; border: 1px solid var(--border); border-radius: 100px;
  transition: all 0.3s;
}
.arena-models-list span:hover { color: var(--accent); border-color: var(--accent-dim); background: var(--accent-dim); }

/* ===== THEMES ===== */
#themes { padding: 140px 0; background: var(--bg2); overflow: hidden; }
.themes-lead {
  font-family: var(--font-cn); font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700; color: var(--text2); margin-bottom: 64px; max-width: 500px;
}
.themes-river { position: relative; padding: 20px 0; }
.river-track {
  display: flex; gap: 16px; overflow-x: auto;
  padding: 20px 0 40px; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none; cursor: grab;
}
.river-track::-webkit-scrollbar { display: none; }
.river-track:active { cursor: grabbing; }

.river-swatch {
  flex-shrink: 0; width: 130px; height: 170px; border-radius: 14px;
  border: 1px solid var(--border); overflow: hidden; cursor: pointer;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
  scroll-snap-align: center; position: relative;
  background: var(--sw-bg);
}
/* Three-band theme preview */
.river-swatch::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 55%;
  background: var(--sw-bg);
}
.river-swatch::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 45%;
  background: linear-gradient(135deg, var(--sw-ac), color-mix(in srgb, var(--sw-ac) 60%, var(--sw-bg)));
}
/* Accent dot */
.sw-name {
  position: absolute; bottom: 8px; left: 0; right: 0;
  text-align: center; font-size: 11px; font-weight: 600;
  color: var(--sw-fg); z-index: 2; opacity: 0;
  transition: opacity 0.3s; letter-spacing: 0.5px;
}
.river-swatch:hover .sw-name { opacity: 0.9; }
/* Text bar decorations inside swatch */
.river-swatch .sw-name::before {
  content: ''; display: block; width: 30px; height: 2px;
  background: var(--sw-fg); border-radius: 1px; margin: 0 auto 6px;
  opacity: 0.3;
}
.river-swatch:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.river-swatch.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent), 0 16px 48px rgba(0,0,0,0.2);
}
.river-name {
  text-align: center; font-size: 16px; font-weight: 600;
  color: var(--text2); margin-top: 8px; transition: color 0.3s;
  font-family: var(--font-cn);
}

/* ===== FAQ ===== */
#faq { padding: 140px 0; background: var(--bg2); }
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.faq-item:hover {
  border-color: var(--border2);
}
.faq-item.open {
  border-color: var(--border2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 28px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-cn);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  transition: color 0.3s;
}
.faq-question:hover { color: var(--accent); }
.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  transition: transform 0.4s var(--ease), background 0.3s;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--accent);
  color: var(--bg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
}
.faq-answer p {
  padding: 0 28px 24px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text2);
}

/* ===== DOWNLOAD ===== */
#download { padding: 140px 0; }
.dl-block {
  display: flex; align-items: center; justify-content: space-between;
  gap: 60px; padding: 72px; background: var(--bg2);
  border: 1px solid var(--border); border-radius: 24px;
  position: relative; overflow: hidden;
}
/* Decorative dot pattern */
.dl-bg-dots {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.3;
  background-image: radial-gradient(circle, rgba(212,163,115,0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}
.dl-block::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(212,163,115,0.06), transparent 70%);
  pointer-events: none;
}
.dl-left { position: relative; z-index: 1; }
.dl-right { position: relative; z-index: 1; }
.dl-left h2 {
  font-family: var(--font-cn); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900; line-height: 1.2; margin-bottom: 12px;
}
.dl-line { display: block; }
.dl-line.accent { color: var(--accent); }
.dl-left p { font-size: 15px; color: var(--text2); }
.dl-right { display: flex; gap: 16px; flex-shrink: 0; }
.dl-btn {
  display: flex; align-items: center; gap: 12px; padding: 18px 32px;
  border: 1px solid var(--border2); border-radius: 14px;
  font-weight: 700; font-size: 15px; transition: all 0.4s var(--ease);
  background: var(--bg); position: relative; overflow: hidden;
}
.dl-btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(212,163,115,0.08) 50%, transparent 70%);
  transform: translateX(-100%); transition: transform 0.6s;
}
.dl-btn:hover::after { transform: translateX(100%); }
.dl-btn:hover { border-color: var(--accent); transform: translateY(-2px); }
.dl-meta {
  display: flex; justify-content: center; gap: 32px; margin-top: 24px;
  font-family: var(--mono); font-size: 12px; color: var(--text3); letter-spacing: 1px;
}

/* ===== FOOTER ===== */
footer { padding: 48px 0 32px; border-top: 1px solid var(--border); }
.footer-grid {
  display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 40px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 8px; }
.footer-brand img { border-radius: 6px; }
.footer-tagline { font-size: 13px; color: var(--text3); }
.footer-center { display: flex; align-items: center; }
.back-to-top {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border2); display: flex; align-items: center; justify-content: center;
  color: var(--text3); transition: all 0.3s;
}
.back-to-top:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.footer-right { display: flex; gap: 28px; }
.footer-right a { font-size: 14px; color: var(--text3); transition: color 0.3s; }
.footer-right a:hover { color: var(--accent); }
.footer-bottom { font-size: 12px; color: var(--text3); opacity: 0.5; }

/* ===== REVEAL ===== */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.40s; }
.faq-list .faq-item:nth-child(2) { transition-delay: 0.05s; }
.faq-list .faq-item:nth-child(3) { transition-delay: 0.10s; }
.faq-list .faq-item:nth-child(4) { transition-delay: 0.15s; }
.faq-list .faq-item:nth-child(5) { transition-delay: 0.20s; }
.faq-list .faq-item:nth-child(6) { transition-delay: 0.25s; }
.faq-list .faq-item:nth-child(7) { transition-delay: 0.30s; }
.faq-list .faq-item:nth-child(8) { transition-delay: 0.35s; }
.features-bento .bento-card:nth-child(2) { transition-delay: 0.05s; }
.features-bento .bento-card:nth-child(3) { transition-delay: 0.10s; }
.features-bento .bento-card:nth-child(4) { transition-delay: 0.15s; }
.features-bento .bento-card:nth-child(5) { transition-delay: 0.20s; }
.features-bento .bento-card:nth-child(6) { transition-delay: 0.25s; }
.features-bento .bento-card:nth-child(7) { transition-delay: 0.30s; }

/* ===== LEGAL PAGES ===== */
.legal-page {
  padding: 140px 0 80px;
}
.legal-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.legal-page h1 {
  font-family: var(--font-cn);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.legal-updated {
  font-size: 14px;
  color: var(--text3);
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.legal-content h2 {
  font-family: var(--font-cn);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 36px 0 14px;
}
.legal-content h2:first-child {
  margin-top: 0;
}
.legal-content p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text2);
  margin-bottom: 12px;
}
.legal-content ul {
  padding-left: 20px;
  margin: 8px 0 16px;
}
.legal-content li {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text2);
  margin-bottom: 6px;
}
.legal-content strong {
  color: var(--text);
  font-weight: 600;
}
.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: opacity 0.3s;
}
.legal-content a:hover {
  opacity: 0.75;
}
.footer-right a.active {
  color: var(--accent);
}
.legal-faq {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.legal-faq-title {
  font-family: var(--font-cn);
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 32px;
}
.legal-faq-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.legal-faq-item {
  padding: 24px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.3s;
}
.legal-faq-item:hover {
  border-color: var(--border2);
}
.legal-faq-item dt {
  font-family: var(--font-cn);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.legal-faq-item dt::before {
  content: 'Q';
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0;
}
.legal-faq-item dd {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text2);
  padding-left: 31px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 60px; }
  .hero-right { display: none; }
  .features-bento { grid-template-columns: repeat(2, 1fr); }
  .bento-card.bento-large { grid-row: span 1; }
  .arena-layout { grid-template-columns: 1fr; gap: 48px; }
  .wf-step { grid-template-columns: 80px 1fr; gap: 24px; }
  .wf-visual { display: none; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .lang-switcher { display: none; }
  .nav-toggle { display: block; }
  .features-bento { grid-template-columns: 1fr; }
  .wf-step { grid-template-columns: 60px 1fr; }
  .dl-block { flex-direction: column; padding: 48px 32px; text-align: center; }
  .dl-right { justify-content: center; }
  .arena-grid { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; gap: 24px; align-items: center; text-align: center; }
  .footer-center { order: -1; }
  section { padding: 100px 0 !important; }
}
@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .dl-right { flex-direction: column; width: 100%; }
  .dl-btn { justify-content: center; width: 100%; }
  .dl-meta { flex-direction: column; align-items: center; gap: 8px; }
}
