:root {
  /* Colors */
  --bg-color: #F8F9FA;
  --surface-color: rgba(255, 255, 255, 0.7);
  --surface-highlight: #FFFFFF;
  --text-primary: #111827;
  --text-secondary: #4B5563;
  --accent-color: #E05D4E;
  --accent-gradient: linear-gradient(135deg, #FF7B6B 0%, #E05D4E 100%);
  --accent-light: #FFF0ED;
  --border-light: rgba(230, 230, 230, 0.8);
  --glass-border: rgba(255, 255, 255, 0.5);
  
  /* Spacing & Layout */
  --radius-xl: 40px;
  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-sm: 16px;

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 15px 35px rgba(224, 93, 78, 0.25);

  /* Typography */
  --font-serif: "Playfair Display", serif;
  --font-sans: "Outfit", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Base Elements */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

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

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.02); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: var(--shadow-glow); }
  50% { box-shadow: 0 20px 45px rgba(224, 93, 78, 0.4); }
}

/* HEADER */
header {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo:hover .logo-img {
  transform: scale(1.1) rotate(-5deg);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  font-size: 16px;
  color: var(--text-secondary);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
  width: 100%;
}

/* HERO SECTION */
.hero {
  padding: 80px 0 120px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  position: relative;
}

/* Mesh Background for Hero */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  z-index: -1;
}

.mesh-1 {
  background: #FFE2D1;
  width: 500px;
  height: 500px;
  top: -100px;
  right: -100px;
  animation: float 14s infinite ease-in-out alternate;
}

.mesh-2 {
  background: #FAD0C4;
  width: 400px;
  height: 400px;
  bottom: 0px;
  left: -50px;
  animation: float 18s infinite ease-in-out alternate-reverse;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: clamp(48px, 6vw, 84px);
  margin-bottom: 30px;
  letter-spacing: -0.03em;
  opacity: 0;
  animation: scale-in 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes scale-in {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-content h1 span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
  padding-right: 0.1em;
}

.hero-content p {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--text-secondary);
  margin-bottom: 48px;
  max-width: 520px;
  opacity: 0;
  animation: scale-in 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s forwards;
}

.hero-cta-group {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  opacity: 0;
  animation: scale-in 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s forwards;
}

.cta-button {
  background: var(--text-primary);
  color: white;
  padding: 18px 36px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(255,255,255,0.1);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.cta-button:hover {
  transform: translateY(-4px) scale(1.02);
  background: #000;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.cta-button:hover::before {
  transform: translateX(100%);
}

/* Store Badges */
.store-badges {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
}
.store-badge {
  display: inline-block;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-sm);
}
.store-badge svg { display: block; height: 53px; width: auto; }
.store-badge:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.btn-primary { background: var(--text-primary); color: white; }
.btn-secondary { 
  background: white; 
  color: var(--text-primary); 
  border: 1px solid var(--border-light); 
  box-shadow: none;
}
.btn-secondary:hover {
  background: white; 
  color: var(--accent-color);
  box-shadow: var(--shadow-sm); 
  border-color: transparent;
}

/* Hero Rating & Avatars */
.hero-rating {
  display: flex; align-items: center; gap: 16px; margin-bottom: 24px;
  opacity: 0; animation: scale-in 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.avatars { display: flex; }
.avatar { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--bg-color); margin-left: -12px; }
.avatars .avatar:first-child { margin-left: 0; }
.bg-1 { background: #FFB347; } .bg-2 { background: #8FD8D2; } .bg-3 { background: #E05D4E; } .bg-4 { background: #2E86AB; }
.rating-text { display: flex; flex-direction: column; line-height: 1.2; }
.stars { color: #F5A623; letter-spacing: 2px; font-size: 14px; }
.rating-text .text { font-size: 14px; color: var(--text-secondary); font-weight: 500; }

.hero-media {
  position: relative;
  height: 750px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: scale-in 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s forwards;
  perspective: 1000px;
}

/* Premium Phone Mockup */
.phone-frame {
  width: 320px;
  height: 700px;
  background: #1C1C1E;
  border-radius: 44px;
  box-shadow: 
    0 0 0 2px #3A3A3C,
    inset 0 0 0 6px #000,
    var(--shadow-lg),
    0 40px 80px -20px rgba(0,0,0,0.4);
  position: relative;
  z-index: 2;
  transform: rotate(-4deg) translateY(20px) rotateX(5deg) rotateY(-10deg);
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-style: preserve-3d;
}

.phone-frame:hover {
  transform: rotate(0deg) translateY(0) rotateX(0deg) rotateY(0deg);
}

.phone-screen {
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  margin: 6px;
  object-fit: cover;
  background: #000;
  border-radius: 38px;
  display: block;
}

/* Floating Glass Cards */
.float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 3;
  border: 1px solid var(--glass-border);
  font-weight: 600;
  color: var(--text-primary);
  animation: floatCard 8s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.float-card:hover {
  transform: translateY(-5px) scale(1.05) !important; /* override keyframe temporarily */
  background: rgba(255, 255, 255, 0.85);
  cursor: default;
}

.float-img {
  font-size: 28px;
  background: white;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

.fc-top-left { top: 15%; left: -40px; }
.fc-bottom-left { bottom: 20%; left: -60px; animation-delay: -2s; padding: 12px 20px; }
.fc-top-right { top: 25%; right: -50px; animation-delay: -5s; }
.fc-bottom-right { bottom: 15%; right: -30px; animation-delay: -3s; }

.fc-pulse { width: 12px; height: 12px; background: #2ECC71; border-radius: 50%; box-shadow: 0 0 0 4px rgba(46,204,113,0.3); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(46,204,113,0.5); } 100% { box-shadow: 0 0 0 10px rgba(46,204,113,0); } }
.fc-text { font-size: 16px; font-weight: 500; display: inline-flex; flex-direction: column; color: var(--text-secondary); }
.fc-text strong { font-weight: 700; color: var(--text-primary); font-size: 18px; }
.fc-sub { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.fc-icon { font-size: 24px; background: rgba(0,0,0,0.03); border-radius: 12px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }

.fc-audio-wave { display: flex; gap: 4px; align-items: center; height: 24px; }
.fc-audio-wave span { width: 4px; border-radius: 2px; background: var(--accent-color); animation: eq 1s ease-in-out infinite alternate; }
.fc-audio-wave span:nth-child(1) { height: 60%; animation-delay: 0s; } 
.fc-audio-wave span:nth-child(2) { height: 100%; animation-delay: 0.2s; } 
.fc-audio-wave span:nth-child(3) { height: 40%; animation-delay: 0.4s; } 
.fc-audio-wave span:nth-child(4) { height: 80%; animation-delay: 0.1s; } 
.fc-audio-wave span:nth-child(5) { height: 50%; animation-delay: 0.3s; }

.fc-dict { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 20px; }
.fc-dict .ger { color: var(--text-primary); border-bottom: 2px dashed var(--accent-color); padding-bottom: 2px; }
.fc-dict .arrow { color: var(--text-secondary); font-weight: 400; font-size: 16px; margin: 0 4px; }
.fc-dict .eng { color: var(--accent-color); }

/* SWIMLANE (LIBRARY) */
.books-section {
  padding: 100px 0;
  position: relative;
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  margin: 0 24px;
  box-shadow: var(--shadow-sm);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
  padding: 0 40px;
  max-width: 1200px;
  margin: 0 auto 60px;
}

.section-head h2 {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.1;
}

.section-head p {
  color: var(--text-secondary);
  margin-top: 16px;
  font-size: 20px;
}

.swimlane-wrapper {
  width: 100%;
  position: relative;
}

/* Side masks for smooth fading edges */
.swimlane-wrapper::before,
.swimlane-wrapper::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}
.swimlane-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #FFFFFF, transparent);
}
.swimlane-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #FFFFFF, transparent);
}

.swimlane {
  display: flex;
  gap: 48px;
  padding: 20px 100px 60px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.swimlane::-webkit-scrollbar { display: none; }

.book-card {
  width: 280px;
  flex-shrink: 0;
  scroll-snap-align: center;
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: grab;
  position: relative;
}

.book-card:hover {
  transform: translateY(-20px);
}

.book-cover {
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: var(--radius-md);
  background: #f3f4f6;
  margin-bottom: 24px;
  box-shadow: 
    0 8px 16px rgba(0,0,0,0.06),
    inset 2px 0 4px rgba(255,255,255,0.4),
    inset -4px 0 12px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.book-cover::before {
  content: "";
  position: absolute; left: 14px; top: 0; bottom: 0; width: 2px;
  background: rgba(0,0,0,0.12); z-index: 2;
  box-shadow: 1px 0 1px rgba(255,255,255,0.3);
}

.book-card:hover .book-cover {
  box-shadow: 
    0 30px 40px -10px rgba(0,0,0,0.15),
    var(--shadow-glow);
}

.book-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(26, 22, 20, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: white;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 24px;
  font-weight: 600; font-size: 18px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 5;
}

.book-card:hover .book-overlay { opacity: 1; }

.overlay-btn {
  background: var(--accent-gradient);
  color: white; border: none; padding: 10px 24px;
  border-radius: 100px; font-weight: 700; font-size: 16px; font-family: var(--font-sans);
  cursor: pointer; box-shadow: 0 4px 12px rgba(224, 93, 78, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  pointer-events: auto;
}
.overlay-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 16px rgba(224, 93, 78, 0.5);
}

.book-info { padding: 0 12px; text-align: center; }

.book-title {
  font-family: var(--font-serif); font-size: 22px; font-weight: 700;
  margin-bottom: 8px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; white-space: normal;
}
.book-author { font-size: 16px; color: var(--text-secondary); }

/* FEATURES - VISUAL BENTO */
.features { padding: 120px 0; }

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

.bento-card {
  background: var(--surface-color);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  min-height: 440px;
}

.bento-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 255, 255, 0.9);
}

.card-large {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
}

.bento-content {
  padding: 48px;
  flex: 1;
  z-index: 2;
  position: relative;
}

.bento-icon {
  width: 64px; height: 64px;
  background: var(--accent-light); color: var(--accent-color);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; margin-bottom: 24px;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.8);
}

.bento-title { font-family: var(--font-serif); font-size: 36px; font-weight: 800; margin-bottom: 12px; color: var(--text-primary); line-height: 1.1; }
.bento-desc { color: var(--text-secondary); font-size: 19px; font-weight: 500; line-height: 1.6; }

/* VISUALIZATIONS */
.bento-visual {
  flex: 1;
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.1) 100%);
  overflow: hidden;
}

.card-large .bento-visual {
  min-height: 100%;
}

/* 1. Books Visual */
.vis-books { display: flex; gap: -20px; transform: scale(0.9); transition: transform 0.5s; }
.bento-card:hover .vis-books { transform: scale(1) translateY(-10px); }
.vis-book {
  width: 80px; height: 240px; border-radius: 8px; box-shadow: -4px 4px 12px rgba(0,0,0,0.1);
  background: white; border-left: 12px solid #E05D4E; position: relative;
  transform: rotate(15deg) translateY(20px); transition: transform 0.3s;
}
.vis-book:nth-child(2) { border-color: #FFB347; transform: rotate(25deg) translateY(40px) translateX(-40px); z-index: -1; }
.vis-book:nth-child(3) { border-color: #8FD8D2; transform: rotate(35deg) translateY(60px) translateX(-80px); z-index: -2; }
.bento-card:hover .vis-book { transform: rotate(5deg) translateY(0) translateX(0); margin: 0 -10px; }

/* 2. Dictionary Visual */
.vis-dict { padding: 32px; font-family: var(--font-serif); font-size: 24px; color: var(--text-primary); text-align: center; }
.vis-word { position: relative; display: inline-block; font-weight: 700; color: var(--accent-color); cursor: pointer; text-decoration: underline dashed; text-underline-offset: 6px; }
.vis-tooltip {
  position: absolute; bottom: 120%; left: 50%; transform: translateX(-50%) translateY(10px);
  background: #111; color: #fff; padding: 12px 20px; border-radius: 12px;
  font-family: var(--font-sans); font-size: 15px; font-weight: 600; opacity: 0;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); box-shadow: 0 10px 25px rgba(0,0,0,0.2); white-space: nowrap; pointer-events: none;
}
.vis-tooltip::after {
  content: ''; position: absolute; top: 100%; left: 50%; margin-left: -6px;
  border-width: 6px; border-style: solid; border-color: #111 transparent transparent transparent;
}
.bento-card:hover .vis-tooltip { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 3. Audio Visual */
.vis-audio { display: flex; align-items: center; gap: 8px; height: 100px; }
.vis-bar { width: 8px; background: var(--accent-gradient); border-radius: 4px; height: 10px; transition: height 0.2s; }
.bento-card:hover .vis-bar { animation: eq 1s ease-in-out infinite alternate; }
@keyframes eq { 0% { height: 10px; } 100% { height: 80px; } }
.vis-bar:nth-child(1) { animation-delay: 0.1s; } .vis-bar:nth-child(2) { animation-delay: 0.3s; }
.vis-bar:nth-child(3) { animation-delay: 0.0s; } .vis-bar:nth-child(4) { animation-delay: 0.4s; }
.vis-bar:nth-child(5) { animation-delay: 0.2s; }

/* 4. Grammar Visual */
.vis-grammar { display: flex; flex-direction: column; gap: 16px; padding: 32px; font-size: 20px; font-weight: 600; text-align: center; }
.vis-sent { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.vis-tag { padding: 4px 12px; border-radius: 6px; background: rgba(0,0,0,0.05); position: relative; }
.vis-tag span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-secondary); opacity: 0; transform: translateY(5px); transition: all 0.3s; }
.vis-tag.noun { color: #2E86AB; background: rgba(46, 134, 171, 0.1); }
.vis-tag.verb { color: #E05D4E; background: rgba(224, 93, 78, 0.1); }
.vis-tag.adj { color: #F18F01; background: rgba(241, 143, 1, 0.1); }
.bento-card:hover .vis-tag span { opacity: 1; transform: translateY(0); }

/* 5. Flashcard Visual */
.vis-flash { position: relative; width: 140px; height: 180px; perspective: 1000px; transform-style: preserve-3d; }
.vis-fcard {
  position: absolute; width: 100%; height: 100%; background: white; border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1); border: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; transition: all 0.5s;
}
.vis-fcard:nth-child(1) { transform: translateZ(-20px) translateY(10px) scale(0.9); opacity: 0.6; }
.vis-fcard:nth-child(2) { transform: translateZ(-10px) translateY(5px) scale(0.95); opacity: 0.8; }
.vis-fcard:nth-child(3) { transform: translateZ(0); color: var(--accent-color); }
.bento-card:hover .vis-fcard:nth-child(3) { transform: rotateY(180deg) translateZ(0); }

/* 6. Progress Visual */
.vis-prog { display: flex; gap: 24px; align-items: flex-end; height: 140px; }
.vis-col { width: 32px; background: rgba(224, 93, 78, 0.2); border-radius: 8px 8px 0 0; position: relative; height: 10%; transition: height 1s; }
.vis-col-fill { position: absolute; bottom: 0; left: 0; width: 100%; background: var(--accent-gradient); border-radius: inherit; height: 0; transition: height 1.2s ease-out; }
.bento-card:hover .vis-col:nth-child(1) .vis-col-fill { height: 40%; }
.bento-card:hover .vis-col:nth-child(2) .vis-col-fill { height: 70%; }
.bento-card:hover .vis-col:nth-child(3) .vis-col-fill { height: 100%; }

/* SKELETON LOADER */
.skeleton-card { width: 280px; flex-shrink: 0; scroll-snap-align: center; }
.skeleton-cover {
  width: 100%; aspect-ratio: 2/3; border-radius: var(--radius-md);
  background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite; margin-bottom: 24px;
}
.skeleton-text {
  height: 24px; border-radius: 6px;
  background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite; margin-bottom: 12px;
}
.skeleton-title { width: 85%; margin: 0 auto 12px; }
.skeleton-author { width: 50%; margin: 0 auto; height: 18px; }

@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* FOOTER */
.contact-banner {
  text-align: center; padding: 100px 24px;
  background: var(--surface-highlight);
  border-radius: var(--radius-xl);
  margin: 0 24px;
  box-shadow: var(--shadow-sm);
}

.contact-banner p { color: var(--text-secondary); font-size: 20px; margin-bottom: 24px; }
.contact-btn {
  display: inline-block; padding: 18px 36px;
  background: white; border-radius: 100px;
  box-shadow: var(--shadow-md); font-weight: 600; font-size: 18px;
  border: 1px solid var(--border-light);
  transition: transform 0.3s, box-shadow 0.3s;
}
.contact-btn:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent;
}

footer { padding: 60px 0; text-align: center; color: var(--text-secondary); margin-top: 40px; }
.footer-links { margin-top: 24px; display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; }
.footer-links a { font-weight: 500; font-size: 15px; }
.footer-links a:hover { color: var(--accent-color); }

/* Modal Dialog */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.modal-overlay.is-open { opacity: 1; visibility: visible; }
.modal-content {
  background: white; border-radius: var(--radius-lg); padding: 40px;
  max-width: 500px; width: 90%; text-align: center; position: relative;
  transform: translateY(30px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}
.modal-overlay.is-open .modal-content { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 20px; right: 20px; background: none; border: none;
  font-size: 32px; line-height: 1; color: var(--text-secondary); cursor: pointer;
  transition: color 0.2s; padding: 4px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
}
.modal-close:hover { color: var(--text-primary); }
.modal-title { font-size: 32px; font-family: var(--font-serif); margin-bottom: 12px; }
.modal-desc { color: var(--text-secondary); font-size: 18px; margin-bottom: 32px; }
.modal-badges { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.modal-badges .store-badge { width: 140px; }
.modal-badges .store-badge svg { width: 100%; height: auto; }

/* Responsive adjustments */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; gap: 40px; padding: 40px 0 80px; }
  .hero-content { display: flex; flex-direction: column; align-items: center; }
  .hero-content p { margin: 0 auto 30px; }
  .store-badges { justify-content: center; }
  .float-card { display: none; /* Hide glass cards on mobile to reduce clutter */ }
  .phone-frame { width: 260px; height: 560px; transform: none; }
  .phone-frame:hover { transform: none; }
  .mesh-blob { width: 300px; height: 300px; filter: blur(60px); }
  
  .books-section { margin: 0; border-radius: 0; padding: 60px 0; }
  .swimlane { padding: 20px 24px; gap: 24px; }
  .book-card { width: 220px; }
  .swimlane-wrapper::before, .swimlane-wrapper::after { display: none; }

  .bento-grid { display: flex; flex-direction: column; }
  .bento-card { min-height: 280px; }
  .card-large .bento-content { max-width: 100%; }
}

/* Accessibility - Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
