:root {
    --brand-purple: #7c3aed;
    --brand-purple-light: #f3e8ff;
    --brand-purple-hover: #6d28d9;
    --bg-color: #f8f9fa;
    --surface-color: #ffffff;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-pill: 999px;
    --max-width: 1200px;
    --transition: 0.2s ease-in-out;
  }

  * {
    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;
  }

  a {
    text-decoration: none;
    color: inherit;
  }

  ul {
    list-style: none;
  }

  img {
    display: block;
    max-width: 100%;
  }

  .container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
  }

  /* Header */
  .site-header {
    background-color: 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;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
  }

  .brand img {
    height: 32px;
    width: auto;
    border-radius: var(--radius-sm);
  }

  .main-nav {
    display: none;
  }

  .main-nav a {
    font-size: 14px;
    color: var(--text-muted);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background-color var(--transition);
  }

  .main-nav a:hover {
    color: var(--brand-purple);
    background-color: var(--brand-purple-light);
  }

  .header-cta {
    display: none;
  }

  .btn-primary {
    background-color: var(--brand-purple);
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color var(--transition);
    text-align: center;
    display: inline-block;
  }

  .btn-primary:hover {
    background-color: var(--brand-purple-hover);
  }

  /* Hero Section */
  .hero {
    padding: 40px 0;
    background-color: var(--surface-color);
  }

  .hero-inner {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .hero-content {
    flex: 1;
  }

  .hero-tag {
    display: inline-block;
    background-color: var(--brand-purple-light);
    color: var(--brand-purple);
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    margin-bottom: 16px;
  }

  .hero h1 {
    font-size: 32px;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-main);
  }

  .hero-desc {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 500px;
  }

  .hero-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    padding: 16px;
    background-color: var(--bg-color);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
  }

  .stat-item {
    flex: 1;
  }

  .stat-value {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--brand-purple);
  }

  .stat-label {
    font-size: 12px;
    color: var(--text-muted);
  }

  .download-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: border-color var(--transition), color var(--transition);
  }

  .btn-outline:hover {
    border-color: var(--brand-purple);
    color: var(--brand-purple);
  }

  .hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
  }

  .cover-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .cover-carousel::-webkit-scrollbar {
    display: none;
  }

  .cover-card {
    flex: 0 0 160px;
    scroll-snap-align: start;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    aspect-ratio: 3 / 4;
  }

  .cover-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Sections Common */
  section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
  }

  section:last-of-type {
    border-bottom: none;
  }

  .section-header {
    margin-bottom: 32px;
    text-align: center;
  }

  .section-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
  }

  .section-header p {
    font-size: 15px;
    color: var(--text-muted);
  }

  /* Library Section */
  .library-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 32px;
  }

  .tag {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition);
  }

  .tag.active, .tag:hover {
    background-color: var(--brand-purple);
    color: #fff;
    border-color: var(--brand-purple);
  }

  .grid-wall {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .comic-card {
    background-color: var(--surface-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform var(--transition), box-shadow var(--transition);
  }

  .comic-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }

  .comic-cover {
    aspect-ratio: 3 / 4;
    width: 100%;
  }

  .comic-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .comic-info {
    padding: 12px;
  }

  .comic-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .comic-chapter {
    font-size: 12px;
    color: var(--text-muted);
  }

  /* Smart Reading Section */
  .feature-tri-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .feature-box {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
  }

  .feature-icon {
    width: 48px;
    height: 48px;
    background-color: var(--brand-purple-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--brand-purple);
    font-size: 20px;
    font-weight: bold;
  }

  .feature-box h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
  }

  .feature-box p {
    font-size: 14px;
    color: var(--text-muted);
  }

  /* 4K Section */
  .split-console {
    display: flex;
    flex-direction: column;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
  }

  .console-pane {
    flex: 1;
    position: relative;
  }

  .console-pane img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .console-label {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background-color: rgba(0,0,0,0.6);
    color: #fff;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    backdrop-filter: blur(4px);
  }

  .console-divider {
    height: 2px;
    background-color: var(--brand-purple);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .console-divider::after {
    content: '↔';
    background-color: var(--brand-purple);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
  }

  /* Community Section */
  .data-stream {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .stream-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
  }

  .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--brand-purple-light);
  }

  .match-info {
    flex: 1;
  }

  .match-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
  }

  .match-name {
    font-size: 15px;
    font-weight: 600;
  }

  .match-percent {
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-purple);
  }

  .match-tag {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
  }

  .progress-bar {
    height: 6px;
    background-color: var(--bg-color);
    border-radius: var(--radius-pill);
    overflow: hidden;
  }

  .progress-fill {
    height: 100%;
    background-color: var(--brand-purple);
    border-radius: var(--radius-pill);
  }

  /* Creation Section */
  .task-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .panel-col {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
  }

  .panel-col h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
  }

  .vote-item {
    margin-bottom: 16px;
  }

  .vote-text {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 6px;
  }

  .vote-bar {
    height: 8px;
    background-color: var(--bg-color);
    border-radius: var(--radius-pill);
    overflow: hidden;
  }

  .vote-fill {
    height: 100%;
    background-color: var(--brand-purple);
    border-radius: var(--radius-pill);
  }

  .fanart-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .fanart-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
  }

  .fanart-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }

  .fanart-likes {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background-color: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: var(--radius-pill);
  }

  /* FAQ Section */
  .faq-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .faq-sidebar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
  }

  .faq-cat-btn {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
  }

  .faq-cat-btn.active {
    background-color: var(--brand-purple-light);
    color: var(--brand-purple);
    border-color: var(--brand-purple);
  }

  .faq-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .faq-item {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
  }

  .faq-question {
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .faq-question::after {
    content: '+';
    font-size: 20px;
    color: var(--text-muted);
    transition: transform var(--transition);
  }

  .faq-item.open .faq-question::after {
    content: '−';
    color: var(--brand-purple);
  }

  .faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    font-size: 14px;
    color: var(--text-muted);
    border-top: 1px solid transparent;
  }

  .faq-item.open .faq-answer {
    padding: 0 20px 16px;
    max-height: 200px;
    border-top-color: var(--border-color);
  }

  /* Footer */
  .site-footer {
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    font-size: 14px;
    color: var(--text-muted);
  }

  .footer-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .footer-brand p {
    margin-bottom: 8px;
  }

  .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
  }

  .footer-links a:hover {
    color: var(--brand-purple);
  }

  .footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
  }

  /* Download Modal */
  .modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
  }
  .modal-overlay.active {
    display: flex;
  }
  .modal-box {
    background-color: var(--surface-color);
    border-radius: var(--radius-md);
    padding: 24px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }
  .modal-box h4 {
    font-size: 16px;
    color: var(--text-main);
    margin-bottom: 16px;
    line-height: 1.5;
  }
  .modal-link {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-main);
    word-break: break-all;
    margin-bottom: 16px;
    font-family: monospace;
  }
  .modal-actions {
    display: flex;
    gap: 12px;
  }
  .modal-actions button {
    flex: 1;
  }

  /* Responsive */
  @media (min-width: 768px) {
    .main-nav {
      display: flex;
      gap: 8px;
    }
    .header-cta {
      display: block;
    }
    .hero-inner {
      flex-direction: row;
      align-items: center;
    }
    .hero h1 {
      font-size: 40px;
    }
    .hero-visual {
      justify-content: flex-end;
    }
    .cover-carousel {
      overflow: hidden;
      display: grid;
      grid-template-columns: repeat(2, 1fr);
    }
    .cover-card {
      flex: none;
    }
    .grid-wall {
      grid-template-columns: repeat(3, 1fr);
    }
    .feature-tri-grid {
      grid-template-columns: repeat(3, 1fr);
    }
    .split-console {
      flex-direction: row;
      height: 400px;
      position: relative;
    }
    .console-divider {
      width: 2px;
      height: 100%;
      position: absolute;
      left: 50%;
      top: 0;
      transform: translateX(-50%);
      z-index: 10;
    }
    .console-divider::after {
      width: 32px;
      height: 32px;
    }
    .task-panel {
      grid-template-columns: repeat(2, 1fr);
    }
    .faq-container {
      flex-direction: row;
    }
    .faq-sidebar {
      flex-direction: column;
      width: 200px;
      flex-shrink: 0;
    }
    .footer-inner {
      flex-direction: row;
      justify-content: space-between;
    }
    .footer-bottom {
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
    }
  }

  @media (min-width: 1024px) {
    .hero h1 {
      font-size: 48px;
    }
    .cover-card {
      aspect-ratio: 3 / 4;
    }
    .cover-carousel {
      grid-template-columns: repeat(3, 1fr);
    }
    .grid-wall {
      grid-template-columns: repeat(5, 1fr);
    }
    .data-stream {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
    }
  }