/* ============================================
   CoView Product Website - Refined Editorial Theme
   ============================================ */

:root {
  --black: #131416;
  --white: #ffffff;
  --ink-strong: #16171b;
  --ink: #2b3137;
  --ink-soft: #5b6570;
  --ink-faint: #87919b;
  --bg-primary: #f4f2ee;
  --bg-secondary: #ece8e0;
  --bg-tertiary: #e4dfd5;
  --bg-card: rgba(255, 255, 255, 0.78);
  --bg-card-strong: rgba(255, 255, 255, 0.92);
  --bg-dark: #171b20;
  --border-color: rgba(32, 36, 42, 0.12);
  --border-strong: rgba(32, 36, 42, 0.18);
  --accent: #6f8872;
  --accent-deep: #4f6655;
  --accent-glow: rgba(111, 136, 114, 0.22);
  --accent-soft: rgba(111, 136, 114, 0.1);
  --shadow-sm: 0 10px 30px rgba(17, 21, 28, 0.06);
  --shadow-md: 0 22px 60px rgba(17, 21, 28, 0.1);
  --shadow-lg: 0 40px 110px rgba(17, 21, 28, 0.16);
  --shadow-inner: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 38px;
  --max-width: 1240px;
  --transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: "Noto Serif SC", "Songti SC", serif;
  --font-mono: "SF Mono", "JetBrains Mono", Menlo, Monaco, Consolas, monospace;
}

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

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

body {
  position: relative;
  min-height: 100vh;
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.96), transparent 36%),
    radial-gradient(circle at top right, rgba(161, 186, 162, 0.18), transparent 26%),
    linear-gradient(180deg, #fbfaf7 0%, #f0ede7 46%, #f5f2eb 100%);
  color: var(--ink);
  line-height: 1.72;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: -1;
  filter: blur(10px);
}

body::before {
  top: -120px;
  right: -70px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(124, 149, 126, 0.24), rgba(124, 149, 126, 0));
}

body::after {
  left: -140px;
  bottom: -160px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
}

.home-page::selection,
.docs-page::selection {
  background: rgba(111, 136, 114, 0.22);
}

main, section, footer, header {
  position: relative;
}

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

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

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

.section {
  padding: 112px 24px;
}

.section::before {
  content: "";
  position: absolute;
  top: 44px;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(20, 24, 29, 0.08), transparent);
}

.section-header {
  max-width: 760px;
  margin: 0 auto 64px;
  text-align: center;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(111, 136, 114, 0.16);
  box-shadow: var(--shadow-inner);
}

.section-title,
.docs-content h1,
.docs-content h2,
.hero-title {
  font-family: var(--font-display);
}

.section-title {
  margin: 18px 0 16px;
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink-strong);
}

.section-desc {
  font-size: 1.02rem;
  color: var(--ink-soft);
  line-height: 1.9;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 18px;
  left: 24px;
  right: 24px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border-radius: 22px;
  box-shadow: 0 16px 46px rgba(19, 20, 22, 0.08);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 48px rgba(19, 20, 22, 0.12);
}

.nav-container {
  max-width: var(--max-width);
  height: 74px;
  margin: 0 auto;
  padding: 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink-strong);
  font-weight: 700;
  font-size: 1.16rem;
  letter-spacing: 0.02em;
}

.nav-brand img {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: var(--transition);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;
  height: 1.5px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(111, 136, 114, 0), rgba(111, 136, 114, 0.9), rgba(111, 136, 114, 0));
  transform: scaleX(0.2);
  opacity: 0;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink-strong);
  background: rgba(255, 255, 255, 0.64);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-cta {
  padding: 0 20px !important;
  color: var(--white) !important;
  background: linear-gradient(135deg, var(--black), #2c3137);
  box-shadow: 0 10px 30px rgba(19, 20, 22, 0.18);
}

.nav-github {
  border: 1px solid rgba(22, 26, 31, 0.1);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-inner);
}

.nav-github:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.92);
}

.language-toggle {
  border: 1px solid rgba(111, 136, 114, 0.18);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow-inner);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(19, 20, 22, 0.22);
}

.nav-cta::after {
  display: none;
}

.mobile-menu-btn {
  display: none;
  border: 0;
  background: rgba(255, 255, 255, 0.56);
  width: 42px;
  height: 42px;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.mobile-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink-strong);
  border-radius: 999px;
  transition: var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  padding: 140px 24px 88px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 84px 28px 40px;
  border-radius: 44px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.22)),
    radial-gradient(circle at 18% 26%, rgba(255, 255, 255, 0.84), transparent 36%),
    radial-gradient(circle at 78% 12%, rgba(149, 176, 150, 0.22), transparent 28%),
    linear-gradient(180deg, rgba(241, 238, 231, 0.9), rgba(235, 232, 224, 0.56));
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 35px 120px rgba(24, 27, 32, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 8% 26%, rgba(255, 255, 255, 0.62), transparent 24%),
    radial-gradient(circle at 92% 10%, rgba(136, 166, 139, 0.18), transparent 18%),
    radial-gradient(circle at 80% 86%, rgba(255, 255, 255, 0.48), transparent 16%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 72px;
  align-items: center;
}

.hero-text {
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(111, 136, 114, 0.18);
  box-shadow: var(--shadow-inner), 0 12px 30px rgba(48, 59, 52, 0.06);
}

.hero-badge .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, #94be98 0%, #5e7f63 85%);
  box-shadow: 0 0 0 6px rgba(111, 136, 114, 0.12);
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.9); opacity: 0.66; }
}

.hero-title {
  margin: 26px 0 22px;
  max-width: 11.2em;
  font-size: clamp(2.05rem, 4.15vw, 3.7rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.034em;
  color: var(--ink-strong);
}

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

.hero-title-line + .hero-title-line {
  margin-top: 0.08em;
}

.hero-title .highlight {
  max-width: 9.2em;
  background: linear-gradient(135deg, var(--ink-strong) 0%, var(--accent-deep) 58%, #879f88 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-right: 0.02em;
}

.hero-subtitle {
  max-width: 520px;
  margin-bottom: 30px;
  font-size: 1.08rem;
  color: var(--ink-soft);
  line-height: 1.92;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 34px;
}

.hero-metric {
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm), var(--shadow-inner);
}

.hero-metric strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-strong);
}

.hero-metric span {
  display: block;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--black), #2f343a);
  box-shadow: 0 20px 40px rgba(19, 20, 22, 0.16);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px rgba(19, 20, 22, 0.22);
}

.btn-download {
  position: relative;
  color: var(--white);
  background: linear-gradient(135deg, #5d7f62, #7ea684 56%, #a8c1a5);
  box-shadow:
    0 22px 44px rgba(111, 136, 114, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.22) inset;
}

.btn-download::before {
  content: "立即下载";
  position: absolute;
  inset: -10px -12px;
  z-index: -1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(126, 166, 132, 0.32), rgba(126, 166, 132, 0));
  filter: blur(10px);
}

html[lang="en"] .btn-download::before {
  content: "Download";
}

.btn-download:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 28px 56px rgba(111, 136, 114, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.28) inset;
}

.btn-secondary {
  color: var(--ink-strong);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(25, 29, 35, 0.12);
  box-shadow: var(--shadow-inner);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(25, 29, 35, 0.2);
}

.hero-visual {
  position: relative;
  padding: 26px;
  border-radius: 38px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.46));
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow: 0 30px 90px rgba(19, 20, 22, 0.12), var(--shadow-inner);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  pointer-events: none;
}

.hero-screenshot {
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(21, 23, 27, 0.12);
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: var(--transition);
}

.hero-visual:hover .hero-screenshot {
  transform: perspective(1200px) rotateY(-1.5deg) rotateX(1deg) translateY(-4px);
}

.hero-float-card {
  position: absolute;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 40px rgba(17, 21, 28, 0.12), var(--shadow-inner);
  animation: float 8s ease-in-out infinite;
}

.hero-float-card.card-1 {
  top: -26px;
  right: -18px;
}

.hero-float-card.card-2 {
  bottom: 42px;
  left: -32px;
  animation-delay: -4s;
}

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

.float-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(111, 136, 114, 0.16), rgba(255, 255, 255, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
}

.float-text {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-strong);
}

.float-sub {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* ============================================
   DEMO SHOWCASE
   ============================================ */
.demo-showcase {
  padding-top: 20px;
}

.demo-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 30px;
  align-items: center;
}

.demo-copy {
  max-width: 520px;
}

.demo-points {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.demo-point {
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm), var(--shadow-inner);
}

.demo-point strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ink-strong);
}

.demo-point span {
  display: block;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

.demo-frame {
  position: relative;
  padding: 18px;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.62));
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-lg), var(--shadow-inner);
}

.demo-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  pointer-events: none;
}

.demo-frame-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  padding: 0 4px;
  flex-wrap: wrap;
}

.demo-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: linear-gradient(135deg, var(--black), #42504c);
  box-shadow: 0 10px 24px rgba(19, 20, 22, 0.12);
}

.demo-chip.subtle {
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(22, 26, 31, 0.08);
  box-shadow: var(--shadow-inner);
}

.demo-media,
.demo-frame img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(17, 21, 28, 0.18);
  display: block;
}

.demo-media {
  background: #0f1318;
  object-fit: cover;
}

/* ============================================
   CARD SYSTEM
   ============================================ */
.features-grid,
.cap-grid,
.download-grid {
  display: grid;
}

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

.feature-card,
.cap-item,
.voice-feature,
.download-card,
.docs-toc,
.param-card,
.docs-sidebar {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.62));
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm), var(--shadow-inner);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.feature-card {
  padding: 34px 30px;
  border-radius: 30px;
  overflow: hidden;
  transition: var(--transition);
}

.feature-card::before,
.cap-item::before,
.voice-feature::before,
.download-card::before,
.param-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.88), rgba(111,136,114,0.12), rgba(255,255,255,0.28));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.feature-card:hover,
.cap-item:hover,
.voice-feature:hover,
.download-card:hover,
.param-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md), var(--shadow-inner);
}

.feature-icon,
.cap-item-icon,
.voice-feature-icon,
.param-group-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(111, 136, 114, 0.16), rgba(255, 255, 255, 0.82));
  color: var(--ink-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.feature-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  font-size: 1.5rem;
  margin-bottom: 22px;
}

.feature-title,
.step-title,
.cap-item-title,
.voice-feature-title,
.download-title {
  color: var(--ink-strong);
  font-size: 1.12rem;
  font-weight: 700;
}

.feature-desc,
.step-desc,
.cap-item-desc,
.voice-feature-desc,
.download-desc,
.footer-desc,
.docs-content p,
.docs-content li,
.param-desc {
  color: var(--ink-soft);
}

.feature-card.large {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 30px;
  align-items: center;
}

.feature-card.large .feature-content {
  padding: 6px;
}

.feature-visual,
.flow-diagram img,
.voice-visual img,
.docs-content img {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 20px 60px rgba(17, 21, 28, 0.12);
}

.feature-visual img,
.flow-diagram img,
.voice-visual img,
.docs-content img {
  width: 100%;
}

/* ============================================
   WORKFLOW
   ============================================ */
.how-it-works,
.code-agent,
.download-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
}

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

.step-card {
  position: relative;
  padding: 28px 20px 0;
  text-align: center;
}

.step-card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 56px;
  right: -16px;
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, rgba(111, 136, 114, 0.2), rgba(111, 136, 114, 0.58));
}

.step-number {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--white);
  background: linear-gradient(135deg, #1c2126, #5f7662);
  box-shadow: 0 18px 36px rgba(31, 39, 46, 0.2);
}

.step-desc {
  margin-top: 10px;
  font-size: 0.9rem;
  line-height: 1.8;
}

.flow-diagram {
  margin-top: 62px;
}

.flow-diagram img {
  max-width: 860px;
  margin: 0 auto;
}

/* ============================================
   CAPABILITIES
   ============================================ */
.capability-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 38px;
  flex-wrap: wrap;
}

.cap-tab {
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(22, 26, 31, 0.09);
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-inner);
}

.cap-tab:hover {
  color: var(--ink-strong);
  transform: translateY(-2px);
}

.cap-tab.active {
  color: var(--white);
  background: linear-gradient(135deg, var(--black), #374047);
  border-color: transparent;
  box-shadow: 0 16px 32px rgba(19, 20, 22, 0.18);
}

.cap-content {
  display: none;
}

.cap-content.active {
  display: block;
  animation: fadeIn 0.45s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.cap-item {
  border-radius: 28px;
  padding: 28px;
  transition: var(--transition);
}

.cap-item-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.cap-item-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  font-size: 1.24rem;
  flex-shrink: 0;
}

.cap-item-desc {
  padding-left: 60px;
  font-size: 0.92rem;
  line-height: 1.8;
}

.param-type,
.param-default,
.docs-content code {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(111, 136, 114, 0.08);
  border: 1px solid rgba(111, 136, 114, 0.12);
  font-family: var(--font-mono);
  color: var(--accent-deep);
}

/* ============================================
   VOICE / CODE AGENT / STATS / CTA
   ============================================ */
.voice-section {
  background: linear-gradient(180deg, rgba(239, 235, 228, 0.45), rgba(255, 255, 255, 0.22));
}

.voice-grid,
.code-agent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px;
  align-items: center;
}

.voice-features {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.voice-feature {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: 26px;
}

.voice-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  font-size: 1.32rem;
  flex-shrink: 0;
}

.voice-feature-desc {
  margin-top: 6px;
  font-size: 0.88rem;
  line-height: 1.75;
}

.wake-word-demo {
  margin-top: 8px;
  padding: 24px;
  border-radius: 28px;
  color: var(--white);
  background: linear-gradient(145deg, rgba(22, 26, 31, 0.98), rgba(69, 82, 72, 0.96));
  box-shadow: 0 26px 60px rgba(19, 20, 22, 0.2);
}

.wake-word-demo-title {
  margin-bottom: 14px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.78;
}

.wake-words {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.wake-word {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  font-weight: 600;
}

.code-terminal {
  position: relative;
  padding: 56px 24px 26px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(98, 124, 99, 0.12), transparent 24%),
    linear-gradient(180deg, #11161b, #1a2027 64%, #161c22 100%);
  color: #d7e2ec;
  box-shadow: 0 30px 80px rgba(10, 14, 18, 0.34);
  font-family: var(--font-mono);
  font-size: 0.87rem;
  line-height: 1.8;
}

.code-terminal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 38px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 30px 30px 0 0;
}

.terminal-dots {
  position: absolute;
  top: 14px;
  left: 18px;
  display: flex;
  gap: 7px;
}

.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }
.terminal-prompt { color: #7ee489; }
.terminal-output { color: #8ea2b4; }
.terminal-success { color: #9fe2b0; }

.code-providers {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.code-provider {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-strong);
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(22, 26, 30, 0.08);
  box-shadow: var(--shadow-inner);
  transition: var(--transition);
}

.code-provider:hover {
  color: var(--white);
  background: linear-gradient(135deg, var(--black), #354048);
}

.stats-section {
  padding: 82px 24px;
  background: linear-gradient(180deg, #161a1f 0%, #1b2025 40%, #20262b 100%);
  color: var(--white);
}

.stats-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.stats-grid > div {
  padding: 30px 20px;
  border-radius: 26px;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1;
  color: #f7f3eb;
}

.stat-label {
  margin-top: 10px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.64);
  line-height: 1.65;
}

.download-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 1040px;
  margin: 42px auto 0;
}

.download-card {
  padding: 34px 28px;
  border-radius: 30px;
  text-align: center;
}

.download-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 16px;
  padding: 10px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 242, 238, 0.92));
  border: 1px solid rgba(22, 26, 31, 0.06);
  box-shadow: var(--shadow-sm), var(--shadow-inner);
}

.download-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(17, 21, 28, 0.08));
}

.download-card:hover .download-icon {
  transform: translateY(-2px);
  transition: var(--transition);
}

.download-card:hover .download-icon img {
  transform: scale(1.03);
  transition: var(--transition);
}

.download-card .download-icon + .download-title {
  margin-bottom: 14px;
}

.download-desc {
  margin: 10px 0 20px;
  font-size: 0.9rem;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--black), #364048);
  font-size: 0.88rem;
  font-weight: 700;
  transition: var(--transition);
}

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

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 74px 24px 28px;
  color: rgba(255, 255, 255, 0.86);
  background: radial-gradient(circle at top left, rgba(111, 136, 114, 0.14), transparent 28%), linear-gradient(180deg, #14181d, #0f1318);
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto 34px;
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 34px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 1.08rem;
  font-weight: 700;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

.footer-desc {
  max-width: 320px;
  font-size: 0.9rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.58);
}

.footer-title {
  margin-bottom: 16px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.42);
}

.footer-links {
  list-style: none;
}

.footer-links li + li {
  margin-top: 10px;
}

.footer-links a {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.72);
  transition: var(--transition);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.42);
}

/* ============================================
   DOCS PAGE
   ============================================ */
.docs-page {
  background:
    radial-gradient(circle at top right, rgba(132, 156, 134, 0.18), transparent 22%),
    linear-gradient(180deg, #f8f5ef 0%, #f2eee7 56%, #f8f5ef 100%);
}

.docs-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 124px 24px 84px;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 38px;
}

.docs-sidebar {
  position: sticky;
  top: 112px;
  height: fit-content;
  padding: 22px;
  border-radius: 30px;
}

.docs-nav-title {
  padding: 0 10px;
  margin-bottom: 12px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.docs-nav-list {
  list-style: none;
}

.docs-nav-list li + li {
  margin-top: 6px;
}

.docs-nav-list a {
  display: block;
  padding: 11px 14px;
  border-radius: 16px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  transition: var(--transition);
}

.docs-nav-list a:hover,
.docs-nav-list a.active {
  color: var(--ink-strong);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-inner), 0 10px 24px rgba(17, 21, 28, 0.06);
}

.docs-content {
  padding: 42px 44px;
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-md), var(--shadow-inner);
}

.docs-content h1 {
  margin-bottom: 16px;
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink-strong);
}

.docs-content h2 {
  margin: 52px 0 18px;
  padding-bottom: 14px;
  font-size: 1.72rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink-strong);
  border-bottom: 1px solid rgba(27, 31, 36, 0.08);
}

.docs-content h3 {
  margin: 32px 0 12px;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink-strong);
}

.docs-content h4 {
  margin: 24px 0 8px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.docs-content p,
.docs-content li {
  font-size: 0.98rem;
  line-height: 1.95;
}

.docs-content ul,
.docs-content ol {
  padding-left: 1.3rem;
  margin-bottom: 16px;
}

.docs-content li + li {
  margin-top: 6px;
}

.docs-install-actions {
  margin: 10px 0 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.docs-install-actions .btn {
  min-height: 46px;
  padding: 0 22px;
}

.docs-demo-frame {
  margin: 18px 0 30px;
}

.docs-demo-media {
  aspect-ratio: 16 / 9;
  min-height: 320px;
}

.docs-content a:not(.btn) {
  color: #3f6fcb;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(63, 111, 203, 0.32);
  text-underline-offset: 0.18em;
  transition: var(--transition);
}

.docs-content a:not(.btn):hover {
  color: #2458bb;
  text-decoration-color: rgba(36, 88, 187, 0.56);
}

.docs-content code {
  min-height: auto;
  padding: 2px 10px;
  font-size: 0.84em;
}

.docs-content pre {
  position: relative;
  margin: 22px 0;
  padding: 22px;
  border-radius: 24px;
  overflow-x: auto;
  background: linear-gradient(180deg, #13181e, #1b2128);
  color: #d7e2ec;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.8;
  box-shadow: 0 24px 60px rgba(17, 21, 28, 0.22);
}

.docs-content pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.docs-content blockquote {
  margin: 22px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--accent);
  border-radius: 0 18px 18px 0;
  background: rgba(111, 136, 114, 0.08);
  color: var(--ink-soft);
}

.docs-content table {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-sm);
}

.docs-content th,
.docs-content td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(23, 27, 33, 0.07);
}

.docs-content th {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--ink-strong);
  background: rgba(111, 136, 114, 0.08);
}

.docs-content td {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.docs-content tr:hover td {
  background: rgba(255, 255, 255, 0.7);
}

.docs-toc {
  padding: 24px 24px 18px;
  border-radius: 28px;
  margin-bottom: 28px;
}

.docs-toc-title {
  margin-bottom: 12px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ink-strong);
}

.docs-toc-list {
  list-style: none;
  padding: 0;
}

.docs-toc-list li + li {
  margin-top: 8px;
}

.docs-toc-list a {
  color: var(--ink-soft);
  transition: var(--transition);
}

.docs-toc-list a:hover {
  color: var(--accent-deep);
}

.param-group {
  margin-top: 36px;
}

.param-group-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 1.14rem;
  font-weight: 700;
  color: var(--ink-strong);
}

.param-group-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  font-size: 1rem;
}

.param-card {
  padding: 20px;
  border-radius: 24px;
}

.param-card + .param-card {
  margin-top: 14px;
}

.param-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.param-name {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-strong);
}

.param-type {
  font-size: 0.74rem;
}

.param-default {
  font-size: 0.78rem;
  width: fit-content;
  margin-bottom: 10px;
}

.param-default strong {
  color: var(--accent-deep);
}

.param-desc {
  font-size: 0.92rem;
  line-height: 1.82;
}

/* ============================================
   ANIMATIONS / UTILITIES
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--black), #39454d);
  box-shadow: 0 18px 36px rgba(19, 20, 22, 0.18);
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  transition: var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1180px) {
  .hero-content,
  .demo-shell,
  .voice-grid,
  .code-agent-grid {
    grid-template-columns: 1fr;
  }

  .hero-text {
    max-width: none;
  }

  .hero-visual {
    max-width: 780px;
    margin: 0 auto;
  }

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

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

  .docs-sidebar {
    position: static;
  }
}

@media (max-width: 960px) {
  .navbar {
    left: 14px;
    right: 14px;
    top: 14px;
  }

  .nav-container {
    padding: 0 18px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    padding: 18px;
    flex-direction: column;
    gap: 10px;
    background: rgba(255, 255, 255, 0.86);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.88);
    box-shadow: 0 26px 64px rgba(19, 20, 22, 0.12);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li,
  .nav-links a {
    width: 100%;
  }

  .mobile-menu-btn {
    display: inline-block;
  }

  .hero {
    padding-top: 122px;
  }

  .hero::before {
    inset: 76px 14px 28px;
    border-radius: 30px;
  }

  .features-grid,
  .stats-grid,
  .download-grid,
  .cap-grid {
    grid-template-columns: 1fr;
  }

  .feature-card.large {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

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

  .step-card:nth-child(2)::after {
    display: none;
  }

  .docs-content {
    padding: 32px 24px;
  }

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

@media (max-width: 720px) {
  .section {
    padding: 84px 18px;
  }

  .section::before {
    left: 18px;
    right: 18px;
  }

  .hero-title {
    max-width: none;
    font-size: clamp(1.9rem, 8.1vw, 2.85rem);
    line-height: 1.14;
  }

  .hero-title .highlight {
    max-width: none;
  }

  .hero-subtitle {
    font-size: 0.98rem;
  }

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

  .demo-frame {
    padding: 12px;
    border-radius: 24px;
  }

  .docs-demo-media {
    min-height: 220px;
  }

  .demo-frame::before {
    inset: 7px;
    border-radius: 18px;
  }

  .hero-float-card {
    display: none;
  }

  .hero-visual {
    padding: 14px;
    border-radius: 24px;
  }

  .hero-screenshot,
  .flow-diagram img,
  .feature-visual,
  .voice-visual img,
  .docs-content img {
    border-radius: 18px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .step-card::after {
    display: none !important;
  }

  .feature-card,
  .cap-item,
  .voice-feature,
  .download-card,
  .param-card,
  .docs-toc,
  .docs-sidebar {
    border-radius: 22px;
  }

  .voice-feature {
    flex-direction: column;
  }

  .docs-layout {
    padding: 112px 16px 56px;
  }

  .docs-sidebar {
    padding: 18px;
  }

  .docs-nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .docs-nav-list li + li {
    margin-top: 0;
  }

  .docs-nav-list a {
    padding: 8px 12px;
    font-size: 0.84rem;
  }

  .docs-content h1 {
    font-size: 2.1rem;
  }

  .docs-content h2 {
    font-size: 1.45rem;
  }

  .param-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .back-to-top {
    right: 18px;
    bottom: 18px;
  }
}
