/* miroro style.css - Premium Landing Page Design */

/* CSS Reset & Variables */
:root {
  --bg-color: #080810;
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --accent-color: #818cf8;
  --accent-glow: rgba(129, 140, 248, 0.15);
  --glass-bg: rgba(255, 255, 255, 0.02);
  --glass-border: rgba(255, 255, 255, 0.05);
  --glass-hover-bg: rgba(255, 255, 255, 0.04);
  --glass-hover-border: rgba(129, 140, 248, 0.3);
}

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

html {
  background-color: #1c183a;
}

body {
  background: linear-gradient(180deg, #5b52a3 0%, #403b7a 35%, #26214f 70%, #1c183a 100%) no-repeat;
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Ambient Glow Backgrounds */
.glow-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.15;
  mix-blend-mode: screen;
  animation: floatOrb 25s infinite alternate ease-in-out;
}

.orb-1 {
  top: -10%;
  right: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #4f46e5 0%, rgba(79, 70, 229, 0) 70%);
  animation-duration: 20s;
}

.orb-2 {
  bottom: 10%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #06b6d4 0%, rgba(6, 182, 212, 0) 70%);
  animation-duration: 28s;
  animation-delay: -5s;
}

.orb-3 {
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #a855f7 0%, rgba(168, 85, 247, 0) 70%);
  opacity: 0.1;
  animation-duration: 24s;
  animation-delay: -10s;
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(4%, 6%) scale(1.1);
  }

  100% {
    transform: translate(-3%, -5%) scale(0.9);
  }
}

/* Main Container Layout */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.header {
  padding: 40px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 100px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-link svg {
  transition: transform 0.3s ease;
}

.back-link:hover {
  color: var(--text-primary);
  background: var(--glass-hover-bg);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.back-link:hover svg {
  transform: translateX(-4px);
}

/* Main Content Wrapper */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 120px;
  padding-bottom: 80px;
}

/* Hero Section */
.hero {
  padding-top: 40px;
  width: 100%;
}

.hero-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-text {
  flex: 1.2;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-text .logo-wrapper {
  margin-left: 0;
  margin-bottom: 24px;
}

.hero-text .app-title {
  text-align: left;
}

.hero-text .app-subtitle {
  text-align: left;
}

.hero-text .app-tagline {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.hero-mockup {
  flex: 0.9;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 400px;
  width: 100%;
}

.mockup-header {
  text-align: center;
  margin-bottom: 20px;
}

.mockup-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.mockup-subtitle {
  font-size: clamp(14px, 2vw, 16px);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

/* Mood Speech Bubble */
.mood-bubble {
  background-color: #3b367d;
  border-radius: 36px;
  width: 100%;
  padding: 36px 28px 28px 28px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.bubble-title {
  color: #ffd700;
  /* Golden yellow from image */
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -0.2px;
}

/* Emoji Grid inside Bubble */
.emoji-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 20px;
  width: 100%;
}

/* Emoji Buttons styling */
.emoji-item {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  outline: none;
}

.emoji-item:hover {
  transform: scale(1.1);
}

.emoji-svg {
  width: 100%;
  height: 100%;
}

/* Emoji Outline state */
.emoji-item .face-bg {
  fill: transparent;
  stroke: #ffffff;
  stroke-width: 5;
  transition: all 0.25s ease;
}

.emoji-item .face-feature {
  fill: #ffffff;
  stroke: none;
  transition: all 0.25s ease;
}

.emoji-item .stroke-feature {
  fill: none;
  stroke: #ffffff;
  stroke-width: 5;
}

/* Emoji Selected state (Solid Yellow) */
.emoji-item.active .face-bg {
  fill: #facc15;
  stroke: none;
}

.emoji-item.active .face-feature {
  fill: #1e1b4b;
  /* Deep night purple eyes/mouth */
  stroke: none;
}

.emoji-item.active .stroke-feature {
  fill: none;
  stroke: #1e1b4b;
  stroke-width: 5;
}

/* Speech Bubble Tail and Indicators */
.bubble-tail-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding-left: 45px;
  margin-top: -2px;
  z-index: 2;
}

.bubble-tail {
  width: 28px;
  height: 28px;
  background-color: #3b367d;
  box-shadow: -6px 6px 12px rgba(0, 0, 0, 0.2);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 60%);
}

.bubble-dot {
  background-color: #3b367d;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.dot-1 {
  width: 18px;
  height: 18px;
  margin-top: 6px;
  margin-left: -10px;
}

.dot-2 {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  margin-left: -16px;
}

/* Tablet & Mobile responsive adaptation for split hero */
@media (max-width: 900px) {
  .hero-layout {
    flex-direction: column;
    text-align: center;
    gap: 50px;
  }

  .hero-text {
    align-items: center;
    text-align: center;
  }

  .hero-text .logo-wrapper {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-text .app-title,
  .hero-text .app-subtitle,
  .hero-text .app-tagline {
    text-align: center;
  }
}

.logo-wrapper {
  position: relative;
  margin-bottom: 24px;
}

.app-logo {
  width: 120px;
  height: 120px;
  border-radius: 26px;
  position: relative;
  z-index: 2;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-glow {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  background: #2563eb;
  filter: blur(24px);
  opacity: 0.5;
  border-radius: 26px;
  z-index: 1;
  transition: opacity 0.5s ease;
}

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

.logo-wrapper:hover .logo-glow {
  opacity: 0.8;
}

.app-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(48px, 8vw, 84px);
  font-weight: 700;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #ffffff 40%, #c7d2fe 75%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}

.app-subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(18px, 3.5vw, 28px);
  font-weight: 600;
  color: var(--accent-color);
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 24px;
  padding-left: 5px;
  /* Offset letter-spacing on center */
}

.app-tagline {
  font-size: clamp(15px, 2.2vw, 19px);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 40px auto;
  font-weight: 400;
}

.download-button {
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.download-button img {
  width: 154px;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.download-button:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.25);
}

.download-button:active {
  transform: translateY(1px) scale(0.98);
}

/* Features Grid */
.features-section {
  width: 100%;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 600;
  text-align: center;
  margin-bottom: 50px;
  color: #fff;
  letter-spacing: -0.5px;
}

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

.feature-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 36px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.card-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(129, 140, 248, 0.08);
  border: 1px solid rgba(129, 140, 248, 0.15);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all 0.4s ease;
}

.card-icon-wrapper svg {
  width: 26px;
  height: 26px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #fff;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Feature Card Hover Effects */
.feature-card:hover {
  transform: translateY(-8px);
  background: var(--glass-hover-bg);
  border-color: var(--glass-hover-border);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3),
    0 0 25px rgba(129, 140, 248, 0.08);
}

.feature-card:hover .card-icon-wrapper {
  background: var(--accent-color);
  color: #fff;
  transform: scale(1.05) rotate(-3deg);
  box-shadow: 0 0 15px rgba(129, 140, 248, 0.4);
}

/* Footer Section */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 60px 0 40px 0;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--accent-color);
}

.footer-divider {
  color: var(--text-muted);
  font-size: 12px;
}

.footer-info {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.copyright {
  font-size: 12px;
  color: var(--text-muted);
}

.ICP-link {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.ICP-link:hover {
  color: var(--text-secondary);
}

/* Responsive Adaptation */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .main-content {
    gap: 90px;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 30px 0;
  }

  .main-content {
    gap: 70px;
    padding-bottom: 60px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-card {
    padding: 30px;
    border-radius: 20px;
  }

  .footer {
    padding: 40px 0 30px 0;
    gap: 20px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .footer-divider {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .app-logo {
    width: 100px;
    height: 100px;
    border-radius: 22px;
  }

  .download-button img {
    width: 140px;
  }

  .footer-info {
    gap: 12px;
  }
}

/* --- Language Switcher & Bilingual Support --- */
html[lang="en"] .lang-zh {
  display: none !important;
}

html[lang="zh"] .lang-en {
  display: none !important;
}

.lang-toggle-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  backdrop-filter: blur(8px);
  outline: none;
}

.lang-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.lang-toggle-btn:active {
  transform: scale(0.98);
}

/* Explore Features Section */
.explore {
  text-align: center;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  z-index: 2;
  position: relative;
}

.explore h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 600;
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.explore ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.explore li {
  display: inline-block;
}

.explore a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 100px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.explore a:hover {
  color: var(--text-primary);
  background: var(--glass-hover-bg);
  border-color: var(--glass-hover-border);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(129, 140, 248, 0.15);
}

/* Feature Groups and Subtitles */
.feature-group {
  margin-bottom: 80px;
  width: 100%;
}

.feature-group:last-child {
  margin-bottom: 0;
}

.section-subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(20px, 3.2vw, 26px);
  font-weight: 600;
  text-align: center;
  margin-bottom: 32px;
  color: #fff;
  letter-spacing: -0.5px;
}

.features-grid.grid-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 800px;
  margin: 0 auto;
}

.features-grid.grid-1 {
  grid-template-columns: 1fr;
  max-width: 420px;
  margin: 0 auto;
}

@media (max-width: 768px) {

  .features-grid.grid-2,
  .features-grid.grid-1 {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .feature-group {
    margin-bottom: 50px;
  }
}

/* SEO Text Section */
.seo-text {
  max-width: 800px;
  margin: 0 auto -40px auto;
  text-align: center;
  padding: 0 24px;
  z-index: 2;
  position: relative;
}

.seo-text p {
  font-size: clamp(15px, 2.2vw, 17px);
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.seo-text p:last-child {
  margin-bottom: 0;
}

/* FAQ Section */
.faq-section {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  z-index: 2;
  position: relative;
  padding: 0 24px;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;

  max-width: 760px;
  margin: 40px auto 0;
}

.faq-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 36px;
  transition: all 0.3s ease;
  text-align: left;
}

.faq-item:hover {
  background: var(--glass-hover-bg);
  border-color: var(--glass-hover-border);
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.faq-item h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 14px;
  color: #fff;
  line-height: 1.4;
}

.faq-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* CTA Section */
.cta-section {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  z-index: 2;
  position: relative;
  padding: 0 24px;
}

.cta-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 32px;
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.cta-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.cta-subtitle {
  font-size: clamp(14px, 2vw, 16px);
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.cta-button img {
  width: 170px;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.15) 0%, rgba(129, 140, 248, 0) 70%);
  z-index: 1;
  pointer-events: none;
}