/* ReciteFlow Landing Page - Curtain Call Theme */

:root {
  /* Backgrounds */
  --base: #0D0A0E;
  --surface: #181419;
  --surface-light: #231E24;
  --surface-hover: #2C262D;
  --mist: #382F36;

  /* Text */
  --cream: #F2E8ED;
  --soft: #BBA8B4;
  --slate: #87747F;

  /* Accent - Rosy curtain */
  --accent: #C4727A;
  --accent-soft: #A45E66;
  --accent-muted: #8A4E55;
  --glow: #E08890;
  --glow-warm: #E8A0A6;

  /* Semantic */
  --success: #6DAF8A;
  --warning: #D4A054;

  /* Glow effects */
  --glow-primary: 0 4px 24px rgba(196, 114, 122, 0.4);
  --glow-subtle: 0 0 16px rgba(196, 114, 122, 0.2);
  --glow-outline: 0 0 20px rgba(196, 114, 122, 0.25), inset 0 0 20px rgba(196, 114, 122, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--base);
  color: var(--soft);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: var(--glow);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--glow-warm);
}

h1, h2, h3, h4 {
  color: var(--cream);
  font-weight: 500;
}

h1 {
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(13, 10, 14, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--mist);
  z-index: 100;
  padding: 16px 0;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--cream);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
}

.logo svg,
.logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

nav ul a {
  color: var(--soft);
  font-size: 0.9rem;
}

nav ul a:hover {
  color: var(--cream);
}

/* Language Switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--surface-light);
  border: 1px solid var(--mist);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--soft) !important;
  transition: all 0.2s ease;
}

.lang-switch:hover {
  background: var(--mist);
  border-color: var(--accent);
  color: var(--cream) !important;
}

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

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 70%;
  height: 140%;
  background: radial-gradient(ellipse at center, rgba(196, 114, 122, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 50%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(196, 114, 122, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--mist);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 24px;
  max-width: 480px;
}

.tagline {
  color: var(--slate);
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 36px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
  font-family: inherit;
}

.btn-primary {
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--glow);
  box-shadow: var(--glow-outline);
}

.btn-primary:hover {
  background: rgba(196, 114, 122, 0.1);
  color: var(--glow-warm);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--mist);
  color: var(--soft);
}

.btn-secondary:hover {
  border-color: var(--slate);
  color: var(--cream);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 1;
}

/* Phone Mockup */
.phone-mockup {
  width: 280px;
  height: 580px;
  background: var(--surface);
  border-radius: 40px;
  border: 3px solid var(--mist);
  box-shadow: var(--glow-subtle), 0 20px 60px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-screen {
  flex: 1;
  overflow: hidden;
  border-radius: 36px;
  margin: 3px;
}

.screenshot-carousel {
  width: 100%;
  height: 100%;
  position: relative;
}

.screenshot {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.screenshot.active {
  opacity: 1;
}

/* Carousel Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  margin-bottom: 16px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mist);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot:hover {
  background: var(--slate);
}

.dot.active {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(196, 114, 122, 0.5);
}

/* How It Works Section */
.how-it-works {
  padding: 100px 0;
  position: relative;
}

.how-it-works::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mist), transparent);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
}

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

.step-card {
  text-align: center;
  padding: 32px 24px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--surface);
  border: 1.5px solid var(--accent-muted);
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
}

.step-card h3 {
  margin-bottom: 10px;
}

.step-card p {
  font-size: 0.95rem;
  color: var(--slate);
}

/* Features Section */
.features {
  padding: 100px 0;
  background: var(--surface);
}

/* Feature Highlight */
.feature-highlight {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  background: var(--base);
  border: 1.5px solid var(--accent);
  border-radius: 20px;
  padding: 32px 40px;
  margin-bottom: 40px;
  box-shadow: var(--glow-subtle);
}

.feature-highlight-icon {
  width: 56px;
  height: 56px;
  background: var(--surface-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.feature-highlight-content h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.feature-highlight-content p {
  font-size: 1rem;
  color: var(--soft);
  max-width: 700px;
  line-height: 1.7;
}

.feature-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--cream);
  padding: 3px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}

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

.feature-card {
  background: var(--base);
  border: 1px solid var(--mist);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--accent-muted);
  box-shadow: var(--glow-subtle);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--surface-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}

.feature-card h3 {
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--slate);
}

/* Use Cases Section */
.use-cases {
  padding: 100px 0;
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.use-case-card {
  background: var(--surface);
  border: 1px solid var(--mist);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.use-case-card:hover {
  border-color: var(--accent-muted);
}

.use-case-emoji {
  font-size: 2rem;
  margin-bottom: 14px;
  display: block;
}

.use-case-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.use-case-card p {
  font-size: 0.85rem;
  color: var(--slate);
}

/* Pricing Section */
.pricing {
  padding: 100px 0;
  background: var(--surface);
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--base);
  border: 1px solid var(--mist);
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: var(--glow-subtle);
  position: relative;
}

.pricing-card.featured::before {
  content: 'Best Value';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--cream);
  padding: 4px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
}

html[lang="es"] .pricing-card.featured::before {
  content: 'Mejor Valor';
}

.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.price {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--slate);
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}

.pricing-features li {
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--soft);
  border-bottom: 1px solid var(--mist);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features .check {
  color: var(--accent);
}

/* Download Section */
.download {
  padding: 100px 0;
  text-align: center;
}

.download h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.download > .container > p {
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.store-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--mist);
  border-radius: 12px;
  padding: 12px 24px;
  color: var(--cream);
  transition: all 0.2s ease;
}

.store-button:hover {
  border-color: var(--accent);
  color: var(--cream);
}

.store-button svg {
  width: 28px;
  height: 28px;
}

.store-text {
  text-align: left;
}

.store-text small {
  display: block;
  font-size: 0.7rem;
  color: var(--slate);
}

.store-text strong {
  font-size: 1.1rem;
}

/* Footer */
footer {
  background: var(--surface);
  border-top: 1px solid var(--mist);
  padding: 60px 0 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.9rem;
  max-width: 300px;
}

.footer-links h4 {
  font-size: 0.9rem;
  margin-bottom: 16px;
  color: var(--cream);
}

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--slate);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--cream);
}

.footer-bottom {
  border-top: 1px solid var(--mist);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--slate);
}

.footer-bottom a {
  color: var(--slate);
}

/* Legal Pages */
.legal-page {
  padding-top: 120px;
  padding-bottom: 80px;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  margin-bottom: 8px;
}

.legal-meta {
  color: var(--slate);
  font-size: 0.9rem;
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 1.25rem;
  margin-top: 40px;
  margin-bottom: 16px;
}

.legal-content p {
  margin-bottom: 16px;
}

.legal-content ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 8px;
}

/* Support Page */
.support-page {
  padding-top: 120px;
  padding-bottom: 80px;
}

.support-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.support-content h1 {
  margin-bottom: 16px;
}

.support-content > p {
  margin-bottom: 40px;
}

.support-options {
  display: grid;
  gap: 16px;
  text-align: left;
}

.support-option {
  background: var(--surface);
  border: 1px solid var(--mist);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all 0.2s ease;
}

.support-option:hover {
  border-color: var(--accent-muted);
}

.support-icon {
  width: 40px;
  height: 40px;
  background: var(--surface-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.support-option h3 {
  margin-bottom: 4px;
}

.support-option p {
  font-size: 0.9rem;
  color: var(--slate);
}

.faq-section {
  margin-top: 60px;
  padding: 32px;
  background: var(--surface);
  border-radius: 16px;
  text-align: left;
}

.faq-section h3 {
  margin-bottom: 24px;
}

.faq-item {
  margin-bottom: 24px;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-item h4 {
  color: var(--cream);
  margin-bottom: 8px;
}

.faq-item p {
  color: var(--slate);
  font-size: 0.95rem;
}

/* Hide hamburger on desktop */
.menu-toggle {
  display: none;
}

/* Responsive */
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    order: 1;
  }

  .hero-visual {
    order: 0;
    margin-bottom: 40px;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

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

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

  .feature-highlight {
    flex-direction: column;
    padding: 24px;
    text-align: center;
    align-items: center;
  }

  .feature-highlight-content p {
    text-align: left;
  }

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

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

  .pricing-cards {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 2rem;
  }

  .lang-switch {
    display: none;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
  }

  .menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--soft);
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  nav ul {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(13, 10, 14, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    gap: 0;
    border-bottom: 1px solid var(--mist);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
  }

  nav ul.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  nav ul li {
    display: block !important;
    width: 100%;
  }

  nav ul li a {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid var(--mist);
    font-size: 1rem;
  }

  nav ul li:last-child a {
    border-bottom: none;
  }

  .use-cases-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

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

  .hero-visual {
    width: 100%;
    padding: 0;
    margin-top: 24px;
  }

  .phone-mockup {
    width: min(85vw, 320px);
    height: min(180vw, 680px);
    border-radius: 36px;
  }

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

  .carousel-dots {
    margin-top: 12px;
  }

  .dot {
    width: 6px;
    height: 6px;
  }
}
