/* Talos Landing Page - "Pantry" Design System
   Restrained culinary palette with Aged Gold accent */

/* ============================================
   CSS Custom Properties — matching Talos App
   ============================================ */
:root {
  /* Core Palette */
  --background: 60 19% 95%;       /* Linen #F4F4EF */
  --foreground: 60 9% 4%;         /* Ink Black #0C0C0A */
  --card: 60 23% 97%;             /* Warm White #FAFAF7 */
  --card-foreground: 60 9% 4%;
  --primary: 45 63% 44%;          /* Aged Gold #B8952A */
  --primary-foreground: 60 23% 97%;
  --secondary: 60 12% 90%;        /* Light Grey #E8E8E2 */
  --secondary-foreground: 60 4% 17%;  /* Mid Surface #2C2C29 */
  --muted: 60 12% 90%;
  --muted-foreground: 60 3% 41%;  /* Stone #6B6B65 */
  --accent: 60 12% 92%;
  --accent-foreground: 60 9% 4%;
  --border: 60 12% 90%;           /* #E8E8E2 */
  --ring: 45 63% 44%;
  --radius: 0rem;                 /* Sharp corners — Pantry brand */

  /* Gold scale */
  --gold: 45 63% 44%;
  --gold-pale: 43 60% 58%;        /* #D4AF52 */
  --gold-glow: 45 63% 44%;

  /* Star rating */
  --star: 38 65% 50%;             /* Warning/amber for stars */
}

/* ============================================
   Base Styles
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Jost', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 300;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ============================================
   Typography
   ============================================ */
.font-serif {
  font-family: 'Playfair Display', Georgia, serif;
}

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
}

.gradient-text {
  background: linear-gradient(135deg, hsl(var(--gold)) 0%, hsl(var(--gold-pale)) 50%, hsl(var(--gold)) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s ease-in-out infinite;
}

/* Uppercase label style matching app */
.label-uppercase {
  text-transform: uppercase;
  letter-spacing: 0.45em;
  font-size: 0.75rem;
  font-weight: 400;
  color: hsl(var(--muted-foreground));
}

/* ============================================
   Navbar
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
  background: hsl(var(--background) / 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid hsl(var(--border));
  box-shadow: 0 1px 2px 0 hsl(var(--foreground) / 0.03);
}

/* ============================================
   Hero Section
   ============================================ */
.hero-gradient {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, hsl(var(--gold) / 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 50%, hsl(var(--gold-pale) / 0.04) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 20% 80%, hsl(var(--gold) / 0.03) 0%, transparent 50%),
    linear-gradient(160deg, hsl(var(--card)) 0%, hsl(var(--background)) 40%, hsl(var(--secondary) / 0.3) 100%);
  background-size: 200% 200%;
  animation: gradient-shift 15s ease infinite;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 8s ease-in-out infinite;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  border-radius: var(--radius);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
  border: none;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
  background: hsl(45 63% 38%);
  box-shadow: 0 0 20px hsl(var(--gold) / 0.15);
}

.btn-outline {
  background: transparent;
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
}

.btn-outline:hover {
  background: hsl(var(--secondary));
  border-color: hsl(var(--muted-foreground) / 0.3);
}

.btn-secondary {
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  font-weight: 500;
}

.btn-secondary:hover {
  background: hsl(var(--secondary));
}

.btn-ghost {
  background: transparent;
  color: hsl(var(--muted-foreground));
}

.btn-ghost:hover {
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  height: 3rem;
}

.glow-primary {
  box-shadow: 0 0 20px hsl(var(--gold) / 0.15);
}

.glow-primary:hover {
  box-shadow: 0 0 30px hsl(var(--gold) / 0.25);
}

/* ============================================
   Cards
   ============================================ */
.card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px hsl(var(--foreground) / 0.08), 0 4px 6px -4px hsl(var(--foreground) / 0.05);
  border-color: hsl(var(--primary) / 0.3);
}

.module-card {
  text-align: center;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: hsl(var(--card) / 0.7);
  border: 1px solid hsl(var(--border) / 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

.module-card:hover {
  transform: translateY(-2px);
  background: hsl(var(--card));
  border-color: hsl(var(--primary) / 0.3);
  box-shadow: 0 0 20px hsl(var(--gold) / 0.08);
}

.module-card:hover .module-icon-wrap {
  background: hsl(var(--primary) / 0.15);
}

.pricing-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  box-shadow: 0 10px 15px -3px hsl(var(--foreground) / 0.08);
}

.pricing-card.popular {
  background: hsl(var(--foreground));
  color: hsl(var(--background));
  border-color: hsl(var(--foreground));
  box-shadow: 0 10px 15px -3px hsl(var(--foreground) / 0.2);
  transform: scale(1.02);
}

.testimonial-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  box-shadow: 0 4px 6px -1px hsl(var(--foreground) / 0.05);
}

/* ============================================
   Badge
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  border-radius: 0;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  border: 1px solid hsl(var(--primary) / 0.2);
}

.badge-popular {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 0.25rem 1rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 0;
}

/* ============================================
   Feature Tabs
   ============================================ */
.feature-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0;
  font-size: 0.875rem;
  font-weight: 400;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background: hsl(var(--secondary) / 0.5);
  color: hsl(var(--muted-foreground));
}

.feature-tab:hover {
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
}

.feature-tab.active {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
  box-shadow: 0 0 20px hsl(var(--gold) / 0.15);
}

/* ============================================
   Icon Wrapper
   ============================================ */
.icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: hsl(var(--primary) / 0.08);
  flex-shrink: 0;
}

.icon-wrap i,
.icon-wrap svg {
  color: hsl(var(--primary));
}

.module-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0;
  background: hsl(var(--primary) / 0.08);
  margin: 0 auto 0.75rem;
  transition: background 0.2s ease;
}

.module-icon-wrap i,
.module-icon-wrap svg {
  color: hsl(var(--primary));
  width: 1.25rem;
  height: 1.25rem;
}

/* ============================================
   FAQ Accordion
   ============================================ */
.faq-item {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--card));
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.125rem;
  text-align: left;
  background: none;
  border: none;
  color: hsl(var(--foreground));
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq-trigger:hover {
  color: hsl(var(--primary));
}

.faq-trigger .chevron {
  transition: transform 0.3s ease;
  color: hsl(var(--muted-foreground));
  flex-shrink: 0;
}

.faq-item.open .faq-trigger .chevron {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-content {
  max-height: 600px;
}

.faq-content-inner {
  padding: 0 1.5rem 1.25rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
}

/* ============================================
   Screenshot Carousel
   ============================================ */
.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  min-width: 100%;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  box-shadow: 0 10px 15px -3px hsl(var(--foreground) / 0.08), 0 4px 6px -4px hsl(var(--foreground) / 0.05);
}

.carousel-label {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: hsl(var(--foreground) / 0.85);
  color: hsl(var(--background));
  padding: 0.5rem 1.25rem;
  border-radius: 0;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.carousel-dot {
  width: 2rem;
  height: 2px;
  border-radius: 0;
  background: hsl(var(--border));
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: hsl(var(--primary));
  width: 3rem;
}

/* ============================================
   Video Player
   ============================================ */
.video-container {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 15px -3px hsl(var(--foreground) / 0.08);
}

.video-thumbnail {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: hsl(var(--foreground) / 0.3);
  transition: background 0.3s ease;
}

.video-container:hover .video-overlay {
  background: hsl(var(--foreground) / 0.4);
}

.video-play-btn {
  width: 5rem;
  height: 5rem;
  border-radius: 0;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 20px hsl(var(--gold) / 0.3);
}

.video-container:hover .video-play-btn {
  transform: scale(1.05);
  box-shadow: 0 0 30px hsl(var(--gold) / 0.4);
}

.video-play-text {
  margin-top: 1rem;
  color: white;
  font-weight: 400;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.video-iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  display: block;
}

/* ============================================
   Newsletter Form
   ============================================ */
.newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 28rem;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  font-family: 'Jost', sans-serif;
  font-size: 0.875rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.2s ease;
}

.newsletter-input:focus {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 1px hsl(var(--primary) / 0.2);
}

.newsletter-input::placeholder {
  color: hsl(var(--muted-foreground));
}

.newsletter-msg {
  margin-top: 0.75rem;
  font-size: 0.875rem;
}

.newsletter-msg.success {
  color: hsl(145 35% 40%);
}

.newsletter-msg.error {
  color: hsl(0 55% 45%);
}

/* ============================================
   CTA Section
   ============================================ */
.cta-gradient {
  background: hsl(var(--foreground));
}

.cta-gradient .btn-secondary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-weight: 500;
}

.cta-gradient .btn-secondary:hover {
  background: hsl(var(--gold-pale));
}

.cta-gradient .btn-outline {
  border-color: hsl(60 19% 95% / 0.2);
  color: hsl(var(--background));
}

.cta-gradient .btn-outline:hover {
  background: hsl(60 19% 95% / 0.1);
}

/* ============================================
   SmartScreen Notice
   ============================================ */
.smartscreen-notice {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  background: hsl(var(--secondary) / 0.6);
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: 0;
  max-width: max-content;
  margin-left: auto;
  margin-right: auto;
}

.smartscreen-notice i,
.smartscreen-notice svg {
  color: hsl(35 80% 50%);
  flex-shrink: 0;
}

.smartscreen-notice a {
  color: hsl(var(--primary));
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.smartscreen-notice a:hover {
  color: hsl(var(--gold-pale));
}

/* ============================================
   Stat Counter
   ============================================ */
.stat-item {
  text-align: center;
}

.stat-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0;
  background: hsl(var(--primary) / 0.08);
  margin: 0 auto 1rem;
}

.stat-icon-wrap i,
.stat-icon-wrap svg {
  color: hsl(var(--primary));
  width: 1.5rem;
  height: 1.5rem;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: 'Playfair Display', Georgia, serif;
  color: hsl(var(--foreground));
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ============================================
   Stars (filled)
   ============================================ */
.star-filled svg {
  fill: hsl(var(--star));
  color: hsl(var(--star));
}

/* ============================================
   Footer
   ============================================ */
footer {
  background: hsl(var(--foreground));
  color: hsl(var(--background));
}

footer .footer-heart,
#footer-made svg[data-lucide="heart"] {
  color: hsl(var(--primary));
  fill: hsl(var(--primary));
  width: 14px;
  height: 14px;
}

footer .footer-logo-icon {
  color: hsl(var(--primary));
}

/* ============================================
   Scroll Animations
   ============================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.scale {
  transform: scale(0.95);
}

.animate-on-scroll.scale.is-visible {
  transform: scale(1);
}

/* Stagger delay classes */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }
.delay-7 { transition-delay: 0.7s; }
.delay-8 { transition-delay: 0.8s; }

/* ============================================
   Keyframes
   ============================================ */
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes shimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 200% center; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-float {
  animation: float 8s ease-in-out infinite;
}

.animate-fade-in {
  animation: fade-in-up 0.6s ease forwards;
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
  background: hsl(var(--background) / 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid hsl(var(--border));
  padding: 1rem 1.5rem 1.25rem;
  box-shadow: 0 4px 12px hsl(var(--foreground) / 0.06);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu-link {
  display: block;
  padding: 0.75rem 0.5rem;
  font-size: 0.9375rem;
  font-weight: 400;
  color: hsl(var(--foreground));
  text-decoration: none;
  border-bottom: 1px solid hsl(var(--border) / 0.5);
  transition: color 0.2s ease;
}

.mobile-menu-link:last-of-type {
  border-bottom: none;
}

.mobile-menu-link:hover {
  color: hsl(var(--primary));
}

/* ============================================
   Download Gate Modal
   ============================================ */
.download-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: hsl(var(--foreground) / 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: modal-fade-in 0.2s ease;
}

.download-modal {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 26rem;
  width: 100%;
  position: relative;
  box-shadow: 0 25px 50px -12px hsl(var(--foreground) / 0.25);
  text-align: center;
  animation: modal-slide-up 0.3s ease;
}

.download-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s ease;
  padding: 0.25rem;
}

.download-modal-close:hover {
  color: hsl(var(--foreground));
}

.download-modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background: hsl(var(--primary) / 0.1);
  margin-bottom: 1.5rem;
}

@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-slide-up {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================
   Responsive
   ============================================ */
@media (min-width: 1025px) {
  .mobile-menu,
  .mobile-menu.open {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  .navbar-links {
    display: none !important;
  }

  .hero-title {
    font-size: 4rem;
  }

  .stat-value {
    font-size: 2rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .pricing-card.popular {
    transform: none;
  }

  .faq-item.open .faq-content {
    max-height: 800px;
  }

  .faq-trigger {
    font-size: 1rem;
    padding: 1rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 3rem;
  }

  .smartscreen-notice {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    text-align: left;
  }

  .module-card {
    padding: 1rem;
  }
}
