:root {
  --bg-base: #f7f8fa;
  --bg-card: #ffffff;
  --bg-gray: #f0f2f5;
  --text-main: #1d1d1f;
  --text-sub: #86868b;
  --accent-blue: #0071e3;
  --accent-green: #34c759;
  --accent-orange: #ff9f0a;
  --border-light: rgba(0, 0, 0, 0.08);
  --nav-blur: saturate(180%) blur(20px);
  --radius-s: 8px;
  --radius-m: 16px;
  --radius-l: 24px;
  --radius-xl: 32px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(247, 248, 250, 0.75);
  backdrop-filter: var(--nav-blur);
  -webkit-backdrop-filter: var(--nav-blur);
  border-bottom: 1px solid var(--border-light);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 56px; display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 18px; }
.nav-brand img { height: 32px; border-radius: 8px; }
.nav-links { display: flex; gap: 28px; font-size: 14px; font-weight: 500; color: var(--text-sub); }
.nav-links a { transition: color 0.3s; }
.nav-links a:hover { color: var(--text-main); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-search {
  background: var(--bg-gray); border: none; border-radius: 20px;
  padding: 8px 16px; font-size: 13px; width: 160px; color: var(--text-main);
  outline: none; transition: width 0.3s, background 0.3s;
}
.nav-search:focus { width: 200px; background: #e8eaed; }
.btn-primary {
  background: var(--accent-blue); color: #fff; padding: 8px 18px;
  border-radius: 20px; font-size: 14px; font-weight: 500;
  transition: opacity 0.3s, transform 0.2s;
}
.btn-primary:hover { opacity: 0.9; transform: scale(0.98); }
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--text-main); border-radius: 2px; transition: 0.3s; }

/* Hero */
.hero {
  padding: 140px 24px 80px; text-align: center; position: relative; overflow: hidden;
}
.badge-top {
  display: inline-block; padding: 6px 14px; background: rgba(52, 199, 89, 0.12);
  color: var(--accent-green); border-radius: 20px; font-size: 13px; font-weight: 600; margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 68px); font-weight: 700; letter-spacing: -0.04em;
  line-height: 1.1; margin-bottom: 24px;
}
.hero-sub {
  font-size: clamp(18px, 2vw, 22px); color: var(--text-sub); max-width: 640px; margin: 0 auto 40px;
}
.hero-cta { display: flex; justify-content: center; gap: 16px; margin-bottom: 60px; flex-wrap: wrap; }
.btn-large {
  padding: 14px 32px; border-radius: 30px; font-size: 16px; font-weight: 600;
  transition: transform 0.2s, opacity 0.3s;
}
.btn-large:hover { transform: scale(0.98); opacity: 0.9; }
.btn-outline {
  border: 1px solid var(--text-main); color: var(--text-main); background: transparent;
}
.hero-stats {
  display: flex; justify-content: center; gap: 48px; margin-bottom: 80px;
}
.stat-item { text-align: center; }
.stat-num { font-size: 28px; font-weight: 700; color: var(--text-main); }
.stat-label { font-size: 13px; color: var(--text-sub); margin-top: 4px; }

/* Hero Visual */
.hero-visual {
  position: relative; max-width: 800px; margin: 0 auto; display: flex; justify-content: center; align-items: center;
}
.phone-mockup {
  width: 280px; height: 580px; background: #fff; border-radius: 40px;
  border: 8px solid #111; overflow: hidden; position: relative; z-index: 2;
  box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}
.phone-mockup img {
  width: 100%; height: 100%; object-fit: cover;
}
.float-card {
  position: absolute; padding: 16px 20px; border-radius: var(--radius-l);
  background: rgba(255, 255, 255, 0.65); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8); box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  font-size: 14px; font-weight: 600; z-index: 3; display: flex; align-items: center; gap: 8px;
}
.float-left { top: 20%; left: 10%; animation: float 6s ease-in-out infinite; }
.float-right { bottom: 20%; right: 10%; animation: float 6s ease-in-out infinite 3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Sections */
section { padding: 100px 24px; }
.container { max-width: 1200px; margin: 0 auto; }
.sec-header { text-align: center; margin-bottom: 60px; }
.sec-title { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 16px; }
.sec-desc { font-size: 18px; color: var(--text-sub); max-width: 600px; margin: 0 auto; }

/* Features */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feat-card {
  background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-l);
  padding: 40px 32px; transition: transform 0.3s, box-shadow 0.3s;
}
.feat-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.04); }
.icon-box {
  width: 48px; height: 48px; border-radius: var(--radius-s);
  display: flex; align-items: center; justify-content: center; margin-bottom: 24px;
  font-size: 24px;
}
.icon-blue { background: rgba(0, 113, 227, 0.1); color: var(--accent-blue); }
.icon-green { background: rgba(52, 199, 89, 0.1); color: var(--accent-green); }
.icon-orange { background: rgba(255, 159, 10, 0.1); color: var(--accent-orange); }
.feat-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.feat-card p { font-size: 15px; color: var(--text-sub); }

/* Content Types */
.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.type-card { cursor: default; }
.type-img-wrap {
  aspect-ratio: 2 / 3; border-radius: var(--radius-m); overflow: hidden;
  position: relative; margin-bottom: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.type-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.type-card:hover .type-img-wrap img { transform: scale(1.03); }
.type-tag {
  position: absolute; top: 12px; left: 12px; background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px); color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 12px; font-weight: 500;
}
.type-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.type-card p { font-size: 14px; color: var(--text-sub); }

/* Stats Banner */
.stats-banner {
  background: #1d1d1f; color: #fff; padding: 80px 24px;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; text-align: center; }
.stats-grid .stat-num { font-size: 48px; font-weight: 700; color: #fff; letter-spacing: -0.02em; }
.stats-grid .stat-label { font-size: 15px; color: #a1a1a6; margin-top: 8px; }

/* Leaderboard */
.rank-list { max-width: 800px; margin: 0 auto; background: var(--bg-card); border-radius: var(--radius-l); border: 1px solid var(--border-light); overflow: hidden; }
.rank-item {
  display: flex; align-items: center; padding: 16px 24px; border-bottom: 1px solid var(--border-light);
  transition: background 0.2s;
}
.rank-item:last-child { border-bottom: none; }
.rank-item:hover { background: var(--bg-gray); }
.rank-num { width: 30px; font-size: 18px; font-weight: 700; color: var(--text-sub); font-style: italic; }
.rank-num.top { color: var(--accent-orange); }
.rank-img { width: 60px; height: 80px; border-radius: 6px; object-fit: cover; margin: 0 20px; }
.rank-info { flex: 1; }
.rank-name { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.rank-tag { font-size: 13px; color: var(--text-sub); }
.rank-score { font-size: 16px; font-weight: 700; color: var(--accent-orange); }

/* Video Experience */
.exp-wrap { display: flex; gap: 60px; align-items: center; }
.exp-text { flex: 1; }
.exp-text h2 { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 16px; }
.exp-text p { font-size: 18px; color: var(--text-sub); margin-bottom: 40px; }
.exp-features { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.exp-item { background: var(--bg-gray); border-radius: var(--radius-m); padding: 24px; border: 1px solid var(--border-light); }
.exp-item h4 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.exp-item p { font-size: 14px; color: var(--text-sub); margin-bottom: 0; }

.exp-visual { flex: 1; display: flex; justify-content: center; position: relative; }
.exp-card {
  background: #fff; padding: 24px; border-radius: var(--radius-xl); box-shadow: 0 20px 50px rgba(0,0,0,0.08);
  width: 100%; max-width: 360px;
}
.exp-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.exp-card-top .icon-box { margin-bottom: 0; width: 40px; height: 40px; border-radius: 10px; }
.exp-card-top h4 { font-size: 18px; font-weight: 600; }
.exp-card-img-wrap { border-radius: var(--radius-m); overflow: hidden; aspect-ratio: 2 / 3; }
.exp-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border-light); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; padding: 24px 0;
  font-size: 18px; font-weight: 500; color: var(--text-main); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-family: inherit;
}
.faq-icon { font-size: 24px; font-weight: 300; transition: transform 0.3s; color: var(--text-sub); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-a p { padding-bottom: 24px; font-size: 15px; color: var(--text-sub); line-height: 1.6; }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-item.active .faq-a { max-height: 200px; }

/* Download */
.download-section { background: var(--bg-gray); border-radius: var(--radius-xl); max-width: 1000px; margin: 0 auto; text-align: center; padding: 80px 24px; border: 1px solid var(--border-light); }
.download-section h2 { font-size: 44px; font-weight: 700; margin-bottom: 20px; letter-spacing: -0.03em; }
.download-section p { font-size: 18px; color: var(--text-sub); margin-bottom: 40px; }
.download-section .btn-large { font-size: 18px; padding: 16px 40px; }

/* Footer */
.footer { padding: 60px 24px 40px; border-top: 1px solid var(--border-light); font-size: 13px; color: var(--text-sub); }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; }
.footer-brand p { margin-top: 12px; max-width: 300px; line-height: 1.6; }
.footer-links { display: flex; gap: 60px; }
.footer-col h4 { font-size: 14px; color: var(--text-main); margin-bottom: 16px; font-weight: 600; }
.footer-col a { display: block; margin-bottom: 12px; transition: color 0.2s; }
.footer-col a:hover { color: var(--text-main); }
.footer-bottom { max-width: 1200px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid var(--border-light); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: #a1a1a6; }
.footer-bottom a { color: #a1a1a6; }
.footer-bottom a:hover { text-decoration: underline; }

/* Utility */
.reveal { opacity: 1; transform: translateY(0); transition: transform 0.6s ease, opacity 0.6s ease; }
.reveal.init { opacity: 0; transform: translateY(30px); }

/* Responsive */
@media (max-width: 1024px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .type-grid { grid-template-columns: repeat(2, 1fr); }
  .exp-wrap { flex-direction: column; }
  .exp-text { text-align: center; }
  .exp-features { text-align: left; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
@media (max-width: 768px) {
  .nav-links, .nav-search { display: none; }
  .hamburger { display: flex; }
  .nav-links.active {
    display: flex; flex-direction: column; position: absolute; top: 56px; left: 0; width: 100%;
    background: rgba(247, 248, 250, 0.98); padding: 24px; border-bottom: 1px solid var(--border-light);
    gap: 20px; text-align: center;
  }
  .hero { padding-top: 100px; }
  .hero-stats { flex-direction: column; gap: 24px; }
  .feat-grid, .type-grid, .exp-features { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .float-left { top: 10%; left: -10px; font-size: 12px; padding: 10px 14px; }
  .float-right { bottom: 10%; right: -10px; font-size: 12px; padding: 10px 14px; }
  .phone-mockup { width: 240px; height: 500px; }
  .footer-inner { flex-direction: column; }
  .footer-links { flex-direction: column; gap: 32px; }
}