:root {
  --bg-color: #0d1117;
  --panel-bg: #161b22;
  --border-color: #30363d;
  --text-main: #c9d1d9;
  --text-muted: #8b949e;
  --accent: #58a6ff;
  --accent-hover: #1f6feb;
  --success: #3fb950;
  --warning: #d29922;
  --danger: #f85149;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 6px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.5;
  font-size: 14px;
}
a { color: var(--accent); text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Typography */
h1, h2, h3 { font-weight: 600; color: #fff; margin-bottom: 12px; }
h1 { font-size: 24px; line-height: 1.3; }
h2 { font-size: 18px; display: flex; align-items: center; gap: 8px; }
h3 { font-size: 15px; }
.mono { font-family: var(--font-mono); }
.text-muted { color: var(--text-muted); }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
section { padding: 32px 0; border-bottom: 1px solid var(--border-color); }
section:last-of-type { border-bottom: none; }

/* Header */
.top-nav {
  position: sticky;
  top: 0;
  background-color: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
}
.nav-inner {
  display: flex;
  align-items: center;
  height: 56px;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar { display: none; }
.logo-area { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo-area img { height: 32px; width: auto; }
.logo-area span { font-weight: bold; font-size: 16px; color: #fff; white-space: nowrap; }
.nav-links { display: flex; gap: 4px; flex-shrink: 0; }
.nav-links a {
  color: var(--text-main);
  font-size: 13px;
  padding: 6px 12px;
  border-radius: var(--radius);
  white-space: nowrap;
}
.nav-links a:hover { background-color: var(--border-color); color: #fff; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.search-box {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 4px 8px;
  color: var(--text-main);
  font-size: 13px;
  width: 140px;
}
.search-box:focus { outline: none; border-color: var(--accent); }
.btn-download {
  background: var(--accent);
  color: #fff;
  padding: 6px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}
.btn-download:hover { background: var(--accent-hover); }

/* Section 1: Hero / Chat */
.hero-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding-top: 24px;
}
.chat-window {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
}
.chat-bubble-ai {
  background: #21262d;
  border: 1px solid var(--border-color);
  border-radius: 0 12px 12px 12px;
  padding: 16px;
  margin-bottom: 16px;
  position: relative;
}
.chat-bubble-ai::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 10px; height: 10px;
  border-top: 1px solid var(--border-color);
  border-left: 1px solid var(--border-color);
  border-radius: 0 0 0 12px;
}
.typing-effect {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--accent);
  animation: typing 2.5s steps(30, end), blink-caret .75s step-end infinite;
}
@keyframes typing { from { width: 0 } to { width: 100% } }
@keyframes blink-caret { from, to { border-color: transparent } 50% { border-color: var(--accent) } }

.data-row {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}
.data-row span { display: flex; align-items: center; gap: 4px; }
.download-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.download-buttons a {
  flex: 1;
  min-width: 140px;
  text-align: center;
  padding: 12px;
  font-size: 15px;
  font-weight: bold;
  border-radius: var(--radius);
  color: #fff;
}
.btn-android { background: #3fb950; }
.btn-ios { background: #58a6ff; }
.btn-android:hover { background: #2ea043; }
.btn-ios:hover { background: #1f6feb; }

.generated-covers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  align-content: start;
}
.cover-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #000;
}
.cover-card img { width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; }
.badge-time {
  position: absolute;
  top: 4px; right: 4px;
  background: rgba(0,0,0,0.7);
  color: var(--success);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  backdrop-filter: blur(4px);
}

/* Section 2: Hot Recs */
.rec-intro {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding: 12px;
  background: #161b22;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.product-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px;
}
@keyframes fly-in { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.product-wall .cover-card { animation: fly-in 0.5s ease-out forwards; }
.product-wall .cover-card:nth-child(1) { animation-delay: 0.1s; }
.product-wall .cover-card:nth-child(2) { animation-delay: 0.2s; }
.product-wall .cover-card:nth-child(3) { animation-delay: 0.3s; }
.product-wall .cover-card:nth-child(4) { animation-delay: 0.4s; }
.product-wall .cover-card:nth-child(5) { animation-delay: 0.5s; }
.product-wall .cover-card:nth-child(6) { animation-delay: 0.6s; }

.card-info { padding: 8px; }
.card-info h3 { font-size: 13px; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.params-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.param-tag {
  font-size: 10px;
  background: #21262d;
  color: #8b949e;
  padding: 2px 4px;
  border-radius: 3px;
  border: 1px solid var(--border-color);
}
.card-hover-panel {
  position: absolute;
  inset: 0;
  background: rgba(13, 17, 23, 0.95);
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  font-size: 12px;
}
.cover-card:hover .card-hover-panel { opacity: 1; }
.card-hover-panel p { margin-bottom: 4px; }

/* Section 3: Update Queue */
.queue-batch {
  margin-bottom: 24px;
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 16px;
}
.batch-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.batch-status { color: var(--success); display: flex; align-items: center; gap: 4px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.batch-status.generating .status-dot { background: var(--warning); animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } }
.batch-items { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; }
.batch-item { flex-shrink: 0; width: 90px; }
.batch-item img { height: 120px; object-fit: cover; border-radius: 4px; margin-bottom: 6px; }
.batch-item-title { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.batch-progress { height: 4px; background: #21262d; border-radius: 2px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--success); width: 100%; }
.progress-bar.loading { background: var(--warning); width: 60%; animation: loading 2s infinite; }
@keyframes loading { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* Section 4: Ranking */
.terminal-table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 13px; }
.terminal-table th, .terminal-table td { padding: 8px; text-align: left; border-bottom: 1px solid var(--border-color); }
.terminal-table th { color: var(--text-muted); font-weight: normal; }
.terminal-table tr.top1 { background: rgba(88, 166, 255, 0.1); border-left: 3px solid var(--accent); }
.terminal-table img { width: 24px; height: 32px; object-fit: cover; border-radius: 2px; vertical-align: middle; }
.rank-badge { display: inline-block; width: 18px; height: 18px; line-height: 18px; text-align: center; border-radius: 50%; font-size: 10px; font-weight: bold; }
.badge-1 { background: #ffd700; color: #000; }
.badge-2 { background: #c0c0c0; color: #000; }
.badge-3 { background: #cd7f32; color: #000; }
.trend-up { color: var(--success); }
.trend-down { color: var(--danger); }

/* Section 5: Categories */
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.model-card {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 16px;
  position: relative;
  overflow: hidden;
}
.model-card h3 { margin-bottom: 4px; }
.model-version { font-size: 11px; font-family: var(--font-mono); color: var(--text-muted); margin-bottom: 12px; display: block;}
.model-covers { display: flex; gap: 8px; margin-bottom: 12px; }
.model-covers img { width: 40px; height: 54px; object-fit: cover; border-radius: 4px; }
.model-scanline {
  position: absolute; top: 0; left: 0; width: 100%; height: 4px;
  background: rgba(88, 166, 255, 0.5); opacity: 0;
}
.model-card:hover .model-scanline { animation: scan 1s ease-in-out; }
@keyframes scan { 0% { top: 0; opacity: 1; } 100% { top: 100%; opacity: 0; } }

/* Section 6: Exclusive */
.exclusive-layout { display: grid; grid-template-columns: 1fr; gap: 24px; }
.exclusive-main {
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px;
  background: linear-gradient(135deg, rgba(88,166,255,0.05), transparent);
  display: flex; gap: 16px;
}
.exclusive-main img { width: 120px; border-radius: var(--radius); }
.exclusive-info h3 { margin-bottom: 8px; font-size: 18px; }
.exclusive-info p { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.countdown { font-family: var(--font-mono); font-size: 20px; color: var(--warning); margin-bottom: 16px; }
.exclusive-list { display: flex; flex-direction: column; gap: 12px; }
.exclusive-item { display: flex; gap: 12px; align-items: center; border-bottom: 1px solid var(--border-color); padding-bottom: 8px; }
.exclusive-item img { width: 32px; height: 44px; object-fit: cover; border-radius: 4px; }

/* Section 7: Free Zone */
.free-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
.free-card { position: relative; background: var(--panel-bg); border: 1px solid var(--border-color); border-radius: var(--radius); overflow: hidden; }
.free-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.free-card .tag { position: absolute; top: 4px; left: 4px; background: var(--warning); color: #000; font-size: 10px; padding: 2px 4px; border-radius: 2px; font-weight: bold; }
.free-card .info { padding: 8px; }
.free-card:hover .scanline { animation: scan 1s ease-in-out; }
.free-card .scanline { position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--accent); opacity: 0; }

/* Section 8: Interactive */
.interactive-panel { background: var(--panel-bg); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 24px; }
.slider-group { margin-bottom: 20px; }
.slider-group label { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; font-family: var(--font-mono); }
input[type=range] { width: 100%; accent-color: var(--accent); }
.gen-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 12px; margin-top: 16px; min-height: 120px;}
.gen-cards img { border-radius: 4px; width: 100%; aspect-ratio: 3/4; object-fit: cover; }

/* Section 9: Reviews */
.stats-row { display: flex; justify-content: space-around; margin-bottom: 24px; text-align: center; }
.stat-item h3 { font-size: 24px; color: var(--accent); margin-bottom: 4px; }
.log-stream { display: flex; flex-direction: column; gap: 16px; max-height: 400px; overflow-y: auto; padding-right: 8px; }
.log-item { display: flex; gap: 12px; font-size: 13px; border-bottom: 1px solid var(--border-color); padding-bottom: 12px; }
.log-time { font-family: var(--font-mono); color: var(--text-muted); font-size: 12px; white-space: nowrap; }
.log-user { display: flex; align-items: center; gap: 8px; font-weight: bold; }
.log-user img { width: 24px; height: 24px; border-radius: 50%; background: #fff; }
.log-content { flex: 1; }
.stars { color: var(--warning); font-size: 12px; margin-bottom: 4px; }

/* Section 10: FAQ */
.faq-chat { display: flex; flex-direction: column; gap: 16px; }
.faq-item { display: flex; flex-direction: column; gap: 8px; }
.q-bubble { align-self: flex-end; background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 12px 12px 0 12px; font-size: 13px; cursor: pointer; max-width: 80%; }
.a-bubble { align-self: flex-start; background: #21262d; border: 1px solid var(--border-color); padding: 12px; border-radius: 12px 12px 12px 0; font-size: 13px; max-width: 90%; }
.faq-footer { text-align: center; margin-top: 24px; font-size: 13px; }

/* Section 11: Download */
.deploy-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 32px; }
.step-card { background: var(--panel-bg); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 16px; }
.step-icon { font-size: 24px; margin-bottom: 8px; }
.client-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.client-card { background: var(--panel-bg); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 24px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.client-card .size { font-family: var(--font-mono); color: var(--text-muted); font-size: 12px; margin-bottom: 16px; }
.client-card .btn-download { width: 100%; padding: 12px; font-size: 15px; }

/* Footer */
footer { padding: 24px 0; text-align: center; color: var(--text-muted); font-size: 12px; border-top: 1px solid var(--border-color); }
footer a { color: var(--text-muted); }
footer a:hover { text-decoration: underline; }

@media (min-width: 768px) {
  h1 { font-size: 32px; }
  .hero-section { grid-template-columns: 1fr 1fr; }
  .generated-covers { grid-template-columns: repeat(3, 1fr); }
  .exclusive-layout { grid-template-columns: 1fr 1fr; }
  .product-wall { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .product-wall { grid-template-columns: repeat(5, 1fr); }
  .generated-covers { grid-template-columns: repeat(4, 1fr); }
  .free-grid { grid-template-columns: repeat(5, 1fr); }
  .nav-inner { overflow-x: visible; }
}