/* ==========================================================================
   THE KING - LANDING PAGE STYLESHEET
   Vanilla CSS with CSS Variables, Flexbox, Grid, & Custom Animations
   ========================================================================== */

/* Design Tokens & Custom Properties */
:root {
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  /* Color Palette */
  --bg-primary: #faf7f2;
  --bg-secondary: #ffffff;
  --text-main: #111827;
  --text-muted: #4b5563;
  --text-light: #9ca3af;
  
  --primary-color: #d97706; /* Amber 600 */
  --primary-hover: #b45309; /* Amber 700 */
  --primary-glow: rgba(217, 119, 6, 0.2);
  --accent-sand: #fef3dc;
  --accent-sand-dark: #fbf0d5;
  
  /* Layout & Shadows */
  --border-color: #f3f4f6;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.02), 0 1px 3px rgba(0, 0, 0, 0.01);
  --card-shadow-hover: 0 20px 40px rgba(217, 119, 6, 0.06), 0 1px 8px rgba(0, 0, 0, 0.03);
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-secondary);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Utility Layouts */
.text-center { text-align: center; }
.text-gray-900 { color: var(--text-main); }
.text-gray-500 { color: var(--text-muted); }
.max-width-600 { max-width: 600px; margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.3);
}

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

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.03);
}

.btn-header {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.6rem 1.4rem;
  font-size: 0.85rem;
}

.btn-header:hover {
  background-color: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}

.btn-block {
  display: flex;
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* ==========================================================================
   Header Styles
   ========================================================================== */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  padding: 1rem 0;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.app-logo-small {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.app-name {
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.language-selector {
  position: relative;
}

.lang-select {
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.5rem 1.8rem 0.5rem 0.8rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 9999px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 0.8rem;
  transition: var(--transition-fast);
}

.lang-select:hover {
  background-color: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
}

.lang-select option {
  background-color: var(--text-main);
  color: #ffffff;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  width: 100%;
  background-color: var(--bg-primary);
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 400px;
  max-height: 800px;
  overflow: hidden;
  border-bottom-left-radius: 2.5rem;
  border-bottom-right-radius: 2.5rem;
}

@media (min-width: 768px) {
  .hero-image-wrapper {
    height: 70vh;
    border-bottom-left-radius: 4rem;
    border-bottom-right-radius: 4rem;
  }
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.1) 40%,
    rgba(0, 0, 0, 0.45) 100%
  );
}

.hero-text-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 3rem 1.5rem;
  text-align: center;
  z-index: 10;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 500;
  color: #ffffff;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.25;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
    padding-bottom: 1rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4.2rem;
  }
}

/* ==========================================================================
   Intro Section & App Mockup
   ========================================================================== */
.intro-section {
  padding: 5rem 1.5rem;
  background-color: var(--bg-primary);
  display: flex;
  justify-content: center;
  align-items: center;
}

.intro-container {
  max-width: 800px;
  text-align: center;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 3.5rem;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .section-subtitle {
    font-size: 1.15rem;
  }
}

.phone-mockup-wrapper {
  position: relative;
  max-width: 320px;
  margin: 0 auto 3.5rem;
  transform: translateY(0);
  transition: var(--transition-smooth);
}

.phone-mockup-wrapper:hover {
  transform: translateY(-8px);
}

.phone-shadow {
  position: absolute;
  bottom: -15px;
  left: 5%;
  width: 90%;
  height: 30px;
  background: rgba(0, 0, 0, 0.15);
  filter: blur(20px);
  border-radius: 50%;
  z-index: 1;
  transition: var(--transition-smooth);
}

.phone-mockup-wrapper:hover .phone-shadow {
  transform: scale(0.92);
  background: rgba(0, 0, 0, 0.12);
  filter: blur(25px);
}

.phone-mockup-img {
  width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
  border-radius: 2.8rem;
  /* Extra shadow inside browser context */
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Marquee Banner (Scrolling Text)
   ========================================================================== */
.marquee-banner {
  background-color: var(--accent-sand);
  padding: 1.1rem 0;
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--accent-sand-dark);
  border-bottom: 1px solid var(--accent-sand-dark);
}

.marquee-content {
  display: flex;
  width: max-content;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 2rem;
  animation: scroll-marquee 30s linear infinite;
  padding-right: 2rem;
}

.marquee-track span {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--text-main);
}

.star-icon {
  width: 12px;
  height: 12px;
  color: var(--primary-color);
  flex-shrink: 0;
}

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

/* ==========================================================================
   Features Section
   ========================================================================== */
.features-section {
  padding: 6rem 1.5rem;
  background-color: var(--bg-primary);
}

.features-container {
  max-width: 1100px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  position: relative;
  border-radius: 2rem;
  aspect-ratio: 3/4;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
}

.feature-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover .feature-card-img {
  transform: scale(1.06);
}

/* Overlay Color Filters */
.feature-card-overlay {
  position: absolute;
  inset: 0;
  mix-blend-mode: multiply;
  opacity: 0.3;
}
.bg-orange-tint { background-color: #7c2d12; }
.bg-blue-tint { background-color: #1e3a8a; }
.bg-teal-tint { background-color: #115e59; }

.feature-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.2) 40%,
    rgba(0, 0, 0, 0.8) 100%
  );
}

.feature-card-icon-wrapper {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.lucide-icon {
  width: 22px;
  height: 22px;
}

.feature-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem 1.8rem;
  color: #ffffff;
  z-index: 10;
}

.feature-card-content h3 {
  font-family: var(--font-sans);
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.feature-card-content p {
  font-size: 0.92rem;
  line-height: 1.5;
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */
.testimonials-section {
  padding: 6rem 0;
  background-color: var(--bg-secondary);
  overflow: hidden;
}

.testimonials-header {
  padding: 0 1.5rem;
}

.testimonials-slider-container {
  width: 100%;
  overflow-x: auto;
  padding: 1rem 1.5rem 3rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Hide standard Firefox scrollbar */
}

.testimonials-slider-container::-webkit-scrollbar {
  display: none; /* Hide Chrome/Safari scrollbars */
}

.testimonials-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
}

.testimonial-card {
  width: 310px;
  background-color: #f9fafb;
  border: 1px solid var(--border-color);
  border-radius: 2rem;
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  scroll-snap-align: start;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.01);
  transition: var(--transition-smooth);
}

@media (min-width: 768px) {
  .testimonial-card {
    width: 350px;
    padding: 2.5rem;
  }
}

.testimonial-card:hover {
  transform: translateY(-4px);
  background-color: #ffffff;
  border-color: var(--accent-sand-dark);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.02), 0 10px 10px -5px rgba(0, 0, 0, 0.01);
}

.quote-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 1.2rem;
}

.testimonial-text {
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 2rem;
  font-weight: 400;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.author-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
}

.author-location {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ==========================================================================
   Pricing Section & Assinatura
   ========================================================================== */
.pricing-section {
  padding: 6rem 1.5rem;
  background: linear-gradient(to bottom, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

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

.pricing-card {
  max-width: 480px;
  background-color: var(--bg-secondary);
  border: 2px solid var(--accent-sand-dark);
  border-radius: 2.5rem;
  padding: 2.5rem 2rem;
  margin: 0 auto 3rem;
  box-shadow: 0 20px 40px rgba(217, 119, 6, 0.04);
  transition: var(--transition-smooth);
}

@media (min-width: 768px) {
  .pricing-card {
    padding: 4rem 3.5rem;
  }
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-color);
  box-shadow: 0 30px 60px rgba(217, 119, 6, 0.08);
}

.price-header {
  margin-bottom: 2rem;
  display: flex;
  align-items: baseline;
  justify-content: center;
  font-family: var(--font-sans);
}

.price-symbol {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-right: 0.2rem;
  transform: translateY(-0.8rem);
}

.price-amount {
  font-size: 4rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.04em;
}

.price-period {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-left: 0.4rem;
}

.benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 2.5rem;
  text-align: left;
}

.benefits-list li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.benefits-list span {
  font-size: 0.98rem;
  color: var(--text-muted);
  font-weight: 500;
}

.check-icon-wrapper {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--accent-sand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.check-icon {
  width: 14px;
  height: 14px;
}

/* Pulse Glow Shadow on CTA */
.shadow-pulse {
  animation: pulse-glow 3s infinite;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 4px 14px var(--primary-glow); }
  50% { box-shadow: 0 4px 25px rgba(217, 119, 6, 0.45); }
  100% { box-shadow: 0 4px 14px var(--primary-glow); }
}

/* App Stats */
.stats-container {
  margin-top: 4rem;
}

.stat-number {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.site-footer {
  padding: 4rem 1.5rem;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
}

/* Share Box Callout */
.share-box {
  background: linear-gradient(to right, #fffdf9, #fefbfa);
  border: 1px solid var(--accent-sand-dark);
  border-radius: 2rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .share-box {
    flex-direction: row;
    padding: 2.2rem 3rem;
  }
}

.share-info {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .share-info {
    text-align: left;
  }
}

.share-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--accent-sand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .share-icon-wrapper {
    margin: 0;
  }
}

.share-icon {
  width: 22px;
  height: 22px;
}

.share-text-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.share-text-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.btn-share-action {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 0.7rem 2rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.btn-share-action:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

/* Footer Bottom Area */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-logo-area {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.footer-logo-area span {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
}

.footer-nav {
  display: flex;
  gap: 2rem;
}

.footer-nav a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--text-main);
}

.copyright {
  font-size: 0.82rem;
  color: var(--text-light);
}

/* ==========================================================================
   Intersection Observer (Scroll Reveal Class)
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.active {
  opacity: 1;
  transform: translateY(0);
}
