/* ==========================================================================
   Star Novels - Modern Minimalist Design System
   Hong Kong Corporate Portal: STAR STORY FILM TECH LIMITED
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Lora:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  /* Color Palette - Option 1: Celestial Navy & Warm Cream */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-hover: #e2e8f0;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  
  --border-light: #e2e8f0;
  --border-subtle: #edf2f7;
  --border-focus: #2563eb;

  --accent-black: #0f172a;
  --accent-blue: #2563eb;
  --accent-blue-hover: #1d4ed8;
  --accent-blue-subtle: #eff6ff;
  --accent-amber: #f59e0b;
  --accent-emerald: #059669;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 14px 32px rgba(15, 23, 42, 0.08), 0 4px 8px rgba(15, 23, 42, 0.03);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font-sans);
  --font-serif: 'Lora', Georgia, serif;

  --transition-fast: 0.18s ease;
  --transition-base: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.32rem 0.8rem;
  border-radius: var(--radius-full);
}

.badge-subtle {
  background-color: var(--accent-blue-subtle);
  color: var(--accent-blue);
  border: 1px solid #dbeafe;
}

.badge-corp {
  background-color: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.badge-category {
  background-color: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.22);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  border-color: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.32);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-light);
}

.btn-secondary:hover {
  background-color: #eff6ff;
  border-color: #bfdbfe;
  color: var(--accent-blue);
}

.btn-sm {
  font-size: 0.82rem;
  padding: 0.42rem 0.85rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.brand-logo:hover img {
  transform: scale(1.08);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.brand-name span {
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.4rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-blue);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--accent-blue);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, #eff6ff 0%, var(--bg-body) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.18;
  margin: 1.25rem 0 1rem;
  color: var(--text-primary);
}

.hero-content p {
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  max-width: 520px;
}

.stat-item h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Hero Book Showcase */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.book-showcase-container {
  position: relative;
  width: 320px;
  height: 440px;
}

.showcase-card {
  position: absolute;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: transform var(--transition-base);
}

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

.card-back-left {
  width: 210px;
  height: 310px;
  top: 40px;
  left: -20px;
  transform: rotate(-6deg);
  opacity: 0.75;
}

.card-back-right {
  width: 210px;
  height: 310px;
  top: 50px;
  right: -20px;
  transform: rotate(7deg);
  opacity: 0.75;
}

.card-front {
  width: 230px;
  height: 340px;
  top: 30px;
  left: 45px;
  z-index: 2;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

.showcase-card:hover {
  transform: translateY(-4px) scale(1.02);
}

/* ==========================================================================
   Section Headers & Containers
   ========================================================================== */
.section {
  padding: 4.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.section-header h2 {
  font-size: 2.1rem;
  margin: 0.8rem 0 0.5rem;
}

.section-header p {
  font-size: 0.98rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Genre Filter Bar
   ========================================================================== */
.genre-filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: #93c5fd;
  color: var(--accent-blue);
  background-color: var(--accent-blue-subtle);
}

.filter-btn.active {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-color: var(--accent-blue);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

/* ==========================================================================
   Novel Catalog Grid
   ========================================================================== */
.novel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.75rem;
}

.novel-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  transition: all var(--transition-base);
}

.novel-card:hover {
  transform: translateY(-3px);
  border-color: #bfdbfe;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}

.cover-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background-color: var(--bg-subtle);
}

.cover-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.novel-card:hover .cover-wrapper img {
  transform: scale(1.04);
}

.genre-tag {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
}

.novel-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.novel-title {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--text-primary);
  line-height: 1.35;
}

.novel-author {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.novel-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.novel-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border-subtle);
}

.rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-amber);
}

/* ==========================================================================
   Features Section - Minimalist Cards
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: all var(--transition-base);
}

.feature-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.06);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--accent-blue-subtle);
  border: 1px solid #dbeafe;
  color: var(--accent-blue);
  font-size: 1.15rem;
  margin-bottom: 1.1rem;
}

.feature-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Corporate Verification Section (Hong Kong Entity)
   ========================================================================== */
.corp-section {
  padding: 3.5rem 0;
}

.corp-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.corp-badge-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1.75rem;
}

.corp-badge-header h3 {
  font-size: 1.5rem;
  margin-top: 0.4rem;
}

.corp-details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.corp-item {
  display: flex;
  flex-direction: column;
}

.corp-item h4 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.corp-item p {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.corp-item-full {
  grid-column: span 3;
}

.code-badge {
  display: inline-block;
  white-space: nowrap;
  word-break: keep-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  background-color: var(--bg-subtle);
  padding: 0.22rem 0.55rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

/* Copy status tooltip */
.copy-feedback {
  font-size: 0.78rem;
  color: var(--accent-emerald);
  margin-left: 0.5rem;
  display: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.84rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--text-secondary);
}

.footer-bottom a:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   Reader Modal - Clean & Minimalist Reading Mode
   ========================================================================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-light);
}

.modal-title-group h3 {
  font-size: 1.1rem;
}

.modal-title-group p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.reader-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.75rem;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
  font-size: 0.82rem;
}

.theme-controls, .font-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.theme-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-btn.active {
  border-color: var(--accent-blue);
  transform: scale(1.1);
}

.theme-light-btn { background-color: #ffffff; border-color: #cbd5e1; }
.theme-sepia-btn { background-color: #f6f1e7; }
.theme-dark-btn { background-color: #1e293b; }

.font-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.font-btn:hover {
  background: var(--bg-hover);
}

.reader-body {
  padding: 2.25rem 2rem;
  overflow-y: auto;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.85;
  color: #1f2937;
  transition: background 0.2s ease, color 0.2s ease;
}

.reader-body p {
  margin-bottom: 1.35rem;
}

/* Reader Themes */
.reader-body.theme-light {
  background-color: #ffffff;
  color: #1f2937;
}

.reader-body.theme-sepia {
  background-color: #fbf0d9;
  color: #433422;
}

.reader-body.theme-dark {
  background-color: #18181b;
  color: #d4d4d8;
}

/* ==========================================================================
   Editorial Content Pages (About, Privacy, Terms, DMCA)
   ========================================================================== */
.editorial-hero {
  padding: 4rem 0 2.5rem;
  text-align: center;
  background: linear-gradient(180deg, #eff6ff 0%, var(--bg-body) 100%);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 3rem;
}

.editorial-hero h1 {
  font-size: 2.4rem;
  margin: 0.8rem 0 0.5rem;
}

.editorial-hero p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.editorial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-xs);
  margin-bottom: 3.5rem;
}

.editorial-card h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-subtle);
}

.editorial-card h2:first-of-type {
  margin-top: 0;
}

.editorial-card h3 {
  font-size: 1.1rem;
  margin: 1.25rem 0 0.5rem;
}

.editorial-card p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.editorial-card ul, .editorial-card ol {
  margin: 0.5rem 0 1.25rem 1.5rem;
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.7;
}

.editorial-card li {
  margin-bottom: 0.35rem;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@keyframes navSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tablet & Smaller Laptops */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    margin-left: auto;
    margin-right: auto;
  }

  .novel-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .corp-details-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .corp-item-full {
    grid-column: span 2;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* Mobile Devices (landscape phones, portrait tablets) */
@media (max-width: 768px) {
  .nav-container {
    height: 62px;
  }

  .brand-logo img {
    width: 32px;
    height: 32px;
  }

  .brand-name {
    font-size: 1.08rem;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    font-size: 1.15rem;
  }

  .mobile-toggle:hover, .mobile-toggle:active {
    background-color: var(--bg-subtle);
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 62px;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    gap: 0.35rem;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
    z-index: 1000;
  }

  .nav-links.active {
    display: flex;
    animation: navSlideDown 0.2s ease forwards;
  }

  .nav-link {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
  }

  .nav-link:hover, .nav-link.active {
    background: var(--accent-blue-subtle);
    color: var(--accent-blue);
  }

  .nav-link.active::after {
    display: none;
  }

  .nav-actions {
    display: none;
  }

  /* Hero Section */
  .hero {
    padding: 2.75rem 0 2rem;
  }

  .hero-content h1 {
    font-size: 2.1rem;
    line-height: 1.22;
  }

  .hero-content h1 br {
    display: none;
  }

  .hero-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .hero-visual {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    padding: 0.5rem 0;
  }

  .book-showcase-container {
    width: 250px;
    height: 340px;
    margin: 0 auto;
  }

  .card-front {
    width: 180px;
    height: 260px;
    top: 25px;
    left: 35px;
  }

  .card-back-left {
    width: 160px;
    height: 235px;
    top: 35px;
    left: -10px;
  }

  .card-back-right {
    width: 160px;
    height: 235px;
    top: 40px;
    right: -10px;
  }

  /* Section Spacing */
  .section {
    padding: 3.25rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .section-header p {
    font-size: 0.9rem;
  }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .feature-card {
    padding: 1.35rem 1.2rem;
  }

  /* Corporate Section */
  .corp-section {
    padding: 2.5rem 0;
  }

  .corp-card {
    padding: 1.5rem 1.25rem;
    border-radius: var(--radius-md);
  }

  .corp-badge-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
  }

  .corp-badge-header h3 {
    font-size: 1.25rem;
  }

  #copyRegBtn {
    width: 100%;
  }

  .corp-details-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .corp-item-full {
    grid-column: span 1;
  }

  .corp-item p {
    word-break: break-word;
  }

  /* Editorial Pages */
  .editorial-hero {
    padding: 3rem 0 1.75rem;
    margin-bottom: 2rem;
  }

  .editorial-hero h1 {
    font-size: 1.85rem;
  }

  .editorial-card {
    padding: 1.5rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 2.5rem;
  }

  /* Footer */
  .footer {
    padding: 2.75rem 0 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    margin-bottom: 1.75rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
    padding-top: 1.35rem;
  }
}

/* Small Smartphone Devices (<= 576px) */
@media (max-width: 576px) {
  .container {
    padding: 0 1rem;
  }

  .hero {
    padding: 2.25rem 0 1.75rem;
  }

  .hero-content h1 {
    font-size: 1.75rem;
    line-height: 1.24;
    margin: 0.85rem 0 0.75rem;
  }

  .hero-content p {
    font-size: 0.92rem;
    margin-bottom: 1.35rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 1.5rem;
    gap: 0.75rem;
  }

  .hero-actions .btn {
    width: 100%;
    padding: 0.72rem 1rem;
    justify-content: center;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding-top: 1.25rem;
    max-width: 100%;
  }

  .stat-item h3 {
    font-size: 1.15rem;
    font-weight: 800;
  }

  .stat-item p {
    font-size: 0.7rem;
    line-height: 1.3;
  }

  /* App-like horizontal swipe pill filter */
  .genre-filter-bar {
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.35rem 0.25rem 0.75rem;
    gap: 0.45rem;
    scrollbar-width: none;
    margin-bottom: 1.5rem;
  }

  .genre-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.8rem;
    padding: 0.42rem 0.88rem;
  }

  /* Single Column Novel Cards */
  .novel-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .novel-content {
    padding: 1.15rem 1rem;
  }

  .novel-title {
    font-size: 1.05rem;
  }

  .novel-desc {
    font-size: 0.85rem;
    -webkit-line-clamp: 3;
    margin-bottom: 1rem;
  }

  /* Features list layout on small mobile */
  .feature-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.15rem 1rem;
  }

  .feature-icon {
    margin-bottom: 0;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .feature-card h4 {
    font-size: 0.98rem;
  }

  .feature-card p {
    font-size: 0.84rem;
  }

  /* Reader Modal on Mobile - Native App Bottom Sheet */
  .modal {
    padding: 0;
    align-items: flex-end;
  }

  .modal-content {
    width: 100%;
    height: 94vh;
    max-height: 94vh;
    border-radius: 18px 18px 0 0;
    border-bottom: none;
  }

  .modal-header {
    padding: 0.95rem 1.15rem;
  }

  .modal-title-group h3 {
    font-size: 1.02rem;
  }

  .modal-title-group p {
    font-size: 0.78rem;
  }

  .reader-toolbar {
    padding: 0.45rem 1.15rem;
    font-size: 0.76rem;
  }

  .reader-body {
    padding: 1.25rem 1.15rem;
    font-size: 0.98rem;
    line-height: 1.75;
  }
}
