:root {
    --bg-color: #f7f8fa;
    --surface-color: #ffffff;
    --text-main: #1a1a1f;
    --text-muted: #5e5e6e;
    --border-color: #e4e5ea;
    --brand-purple: #7A35FF;
    --brand-purple-light: #f0eaff;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-pill: 999px;
  }

  * { 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);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

  h1, h2, h3 { font-weight: 700; line-height: 1.3; }
  a { text-decoration: none; color: inherit; }
  img { max-width: 100%; display: block; }
  .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
  .section-title { font-size: 28px; margin-bottom: 24px; letter-spacing: -0.5px; }
  .section-desc { color: var(--text-muted); margin-bottom: 32px; max-width: 650px; }

  /* Header */
  .site-header { background: var(--surface-color); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 100; }
  .header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
  .logo-box { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 700; color: var(--text-main); }
  .logo-box img { height: 32px; width: auto; border-radius: 4px; }
  .nav-links { display: flex; gap: 24px; font-size: 15px; font-weight: 500; color: var(--text-muted); }
  .nav-links a:hover { color: var(--brand-purple); }
  .header-cta { display: none; background: var(--brand-purple); color: #fff; padding: 8px 20px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 600; }
  .header-cta:hover { opacity: 0.9; }

  /* Hero */
  .hero-section { padding: 60px 0; background: var(--surface-color); border-bottom: 1px solid var(--border-color); overflow: hidden; }
  .hero-layout { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
  .hero-text h1 { font-size: 36px; margin-bottom: 16px; letter-spacing: -1px; }
  .hero-text p { font-size: 16px; color: var(--text-muted); margin-bottom: 32px; }
  
  .data-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 32px; }
  .data-card { background: var(--bg-color); border: 1px solid var(--border-color); padding: 20px; border-radius: var(--radius-md); }
  .data-val { font-size: 28px; font-weight: 700; color: var(--brand-purple); margin-bottom: 4px; }
  .data-label { font-size: 14px; color: var(--text-muted); }

  .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
  .btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border-radius: var(--radius-pill); font-weight: 600; font-size: 15px; transition: all 0.2s; cursor: pointer; border: none; }
  .btn-primary { background: var(--brand-purple); color: #fff; }
  .btn-primary:hover { background: #6023e0; }
  .btn-outline { background: transparent; color: var(--text-main); border: 1px solid var(--border-color); }
  .btn-outline:hover { border-color: var(--brand-purple); color: var(--brand-purple); }

  .hero-visual { position: relative; width: 100%; max-width: 320px; margin: 0 auto; aspect-ratio: 3/4; border-radius: var(--radius-md); overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
  .hero-visual img { width: 100%; height: 100%; object-fit: cover; }

  /* Library */
  .library-section { padding: 60px 0; border-bottom: 1px solid var(--border-color); }
  .tag-wall { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
  .tag { background: var(--surface-color); border: 1px solid var(--border-color); padding: 6px 16px; border-radius: var(--radius-pill); font-size: 14px; color: var(--text-muted); cursor: pointer; transition: all 0.2s; }
  .tag:hover, .tag.active { background: var(--brand-purple-light); border-color: var(--brand-purple); color: var(--brand-purple); }
  
  .grid-wall { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .comic-card { display: flex; flex-direction: column; }
  .comic-cover { aspect-ratio: 3/4; border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 12px; background: var(--border-color); }
  .comic-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
  .comic-card:hover .comic-cover img { transform: scale(1.03); }
  .comic-title { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
  .comic-chapter { font-size: 13px; color: var(--text-muted); }

  /* Smart Reading */
  .reading-section { padding: 60px 0; border-bottom: 1px solid var(--border-color); }
  .tri-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
  .feature-box { background: var(--surface-color); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 32px 24px; text-align: center; transition: border-color 0.2s; }
  .feature-box:hover { border-color: var(--brand-purple); }
  .feature-icon { width: 48px; height: 48px; background: var(--brand-purple-light); color: var(--brand-purple); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 24px; font-weight: 700; }
  .feature-box h3 { font-size: 18px; margin-bottom: 12px; }
  .feature-box p { font-size: 14px; color: var(--text-muted); }

  /* 4K Console */
  .quality-section { padding: 60px 0; border-bottom: 1px solid var(--border-color); }
  .split-console { display: grid; grid-template-columns: 1fr; gap: 20px; background: var(--surface-color); border: 1px solid var(--border-color); border-radius: var(--radius-md); overflow: hidden; }
  .console-side { padding: 24px; display: flex; flex-direction: column; }
  .console-side.left { border-bottom: 1px solid var(--border-color); }
  .console-side.right { background: var(--bg-color); }
  .console-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
  .console-label::before { content: ""; display: block; width: 8px; height: 8px; border-radius: 50%; background: #ccc; }
  .console-side.right .console-label { color: var(--brand-purple); }
  .console-side.right .console-label::before { background: var(--brand-purple); }
  .console-img { width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-sm); object-fit: cover; border: 1px solid var(--border-color); }

  /* Community */
  .community-section { padding: 60px 0; border-bottom: 1px solid var(--border-color); }
  .data-stream { display: flex; flex-direction: column; gap: 12px; }
  .user-row { display: flex; align-items: center; gap: 16px; background: var(--surface-color); border: 1px solid var(--border-color); padding: 16px; border-radius: var(--radius-md); }
  .user-avatar { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: var(--bg-color); flex-shrink: 0; }
  .user-avatar img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
  .user-info { flex: 1; min-width: 0; }
  .user-tag { display: inline-block; background: var(--brand-purple-light); color: var(--brand-purple); font-size: 11px; padding: 2px 8px; border-radius: 4px; margin-bottom: 4px; font-weight: 600; }
  .user-desc { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .match-score { display: flex; align-items: center; gap: 12px; width: 120px; flex-shrink: 0; }
  .match-bar { flex: 1; height: 6px; background: var(--border-color); border-radius: var(--radius-pill); overflow: hidden; }
  .match-fill { height: 100%; background: var(--brand-purple); border-radius: var(--radius-pill); }
  .match-text { font-size: 13px; font-weight: 600; color: var(--brand-purple); width: 36px; text-align: right; }

  /* Creation */
  .creation-section { padding: 60px 0; border-bottom: 1px solid var(--border-color); }
  .task-panel { display: grid; grid-template-columns: 1fr; gap: 24px; }
  .panel-box { background: var(--surface-color); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 24px; }
  .panel-title { font-size: 18px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border-color); }
  
  .vote-item { margin-bottom: 16px; }
  .vote-header { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; }
  .vote-bar { height: 8px; background: var(--bg-color); border-radius: var(--radius-pill); overflow: hidden; }
  .vote-fill { height: 100%; background: var(--brand-purple); border-radius: var(--radius-pill); }
  
  .fanart-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .fanart-item { aspect-ratio: 3/4; border-radius: var(--radius-sm); overflow: hidden; position: relative; border: 1px solid var(--border-color); }
  .fanart-item img { width: 100%; height: 100%; object-fit: cover; }
  .fanart-likes { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,0.6); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: var(--radius-pill); }

  /* FAQ */
  .faq-section { padding: 60px 0; border-bottom: 1px solid var(--border-color); }
  .faq-container { display: flex; flex-direction: column; gap: 32px; }
  .faq-categories { display: flex; flex-wrap: wrap; gap: 12px; }
  .faq-cat-btn { background: var(--surface-color); border: 1px solid var(--border-color); padding: 8px 16px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; cursor: pointer; text-align: left; }
  .faq-cat-btn.active { background: var(--brand-purple); color: #fff; border-color: var(--brand-purple); }
  .faq-list { display: flex; flex-direction: column; gap: 12px; }
  .faq-item { background: var(--surface-color); border: 1px solid var(--border-color); border-radius: var(--radius-md); overflow: hidden; }
  .faq-q { padding: 16px 20px; font-weight: 600; font-size: 15px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
  .faq-q::after { content: "+"; font-size: 20px; color: var(--text-muted); }
  .faq-item.active .faq-q::after { content: "-"; color: var(--brand-purple); }
  .faq-a { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; font-size: 14px; color: var(--text-muted); }
  .faq-item.active .faq-a { padding: 0 20px 16px 20px; max-height: 200px; }

  /* Download */
  .download-section { padding: 60px 0; background: var(--surface-color); }
  .download-steps { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
  .step-item { display: flex; gap: 16px; }
  .step-num { width: 32px; height: 32px; background: var(--brand-purple-light); color: var(--brand-purple); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
  .step-text h4 { font-size: 16px; margin-bottom: 4px; }
  .step-text p { font-size: 14px; color: var(--text-muted); }
  
  .download-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
  .dl-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 32px; border-radius: var(--radius-pill); font-size: 16px; font-weight: 600; min-width: 180px; transition: all 0.2s; }
  .dl-btn-primary { background: var(--brand-purple); color: #fff; }
  .dl-btn-primary:hover { background: #6023e0; }
  .dl-btn-outline { background: transparent; color: var(--text-main); border: 1px solid var(--border-color); }
  .dl-btn-outline:hover { border-color: var(--brand-purple); color: var(--brand-purple); }

  /* Footer */
  .site-footer { padding: 40px 0; background: var(--bg-color); border-top: 1px solid var(--border-color); }
  .footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; font-size: 13px; color: var(--text-muted); }
  .footer-links { display: flex; gap: 24px; }
  .footer-links a:hover { color: var(--brand-purple); }
  
  /* Modal */
  .modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center; z-index: 999; padding: 20px; }
  .modal-overlay.show { display: flex; }
  .modal-box { background: #fff; border-radius: var(--radius-md); padding: 24px; width: 100%; max-width: 400px; text-align: center; }
  .modal-box p { margin-bottom: 16px; font-size: 15px; font-weight: 600; }
  .modal-input { width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 16px; background: var(--bg-color); color: var(--text-muted); text-align: center; }
  .modal-btn { background: var(--brand-purple); color: #fff; border: none; padding: 12px 24px; border-radius: var(--radius-pill); font-size: 15px; font-weight: 600; width: 100%; cursor: pointer; }

  /* Responsive */
  @media (min-width: 768px) {
    .section-title { font-size: 32px; }
    .hero-layout { grid-template-columns: 1fr 1fr; }
    .hero-text h1 { font-size: 42px; }
    .grid-wall { grid-template-columns: repeat(3, 1fr); }
    .tri-grid { grid-template-columns: repeat(3, 1fr); }
    .split-console { grid-template-columns: 1fr 1fr; }
    .console-side.left { border-bottom: none; border-right: 1px solid var(--border-color); }
    .task-panel { grid-template-columns: 1fr 1fr; }
    .faq-container { flex-direction: row; }
    .faq-categories { flex-direction: column; width: 200px; flex-shrink: 0; }
    .faq-cat-btn { text-align: left; }
    .faq-list { flex: 1; }
    .download-steps { grid-template-columns: repeat(3, 1fr); }
    .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
  }

  @media (min-width: 1024px) {
    .nav-links { display: flex; }
    .header-cta { display: inline-flex; }
    .hero-text h1 { font-size: 48px; }
    .grid-wall { grid-template-columns: repeat(4, 1fr); }
    .fanart-grid { grid-template-columns: repeat(2, 1fr); }
  }