/* ==========================================================================
   QQToon Legal & Info Landing Page Stylesheet
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  --bg-primary: #0a0813;
  --bg-secondary: #120e25;
  --color-primary: #b5179e;
  --color-primary-glow: rgba(181, 23, 158, 0.4);
  --color-secondary: #4cc9f0;
  --color-secondary-glow: rgba(76, 201, 240, 0.4);
  --color-accent: #7209b7;
  --color-text-main: #f3f4f6;
  --color-text-muted: #9ca3af;
  --color-glass-bg: rgba(25, 20, 50, 0.55);
  --color-glass-border: rgba(255, 255, 255, 0.08);
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- Base Reset & Typography --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* --- Animated Mesh Background --- */
.bg-ambient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.35;
  mix-blend-mode: screen;
}

.blob-1 {
  top: -10%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--color-primary) 0%, transparent 80%);
  animation: float-blob-1 25s infinite alternate ease-in-out;
}

.blob-2 {
  bottom: -15%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--color-accent) 0%, transparent 80%);
  animation: float-blob-2 30s infinite alternate ease-in-out;
}

.blob-3 {
  top: 40%;
  left: 30%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, var(--color-secondary) 0%, transparent 80%);
  animation: float-blob-3 20s infinite alternate ease-in-out;
}

@keyframes float-blob-1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-80px, 80px) scale(1.1); }
}

@keyframes float-blob-2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(100px, -100px) scale(1.2); }
}

@keyframes float-blob-3 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-50px, -50px) scale(0.9); }
}

/* Grid Overlay for Premium Tech Look */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* --- Layout Containers --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header Section --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(10, 8, 19, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-glass-border);
  transition: var(--transition-smooth);
}

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

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 15px var(--color-primary-glow);
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-bounce);
}

.logo-wrapper:hover .logo-img {
  transform: rotate(8deg) scale(1.08);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fff 30%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-link {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-smooth);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--color-text-main);
}

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

/* --- Hero Section --- */
.hero {
  padding-top: 160px;
  padding-bottom: 80px;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 4rem;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.hero-title span.glow-text {
  background: linear-gradient(135deg, #ff007f 0%, #7209b7 50%, #00f0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  position: relative;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 520px;
}

/* Actions Container */
.hero-actions-area {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-grow: 1;
  max-width: 520px;
}

.hero-btn {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 24px;
  border-radius: 16px;
  color: var(--color-text-main);
  text-decoration: none;
  transition: var(--transition-bounce);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.hero-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent);
  opacity: 0;
  transition: var(--transition-smooth);
}

.hero-btn i {
  font-size: 28px;
  transition: var(--transition-bounce);
}

.btn-label {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.btn-subtitle {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-title {
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--font-display);
}

/* Button Variants */
.hero-btn.btn-privacy {
  background: linear-gradient(135deg, rgba(181, 23, 158, 0.08), rgba(114, 9, 183, 0.08));
  border-color: rgba(181, 23, 158, 0.3);
}
.hero-btn.btn-privacy:hover {
  background: linear-gradient(135deg, rgba(181, 23, 158, 0.2), rgba(114, 9, 183, 0.2));
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px var(--color-primary-glow);
}
.hero-btn.btn-privacy:hover i {
  color: var(--color-primary);
  transform: scale(1.1);
}

.hero-btn.btn-terms {
  background: linear-gradient(135deg, rgba(76, 201, 240, 0.08), rgba(18, 14, 37, 0.08));
  border-color: rgba(76, 201, 240, 0.3);
}
.hero-btn.btn-terms:hover {
  background: linear-gradient(135deg, rgba(76, 201, 240, 0.2), rgba(18, 14, 37, 0.2));
  border-color: var(--color-secondary);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px var(--color-secondary-glow);
}
.hero-btn.btn-terms:hover i {
  color: var(--color-secondary);
  transform: scale(1.1);
}

/* --- Hero Visuals (Screenshots Mockup) --- */
.hero-visual {
  position: relative;
  width: 100%;
  height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Phone Mockup Styling */
.phone-mockup-wrapper {
  position: relative;
  perspective: 1200px;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  position: absolute;
  width: 270px;
  height: 565px;
  background: #110e21;
  border-radius: 42px;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(181, 23, 158, 0.15);
  border: 10px solid #1c1833;
  overflow: hidden;
  transition: var(--transition-smooth);
}

/* Notch & Camera Punch hole styling */
.phone-mockup::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 18px;
  background: #1c1833;
  border-radius: 20px;
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
}

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

/* Reflection Overlay */
.phone-screen::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 150%;
  height: 100%;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.02) 30%,
    transparent 50%
  );
  transform: translateX(-30%) skewX(-15deg);
  pointer-events: none;
  z-index: 5;
}

/* Phone Placements & Hover Effects */
.phone-1 {
  transform: translateX(-80px) translateY(-10px) rotate(-6deg) scale(0.95);
  z-index: 2;
  animation: float-phone-1 6s infinite ease-in-out alternate;
}

.phone-2 {
  transform: translateX(80px) translateY(20px) rotate(6deg) scale(0.95);
  z-index: 1;
  animation: float-phone-2 7s infinite ease-in-out alternate;
}

/* Interaction when hovering container */
.phone-mockup-wrapper:hover .phone-1 {
  transform: translateX(-130px) translateY(-30px) rotate(-10deg) scale(1.02);
  z-index: 3;
  box-shadow: 
    0 35px 60px -10px rgba(0, 0, 0, 0.9),
    0 0 50px var(--color-primary-glow);
}

.phone-mockup-wrapper:hover .phone-2 {
  transform: translateX(120px) translateY(40px) rotate(10deg) scale(0.98);
  box-shadow: 
    0 35px 60px -10px rgba(0, 0, 0, 0.9),
    0 0 50px var(--color-secondary-glow);
}

@keyframes float-phone-1 {
  0% { transform: translateX(-80px) translateY(-10px) rotate(-6deg) scale(0.95); }
  100% { transform: translateX(-80px) translateY(-25px) rotate(-5deg) scale(0.95); }
}

@keyframes float-phone-2 {
  0% { transform: translateX(80px) translateY(20px) rotate(6deg) scale(0.95); }
  100% { transform: translateX(80px) translateY(5px) rotate(7deg) scale(0.95); }
}

/* Decor items under phones */
.visual-glow {
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(114, 9, 183, 0.3) 0%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

/* --- Features Section --- */
.features {
  padding: 100px 0;
  position: relative;
  background: linear-gradient(180deg, transparent 0%, rgba(18, 14, 37, 0.4) 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-subtitle {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--color-secondary);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: var(--color-glass-bg);
  border: 1px solid var(--color-glass-border);
  padding: 40px 30px;
  border-radius: 24px;
  transition: var(--transition-smooth);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  opacity: 0;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-secondary);
  margin-bottom: 24px;
  transition: var(--transition-bounce);
}

.feature-card:hover .feature-icon {
  background: var(--color-primary);
  color: #fff;
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 20px var(--color-primary-glow);
}

.feature-icon i {
  font-size: 24px;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Footer Section --- */
footer {
  border-top: 1px solid var(--color-glass-border);
  background: rgba(10, 8, 19, 0.85);
  padding: 60px 0 30px;
  position: relative;
  z-index: 10;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.footer-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff;
}

.footer-slogan {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  max-width: 250px;
}

.footer-links {
  display: flex;
  gap: 40px;
}

.footer-link-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-link-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-secondary);
}

.footer-link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.footer-link:hover {
  color: #fff;
}

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

.copyright {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.footer-legal-links {
  display: flex;
  gap: 20px;
}

.footer-legal-link {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-legal-link:hover {
  color: #fff;
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.2rem;
  }
  .hero-grid {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .header-container {
    height: 70px;
  }
  .nav-links {
    display: none; /* Stays simple, links are visible in footer */
  }
  .hero {
    padding-top: 120px;
    padding-bottom: 60px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions-area {
    justify-content: center;
    width: 100%;
  }
  .hero-buttons {
    max-width: 100%;
    width: 100%;
    flex-direction: row;
  }
  .hero-btn {
    flex: 1;
    justify-content: center;
  }
  .hero-visual {
    height: 520px;
  }
  .phone-mockup {
    width: 230px;
    height: 480px;
    border-radius: 36px;
  }
  .phone-mockup::before {
    width: 60px;
    height: 15px;
  }
  .phone-1 {
    transform: translateX(-60px) translateY(-10px) rotate(-6deg) scale(0.95);
  }
  .phone-2 {
    transform: translateX(60px) translateY(10px) rotate(6deg) scale(0.95);
  }
  .phone-mockup-wrapper:hover .phone-1 {
    transform: translateX(-90px) translateY(-20px) rotate(-8deg) scale(1.01);
  }
  .phone-mockup-wrapper:hover .phone-2 {
    transform: translateX(90px) translateY(20px) rotate(8deg) scale(0.99);
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .footer-content {
    flex-direction: column;
    gap: 30px;
    text-align: center;
    align-items: center;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.4rem;
  }
  .hero-buttons {
    flex-direction: column;
  }
  .hero-btn {
    width: 100%;
  }
  .phone-1 {
    transform: translateX(-40px) translateY(-5px) rotate(-4deg) scale(0.9);
  }
  .phone-2 {
    transform: translateX(40px) translateY(10px) rotate(4deg) scale(0.9);
  }
  .phone-mockup-wrapper:hover .phone-1 {
    transform: translateX(-60px) translateY(-10px) rotate(-6deg) scale(0.95);
  }
  .phone-mockup-wrapper:hover .phone-2 {
    transform: translateX(60px) translateY(15px) rotate(6deg) scale(0.93);
  }
}

/* --- App Preview Section Styles --- */
.app-preview {
  padding: 100px 0;
  position: relative;
  background: linear-gradient(180deg, rgba(18, 14, 37, 0.4) 0%, transparent 100%);
}

.preview-slider {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 20px 10px 40px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary-glow) transparent;
}

/* Custom scrollbar for preview-slider */
.preview-slider::-webkit-scrollbar {
  height: 6px;
}

.preview-slider::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
}

.preview-slider::-webkit-scrollbar-thumb {
  background: rgba(181, 23, 158, 0.3);
  border-radius: 10px;
  transition: var(--transition-smooth);
}

.preview-slider::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

.preview-card {
  flex: 0 0 calc(25% - 18px);
  min-width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: var(--transition-bounce);
}

.preview-phone {
  width: 100%;
  aspect-ratio: 941 / 1672;
  background: #110e21;
  border-radius: 28px;
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(255, 255, 255, 0.02);
  border: 6px solid #1c1833;
  overflow: hidden;
  position: relative;
  transition: var(--transition-smooth);
}

.preview-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition-smooth);
}

.preview-caption {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: var(--transition-smooth);
}

/* Hover effects */
.preview-card:hover {
  transform: translateY(-10px);
}

.preview-card:hover .preview-phone {
  border-color: var(--color-primary);
  box-shadow: 
    0 25px 45px rgba(0, 0, 0, 0.7),
    0 0 30px var(--color-primary-glow);
}

.preview-card:hover .preview-caption {
  color: var(--color-text-main);
  text-shadow: 0 0 10px var(--color-primary-glow);
}

/* Responsive queries for Preview Slider */
@media (max-width: 1024px) {
  .preview-card {
    flex: 0 0 calc(33.333% - 16px);
  }
}

@media (max-width: 768px) {
  .preview-card {
    flex: 0 0 calc(50% - 12px);
  }
  .app-preview {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .preview-card {
    flex: 0 0 80%;
  }
}
