:root {
  --bg: #F7F6F0;
  --primary: #3045F5;
  --ink: #181A24;
  --lime: #C8FF00;
  --line: #E0DFD6;
  --card-bg: #FFFFFF;
  --text-muted: #666;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; object-fit: cover; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* Typography */
h1, h2, h3 { line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }
.text-muted { color: var(--text-muted); font-size: 0.9rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { opacity: 0.9; transform: translateY(-2px); }
.btn-outline { border: 1px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }

/* Header */
header {
  position: sticky;
  top: 0;
  background: rgba(247, 246, 240, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.05em;
}
.brand img { height: 32px; width: auto; }
.nav-links {
  display: flex;
  gap: 2rem;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.menu-toggle { display: none; font-size: 1.5rem; }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 4rem 2rem; }
.section-title-wrapper { margin-bottom: 2rem; display: flex; justify-content: space-between; align-items: flex-end; }

/* Hero */
.hero { padding-top: 3rem; padding-bottom: 5rem; }
.hero-grid { display: grid; grid-template-columns: 45% 55%; gap: 4rem; align-items: center; }
.hero-left h1 { margin-bottom: 1.5rem; }
.hero-left p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2rem; max-width: 90%; }
.hero-actions { display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.hero-platforms { font-size: 0.85rem; color: var(--text-muted); display: flex; gap: 1rem; }

.hero-right { position: relative; display: flex; justify-content: flex-end; align-items: center; }
.hero-bg-number {
  position: absolute;
  font-size: 28vw;
  font-weight: 900;
  color: rgba(48, 69, 245, 0.08);
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
  line-height: 1;
  user-select: none;
}
.main-poster-card { position: relative; z-index: 1; width: 300px; margin-right: 3rem; }
.main-poster-card img { width: 100%; aspect-ratio: 2/3; border-radius: 8px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.poster-info { margin-top: 1rem; }
.poster-info h3 { font-size: 1.2rem; margin-bottom: 0.2rem; }
.poster-info .tags { font-size: 0.8rem; color: var(--primary); font-weight: 600; margin-bottom: 0.5rem; }
.poster-info p { font-size: 0.9rem; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.poster-thumbs { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 1rem; }
.thumb-item { width: 80px; cursor: pointer; position: relative; border-radius: 4px; overflow: hidden; border: 2px solid transparent; transition: border-color 0.2s; }
.thumb-item img { width: 100%; aspect-ratio: 2/3; }
.thumb-item.active { border-color: var(--lime); }

/* Trending Section */
.trending-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; }
.trending-spotlight img { width: 100%; aspect-ratio: 2/3; border-radius: 8px; margin-bottom: 1rem; }
.trending-spotlight h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.trending-spotlight p { font-size: 0.95rem; color: var(--text-muted); }
.trending-list { display: flex; flex-direction: column; gap: 1.5rem; }
.trending-item { display: flex; gap: 1.5rem; align-items: center; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.trending-item:last-child { border-bottom: none; padding-bottom: 0; }
.trending-item img { width: 80px; aspect-ratio: 2/3; border-radius: 4px; }
.trending-item-info { flex: 1; }
.trending-item-info h4 { font-size: 1.1rem; margin-bottom: 0.2rem; }
.trending-item-info .tags { font-size: 0.8rem; color: var(--primary); margin-bottom: 0.4rem; }
.trending-item-info .status { font-size: 0.8rem; color: var(--text-muted); }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.85rem; border-radius: 4px; background: var(--bg); border: 1px solid var(--line); }
.btn-sm:hover { border-color: var(--primary); color: var(--primary); }

/* Time Selector */
.time-pills { display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.time-pill { padding: 0.6rem 1.2rem; border-radius: 20px; border: 1px solid var(--line); background: #fff; font-size: 0.9rem; transition: all 0.2s; }
.time-pill.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.time-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.time-card { background: #fff; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.time-card img { width: 100%; aspect-ratio: 2/3; }
.time-card-content { padding: 1rem; }
.time-card-content h4 { font-size: 1rem; margin-bottom: 0.2rem; }
.time-card-content p { font-size: 0.85rem; color: var(--text-muted); }

/* Filter Section */
.filter-panel { background: #fff; border-radius: 8px; padding: 2rem; border: 1px solid var(--line); }
.filter-group { margin-bottom: 1.5rem; }
.filter-group h4 { font-size: 0.95rem; margin-bottom: 0.8rem; color: var(--text-muted); font-weight: 500; }
.filter-btns { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.filter-btn { padding: 0.4rem 1rem; border: 1px solid var(--line); border-radius: 4px; font-size: 0.85rem; background: var(--bg); }
.filter-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter-clear { font-size: 0.85rem; color: var(--text-muted); text-decoration: underline; cursor: pointer; }
.filter-results { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2rem; }
.result-card img { width: 100%; aspect-ratio: 2/3; border-radius: 6px; margin-bottom: 0.5rem; }
.result-card h4 { font-size: 0.95rem; }
.result-card p { font-size: 0.8rem; color: var(--text-muted); }
.empty-state { text-align: center; padding: 3rem; color: var(--text-muted); display: none; }

/* Update Ledger */
.ledger-group { display: flex; gap: 2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line); padding-bottom: 2rem; }
.ledger-group:last-child { border-bottom: none; }
.ledger-date { width: 100px; font-weight: 700; font-size: 1.1rem; flex-shrink: 0; padding-top: 0.5rem; }
.ledger-list { flex: 1; display: flex; flex-direction: column; gap: 1rem; }
.ledger-item { display: flex; gap: 1rem; align-items: center; }
.ledger-item img { width: 60px; aspect-ratio: 2/3; border-radius: 4px; }
.ledger-info h4 { font-size: 1rem; margin-bottom: 0.2rem; }
.ledger-info p { font-size: 0.85rem; color: var(--text-muted); }

/* Plot Hooks */
.plot-tabs { display: flex; gap: 1rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.plot-tab { font-weight: 600; font-size: 1rem; color: var(--text-muted); padding-bottom: 1rem; margin-bottom: -1rem; border-bottom: 2px solid transparent; transition: all 0.2s; }
.plot-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.plot-container { display: flex; gap: 3rem; align-items: flex-start; }
.plot-cover { width: 300px; flex-shrink: 0; }
.plot-cover img { width: 100%; aspect-ratio: 2/3; border-radius: 8px; }
.plot-content { flex: 1; font-size: 1.1rem; line-height: 1.8; }
.plot-pane { display: none; }
.plot-pane.active { display: block; }

/* App Experience */
.steps-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; position: relative; }
.step-card { background: #fff; padding: 2rem; border-radius: 8px; border: 1px solid var(--line); position: relative; z-index: 1; }
.step-num { font-size: 3rem; font-weight: 900; color: var(--bg); position: absolute; top: 1rem; right: 1rem; line-height: 1; }
.step-card h3 { margin-bottom: 1rem; }
.step-card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.step-ui { background: var(--bg); padding: 1rem; border-radius: 6px; font-size: 0.85rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.ui-tag { background: #fff; padding: 0.2rem 0.6rem; border-radius: 4px; border: 1px solid var(--line); }
.ui-tag.active { background: var(--lime); border-color: var(--lime); font-weight: 600; }
.ui-progress { width: 100%; height: 6px; background: var(--line); border-radius: 3px; margin-top: 0.5rem; overflow: hidden; }
.ui-progress-bar { width: 60%; height: 100%; background: var(--primary); }

/* Brand History */
.history-section { background: #fff; border-y: 1px solid var(--line); }
.history-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.history-left p { font-size: 1.1rem; margin-bottom: 1rem; color: var(--text-muted); }
.timeline { border-left: 2px solid var(--line); padding-left: 2rem; margin-left: 1rem; }
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-item::before { content: ''; position: absolute; left: -2.35rem; top: 0.3rem; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); border: 2px solid #fff; }
.timeline-date { font-weight: 700; font-size: 0.9rem; color: var(--primary); margin-bottom: 0.2rem; }
.timeline-desc { font-size: 0.95rem; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question { width: 100%; text-align: left; padding: 1.5rem 0; font-size: 1.1rem; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.faq-icon { transition: transform 0.3s; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; color: var(--text-muted); font-size: 0.95rem; padding-bottom: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-item.open .faq-answer { padding-bottom: 1.5rem; }

/* Download Section */
.download-banner { background: var(--primary); color: #fff; padding: 4rem 2rem; }
.download-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 2rem; }
.download-text h2 { margin-bottom: 0.5rem; }
.download-text p { opacity: 0.9; }
.download-btns { display: flex; gap: 1rem; }
.btn-download { background: #fff; color: var(--primary); padding: 1rem 2rem; font-size: 1.1rem; border-radius: 4px; font-weight: 700; display: flex; align-items: center; gap: 0.5rem; }
.btn-download:hover { background: var(--bg); }

/* Footer */
footer { padding: 3rem 2rem; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--text-muted); }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a:hover { color: var(--ink); }
.footer-info { text-align: right; }
.footer-info p { margin-bottom: 0.5rem; }
.icp-link { color: inherit; text-decoration: none; }
.icp-link:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { gap: 2rem; }
  .hero-right { justify-content: center; }
  .main-poster-card { margin-right: 2rem; width: 260px; }
  .trending-grid { grid-template-columns: 1fr; gap: 2rem; }
  .trending-spotlight img { max-width: 300px; margin: 0 auto; }
  .trending-list { display: grid; grid-template-columns: 1fr 1fr; }
  .time-results { grid-template-columns: repeat(2, 1fr); }
  .filter-results { grid-template-columns: repeat(3, 1fr); }
  .history-grid { gap: 2rem; }
  .steps-container { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 768px) {
  .header-inner { padding: 1rem; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--bg); flex-direction: column; padding: 1rem; border-bottom: 1px solid var(--line); gap: 1rem; }
  .nav-links.active { display: flex; }
  .menu-toggle { display: block; }
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-left { display: flex; flex-direction: column; align-items: flex-start; }
  .hero-actions { width: 100%; flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-right { flex-direction: column; align-items: center; }
  .main-poster-card { margin-right: 0; width: 240px; }
  .poster-thumbs { flex-direction: row; justify-content: center; margin-top: 1rem; }
  .hero-bg-number { font-size: 40vw; top: 30%; }
  
  .trending-list { grid-template-columns: 1fr; }
  .time-results { grid-template-columns: 1fr; }
  .filter-results { grid-template-columns: repeat(2, 1fr); }
  .ledger-group { flex-direction: column; gap: 1rem; }
  .plot-container { flex-direction: column; }
  .plot-cover { width: 200px; margin: 0 auto; }
  .history-grid { grid-template-columns: 1fr; }
  .download-inner { flex-direction: column; text-align: center; }
  .download-btns { width: 100%; flex-direction: column; }
  .btn-download { width: 100%; justify-content: center; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .footer-info { text-align: center; margin-top: 1rem; }
}