/* ==========================================================================
   Bubble Screen Translate — Official Website Stylesheet
   Design: 1440px wide, light blue-gray theme (#f4f9fc)
   ========================================================================== */

/* ---------- 0. CSS Custom Properties ---------- */
:root {
  --color-page-bg: #f4f9fc;
  --color-card-bg: #ffffff;
  --color-feature-img-bg: #fafafb;
  --color-title: #515561;
  --color-body: #72777f;
  --color-on-surface: #1a1c1e;
  --color-primary: #00639a;
  --color-footer-bg: #e9f5fd;
  --color-surface-light: #f9f9fc;
  --font-display: 'Product Sans', 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Product Sans', 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-inter: 'Inter', -apple-system, sans-serif;
  --font-roboto: 'Roboto', -apple-system, sans-serif;
  --shadow-card: 47px 47px 19px 0px rgba(103,166,208,0), 30px 30px 17px 0px rgba(103,166,208,0.01), 17px 17px 14px 0px rgba(103,166,208,0.03), 8px 8px 11px 0px rgba(103,166,208,0.04), 2px 2px 6px 0px rgba(103,166,208,0.05);
  --shadow-phone: 68px 189px 56px 0px rgba(79,129,161,0), 44px 121px 51px 0px rgba(79,129,161,0.01), 25px 68px 43px 0px rgba(79,129,161,0.05), 11px 30px 32px 0px rgba(79,129,161,0.09), 3px 8px 18px 0px rgba(79,129,161,0.1);
}

/* ---------- 1. Reset & Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background-color: var(--color-page-bg);
  color: var(--color-body);
  line-height: 1.5;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style-position: inside; }

/* ---------- 2. Page Wrapper ---------- */
.page-wrapper {
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

/* ---------- 3. Background Decorative Shapes (relative to sections) ---------- */
.bg-shape-topright {
  position: absolute;
  top: -60px;
  right: -160px;
  width: 568px; height: 620px;
  pointer-events: none;
  z-index: -1;
}
.bg-shape-large {
  position: absolute;
  top: -450px;
  left: 50%;
  transform: translateX(-50%) rotate(116.23deg);
  width: 932px; height: 1740px;
  opacity: 0.6;
  pointer-events: none;
  z-index: -1;
}
.bg-wave-bottom {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%; height: 698px;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  z-index: -1;
}

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

/* ---------- 5. Hero Section ---------- */
.hero-section {
  position: relative;
  z-index: 1;
  padding: 120px 144px 0;
  min-height: 700px;
}
.hero-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}
.hero-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-shrink: 0;
  width: 380px;
  padding-top: 0;
}
.app-icon-wrapper {
  width: 114px; height: 90px;
  margin-bottom: 30px;
}
.app-icon { width: 100%; height: 100%; object-fit: contain; }
.hero-title {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--color-title);
  line-height: normal;
  white-space: nowrap;
  margin-bottom: 16px;
}
.hero-subtitle {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  color: var(--color-body);
  line-height: 30px;
  width: 440px;
  text-align: center;
  margin-bottom: 32px;
}
.hero-download-label {
  font-family: 'Tillana', cursive, sans-serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--color-title);
  margin-bottom: 12px;
}
.bounce-arrow {
  margin-bottom: 22px;
  animation: bounceArrow 2s ease-in-out infinite;
}
@keyframes bounceArrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}
.arrow-down-icon {
  width: 30px; height: 8px;
  transform: rotate(-90deg);
}
.google-play-link { display: inline-block; margin-bottom: 24px; transition: transform 0.3s ease; }
.google-play-link:hover { transform: scale(1.05); }
.google-play-badge { width: 160px; height: 48px; object-fit: contain; }
.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-title);
  display: block;
}
.stat-number-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.stat-star-icon { width: 20px; height: 20px; }
.stat-label {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-body);
  margin-top: 4px;
  display: block;
}
.stat-divider { width: 1px; height: 36px; }
.stat-divider img { width: 1px; height: 100%; }

/* Hero Right - Phone + Sidebar */
.hero-right {
  position: relative;
  flex-shrink: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 24px;
  margin-top: 0;
}
.hero-phone {
  width: 234px; height: 513px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-phone);
  flex-shrink: 0;
}
.hero-phone-img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 18px;
}

/* Floating Sidebar */
.hero-sidebar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  position: relative;
  width: 238px;
  flex-shrink: 0;
  margin-top: 109px;
}
.sidebar-screen {
  width: 120px; height: 309px;
  position: absolute;
  left: 24px; top: 0;
}
.sidebar-screen-img { width: 100%; height: 100%; }
.sidebar-float-btn {
  position: absolute;
  left: 0; top: 125px;
  width: 48px; height: 48px;
  background: white;
  border-radius: 30px;
  box-shadow: 0 0 6px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.sidebar-float-icon { width: 24px; height: 24px; }
.sidebar-panel {
  position: absolute;
  left: 126px; top: 0;
  width: 112px; height: 309px;
  background: white;
  border-radius: 18px;
  box-shadow: var(--shadow-phone);
  display: flex;
  flex-direction: column;
  padding: 9px;
  gap: 0;
}
.sidebar-menu-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--color-surface-light);
  border-radius: 30px;
  height: 36px;
  padding: 0 10px;
  margin-bottom: 4px;
}
.sidebar-menu-icon { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar-menu-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-roboto);
  font-size: 10px;
  color: var(--color-on-surface);
  opacity: 0.8;
  line-height: normal;
}
.sidebar-separator {
  margin: 4px 0;
  display: flex;
  justify-content: center;
}
.sidebar-separator img { width: 94px; height: 1px; }
.sidebar-lang-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: var(--color-surface-light);
  border-radius: 30px;
  height: 36px;
  padding: 0 10px;
  margin-bottom: 4px;
}
.sidebar-lang {
  font-family: var(--font-roboto);
  font-size: 12px;
  color: var(--color-on-surface);
}
.sidebar-swap-icon { width: 18px; height: 18px; }
.sidebar-home-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-light);
  border-radius: 30px;
  width: 36px; height: 36px;
  align-self: center;
}
.sidebar-home-icon { width: 18px; height: 18px; }
.sidebar-touch {
  position: absolute;
  left: 3px; top: 161px;
  width: 42px; height: 42px;
  overflow: hidden;
  z-index: 5;
}
.sidebar-touch-icon { width: 100%; height: 100%; }

/* ---------- 6. Section Title ---------- */
.section-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--color-title);
  text-align: center;
  line-height: normal;
  margin-bottom: 50px;
}

/* ---------- 7. Key Features Section ---------- */
.features-section {
  position: relative;
  z-index: 1;
  padding: 50px 144px 100px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 368px);
  gap: 24px;
  justify-content: center;
}
.feature-card {
  width: 368px;
  height: 515px;
  background: var(--color-card-bg);
  border-radius: 42px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
}
.feature-card-image {
  width: 320px; height: 252px;
  background: var(--color-feature-img-bg);
  border-radius: 18px;
  margin: 24px auto 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.feature-card-content {
  padding: 20px 24px 24px;
  flex: 1;
}
.feature-card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-title);
  margin-bottom: 12px;
  line-height: normal;
}
.feature-card-desc {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  color: var(--color-body);
  line-height: 30px;
}
.feature-card-list {
  font-family: var(--font-body);
  font-size: 20px;
  color: var(--color-body);
  line-height: 30px;
  list-style: disc;
  padding-left: 30px;
}
.feature-card-list li {
  margin-bottom: 0;
}

/* ---------- 8. Translation Magic Section ---------- */
.magic-section {
  position: relative;
  z-index: 1;
  padding: 50px 144px 100px;
  text-align: center;
}
.magic-description {
  font-family: var(--font-body);
  font-size: 20px;
  color: var(--color-body);
  line-height: 30px;
  max-width: 640px;
  margin: 0 auto 60px;
  text-align: center;
}

/* Slider Container */
.slider-container {
  position: relative;
  width: 300px; height: 617px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
}
.slider-before, .slider-after {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.slider-before img, .slider-after img {
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.slider-after {
  clip-path: inset(0 0 0 50%);
}
.slider-divider {
  position: absolute;
  top: 0; left: 50%;
  width: 6px; height: 100%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: ew-resize;
}
.slider-line {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 100%;
  background: #24B5FF;
  box-shadow: 0 0 6px rgba(0,0,0,0.15);
  pointer-events: none;
}
.slider-handle {
  position: relative;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #24B5FF;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 11;
  cursor: grab;
  animation: pulseHandle 2s ease-in-out infinite;
}
.slider-handle.no-pulse {
  animation: none;
}
@keyframes pulseHandle {
  0%, 100% { transform: scale(1); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
  50% { transform: scale(1.15); box-shadow: 0 4px 16px rgba(36,181,255,0.4); }
}
.slider-handle-icon {
  width: 24px; height: 24px;
  transform: rotate(-90deg);
  pointer-events: none;
}

/* ---------- 9. Reviews Section ---------- */
.reviews-section {
  position: relative;
  z-index: 1;
  padding: 60px 144px 100px;
}
.reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
}
.reviews-header-left {}
.reviews-label {
  font-family: var(--font-body);
  font-size: 20px;
  color: var(--color-body);
  line-height: 30px;
  text-align: left;
  margin-bottom: 8px;
}
.reviews-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--color-title);
  line-height: normal;
}
.reviews-header-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.reviews-rating-number {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--color-title);
  line-height: normal;
}
.reviews-stars-row {
  display: flex;
  gap: 0;
  margin: 6px 0;
}
.review-star-large { width: 20px; height: 20px; }
.reviews-count {
  font-family: var(--font-body);
  font-size: 20px;
  color: var(--color-body);
  line-height: normal;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 368px);
  gap: 24px;
  justify-content: center;
}
.review-card {
  width: 368px;
  height: 238px;
  background: var(--color-card-bg);
  border-radius: 42px;
  box-shadow: var(--shadow-card);
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease;
}
.review-card:hover { transform: translateY(-4px); }
.review-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
}
.review-star { width: 15px; height: 15px; }
.review-text {
  font-family: var(--font-inter);
  font-size: 16px;
  font-style: italic;
  color: var(--color-body);
  line-height: 25.6px;
  flex: 1;
}
.review-author {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-title);
  margin-top: 8px;
}

/* ---------- 10. CTA Section ---------- */
.cta-section {
  position: relative;
  z-index: 1;
  padding: 200px 0 120px;
  text-align: center;
}
.cta-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--color-title);
  margin-bottom: 12px;
}
.cta-subtitle {
  font-family: var(--font-body);
  font-size: 20px;
  color: var(--color-body);
  line-height: 30px;
  margin-bottom: 40px;
}
.cta-play-link { display: inline-block; transition: transform 0.3s ease; }
.cta-play-link:hover { transform: scale(1.05); }
.cta-play-badge { width: 300px; height: 89px; object-fit: contain; }

/* ---------- 11. Footer ---------- */
.footer {
  background: var(--color-footer-bg);
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 139px;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 4px;
}
.footer-copyright-icon { width: 20px; height: 20px; }
.footer-copyright-text {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-body);
  line-height: 30px;
}
.footer-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-link {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-title);
  line-height: 30px;
  transition: color 0.3s ease;
}
.footer-link:hover { color: var(--color-primary); }
.footer-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--color-body);
  display: inline-block;
}

/* ---------- 12. Responsive ---------- */
@media (max-width: 1440px) {
  .hero-section { padding: 80px 48px 0; }
  .features-section, .magic-section, .reviews-section { padding-left: 48px; padding-right: 48px; }
  .features-grid, .reviews-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-card, .review-card { width: 100%; }
  .feature-card-image { width: calc(100% - 48px); }
  .footer { padding: 0 48px; }
  .bg-shape-topright { right: -60px; width: 420px; height: 458px; }
  .bg-shape-large { top: -330px; width: 700px; height: 1308px; }
  .bg-wave-bottom { height: 550px; }
}
@media (max-width: 1100px) {
  .hero-sidebar { display: none; }
  .hero-content { justify-content: center; }
  .hero-right { position: absolute; right: 48px; top: 0; opacity: 0.3; }
}
@media (max-width: 900px) {
  .hero-content { flex-direction: column; align-items: center; }
  .hero-right { position: static; opacity: 1; }
  .hero-left { width: 100%; }
  .hero-subtitle { width: 100%; max-width: 440px; }
  .features-grid, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card { height: auto; }
  .review-card { height: auto; }
  .reviews-header { flex-direction: column; gap: 16px; }
  .reviews-header-right { align-items: flex-start; }
  .bg-shape-topright { top: -50px; right: -40px; width: 300px; height: 328px; }
  .bg-shape-large { top: -230px; width: 500px; height: 934px; }
  .bg-wave-bottom { height: 400px; }
}
@media (max-width: 600px) {
  .hero-section { padding: 40px 24px 0; }
  .features-section, .magic-section, .reviews-section { padding-left: 24px; padding-right: 24px; }
  .hero-title { font-size: 32px; }
  .hero-subtitle { font-size: 16px; }
  .features-grid, .reviews-grid { grid-template-columns: 1fr; }
  .slider-container { width: 260px; height: 535px; }
  .footer { height: auto; padding: 12px 24px; flex-direction: column; gap: 8px; text-align: center; }
  .section-title, .reviews-title, .cta-title { font-size: 28px; }
  .bg-shape-topright { display: none; }
  .bg-shape-large { display: none; }
  .bg-wave-bottom { display: none; }
}
