:root {
  --primary-gradient: linear-gradient(135deg, #a855f7 0%, #db2777 50%, #f43f5e 100%);
  --bubble-gradient: linear-gradient(135deg, #ff7eb3 0%, #a855f7 100%);
  --accent-warm: #ff7eb3;
  --bg-warm: #fff9f5;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --radius-xl: 40px;
  --radius-lg: 32px;
  --radius-md: 20px;
  --transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', -apple-system, system-ui, sans-serif;
  background-color: var(--bg-warm);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

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

/* Voice Mockup UI */
/* Voice Translation Demo - Precise Scan Specs */
.voice-mockup-container {
    width: 320px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px; /* Faithful gap between areas */
    position: relative;
}

.voice-area {
    height: 240px; 
    width: 320px;
    border-radius: 24px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.voice-top-half {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.85) 0%, rgba(219, 39, 119, 0.85) 100%);
    transform: rotate(180deg);
}

.voice-bottom-half {
    background: linear-gradient(135deg, #a855f7 0%, #db2777 50%, #f43f5e 100%);
}

.vertical-language-pill {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.65); /* Precise scaleEffect(0.65) */
    width: 100px; /* frame(width: 100, height: 100) */
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px); /* ultraThinMaterial approximation */
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.vertical-language-pill .flag {
    font-size: 28px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    line-height: 1;
}

.vertical-language-pill .swap-icon {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.7);
    margin: 4px 0;
}

.speech-text {
    font-size: 16px;
    font-weight: 700;
    color: white;
    text-align: center;
    margin: 0;
}

.mic-btn-icon {
    font-size: 30px;
    color: rgba(255,255,255,0.7);
}

.pulsing-mic-indicator {
    width: 20px;
    height: 20px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    margin-top: 8px;
    animation: mic-pulse 0.6s ease-in-out infinite;
}

@keyframes mic-pulse {
    0% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.3); opacity: 0.5; }
    100% { transform: scale(1); opacity: 0.3; }
}

/* Web Demo UI */
.web-viewport-mock {
  background: #f8fafc;
  border-radius: 32px;
  border: 10px solid #f1f5f9;
  height: auto;
  min-height: 550px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.05);
}

.browser-chrome {
  height: 44px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
}

.web-article {
  padding: 30px;
}

.web-demo-line {
  margin-bottom: 40px;
  position: relative;
  transition: var(--transition);
}

.triple-mini-bubble {
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px; /* Gap between source and bubble unit */
}

.triple-mini-bubble.show {
  opacity: 1;
  transform: translateY(0);
}

.bubble-unit {
  background: white;
  border-radius: 12px;
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.cell-v-src { 
    font-weight: 800; 
    font-size: 1.25rem; 
    color: #1e293b;
    padding: 2px 8px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 6px;
    margin-bottom: 4px;
}
.cell-v-rom { 
    font-size: 0.6rem; 
    color: var(--text-secondary); 
    font-weight: 500;
}
.cell-v-tgt { 
    font-weight: 800; 
    color: #db2777; 
    font-size: 0.85rem; 
}

.line-trans-text {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1e293b;
  margin-top: 24px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.6s ease;
  width: 100%; /* Ensure full-width for bottom positioning */
}

.line-trans-text.show {
  opacity: 1;
  transform: translateY(0);
}

.cell-v-rom { font-size: 0.7rem; color: #94a3b8; font-weight: 700; text-transform: lowercase; }
.cell-v-tgt { font-weight: 800; color: #db2777; font-size: 0.95rem; }

.premium-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 60px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.02);
  margin-bottom: 60px;
}

@media (max-width: 1024px) {
  [style*="display: grid"] {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .premium-card {
    padding: 40px 24px;
  }
}

.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
