:root {
  --bg-primary: #090d16;
  --bg-secondary: #0f172a;
  --bg-card: #131b2e;
  --bg-card-hover: #18233c;
  --border-card: rgba(255, 255, 255, 0.08);
  --border-card-hover: rgba(139, 92, 246, 0.4);
  --accent-garden: #8b5cf6;
  --accent-garden-light: #c4b5fd;
  --accent-garden-dark: #6d28d9;
  --accent-sky: #38bdf8;
  --accent-indigo: #818cf8;
  --accent-purple: #a855f7;
  --accent-emerald: #10b981;
  --text-primary: #f8fafc;
  --text-muted: #94a3b8;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background Atmosphere */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.14) 0%, rgba(109, 40, 217, 0.05) 40%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(9, 13, 22, 0.8);
  border-bottom: 1px solid var(--border-card);
  z-index: 100;
  padding: 16px 0;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.container.nav-wrapper {
  max-width: 1500px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.brand-logo {
  width: 36px;
  height: 36px;
}

.brand-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border-card);
  border-radius: 12px;
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
}

.nav-menu-toggle:hover {
  border-color: var(--border-card-hover);
  color: var(--accent-garden-light);
}

.nav-menu-toggle:focus-visible {
  outline: 2px solid var(--accent-garden-light);
  outline-offset: 2px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--text-primary);
}

.language-select {
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border-card);
  border-radius: 9999px;
  background: var(--bg-card);
  color: var(--text-primary);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.language-select:focus-visible {
  outline: 2px solid var(--accent-garden-light);
  outline-offset: 2px;
}

@media (max-width: 1439px) {
  .nav-menu-toggle {
    display: inline-flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: calc(100% + 24px);
    right: 0;
    z-index: 101;
    width: min(320px, calc(100vw - 32px));
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 8px;
    border: 1px solid var(--border-card);
    border-radius: 16px;
    background: var(--bg-secondary);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  }

  .nav-links.is-open .nav-menu {
    display: flex;
  }

  .nav-menu .nav-link {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
  }

  .nav-menu .nav-link:hover {
    background: var(--bg-card);
  }

  .nav-menu .btn-nav-cta {
    justify-content: center;
    margin-top: 4px;
    border-radius: 9999px;
    padding: 10px 18px;
  }

  .nav-menu .nav-cta-text {
    display: inline;
  }
}

.is-unavailable {
  cursor: not-allowed !important;
  filter: grayscale(1);
}

.btn-store-hero.is-unavailable,
.btn-nav-cta.is-unavailable,
.btn-store-primary.is-unavailable {
  pointer-events: none;
  box-shadow: none;
}

.btn-store-hero.is-unavailable {
  opacity: 0.72;
}

.btn-nav-cta.is-unavailable {
  opacity: 0.62;
}

.store-unavailable-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.72);
  color: #cbd5e1;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.btn-nav-cta .store-unavailable-label {
  max-width: 100px;
  padding: 3px 6px;
  font-size: 9px;
}

.btn-store-primary.is-unavailable {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: #334155;
  box-shadow: none;
  color: #cbd5e1;
}

.btn-store-primary.is-unavailable:hover {
  transform: none;
  box-shadow: none;
}

.install-card-featured.is-unavailable {
  border-color: rgba(148, 163, 184, 0.3);
  box-shadow: none;
  cursor: not-allowed;
}

.install-card-featured.is-unavailable:hover {
  transform: none;
  border-color: rgba(148, 163, 184, 0.3);
  box-shadow: none;
}

.install-card-featured.is-unavailable .install-card-ribbon {
  background: #475569;
  box-shadow: none;
}

.footer-store-link.is-unavailable {
  color: var(--text-muted) !important;
  font-weight: 600 !important;
}

@media (max-width: 480px) {
  .container.nav-wrapper {
    padding: 0 16px;
  }

  .nav-wrapper {
    gap: 8px;
  }
  .brand-link {
    gap: 8px;
  }
  .brand-title {
    font-size: 15px;
  }
  .nav-links {
    gap: 8px;
  }
  .language-select {
    max-width: 112px;
    padding: 8px;
    font-size: 12px;
  }
}

@media (max-width: 360px) {
  .container.nav-wrapper {
    padding: 0 12px;
  }

  .brand-title {
    font-size: 14px;
  }
  .language-select {
    max-width: 90px;
    padding: 6px;
    font-size: 12px;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 55%, #c4b5fd 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Navigation CTA */
.btn-nav-cta {
  padding: 8px 18px;
  font-size: 13px;
  background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 60%, #c4b5fd 100%);
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
}

.nav-chrome-svg {
  flex-shrink: 0;
}

/* Chrome Web Store Hero Button */
.btn-store-hero {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 20px 8px 14px;
  border-radius: 9999px;
  text-decoration: none;
  background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 40%, #8b5cf6 80%, #c4b5fd 100%);
  color: #fff;
  box-shadow: 0 8px 24px -4px rgba(139, 92, 246, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.25) inset;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
}

.btn-store-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -4px rgba(139, 92, 246, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.35) inset;
  color: #fff;
}

.btn-store-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.chrome-store-svg {
  display: block;
}

.btn-store-copy {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.btn-store-sub {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  opacity: 0.85;
}

.btn-store-main {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.btn-store-free-badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 3px 8px;
  border-radius: 9999px;
  margin-left: 2px;
}

.btn-hero-secondary {
  padding: 12px 20px;
}

/* Hero Trust Row */
.hero-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.trust-badge svg {
  color: var(--accent-sky);
  flex-shrink: 0;
}

.trust-sep {
  color: rgba(255, 255, 255, 0.18);
  font-size: 12px;
}

/* Hero & Showcase Section */
.hero-section {
  padding: 56px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 48px;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 48px;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

@media (max-width: 1023px) {
  .hero-content {
    align-items: center;
    text-align: center;
  }
}

.hero-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.32);
  color: #c4b5fd;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(139, 92, 246, 0.2);
}

.hero-brand-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.hero-title {
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 18px;
  color: #ffffff;
}

.hero-title-accent {
  background: linear-gradient(135deg, #ffffff 15%, #c4b5fd 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 540px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

@media (max-width: 1023px) {
  .hero-actions {
    justify-content: center;
  }
}

.hero-trust-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 1023px) {
  .hero-trust-row {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .hero-section {
    padding: 32px 0 52px;
  }
  .hero-title {
    font-size: 32px;
    line-height: 1.15;
  }
  .hero-desc {
    font-size: 15px;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .btn-store-hero,
  .btn-hero-secondary {
    width: 100%;
    justify-content: center;
  }
  .hero-trust-row {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
  .hero-trust-row .trust-sep {
    display: none;
  }
}

/* Right Column: Torii-Style Floating Manga Showcase */
.hero-showcase-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
}

/* Canvas-like dotted field that fades out at edges */
.dot-field {
  position: absolute;
  pointer-events: none;
  background-image: radial-gradient(rgba(148, 163, 184, 0.28) 1.5px, transparent 1.7px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(closest-side, #000 45%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 45%, transparent 100%);
}

.hero-dots {
  left: 50%;
  top: 44%;
  width: min(170%, 46rem, 100vw);
  aspect-ratio: 1;
  translate: -50% -50%;
  z-index: 0;
}

/* Floating Manga Card */
.demo-card {
  position: relative;
  width: min(100%, 25.5rem, calc((100svh - 18rem) * 0.707));
  aspect-ratio: 848 / 1200;
  border-radius: 18px;
  overflow: hidden;
  background: #0f172a;
  rotate: 1.5deg;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.95), 0 0 0 5px rgba(139, 92, 246, 0.35), 0 24px 60px rgba(0, 0, 0, 0.75);
  user-select: none;
  touch-action: pan-y;
  z-index: 1;
  transition: rotate 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.demo-card:hover {
  rotate: 0deg;
  transform: translateY(-2px);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 1), 0 0 0 6px rgba(139, 92, 246, 0.65), 0 28px 75px rgba(0, 0, 0, 0.9);
}

/* Manga Images (Base & Overlay) */
.demo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Clip translated overlay without image distortion */
.demo-after {
  clip-path: inset(0 calc(100% - var(--split, 52%)) 0 0);
  will-change: clip-path;
}

/* Vertical Divider Seam */
.demo-seam {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split, 52%);
  width: 2px;
  margin-left: -1px;
  background: #8b5cf6;
  box-shadow: 0 0 10px 1px rgba(139, 92, 246, 0.85), 0 0 20px rgba(139, 92, 246, 0.45);
  pointer-events: none;
  z-index: 10;
}

/* Draggable Circular Knob */
.demo-knob {
  position: absolute;
  top: 50%;
  left: var(--split, 52%);
  pointer-events: none;
  translate: -50% -50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  color: #0f172a;
  background: #ffffff;
  box-shadow: 0 0 0 2px #8b5cf6, 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 11;
  transition: opacity 150ms ease;
}

/* Frosted Glass Language Pills */
.demo-tag {
  position: absolute;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
  transition: opacity 150ms ease;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.demo-tag-after {
  left: 12px;
  bottom: 12px;
}

.demo-tag-before {
  right: 12px;
  bottom: 12px;
}

/* In-Page Translate Gate Button */
.demo-gate {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 12;
  width: 44px;
  height: 44px;
  padding: 9px;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  cursor: pointer;
  opacity: 0.92;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  transition: opacity 150ms, transform 150ms, box-shadow 150ms;
}

.demo-gate:hover,
.demo-gate:focus-visible {
  opacity: 1;
  transform: scale(1.1);
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.7);
}

.demo-gate.is-inviting::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 9999px;
  border: 2px solid #8b5cf6;
  animation: gate-invite 1.4s ease-out 2;
  opacity: 0;
  pointer-events: none;
}

@keyframes gate-invite {
  0% { opacity: 0.9; transform: scale(0.7); }
  100% { opacity: 0; transform: scale(1.5); }
}

/* Invisible Range Input for Native Drag */
.demo-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
  z-index: 20;
}

/* Thumbnail Page Picker */
.demo-picker-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
  margin-top: 2px;
}

.demo-picker {
  display: flex;
  align-items: center;
  gap: 12px;
}

.demo-thumb {
  width: 46px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  outline: 2px solid rgba(255, 255, 255, 0.2);
  outline-offset: 2px;
  transition: opacity 150ms ease, outline-color 150ms ease, transform 150ms ease;
  background: #0f172a;
  padding: 0;
  border: none;
}

.demo-thumb:hover {
  opacity: 0.95;
  transform: translateY(-2px);
}

.demo-thumb[aria-pressed="true"] {
  opacity: 1;
  outline-color: #8b5cf6;
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.55);
  transform: translateY(-2px);
}

.demo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.demo-caption {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.demo-hint {
  font-size: 13px;
  color: #94a3b8;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .demo-gate.is-inviting::after {
    animation: none;
  }
  .demo-card {
    rotate: 0deg;
    transition: none;
  }
}

/* Section Shared Headers */
.section {
  padding: 70px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-garden);
  margin-bottom: 10px;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
}

/* Section 2: UI Showcase (Hover Button on TOP) */
.hover-spotlight {
  background: linear-gradient(135deg, rgba(255, 45, 117, 0.08) 0%, rgba(19, 27, 46, 0.9) 100%);
  border: 1px solid rgba(255, 45, 117, 0.25);
  border-radius: var(--radius-xl);
  padding: 40px;
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
  box-shadow: 0 20px 45px -15px rgba(255, 45, 117, 0.15);
}

@media (min-width: 860px) {
  .hover-spotlight {
    grid-template-columns: 1.1fr 1fr;
  }
}

.hover-lead-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 45, 117, 0.15);
  border: 1px solid var(--accent-purple);
  color: #c084fc;
  padding: 4px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hover-spotlight-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  line-height: 1.25;
}

.hover-spotlight-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.modes-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mode-pill {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 12px 14px;
}

.mode-pill-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.mode-pill-sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.hover-visual-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 45, 117, 0.3);
}

.hover-visual-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* Extension Popup, Reader, and Settings Row */
.extension-panels-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 48px;
}

@media (min-width: 700px) and (max-width: 1023px) {
  .extension-panels-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .extension-panels-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.panel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.25s, border-color 0.25s;
}

.panel-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-card-hover);
}

.panel-card-img-wrap {
  background: #0b0f19;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  margin-bottom: 20px;
}

.panel-card-img-wrap img {
  max-height: 440px;
  width: auto;
  max-width: 100%;
  border-radius: 10px;
  display: block;
}

.panel-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.panel-desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* Manga Garden Studio Showcase */
.studio-showcase {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: 0 25px 50px -15px rgba(0, 0, 0, 0.8);
}

.studio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.studio-window-frame {
  background: #0b0f19;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

.studio-title-bar {
  background: #1e293b;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #334155;
}

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-1 { background: #ef4444; }
.dot-2 { background: #f59e0b; }
.dot-3 { background: #10b981; }

.window-text {
  margin-left: 8px;
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
}

.studio-window-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* Architecture Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform 0.25s, border-color 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-card-hover);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 16px;
  display: inline-block;
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Footer & Legal */
footer {
  border-top: 1px solid var(--border-card);
  padding: 50px 0 30px;
  background: rgba(9, 13, 22, 0.95);
  margin-top: 60px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 36px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--accent-sky);
}

.footer-privacy-highlight {
  color: var(--accent-sky) !important;
  font-weight: 700 !important;
}

.footer-bottom {
  text-align: center;
  font-size: 13px;
  color: #64748b;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
}

/* Install & Get Started Section */
.install-section {
  background: radial-gradient(ellipse at center top, rgba(30, 41, 70, 0.4) 0%, transparent 70%);
}

.install-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: stretch;
}

@media (min-width: 992px) {
  .install-grid {
    grid-template-columns: 1.25fr 1fr 1fr;
  }
}

.install-card {
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s, box-shadow 0.25s;
}

.install-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-card-hover);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.5);
}

.install-card-featured {
  background: linear-gradient(180deg, #1f1422 0%, #0f172a 100%);
  border: 1px solid rgba(139, 92, 246, 0.45);
  box-shadow: 0 20px 40px -10px rgba(139, 92, 246, 0.22), 0 0 0 1px rgba(139, 92, 246, 0.15) inset;
}

.install-card-featured:hover {
  border-color: rgba(139, 92, 246, 0.75);
  box-shadow: 0 24px 48px -10px rgba(139, 92, 246, 0.35), 0 0 0 1px rgba(139, 92, 246, 0.25) inset;
}

.install-card-ribbon {
  position: absolute;
  top: 16px;
  right: 18px;
  background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

.install-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.install-channel-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chrome-gradient-icon {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-garden-light);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.zip-channel-icon {
  background: rgba(129, 140, 248, 0.12);
  color: var(--accent-indigo);
  border: 1px solid rgba(129, 140, 248, 0.25);
}

.code-channel-icon {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.install-card-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #fff;
  line-height: 1.2;
}

.install-card-sub {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-sky);
}

.install-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 22px;
}

.install-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 26px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.install-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.4;
}

.check-icon {
  color: var(--accent-emerald);
  flex-shrink: 0;
  margin-top: 2px;
}

.install-steps-list {
  margin: 0 0 24px 20px;
  padding: 0;
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.6;
  flex-grow: 1;
}

.install-steps-list li {
  margin-bottom: 8px;
}

.install-steps-list code {
  background: rgba(0, 0, 0, 0.35);
  color: var(--accent-sky);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  overflow-wrap: anywhere;
}

.install-terminal-snippet {
  background: #070a12;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 24px;
  flex-grow: 1;
}

.install-terminal-snippet code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  color: #a5f3fc;
  line-height: 1.65;
  display: block;
  overflow-wrap: anywhere;
}

.install-card-cta {
  margin-top: auto;
}

.btn-store-primary {
  background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 40%, #8b5cf6 80%, #c4b5fd 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.45);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
}

.btn-store-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.7);
  color: #fff;
}

.btn-block {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.footer-store-link {
  color: var(--accent-sky) !important;
  font-weight: 700 !important;
}
