/* LiToon Promotion Website - Modern Apple-Style Dark Theme */

:root {
  --bg-primary: #07080b;
  --bg-secondary: #0e1118;
  --bg-tertiary: #161b26;
  --card-bg: rgba(25, 30, 42, 0.55);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-hover-border: rgba(99, 102, 241, 0.4);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;
  --accent-indigo: #6366f1;
  --accent-amber: #f59e0b;
  
  --gradient-brand: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #f472b6 100%);
  --gradient-glow: radial-gradient(circle at 50% 30%, rgba(99, 102, 241, 0.18), transparent 70%);
  
  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Pretendard", "Noto Sans KR", sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  
  --transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

/* Background Ambient Glows */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(circle at 20% 15%, rgba(99, 102, 241, 0.12), transparent 45%),
    radial-gradient(circle at 80% 25%, rgba(6, 182, 212, 0.08), transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(139, 92, 246, 0.08), transparent 50%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Header & Nav */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(7, 8, 11, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: var(--transition);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language Switcher */
.lang-selector {
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn.active {
  background: var(--text-primary);
  color: var(--bg-primary);
}

/* Hero Section */
.hero-section {
  padding: 80px 0 60px;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.28);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #a5b4fc;
  margin-bottom: 24px;
}

.hero-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

.hero-title {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 22px;
}

.hero-title .gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 36px;
  font-weight: 400;
  line-height: 1.55;
}

.cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text-primary);
  color: var(--bg-primary);
  font-weight: 600;
  font-size: 16px;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 255, 255, 0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 16px;
  padding: 14px 24px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.platform-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.platform-badges span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Device Mockup Section */
.hero-mockup-wrapper {
  margin: 50px auto 0;
  max-width: 1000px;
  perspective: 1000px;
}

.ipad-device {
  background: #181920;
  border-radius: 38px;
  padding: 18px;
  box-shadow: 
    0 25px 60px -15px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 80px rgba(99, 102, 241, 0.15);
  position: relative;
  transition: transform 0.4s ease;
}

.ipad-device:hover {
  transform: translateY(-4px);
}

.screen-bezel {
  background: #000;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
}

/* Live Interactive Canvas Mockup inside iPad */
.mockup-reader {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #0f1117;
  position: relative;
}

.reader-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(20, 24, 34, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: var(--text-secondary);
  z-index: 10;
}

.reader-book-title {
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.reader-top-controls {
  display: flex;
  gap: 12px;
}

.mockup-spread-view {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  background: #050608;
  padding: 8px;
  overflow: hidden;
  position: relative;
}

.page-panel {
  background: #10131a;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4);
}

.mock-manga-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: opacity 0.22s ease;
  user-select: none;
  display: block;
}

.page-num-pill {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 5;
}

.reader-bottom-hud {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 440px;
  background: rgba(18, 22, 32, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 10px 18px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  z-index: 20;
}

.hud-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.hud-slider {
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  position: relative;
}

.hud-slider-fill {
  height: 100%;
  width: 46%;
  background: var(--text-primary);
  border-radius: 2px;
  position: relative;
}

.hud-slider-thumb {
  position: absolute;
  right: -5px;
  top: -4px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* Interactive Keyboard Overlay on Mockup */
.mockup-key-hint {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 6px;
  animation: pulse 2.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 0.5; }
}

/* Bento Grid Features Section */
.features-section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 60px;
}

.section-tag {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #818cf8;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.section-description {
  font-size: 17px;
  color: var(--text-secondary);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.bento-card {
  background: var(--card-bg);
  backdrop-filter: blur(14px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  border-color: var(--card-hover-border);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.bento-col-8 {
  grid-column: span 8;
}

.bento-col-4 {
  grid-column: span 4;
}

.bento-col-6 {
  grid-column: span 6;
}

.bento-col-12 {
  grid-column: span 12;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #818cf8;
  margin-bottom: 20px;
}

.card-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin-bottom: 10px;
}

.card-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Format Badges */
.format-pill-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.format-badge {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
}

.format-badge.highlight {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  color: #93c5fd;
}

/* Interactive Keyboard Shortcuts Section */
.shortcuts-section {
  padding: 80px 0 100px;
  background: linear-gradient(180deg, transparent 0%, rgba(14, 17, 24, 0.7) 100%);
}

.keyboard-simulator-box {
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  max-width: 980px;
  margin: 0 auto;
}

.interactive-key-deck {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 30px 0;
}

kbd.interactive-key {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  height: 64px;
  padding: 8px 12px;
  background: #242936;
  border: 1px solid #3e4659;
  border-bottom: 4px solid #1a1e28;
  border-radius: 12px;
  color: #f1f5f9;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: all 0.12s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

kbd.interactive-key:hover {
  background: #2d3344;
  border-color: #6366f1;
}

kbd.interactive-key:active, kbd.interactive-key.pressed {
  transform: translateY(3px);
  border-bottom-width: 1px;
  background: #3b82f6;
  color: #fff;
  border-color: #60a5fa;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.5);
}

kbd.interactive-key .key-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 4px;
}

kbd.interactive-key.pressed .key-label {
  color: #dbeafe;
}

.shortcut-action-display {
  background: #12151e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}

.shortcut-action-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.shortcut-status-pill {
  padding: 4px 10px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

/* Comparison Visualizer Section */
.comparison-section {
  padding: 90px 0;
}

.comparison-wrapper {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.comparison-image-box {
  position: relative;
  height: 540px;
  user-select: none;
  background: #000;
  overflow: hidden;
}

.comparison-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.comparison-sample-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  user-select: none;
}

.original-filter {
  filter: sepia(0.65) contrast(0.85) brightness(0.88);
}

.enhanced-filter {
  filter: contrast(1.22) brightness(1.04) grayscale(1);
}


.layer-original {
  background: #000;
}

.layer-enhanced {
  background: #000;
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
}

.comparison-badge {
  position: absolute;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  z-index: 5;
}

.badge-left {
  top: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
}

.badge-right {
  top: 20px;
  right: 20px;
  background: rgba(99, 102, 241, 0.85);
  color: #fff;
}

.comparison-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #fff;
  cursor: ew-resize;
  z-index: 10;
  transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
}

.slider-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  color: #111;
  font-size: 16px;
}

/* Privacy & Trust */
.privacy-banner {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
  margin: 60px 0;
}

.privacy-icon {
  font-size: 42px;
  margin-bottom: 16px;
}

/* Footer */
footer.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 60px 0 40px;
  background: #040508;
  color: var(--text-muted);
  font-size: 14px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 320px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 24px;
}

/* Gallery Showcase */
.gallery-section {
  padding: 100px 0 60px;
  position: relative;
}

.device-switch-deck {
  display: inline-flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  padding: 6px;
  border-radius: 999px;
  margin-top: 24px;
}

.device-switch-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.device-switch-btn:hover {
  color: var(--text-primary);
}

.device-switch-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}

.gallery-scroll-container {
  margin-top: 40px;
  overflow-x: auto;
  padding: 20px 10px 40px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.gallery-scroll-container::-webkit-scrollbar {
  height: 8px;
}
.gallery-scroll-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
}
.gallery-scroll-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.gallery-track {
  display: flex;
  gap: 24px;
  justify-content: flex-start;
  min-width: min-content;
}

.gallery-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--card-bg);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  flex-shrink: 0;
  cursor: pointer;
}

.gallery-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 30px 60px rgba(99, 102, 241, 0.25);
  border-color: rgba(129, 140, 248, 0.4);
}

.gallery-card.card-iphone {
  width: 280px;
  height: 606px;
}

.gallery-card.card-ipad {
  width: 440px;
  height: 587px;
}

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

/* Responsive */
@media (max-width: 900px) {
  .bento-col-8, .bento-col-4, .bento-col-6 {
    grid-column: span 12;
  }
  .nav-links {
    display: none;
  }
  .keyboard-simulator-box {
    padding: 24px;
  }
}
