/* ============================================
   AI-Voca Homepage — style.css
   Vibrant Gradient Theme (#667eea → #764ba2)
   ============================================ */

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1a1a2e;
  background: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
  padding: 10px 0;
}

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

.nav-logo {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  transition: color 0.3s;
}

.nav.scrolled .nav-logo {
  color: #667eea;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-toggle {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav.scrolled .lang-toggle {
  background: rgba(102, 126, 234, 0.08);
  border-color: rgba(102, 126, 234, 0.2);
  color: #667eea;
}

.lang-option {
  transition: opacity 0.2s;
}

.lang-option.active {
  opacity: 1;
}

.lang-option:not(.active) {
  opacity: 0.5;
}

.lang-divider {
  opacity: 0.4;
}

.nav-cta {
  background: #fff;
  color: #667eea;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav.scrolled .nav-cta {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
}

/* --- Hero --- */
.hero {
  position: relative;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 140px 0 100px;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-text {
  flex: 1;
  color: #fff;
}

.hero-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  opacity: 0.85;
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-block;
  transition: transform 0.2s;
}

.store-badge:hover {
  transform: translateY(-2px);
}

.badge-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 10px 20px 10px 16px;
  min-width: 160px;
  transition: background 0.2s;
}

.store-badge:hover .badge-button {
  background: #1a1a1a;
}

.badge-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.badge-icon--apple {
  filter: invert(1);
}

.badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.badge-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
  letter-spacing: 0.2px;
}

.badge-store {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.3px;
}

.hero-mockup {
  flex: 0 0 auto;
}

.phone-frame {
  width: 280px;
  height: 560px;
  background: #1a1a2e;
  border-radius: 40px;
  padding: 12px;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.3),
    inset 0 0 0 2px rgba(255, 255, 255, 0.1);
  position: relative;
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: #000;
  border-radius: 14px;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #2d1b69, #1a1a2e);
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-screen {
  color: rgba(255, 255, 255, 0.4);
  font-size: 16px;
  font-weight: 500;
}

.phone-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: 80px;
}

/* --- Sections Common --- */
.section-title {
  text-align: center;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  color: #1a1a2e;
}

.section-subtitle {
  text-align: center;
  font-size: 18px;
  color: #6b7280;
  margin-bottom: 60px;
}

/* --- Features --- */
.features {
  padding: 100px 0;
  background: #fff;
}

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

.feature-card {
  background: #f8f9ff;
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.12);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #fff;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1a1a2e;
}

.feature-card p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
}

/* --- Screenshots --- */
.screenshots {
  padding: 100px 0;
  background: #f8f9ff;
}

.screenshots-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 24px 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.screenshots-scroll::-webkit-scrollbar {
  display: none;
}

.screenshot-item {
  flex: 0 0 240px;
  scroll-snap-align: center;
}

.screenshot-img {
  width: 240px;
  height: 480px;
  object-fit: cover;
  object-position: top;
  border-radius: 24px;
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.2);
  transition: transform 0.3s;
}

.screenshot-img:hover {
  transform: scale(1.03);
}

.screenshot-label {
  text-align: center;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
}

/* --- CTA --- */
.cta {
  padding: 100px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.cta-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 36px;
}

.cta-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* --- Footer --- */
.footer {
  padding: 40px 0;
  background: #1a1a2e;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-divider {
  color: rgba(255, 255, 255, 0.3);
  font-size: 14px;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.3);
  font-size: 13px;
}

/* --- Scroll Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 768px) {
  .hero {
    padding: 120px 0 80px;
    min-height: auto;
  }

  .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .hero-badges {
    justify-content: center;
  }

  .phone-frame {
    width: 220px;
    height: 440px;
    border-radius: 32px;
  }

  .phone-frame::before {
    width: 80px;
    height: 24px;
    top: 12px;
  }

  .phone-screen {
    border-radius: 24px;
  }

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

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

  .screenshot-item {
    flex: 0 0 200px;
  }

  .screenshot-placeholder {
    width: 200px;
    height: 400px;
  }

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

  .footer-links {
    gap: 6px;
  }
}

/* --- Legal Pages --- */
.legal-page {
  padding: 100px 0 60px;
  min-height: calc(100vh - 200px);
}

.legal-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-container h1 {
  font-size: 32px;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.legal-container > p:first-of-type {
  font-size: 16px;
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.legal-container h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin-top: 40px;
  margin-bottom: 16px;
}

.legal-container h3 {
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  margin-top: 24px;
  margin-bottom: 12px;
}

.legal-container p {
  font-size: 15px;
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-container ol,
.legal-container ul {
  font-size: 15px;
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-container li {
  margin-bottom: 6px;
}

.legal-container hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 32px 0;
}

.lang-switch {
  font-size: 14px;
  font-weight: 500;
  color: #667eea;
  padding: 6px 14px;
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 20px;
  transition: all 0.2s;
}

.lang-switch:hover {
  background: rgba(102, 126, 234, 0.08);
}

.legal-container .effective-date {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
  font-size: 14px;
  color: #9ca3af;
}
