/* ========================================
   REEDA — Design System & Styles
   ======================================== */

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

:root {
  --color-black: #0a0a0a;
  --color-white: #ffffff;
  --color-gray-50: #fafafa;
  --color-gray-100: #f5f5f5;
  --color-gray-200: #e5e5e5;
  --color-gray-400: #a3a3a3;
  --color-gray-500: #737373;
  --color-gray-600: #525252;
  --color-gray-800: #262626;
  --color-gray-900: #171717;
  --color-gray-950: #0a0a0a;
  --color-emerald-200: #a7f3d0;
  --color-emerald-500: #10b981;
  --color-emerald-600: #059669;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition-base: 0.3s ease;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--color-white);
  color: var(--color-black);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* ========================================
   UTILITY CLASSES
   ======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 80px 0;
}

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

.uppercase { text-transform: uppercase; }

.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ========================================
   HEADER / NAV
   ======================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-gray-50);
  border-bottom: 1px solid var(--color-gray-200);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.5rem;
  font-weight: 300;
  text-transform: uppercase;
}

.nav-brand-logo {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-emerald-500), #34d399);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
}

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

.nav-link {
  padding: 8px 16px;
  font-size: 0.95rem;
  transition: opacity var(--transition-base);
}

.nav-link:hover { opacity: 0.6; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  text-decoration: none;
}

.btn:hover {
  transform: scale(1.05);
}

.btn-primary {
  background: var(--color-black);
  color: var(--color-white);
}

.btn-primary:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.btn-outline {
  background: transparent;
  color: var(--color-black);
  border-bottom: 2px solid var(--color-black);
  border-radius: 0;
  padding: 12px 4px;
}

.btn-outline-light {
  background: transparent;
  color: var(--color-white);
  border-bottom: 2px solid var(--color-white);
  border-radius: 0;
  padding: 12px 4px;
}

/* ========================================
   iOS APP BANNER
   ======================================== */
.app-banner {
  background: var(--color-emerald-200);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.app-banner-icon {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.app-banner-icon img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.app-banner-text a {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-black);
}

.app-banner-text .sub {
  font-size: 0.75rem;
  color: var(--color-gray-600);
}

/* ========================================
   HERO
   ======================================== */
.hero {
  padding: 80px 24px 40px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.3;
  max-width: 1100px;
  margin: 0 auto 32px;
}

.hero .btn {
  margin: 0 auto;
}

.hero-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-badge-icon {
  width: 80px;
  height: 80px;
  color: var(--color-gray-400);
}

.hero-badge-label {
  font-weight: 600;
  color: var(--color-gray-400);
  font-size: 0.85rem;
  max-width: 160px;
  text-align: center;
}

/* formerly badge */
.formerly-badge {
  display: inline-block;
  background: var(--color-gray-100);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-full);
  padding: 6px 18px;
  font-size: 0.85rem;
  color: var(--color-gray-600);
  margin-bottom: 16px;
}

/* ========================================
   LOGO SCROLLER
   ======================================== */
.logo-scroller {
  background: var(--color-gray-100);
  padding: 20px 0;
  overflow: hidden;
  margin-top: 24px;
}

.logo-scroll-track {
  display: flex;
  align-items: center;
  gap: 96px;
  animation: scrollLogos 25s linear infinite;
  width: max-content;
}

.logo-scroll-track img {
  height: 32px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) brightness(0.5);
  opacity: 0.7;
  flex-shrink: 0;
}

@keyframes scrollLogos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========================================
   FEATURE CARDS SECTION
   ======================================== */
.features-section {
  padding: 80px 24px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 40px auto 0;
}

.feature-card {
  background: var(--color-gray-950);
  border-radius: var(--radius-xl);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-card-text {
  width: 100%;
  padding: 16px;
  border-bottom: 1px solid #333;
  text-align: center;
  margin-bottom: 8px;
}

.feature-card-text h3 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: 0.05em;
}

.feature-card-text p {
  color: var(--color-gray-400);
  font-size: 1.1rem;
  margin-top: 4px;
}

.feature-card img {
  width: 100%;
  max-width: 384px;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-top: 16px;
}

/* ========================================
   VOICE CLONING SECTION
   ======================================== */
.voice-clone-section {
  background: var(--color-gray-950);
  padding: 120px 24px;
  overflow: hidden;
}

.voice-clone-section .section-heading {
  text-align: center;
  margin-bottom: 64px;
}

.voice-clone-section .section-heading h2 {
  color: var(--color-white);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.voice-clone-section .section-heading p {
  color: var(--color-gray-400);
  font-size: 1.15rem;
  max-width: 640px;
  margin: 16px auto 0;
  line-height: 1.7;
}

.voice-clone-showcase {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
  max-width: 800px;
  margin: 0 auto;
}

.voice-clone-showcase .main-image {
  width: 400px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(128, 0, 255, 0.2);
  position: relative;
  z-index: 2;
}

.voice-clone-showcase .main-image img {
  width: 100%;
  height: auto;
}

/* Floating avatars */
.vc-avatar {
  position: absolute;
  z-index: 5;
}

.vc-avatar img {
  border-radius: 50%;
  object-fit: cover;
  width: 120px;
  height: 120px;
}

.vc-avatar.pos-tl { top: 0; left: -16px; }
.vc-avatar.pos-tr { top: 16px; right: -8px; }
.vc-avatar.pos-ml { top: 50%; left: -40px; transform: translateY(-50%); }
.vc-avatar.pos-mr { top: 50%; right: -32px; transform: translateY(-50%); }
.vc-avatar.pos-bl { bottom: 16px; left: 8px; }
.vc-avatar.pos-br { bottom: 0; right: 0; }

.vc-avatar.pos-tl img, .vc-avatar.pos-mr img { width: 120px; height: 120px; }
.vc-avatar.pos-tr img, .vc-avatar.pos-bl img { width: 100px; height: 100px; }
.vc-avatar.pos-ml img { width: 140px; height: 140px; }
.vc-avatar.pos-br img { width: 120px; height: 120px; }

.vc-float-1 { animation: vcFloat1 7s ease-in-out infinite; }
.vc-float-2 { animation: vcFloat2 8s ease-in-out infinite 0.5s; }
.vc-float-3 { animation: vcFloat3 6s ease-in-out infinite 1s; }
.vc-float-4 { animation: vcFloat4 9s ease-in-out infinite 0.3s; }
.vc-float-5 { animation: vcFloat5 7.5s ease-in-out infinite 0.8s; }
.vc-float-6 { animation: vcFloat6 10s ease-in-out infinite 0.2s; }

@keyframes vcFloat1 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(8px, -12px); }
  50% { transform: translate(-4px, -18px); }
  75% { transform: translate(10px, -6px); }
}
@keyframes vcFloat2 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-10px, 8px); }
  50% { transform: translate(6px, 14px); }
  75% { transform: translate(-8px, 4px); }
}
@keyframes vcFloat3 {
  0%, 100% { transform: translate(0, -50%); }
  25% { transform: translate(12px, calc(-50% + 10px)); }
  50% { transform: translate(4px, calc(-50% - 14px)); }
  75% { transform: translate(14px, calc(-50% + 6px)); }
}
@keyframes vcFloat4 {
  0%, 100% { transform: translate(0, -50%); }
  25% { transform: translate(-8px, calc(-50% - 10px)); }
  50% { transform: translate(-14px, calc(-50% + 8px)); }
  75% { transform: translate(-4px, calc(-50% - 16px)); }
}
@keyframes vcFloat5 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(10px, 8px); }
  50% { transform: translate(-6px, 16px); }
  75% { transform: translate(8px, 4px); }
}
@keyframes vcFloat6 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-12px, -8px); }
  50% { transform: translate(4px, -14px); }
  75% { transform: translate(-10px, -4px); }
}

/* ========================================
   AI SECTION
   ======================================== */
.ai-section {
  background: var(--color-gray-950);
  padding: 0 24px 120px;
}

.ai-section .section-heading {
  text-align: center;
  margin-bottom: 48px;
}

.ai-section .section-heading h2 {
  color: var(--color-white);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ai-section .section-heading p {
  color: var(--color-gray-400);
  font-size: 1.15rem;
  max-width: 640px;
  margin: 16px auto 0;
  line-height: 1.7;
}

.ai-image-wrapper {
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.ai-image-wrapper img {
  width: 100%;
  height: auto;
}

/* ========================================
   CONTENT SECTION (White bg sections)
   ======================================== */
.content-section {
  padding: 80px 24px;
}

.content-section .section-heading {
  max-width: 800px;
}

.content-section .section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.3;
}

.content-section .section-heading p {
  font-weight: 300;
  font-size: 1.15rem;
  line-height: 1.7;
  margin-top: 12px;
  padding-left: 8px;
  letter-spacing: 0.02em;
}

.content-section .demo-image {
  margin: 40px auto 0;
  max-width: 900px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.content-section .demo-image img {
  width: 100%;
  height: auto;
}

/* Weekly stats mockup */
.stats-card {
  max-width: 640px;
  margin: 40px auto 0;
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  padding: 32px;
  text-align: center;
}

.stats-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.stats-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

.stats-streak {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--color-emerald-600);
  font-weight: 600;
  font-size: 0.95rem;
}

.stats-streak svg { width: 20px; height: 20px; }

.stats-days {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.stats-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.stats-day-ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  position: relative;
}

.stats-day-ring svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.stats-day-ring circle.bg {
  fill: none;
  stroke: var(--color-gray-200);
  stroke-width: 3;
}

.stats-day-ring circle.progress {
  fill: none;
  stroke: var(--color-emerald-500);
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s ease;
}

.stats-day-label {
  font-size: 0.75rem;
  color: var(--color-gray-500);
}

/* ========================================
   LANGUAGE SECTION
   ======================================== */
.language-section {
  background: var(--color-gray-100);
  padding: 80px 24px;
  text-align: center;
}

.language-section h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  letter-spacing: 0.05em;
}

.language-section p {
  font-size: 1.15rem;
  font-weight: 300;
  margin-top: 12px;
}

/* ========================================
   UPLOAD SECTION
   ======================================== */
.upload-section {
  padding: 120px 24px 80px;
}

.format-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-left: 8px;
}

.format-badge {
  display: inline-block;
  background: var(--color-gray-200);
  border: 1px solid var(--color-gray-800);
  border-radius: var(--radius-sm);
  padding: 4px 12px;
  font-size: 0.9rem;
  opacity: 0.8;
}

.upload-image {
  margin: 40px auto 0;
  display: flex;
  justify-content: center;
}

.upload-image img {
  width: 384px;
  border-radius: 120px;
}

/* ========================================
   FAQ SECTION
   ======================================== */
.faq-section {
  padding: 120px 24px 80px;
}

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

.faq-item {
  border-bottom: 1px solid var(--color-gray-200);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.4;
  text-align: left;
  color: var(--color-black);
  transition: color var(--transition-base);
}

.faq-question:hover {
  color: var(--color-gray-600);
}

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  margin-left: 16px;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

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

.faq-item.active .faq-answer {
  max-height: 600px;
  padding-bottom: 20px;
}

.faq-answer-inner {
  font-size: 1.25rem;
  line-height: 1.6;
  letter-spacing: 0.05em;
  color: var(--color-gray-800);
}

.faq-answer-inner ul {
  margin-left: 20px;
  margin-top: 8px;
}

.faq-answer-inner li {
  margin-bottom: 8px;
}

/* ========================================
   REVIEWS CAROUSEL
   ======================================== */
.reviews-section {
  padding: 120px 24px 80px;
  overflow: hidden;
}

.reviews-track {
  display: flex;
  gap: 12px;
  animation: scrollReviews 40s linear infinite;
  width: max-content;
}

.reviews-track-reverse {
  display: flex;
  gap: 12px;
  animation: scrollReviewsReverse 40s linear infinite;
  width: max-content;
  margin-top: 12px;
}

.review-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  width: 520px;
  min-height: 280px;
  background: var(--color-gray-200);
  padding: 20px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.review-card img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.6);
  flex-shrink: 0;
}

.review-card .review-text {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.4;
  color: var(--color-black);
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 8px;
}

.review-card .review-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 1rem;
}

.review-card .review-meta .name {
  text-transform: uppercase;
}

@keyframes scrollReviews {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scrollReviewsReverse {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--color-gray-50);
  border-top: 1px solid var(--color-gray-200);
  padding: 60px 24px 40px;
}

.footer-brand {
  margin-bottom: 48px;
}

.footer-brand h4 {
  font-size: 1.25rem;
  font-weight: 300;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 1.1rem;
  color: var(--color-gray-800);
  max-width: 360px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
}

.footer-col h5 {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  color: var(--color-gray-800);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  font-size: 1rem;
  color: var(--color-gray-800);
  transition: color var(--transition-base);
}

.footer-col ul li a:hover {
  color: var(--color-black);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--color-gray-200);
  margin-top: 48px;
  padding-top: 32px;
}

.footer-bottom-copy {
  font-size: 0.875rem;
  color: var(--color-gray-800);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: var(--color-gray-400);
  transition: color var(--transition-base);
}

.footer-social a:hover {
  color: var(--color-black);
}

.footer-social svg {
  width: 24px;
  height: 24px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .hero {
    padding: 48px 16px 24px;
  }

  .hero-badges {
    gap: 24px;
  }

  .hero-badge-icon {
    width: 56px;
    height: 56px;
  }

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

  .voice-clone-showcase {
    min-height: 300px;
  }

  .voice-clone-showcase .main-image {
    width: 260px;
  }

  .vc-avatar img {
    width: 60px !important;
    height: 60px !important;
  }

  .vc-avatar.pos-ml { left: -16px; }
  .vc-avatar.pos-mr { right: -12px; }
  .vc-avatar.pos-tl { left: -8px; }
  .vc-avatar.pos-tr { right: -4px; }

  .review-card {
    width: 340px;
    min-height: 240px;
  }

  .review-card .review-text {
    font-size: 1.1rem;
  }

  .stats-days { gap: 6px; }

  .upload-image img {
    width: 280px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .app-banner-text .sub {
    display: none;
  }

  .nav-link {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-badges { gap: 16px; }
  .hero-badge-icon { width: 48px; height: 48px; }
  .review-card { width: 300px; }
  .stats-card { padding: 20px; }
  .stats-day-ring { width: 36px; height: 36px; font-size: 0.75rem; }
}

/* ========================================
   ANIMATIONS (Scroll Reveal)
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
