/**
 * 咔咔闪 (Kaka Boom) 落地页样式 - Premium Futuristic Edition (Fixed Layout)
 */

/* ========================================
   CSS 变量定义
   ======================================== */
:root {
  /* 高级科技深色系 */
  --bg-dark: #000000;
  --bg-deep: #050507;
  --bg-card: rgba(22, 22, 26, 0.7);

  /* 核心强调色 - 优雅蓝紫渐变 */
  --accent-blue: #0A84FF;
  --accent-purple: #5E5CE6;
  --accent-cyan: #32ADE6;
  --accent-pink: #BF5AF2;
  --accent-green: #30D158;
  /* 恢复绿色用于强调 */

  /* 文字系统 */
  --text-primary: #F5F5F7;
  --text-secondary: #86868B;
  --text-tertiary: #424245;

  /* 渐变系统 */
  --gradient-main: linear-gradient(135deg, #0A84FF 0%, #5E5CE6 100%);
  --gradient-glow: linear-gradient(135deg, rgba(10, 132, 255, 0.4) 0%, rgba(94, 92, 230, 0.4) 100%);
  --gradient-dark: linear-gradient(180deg, #000000 0%, #161617 100%);

  /* 玻璃拟态 */
  --glass-bg: rgba(22, 22, 28, 0.65);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(20px);

  /* 间距 */
  --section-padding: 120px 0;
  --container-padding: 0 40px;

  /* 动画 */
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --radius-md: 24px;
}

/* ========================================
   基础重置
   ======================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  cursor: none;
  /* 保持自定义光标 */
}

/* 字体设置 */
h1,
h2,
h3,
h4 {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.02em;
}

.font-mono {
  font-family: 'Fira Code', monospace;
}

.brand-font {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.1em;
}

/* 自定义光标 */
.cursor {
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: exclusion;
  transform: translate(-50%, -50%);
}

.cursor-trail {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, transform 0.1s ease;
}

.cursor.clicking {
  transform: translate(-50%, -50%) scale(0.5);
}

@media (max-width: 768px) {
  body {
    cursor: auto;
  }

  .cursor,
  .cursor-trail {
    display: none;
  }
}

/* ========================================
   容器
   ======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--container-padding);
}

section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: var(--section-padding);
  box-sizing: border-box;
}

/* ========================================
   导航栏
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  background: rgba(255, 255, 255, 0.95);
  /* Light background */
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: padding 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.nav-logo span {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: #333;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent-blue);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language Switcher - Uiverse Magic Style */
#lang-switch {
  position: relative;
  font-size: 14px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.8em 1.5em;
  display: inline-block;
  cursor: pointer;
  border-radius: 6em;
  transition: all 0.2s;
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-family: inherit;
  font-weight: 600;
  color: black;
  background-color: white;
  z-index: 1;
}

#lang-switch:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  border-color: transparent;
}

#lang-switch:active {
  transform: translateY(-1px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

#lang-switch::after {
  content: "";
  display: inline-block;
  height: 100%;
  width: 100%;
  border-radius: 100px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  transition: all 0.4s;
  background-color: #fff;
}

#lang-switch:hover::after {
  transform: scaleX(1.4) scaleY(1.6);
  opacity: 0;
}



/* ========================================
   Hero Section
   ======================================== */
/* Video Background */
.video-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  /* 深色遮罩 */
  z-index: 1;
}

#hero {
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding-top: 140px;
  overflow: hidden;
  /* background 移除，交由 video 负责 */
}

.glitch-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.1;
  pointer-events: none;
}

/* 恢复 glitch grid 但降低透明度 */

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-title .main-text {
  display: block;
  background: linear-gradient(180deg, #fff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.1));
}

.hero-title .sub-text {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.3em;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--accent-blue);
  margin-top: 16px;
  text-transform: uppercase;
}

.hero-slogan {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 600;
  margin: 32px 0;
  background: linear-gradient(90deg, #fff 20%, #86868b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-slogan .highlight {
  color: var(--accent-purple);
  -webkit-text-fill-color: var(--accent-purple);
  /* 简化以兼容 */
}

.hero-desc {
  font-size: 1.3rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 48px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Scroll Hint */
.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  opacity: 0.6;
}

.scroll-hint .mouse {
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 13px;
  position: relative;
}

.scroll-hint .mouse::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: white;
  border-radius: 2px;
  animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
  0% {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, 15px);
  }
}

/* ========================================
   Common Section Styles
   ======================================== */
.section-tag {
  display: inline-block;
  font-family: 'Fira Code', monospace;
  font-size: 0.85rem;
  color: var(--accent-blue);
  background: rgba(10, 132, 255, 0.1);
  padding: 6px 12px;
  border-radius: 6px;
  margin-bottom: 24px;
  border: 1px solid rgba(10, 132, 255, 0.15);
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #fff 0%, #aaa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc,
.section-text {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 600px;
}

.section-text {
  font-size: 1.1rem;
  margin-top: 16px;
  margin-bottom: 32px;
}

/* ========================================
   Flow Section (Layout Fixed)
   ======================================== */
#flow {
  background: #FFFFFF;
}

#flow .section-title {
  background: linear-gradient(180deg, #1D1D1F 0%, #434346 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#flow .section-desc,
#flow .section-text {
  color: #86868B;
}

#flow .feature-card {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

#flow .feature-card .feature-title {
  color: #1D1D1F;
}

#flow .feature-card:hover {
  border-color: rgba(0, 0, 0, 0.2);
  transform: translateY(-5px);
}

#flow .phone-mockup {
  background: #000;
  /* Keep phone dark */
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.15);
}

.flow-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.flow-content {
  order: 1;
}

.flow-visual {
  order: 2;
  position: relative;
  display: flex;
  justify-content: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.feature-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 24px;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: white;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Phone Mockup Fix */
.phone-mockup {
  width: 300px;
  height: 600px;
  border: 8px solid #2c2c2e;
  border-radius: 48px;
  background: #000;
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
}

.phone-screen {
  position: absolute;
  inset: 0;
  background: #000;
  border-radius: 40px;
  overflow: hidden;
}

.app-cards {
  height: 100%;
  width: 100%;
  position: relative;
}

.app-card {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: linear-gradient(180deg, #1c1c1e 0%, #000 100%);
}

.swipe-indicator {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

/* ========================================
   Magic Section (Layout Fixed)
   ======================================== */
#magic {
  background: #000;
}

.magic-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.magic-visual {
  order: 1;
  position: relative;
}

.magic-content {
  order: 2;
}

.prompt-box {
  background: rgba(20, 20, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.prompt-input {
  background: black;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Fira Code', monospace;
  margin-bottom: 16px;
}

.prompt-text {
  color: #30D158;
  font-size: 0.9rem;
}

/* Apple Green Console */
.prompt-cursor {
  width: 2px;
  height: 18px;
  background: #30D158;
  animation: blink 1s infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.magic-arrow {
  position: absolute;
  top: 50%;
  right: -50px;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: var(--text-secondary);
}

.game-preview {
  background: #111;
  border-radius: 20px;
  height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #222;
}

/* ========================================
   Boom Section (Layout Fixed)
   ======================================== */
#boom {
  background: #FFFFFF;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

#boom .section-title {
  background: linear-gradient(180deg, #1D1D1F 0%, #434346 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#boom .section-desc,
#boom .section-text {
  color: #86868B;
}

#boom .demo-before,
#boom .demo-after {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #1D1D1F;
}

#boom .demo-label {
  color: #86868B;
}

#boom .boom-quote {
  background: rgba(0, 0, 0, 0.03);
  color: #1D1D1F;
}

.boom-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.boom-desc {
  margin: 0 auto 40px;
}

.boom-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin: 60px 0;
  flex-wrap: wrap;
}

.demo-before,
.demo-after {
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.demo-before:hover,
.demo-after:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 0, 0, 0.2);
}

.demo-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

.demo-label {
  color: var(--text-secondary);
}

/* BOOM Button Styles */
.btn-boom {
  background: linear-gradient(135deg, #FF2D55 0%, #FF375F 100%);
  color: white;
  padding: 20px 48px;
  border-radius: 60px;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  border: none;
  box-shadow: 0 0 30px rgba(255, 45, 85, 0.4);
  cursor: pointer;
  transition: transform 0.2s;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 10;
}

.btn-boom:hover {
  transform: scale(1.05);
  box-shadow: 0 0 50px rgba(255, 45, 85, 0.6);
}

.boom-quote {
  margin-top: 60px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  border-left: 4px solid #FF2D55;
  text-align: left;
}

/* ========================================
   Earn Section (Layout Fixed)
   ======================================== */
#earn {
  background: #000;
}

.earn-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.earn-visual {
  display: flex;
  justify-content: center;
  order: 1;
}

.earn-content {
  order: 2;
}

.coin-stack {
  width: 250px;
  height: 250px;
  position: relative;
}

.coin {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #FFD60A 0%, #FF9F0A 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: #664400;
  position: absolute;
  box-shadow: inset 0 4px 10px rgba(255, 255, 255, 0.4), 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Coin positioning fixes */
.coin:nth-child(1) {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.coin:nth-child(2) {
  top: 45%;
  left: 0;
}

.coin:nth-child(3) {
  top: 45%;
  right: 0;
}

.coin:nth-child(4) {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* ========================================
   Footer (Layout Fixed)
   ======================================== */
#footer {
  background: #F5F5F7;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 100px 0 40px;
  text-align: center;
}

#footer h2,
#footer .footer-cta h2 {
  color: #1D1D1F;
}

#footer p,
#footer .footer-cta p {
  color: #86868B;
}

#footer .download-btn {
  background: #000000;
  color: white;
  border: 1px solid transparent;
}

#footer .download-btn:hover {
  background: #333333;
}

#footer .download-btn small {
  color: #999;
}

#footer .footer-links a {
  color: #86868B;
}

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

#footer .qr-code {
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-cta {
  margin-bottom: 80px;
}

.footer-cta h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: white;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.download-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.download-btn .text {
  text-align: left;
  line-height: 1.2;
}

.download-btn span {
  display: block;
  font-weight: 600;
  font-size: 1rem;
}

.download-btn small {
  font-size: 0.7rem;
  color: #aaa;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: white;
}

.footer-copyright {
  color: var(--text-tertiary);
  font-size: 0.8rem;
}

/* QR Code */
.qr-code {
  width: 280px;
  height: 280px;
  background: white;
  margin: 40px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
}

.qr-placeholder {
  color: black;
  text-align: center;
  font-size: 0.8rem;
}

/* ========================================
   General Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 40px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: white;
  color: black;
  border: 1px solid white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.25);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ========================================
   Magic Button Effect
   ======================================== */
.btn-magic {
  padding: 17px 40px;
  border-radius: 50px;
  cursor: pointer;
  border: 0;
  background-color: white;
  box-shadow: rgb(0 0 0 / 5%) 0 0 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 15px;
  transition: all 0.5s ease;
  color: #000;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-magic:hover {
  letter-spacing: 3px;
  background-color: hsl(261deg 80% 48%);
  color: hsl(0, 0%, 100%);
  box-shadow: rgb(93 24 220) 0px 7px 29px 0px;
}

.btn-magic:active {
  letter-spacing: 3px;
  background-color: hsl(261deg 80% 48%);
  color: hsl(0, 0%, 100%);
  box-shadow: rgb(93 24 220) 0px 0px 0px 0px;
  transform: translateY(10px);
  transition: 100ms;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 900px) {

  .flow-container,
  .magic-container,
  .earn-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .flow-visual,
  .magic-visual,
  .earn-visual {
    order: 2;
    margin-top: 40px;
  }

  .flow-content,
  .magic-content,
  .earn-content {
    order: 1;
    padding: 0;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .magic-arrow {
    display: none;
  }

  .nav-links {
    display: none;
  }



  .hero-title {
    font-size: 3.5rem;
  }

  .hero-slogan {
    font-size: 1.8rem;
  }

  .boom-demo {
    gap: 20px;
  }

  .btn-boom {
    width: 100%;
    padding: 16px;
    font-size: 1.2rem;
  }
}