/* ============================================
   Tigo H5 - Main Stylesheet
   ============================================ */

/* ===== CSS Variables ===== */
:root {
  /* Colors */
  --bg-primary: #0a0a1a;
  --bg-secondary: #121228;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
  
  --accent-pink: #ff4d8d;
  --accent-purple: #a855f7;
  --accent-cyan: #22d3ee;
  --accent-amber: #f59e0b;
  
  --gradient-primary: linear-gradient(135deg, #ff4d8d 0%, #a855f7 100%);
  --gradient-secondary: linear-gradient(135deg, #22d3ee 0%, #a855f7 100%);
  --gradient-warm: linear-gradient(135deg, #a855f7 0%, #f59e0b 100%);
  --gradient-text: linear-gradient(135deg, #ff4d8d 0%, #a855f7 50%, #22d3ee 100%);
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-strong: rgba(255, 255, 255, 0.15);
  
  /* Spacing */
  --section-padding: 80px 24px;
  --container-max: 1200px;
  
  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow-pink: 0 0 40px rgba(255, 77, 141, 0.3);
  --shadow-glow-purple: 0 0 40px rgba(168, 85, 247, 0.3);
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

img, svg {
  display: block;
  max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
}

/* ===== Container ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: var(--transition-normal);
  padding: 16px 0;
}

.navbar.scrolled {
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  display: block;
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* Language Selector */
.lang-selector {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition-fast);
}

.lang-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-strong);
}

.lang-icon {
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
}

.lang-label {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.lang-arrow {
  width: 12px;
  height: 12px;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.lang-selector.open .lang-arrow {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition-fast);
  overflow: hidden;
  z-index: 200;
}

.lang-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  text-align: left;
  font-size: 14px;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  border: none;
  background: none;
  cursor: pointer;
}

.lang-option:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.lang-flag {
  font-size: 18px;
}

.lang-code {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
}

.hero-glow-1 {
  width: 500px;
  height: 500px;
  background: var(--accent-pink);
  top: -150px;
  left: -100px;
  animation: floatGlow 8s ease-in-out infinite;
}

.hero-glow-2 {
  width: 400px;
  height: 400px;
  background: var(--accent-purple);
  bottom: -100px;
  right: -80px;
  animation: floatGlow 10s ease-in-out infinite reverse;
}

@keyframes floatGlow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  background: white;
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 6s ease-in-out infinite;
  animation-delay: var(--delay);
}

@keyframes particleFloat {
  0%, 100% {
    opacity: 0;
    transform: translateY(20px);
  }
  50% {
    opacity: 0.4;
    transform: translateY(-20px);
  }
}

.hero-container {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  margin-bottom: 32px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeInUp 0.8s ease-out both;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.badge-sep {
  color: var(--text-muted);
  opacity: 0.5;
}

.hero-title {
  font-size: clamp(40px, 10vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.title-line {
  display: block;
}

.title-line:first-child {
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.title-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: fadeInUp 0.8s ease-out 0.2s both, gradientShift 4s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle {
  font-size: clamp(16px, 3vw, 20px);
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gradient-primary);
  color: white;
  font-weight: 700;
  border-radius: var(--radius-full);
  padding: 16px 36px;
  font-size: 16px;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-glow-pink);
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 60px rgba(255, 77, 141, 0.5), 0 8px 24px rgba(0, 0, 0, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-large {
  padding: 18px 44px;
  font-size: 17px;
}

.btn-xlarge {
  padding: 20px 56px;
  font-size: 18px;
}

.btn-arrow {
  width: 20px;
  height: 20px;
  transition: var(--transition-fast);
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

/* Photo Preview Stack */
.photo-preview-stack {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 220px;
  margin: 0 auto 32px;
  animation: fadeInUp 0.8s ease-out 0.35s both;
}

.photo-card {
  position: absolute;
  width: 140px;
  height: 190px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 3px solid var(--accent-purple);
  box-shadow: 0 10px 40px rgba(168, 85, 247, 0.3);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              left 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              top 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              z-index 0s linear 0.3s,
              filter 0.6s ease;
  background: var(--bg-card);
}

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

.photo-card-front {
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 160px;
  height: 220px;
  z-index: 3;
  border-color: var(--accent-pink);
  box-shadow: 0 15px 50px rgba(255, 77, 141, 0.4),
              0 0 60px rgba(168, 85, 247, 0.2);
}

.photo-card-back {
  top: 15px;
  opacity: 0.7;
  filter: brightness(0.7);
  z-index: 1;
}

.photo-card-left {
  left: calc(50% - 140px);
  transform: translateX(-50%) rotate(-8deg);
}

.photo-card-right {
  left: calc(50% + 140px);
  transform: translateX(-50%) rotate(8deg);
}

/* Online badge */
.photo-online-badge {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: white;
  z-index: 2;
}

.online-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: statusPulse 2s ease-in-out infinite;
}

/* Swap animation states */
.photo-card.swapping-out-left {
  opacity: 0;
  transform: translateX(-150%) rotate(-15deg);
}

.photo-card.swapping-out-right {
  opacity: 0;
  transform: translateX(50%) rotate(15deg);
}

.photo-card.swapping-in {
  opacity: 0;
  transform: translateX(-50%) scale(0.8);
}

.hero-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

.tag {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.tag-dot {
  color: var(--accent-pink);
  font-size: 8px;
}

/* Hero Visual */
.hero-visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.visual-card {
  position: absolute;
  width: 120px;
  height: 160px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: floatCard 6s ease-in-out infinite;
}

.visual-card-1 {
  top: 20%;
  left: 8%;
  animation-delay: 0s;
}

.visual-card-2 {
  top: 55%;
  right: 10%;
  animation-delay: 1.5s;
}

.visual-card-3 {
  bottom: 15%;
  left: 15%;
  animation-delay: 3s;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-20px) rotate(3deg); }
}

.card-avatar {
  position: relative;
  width: 70px;
  height: 70px;
}

.avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--gradient-primary);
  padding: 2px;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a2a4a 0%, #1a1a3a 100%);
}

.card-status {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid var(--bg-secondary);
}

.card-status.online {
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: fadeInUp 1s ease-out 1s both;
}

.scroll-mouse {
  width: 24px;
  height: 40px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
}

.scroll-wheel {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--text-muted);
  border-radius: 2px;
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(16px); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Sections Base ===== */
.section {
  padding: var(--section-padding);
  position: relative;
}

.section-header {
  margin-bottom: 56px;
}

.section-header.center {
  text-align: center;
}

.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 800;
  letter-spacing: -1px;
}

/* ===== Why Section ===== */
.why-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

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

.feature-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: var(--transition-normal);
  opacity: 0;
  transform: translateY(30px);
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.6s ease-out forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }

.feature-card:hover {
  border-color: var(--border-color-strong);
  background: var(--bg-card-hover);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.feature-number {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 48px;
  font-weight: 900;
  color: var(--border-color);
  line-height: 1;
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
}

.feature-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

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

/* ===== Stats Section ===== */
.stats-section {
  background: var(--bg-secondary);
  padding: 60px 24px;
}

.stats-eyebrow {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

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

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ===== Steps Section ===== */
.steps-section {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.steps-list {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.step-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  opacity: 0;
  transform: translateX(-20px);
}

.step-item.visible {
  opacity: 1;
  transform: translateX(0);
  animation: slideInLeft 0.6s ease-out forwards;
}

.step-item:nth-child(1) { animation-delay: 0.1s; }
.step-item:nth-child(3) { animation-delay: 0.2s; }
.step-item:nth-child(5) { animation-delay: 0.3s; }

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.step-number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  font-size: 24px;
  font-weight: 800;
  box-shadow: var(--shadow-glow-pink);
}

.step-content h5 {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-secondary);
  padding-top: 12px;
}

.step-line {
  width: 2px;
  height: 40px;
  background: linear-gradient(180deg, var(--accent-purple), transparent);
  margin-left: 27px;
}

/* ===== CTA Section ===== */
.cta-section {
  padding: 100px 24px;
  background: var(--bg-primary);
}

.cta-card {
  position: relative;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(255, 77, 141, 0.15) 100%);
  border: 1px solid var(--border-color-strong);
  border-radius: var(--radius-xl);
  padding: 64px 40px;
  text-align: center;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: var(--accent-purple);
  filter: blur(100px);
  opacity: 0.2;
  border-radius: 50%;
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.cta-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
}

.cta-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.deco-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border-color-strong);
}

.deco-ring-1 {
  width: 200px;
  height: 200px;
  top: -100px;
  right: -50px;
  opacity: 0.3;
}

.deco-ring-2 {
  width: 150px;
  height: 150px;
  bottom: -75px;
  left: -25px;
  opacity: 0.2;
}

.deco-ring-3 {
  width: 100px;
  height: 100px;
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
  opacity: 0.15;
}

/* ===== FAQ Section ===== */
.faq-section {
  background: var(--bg-primary);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  background: var(--bg-card);
  overflow: hidden;
  transition: var(--transition-fast);
  opacity: 0;
  transform: translateY(20px);
}

.faq-item.visible {
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.5s ease-out forwards;
}

.faq-item:nth-child(1) { animation-delay: 0.05s; }
.faq-item:nth-child(2) { animation-delay: 0.1s; }
.faq-item:nth-child(3) { animation-delay: 0.15s; }
.faq-item:nth-child(4) { animation-delay: 0.2s; }
.faq-item:nth-child(5) { animation-delay: 0.25s; }
.faq-item:nth-child(6) { animation-delay: 0.3s; }

.faq-item:hover {
  border-color: var(--border-color-strong);
}

.faq-item.active {
  border-color: var(--accent-purple);
  background: rgba(168, 85, 247, 0.05);
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 24px;
  text-align: left;
  transition: var(--transition-fast);
}

.faq-num {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-pink);
  min-width: 28px;
}

.faq-q-text {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.faq-toggle {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.faq-item.active .faq-toggle {
  color: var(--accent-pink);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 24px 20px;
  margin-left: 44px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 60px 24px 30px;
}

.footer-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  margin-bottom: 40px;
  text-align: center;
}

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

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

.footer-tagline {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

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

.contact-icon {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  text-align: center;
}

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

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 24px;
  }

  .visual-card {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px 20px;
  }

  .hero {
    min-height: 90vh;
    padding: 100px 20px 60px;
  }

  .hero-title {
    letter-spacing: -1px;
  }

  .hero-badge {
    font-size: 12px;
    padding: 6px 16px;
    margin-bottom: 24px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .feature-card {
    padding: 32px 24px;
  }

  .feature-number {
    font-size: 36px;
    top: 20px;
    right: 24px;
  }

  .cta-card {
    padding: 48px 24px;
  }

  .faq-question {
    padding: 16px 20px;
    gap: 12px;
  }

  .faq-q-text {
    font-size: 15px;
  }

  .faq-answer p {
    padding: 0 20px 16px;
    margin-left: 32px;
    font-size: 14px;
  }

  .step-number {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .step-content h5 {
    font-size: 15px;
    padding-top: 10px;
  }

  .step-line {
    height: 32px;
    margin-left: 23px;
  }

  .lang-dropdown {
    min-width: 160px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 16px;
  }

  .stat-number {
    font-size: 32px;
  }

  .stat-label {
    font-size: 12px;
  }

  .hero-tags {
    flex-wrap: wrap;
    gap: 8px;
  }

  .photo-preview-stack {
    height: 180px;
    max-width: 340px;
    margin-bottom: 24px;
  }

  .photo-card-front {
    width: 120px;
    height: 170px;
  }

  .photo-card-back {
    width: 100px;
    height: 140px;
    top: 20px;
  }

  .photo-card-left {
    left: calc(50% - 105px);
  }

  .photo-card-right {
    left: calc(50% + 105px);
  }

  .btn-large {
    padding: 16px 36px;
    font-size: 16px;
  }

  .btn-xlarge {
    padding: 18px 44px;
    font-size: 16px;
  }

  .scroll-hint {
    display: none;
  }

  .footer-contact {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==================== Signup Modal ==================== */
.signup-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.signup-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.signup-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-card);
  border-radius: 28px;
  padding: 32px 28px 24px;
  border: 1px solid rgba(168, 85, 247, 0.2);
  box-shadow: 0 25px 80px rgba(168, 85, 247, 0.3),
              0 0 120px rgba(236, 72, 153, 0.1);
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.3s ease;
}

.signup-modal-overlay.active .signup-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.signup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  z-index: 10;
}

.signup-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  transform: rotate(90deg);
}

.signup-close svg {
  width: 18px;
  height: 18px;
}

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

.signup-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
}

.signup-logo svg,
.signup-logo-img {
  width: 100%;
  height: 100%;
  display: block;
}

.signup-title {
  font-size: 32px;
  font-weight: 800;
  color: white;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}

.signup-online {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.avatar-stack {
  display: flex;
  align-items: center;
}

.stack-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--bg-card);
  overflow: hidden;
  margin-left: -10px;
}

.stack-avatar:first-child {
  margin-left: 0;
}

.stack-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.online-text {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Free Banner */
.free-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(255, 200, 0, 0.15), rgba(255, 140, 0, 0.1));
  border: 2px solid #ffc800;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}

.free-tag {
  position: absolute;
  top: -10px;
  left: 20px;
  padding: 2px 12px;
  background: #ffc800;
  color: #1a0a1f;
  font-size: 13px;
  font-weight: 800;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.free-icon {
  position: relative;
  flex-shrink: 0;
}

.free-icon svg {
  width: 42px;
  height: 42px;
}

.free-multiply {
  position: absolute;
  right: -12px;
  top: -8px;
  font-size: 20px;
  font-weight: 800;
  color: #ffc800;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.free-text {
  font-size: 16px;
  font-weight: 700;
  color: white;
  line-height: 1.3;
}

/* Form */
.signup-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  position: relative;
}

.form-input {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  padding-top: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 500;
  font-family: inherit;
  outline: none;
  transition: var(--transition-fast);
  box-sizing: border-box;
}

.form-input:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.form-input:focus {
  border-color: var(--accent-purple);
  background: rgba(168, 85, 247, 0.08);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.form-label {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--text-muted);
  pointer-events: none;
  transition: all 0.2s ease;
  font-weight: 500;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label,
.form-label-active {
  top: 12px !important;
  transform: translateY(0) !important;
  font-size: 11px !important;
  color: var(--text-secondary) !important;
  font-weight: 600 !important;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 44px;
}

.form-select option {
  background: #1a1a2e;
  color: white;
}

.select-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  pointer-events: none;
  transition: transform 0.2s ease;
}

.form-select:focus ~ .select-arrow {
  color: var(--accent-purple);
  transform: translateY(-50%) rotate(180deg);
}

.btn-confirm {
  width: 100%;
  height: 56px;
  margin-top: 8px;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #1e3a5f, #0f1f3a);
  color: white;
  font-size: 18px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.btn-confirm:hover:not(:disabled) {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.btn-confirm:active:not(:disabled) {
  transform: translateY(0);
}

.btn-confirm:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.agree-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 4px;
}

.checkbox-wrap {
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  margin-top: 2px;
}

.checkbox-wrap input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-custom {
  display: block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  transition: var(--transition-fast);
}

.checkbox-wrap input:checked + .checkbox-custom {
  background: var(--accent-purple);
  border-color: var(--accent-purple);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 10l3 3 7-7' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
}

.agree-text {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.agree-link {
  color: var(--accent-purple);
  text-decoration: none;
  font-weight: 600;
}

.agree-link:hover {
  text-decoration: underline;
  color: var(--accent-pink);
}

.browser-tip {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin: 8px 0 0;
  line-height: 1.5;
}

/* Modal responsive */
@media (max-width: 480px) {
  .signup-modal {
    padding: 28px 20px 20px;
    border-radius: 24px;
    max-height: 92vh;
  }

  .signup-logo {
    width: 64px;
    height: 64px;
  }

  .signup-title {
    font-size: 28px;
  }

  .form-input {
    height: 52px;
    font-size: 15px;
  }

  .form-label {
    font-size: 16px;
  }

  .btn-confirm {
    height: 52px;
    font-size: 16px;
  }

  .free-banner {
    padding: 12px 14px;
    gap: 12px;
  }

  .free-text {
    font-size: 14px;
  }
}
