/* ═══════════════════════════════════════════════════════
   创投对对碰 官网样式
   风格：Claude Code 深色终端美学 + 暖珊瑚橙
   ═══════════════════════════════════════════════════════ */

/* ── Design Tokens ── */
:root {
  /* 背景层级 */
  --bg-app:        #1F1E1D;
  --bg-sidebar:    #191817;
  --bg-panel:      #262524;
  --bg-elevated:   #2E2C2A;
  --bg-input:      #30302E;
  --bg-hover:      #353331;

  /* 文字 */
  --text-primary:  #E8E6E3;
  --text-secondary:#A8A49E;
  --text-tertiary: #6E6A64;
  --text-inverse:  #1F1E1D;

  /* 品牌强调色 */
  --accent:        #D97757;
  --accent-hover:  #E08B6D;
  --accent-subtle: rgba(217,119,87,.12);
  --accent-muted:  rgba(217,119,87,.25);

  /* 语义色 */
  --success:       #7BAE7F;
  --success-subtle:rgba(123,174,127,.12);
  --warning:       #D9A75B;
  --warning-subtle:rgba(217,167,91,.12);
  --danger:        #C45B5B;
  --danger-subtle: rgba(196,91,91,.12);

  /* 身份色 */
  --role-investor: #6B9BD1;
  --role-founder:  #5BB8A8;
  --role-gov:      #D9A75B;

  /* 边框与分割 */
  --border:        #3A3836;
  --border-subtle: #2C2A28;
  --border-accent: rgba(217,119,87,.40);

  /* 圆角 */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  14px;
  --radius-xl:  20px;
  --radius-full:9999px;

  /* 阴影 */
  --shadow-sm:  0 2px 8px rgba(0,0,0,.25);
  --shadow-md:  0 4px 16px rgba(0,0,0,.35);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.45);
  --shadow-glow: 0 0 60px rgba(217,119,87,.15);

  /* 字体：Sora 英文/数字；中文走系统字体，避免 Inter + 全量 Noto 拖慢首屏 */
  --font-sans: "Sora", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Cascadia Code", monospace;

  /* 字号 */
  --text-xs:   12px;
  --text-sm:   13px;
  --text-base: 14px;
  --text-md:   15px;
  --text-lg:   18px;
  --text-xl:   22px;
  --text-2xl:  28px;
  --text-3xl:  36px;
  --text-4xl:  48px;
  --text-5xl:  64px;

  /* 间距 */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10:40px;
  --space-12:48px;
  --space-16:64px;
  --space-20:80px;
  --space-24:96px;

  /* 过渡 */
  --transition-fast: 150ms ease-out;
  --transition-base: 200ms ease-out;
  --transition-slow: 300ms ease-out;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── Login-style pointer gravity starfield ── */
.site-starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* 内容在星空之上；勿给 .site-header 设 z-index，否则会困住内部 fixed 导航 */
#main-content {
  position: relative;
  z-index: 1;
}

.site-footer,
.footer {
  position: relative;
  z-index: 2;
}

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

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

/* ─ Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-app);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

/* ═══════════════════════════════════════════════════════
   Navigation
   ═══════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(25, 24, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  height: 64px;
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-logo {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-3);
  font-weight: 700;
  font-size: var(--text-lg);
  white-space: nowrap;
}

.nav-center {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
}

.nav-actions {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-4);
}

.logo-icon {
  color: var(--accent);
  font-size: var(--text-xl);
}

.logo-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

.logo-text {
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: var(--space-6);
}

.nav-links a {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-academy {
  color: var(--text-primary) !important;
  position: relative;
}

.nav-academy::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.nav-academy:hover::after,
.nav-academy.is-active::after {
  opacity: 1;
}

.nav-academy.is-active {
  color: var(--accent) !important;
}

.nav-cta {
  padding: var(--space-2) var(--space-5);
  background: var(--accent);
  color: var(--text-inverse);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4) var(--space-6);
  background: rgba(25, 24, 23, 0.98);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.mobile-menu a {
  padding: var(--space-3) 0;
  color: var(--text-secondary);
  font-size: var(--text-base);
  font-weight: 500;
}

.mobile-menu a:hover {
  color: var(--text-primary);
}

.mobile-menu .mobile-cta {
  margin-top: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: var(--accent);
  color: var(--text-inverse);
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 600;
}

@media (max-width: 1100px) {
  .nav-links {
    gap: var(--space-4);
  }

  .nav-links a {
    font-size: var(--text-xs);
  }
}

/* ═══════════════════════════════════════════════════════
   Hero Section
   ═══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(64px + var(--space-20)) var(--space-6) var(--space-20);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-muted) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(217, 119, 87, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 119, 87, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 75%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: transparent;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: var(--space-6);
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-title {
  font-size: var(--text-5xl);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
}

.hero-accent {
  color: var(--accent);
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  margin-bottom: 0;
}

.hero-platforms {
  display: flex;
  gap: var(--space-3);
}

.platform-tag {
  padding: var(--space-1) var(--space-3);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

/* ── Buttons ─ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--text-inverse);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--bg-elevated);
  border-color: var(--border-accent);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--bg-elevated);
  border-color: var(--accent);
}

.btn-large {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

/* ── Hero Mockup ── */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-mockup {
  width: 100%;
  max-width: 560px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform var(--transition-slow);
}

.hero-mockup:hover {
  transform: perspective(1200px) rotateY(-1deg) rotateX(0deg);
}

.mockup-titlebar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border-subtle);
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

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

.dot-red { background: #C45B5B; }
.dot-yellow { background: #D9A75B; }
.dot-green { background: #7BAE7F; }

.mockup-title {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-left: var(--space-4);
}

.mockup-body {
  display: grid;
  grid-template-columns: 48px 200px 1fr;
  height: 360px;
}

.mockup-sidebar {
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.mockup-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
}

.mockup-nav-item {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
}

.mockup-nav-item.active {
  background: var(--accent-subtle);
  border: 1px solid var(--border-accent);
}

.mockup-list {
  background: var(--bg-app);
  border-right: 1px solid var(--border-subtle);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.mockup-list-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.mockup-list-item.active {
  background: var(--bg-elevated);
}

.mockup-list-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-hover);
  flex-shrink: 0;
}

.mockup-list-text {
  flex: 1;
  min-width: 0;
}

.mockup-list-name {
  height: 10px;
  background: var(--text-primary);
  border-radius: 4px;
  margin-bottom: 6px;
  width: 70%;
}

.mockup-list-msg {
  height: 8px;
  background: var(--text-tertiary);
  border-radius: 4px;
  width: 90%;
}

.mockup-main {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.mockup-msg {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.mockup-msg-left {
  flex-direction: row;
}

.mockup-msg-right {
  flex-direction: row-reverse;
}

.mockup-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-hover);
  flex-shrink: 0;
}

.mockup-msg-bubble {
  padding: var(--space-3) var(--space-4);
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--text-primary);
  max-width: 70%;
}

.mockup-msg-right .mockup-msg-bubble {
  background: var(--accent-subtle);
  border: 1px solid var(--border-accent);
}

.mockup-input-bar {
  margin-top: auto;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.mockup-input-placeholder {
  height: 12px;
  background: var(--text-tertiary);
  border-radius: 4px;
  width: 40%;
  opacity: 0.5;
}

/* ═══════════════════════════════════════════════════════
   Section Common
   ═══════════════════════════════════════════════════════ */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-24) var(--space-6);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-label {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background: var(--accent-subtle);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: var(--text-4xl);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--space-4);
}

.section-desc {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════
   Features Section
   ═══════════════════════════════════════════════════════ */
.features {
  background: var(--bg-sidebar);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.feature-card {
  padding: var(--space-8);
  background: linear-gradient(165deg, var(--bg-elevated) 0%, var(--bg-panel) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--icon-color, var(--accent));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--icon-color, var(--accent)) 40%, var(--border));
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--icon-color, var(--accent)) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--icon-color, var(--accent)) 28%, transparent);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
  color: var(--icon-color, var(--accent));
}

.feature-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.75;
}

/* ═══════════════════════════════════════════════════════
   Preview Section
   ═══════════════════════════════════════════════════════ */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.preview-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.preview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.preview-img-wrapper {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-app);
}

.preview-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.preview-card:hover .preview-img-wrapper img {
  transform: scale(1.05);
}

.preview-label {
  display: block;
  padding: var(--space-4);
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-subtle);
}

/* ═══════════════════════════════════════════════════════
   Stats Section
   ══════════════════════════════════════════════════════ */
.stats {
  background: transparent;
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-16);
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: var(--text-5xl);
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--space-3);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.stat-divider {
  width: 1px;
  height: 60px;
  background: var(--border);
}

/* ═══════════════════════════════════════════════════════
   Roles Section
   ═══════════════════════════════════════════════════════ */
.roles {
  background: var(--bg-sidebar);
  border-top: 1px solid var(--border-subtle);
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.role-card {
  padding: var(--space-10);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.role-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--role-color) 45%, var(--border));
  box-shadow: var(--shadow-md);
}

.role-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--role-color);
}

.role-founder {
  --role-color: var(--role-founder);
}

.role-investor {
  --role-color: var(--role-investor);
}

.role-badge {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background: var(--role-color);
  color: var(--text-inverse);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  margin-bottom: var(--space-5);
}

.role-card h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-6);
}

.role-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.role-card li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.role-card li::before {
  content: '✓';
  color: var(--role-color);
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════
   Download Section
   ═══════════════════════════════════════════════════════ */
.download {
  background: transparent;
}

.download-card {
  position: relative;
  padding: var(--space-20) var(--space-10);
  background: linear-gradient(165deg, var(--bg-elevated) 0%, var(--bg-panel) 55%, var(--bg-sidebar) 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}

.download-glow {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(217, 119, 87, 0.28) 0%, transparent 68%);
  opacity: 0.55;
  pointer-events: none;
}

.download-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(217, 119, 87, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 119, 87, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 10%, transparent 70%);
  pointer-events: none;
}

.download-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  margin-bottom: var(--space-6);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent);
  position: relative;
}

.download-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
  position: relative;
  max-width: 18em;
  margin-left: auto;
  margin-right: auto;
}

.download-desc {
  font-size: var(--text-md);
  color: var(--text-secondary);
  margin-bottom: var(--space-10);
  position: relative;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  position: relative;
}

.btn-download {
  min-width: 280px;
  justify-content: center;
  padding: var(--space-5) var(--space-10);
  font-size: var(--text-md);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 28px rgba(217, 119, 87, 0.28);
}

.btn-download:hover {
  box-shadow: 0 12px 36px rgba(217, 119, 87, 0.38);
}

.btn-download-secondary {
  min-width: 200px;
  justify-content: center;
  padding: var(--space-5) var(--space-8);
  font-size: var(--text-sm);
  border-radius: var(--radius-lg);
}

.download-note {
  margin-top: var(--space-5);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  position: relative;
  max-width: 36em;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.download-help-link {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-left: 0.35em;
}

.download-help-link:hover {
  color: var(--accent);
}

.download-help-lead {
  margin-top: var(--space-3);
  color: var(--text-secondary);
  font-size: var(--text-md);
  line-height: 1.55;
}

.download-help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: var(--space-6) 0 var(--space-8);
}

.download-help-actions .btn {
  min-width: 200px;
  justify-content: center;
}

.download-help-fineprint {
  margin-top: var(--space-8);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

.download-help-body h2 {
  margin-top: var(--space-6);
}

/* ═══════════════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════════════ */
.footer,
.site-footer {
  position: relative;
  z-index: 2;
  background: var(--bg-sidebar);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-10) var(--space-6);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4) var(--space-6);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 700;
  font-size: var(--text-md);
  text-decoration: none;
  color: inherit;
}

.footer-brand:hover .logo-text {
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  gap: var(--space-6);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  width: 100%;
  justify-content: center;
  order: 5;
}

.footer-legal a {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--text-primary);
}

.footer-copy {
  color: var(--text-tertiary);
  font-size: var(--text-sm);
}

.footer-icp {
  width: 100%;
  text-align: center;
  order: 6;
  margin: 0;
}

.footer-icp a {
  color: var(--text-tertiary);
  font-size: 12px;
  text-decoration: none;
}

.footer-icp a:hover {
  color: var(--text-secondary);
  text-decoration: underline;
}

/* Legal document pages */
.legal-page {
  min-height: 100vh;
  background: var(--bg-app);
}

.legal-main {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-10) var(--space-6) var(--space-16);
}

.legal-eyebrow {
  color: var(--text-tertiary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
}

.legal-eyebrow a {
  color: var(--text-secondary);
  text-decoration: none;
}

.legal-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 var(--space-8);
  color: var(--text-primary);
}

.legal-body {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: var(--text-md);
}

.legal-body h1,
.legal-body h2,
.legal-body h3 {
  color: var(--text-primary);
  margin-top: 1.6em;
}

.legal-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: var(--text-sm);
}

.legal-body th,
.legal-body td {
  border: 1px solid var(--border-subtle);
  padding: 0.5em 0.75em;
  text-align: left;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-copy {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

/* ═══════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-mockup {
    max-width: 480px;
    transform: none;
  }

  .hero-mockup:hover {
    transform: none;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-platforms {
    justify-content: center;
  }

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

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

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero-title {
    font-size: var(--text-4xl);
  }

  .section-title {
    font-size: var(--text-3xl);
  }

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

  .stats-grid {
    flex-direction: column;
    gap: var(--space-10);
  }

  .stat-divider {
    width: 60px;
    height: 1px;
  }

  .download-card {
    padding: var(--space-12) var(--space-6);
  }

  .download-title {
    font-size: var(--text-2xl);
  }

  .download-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-download {
    width: 100%;
    min-width: 0;
  }

  .btn-download-secondary {
    width: 100%;
    min-width: 0;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: var(--text-3xl);
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-large {
    width: 100%;
    justify-content: center;
  }
}
