/* Aisle & Grace - Modern Design System */

:root {
  /* Color Palette */
  --gold: #C9A961;
  --gold-dark: #B08D45;
  --gold-light: #F5EFE0;
  --sage: #8B9D83;
  --sage-dark: #6B7D63;
  --sage-light: #E8F0E3;
  --cream: #FAF7F2;
  --charcoal: #2D2D2D;
  --gray: #6B6B6B;
  --light-gray: #F5F5F5;
  --white: #FFFFFF;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 600;
  color: var(--charcoal);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

.mb-1 {
  margin-bottom: var(--spacing-sm);
}

.mb-2 {
  margin-bottom: var(--spacing-md);
}

.mb-3 {
  margin-bottom: var(--spacing-lg);
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(15px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--charcoal);
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

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

.nav-links a {
  color: var(--gray);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--gold);
}

/* Hero Section */
.hero {
  margin-top: 80px;
  padding: var(--spacing-xl) 0 var(--spacing-lg);
  background: linear-gradient(135deg, #FFF9F0 0%, #FFE5E5 50%, var(--sage-light) 100%);
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
}

.hero::before {
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: rgba(201, 169, 97, 0.15);
  animation: float 20s ease-in-out infinite;
}

.hero::after {
  bottom: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: rgba(139, 157, 131, 0.15);
  animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(30px, -30px);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-subtitle {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50px;
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(201, 169, 97, 0.2);
  animation: fadeInUp 0.8s ease-out;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  color: var(--charcoal);
  animation: fadeInUp 0.8s ease-out 0.1s backwards;
  text-shadow: 0 2px 20px rgba(255, 255, 255, 0.8);
  font-weight: 700;
}

.hero p {
  font-size: 1.25rem;
  color: var(--gray);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(201, 169, 97, 0.3);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201, 169, 97, 0.5);
}

.btn-secondary {
  background: white;
  color: var(--charcoal);
  border: 2px solid rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--cream);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
  z-index: 0;
}

.btn-secondary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-secondary:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.btn-secondary span {
  position: relative;
  z-index: 1;
}

.cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.one-time-badge {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--gray);
  opacity: 0.8;
  animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

/* Features Grid */
.features-section {
  padding: var(--spacing-xl) 0;
  position: relative;
}

.features-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--sage));
  border-radius: 2px;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--sage));
  border-radius: 2px;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--gray);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  padding: 2.5rem;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--sage));
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-light);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

/* Highlight key features */
.feature-card:nth-child(3),
.feature-card:nth-child(7),
.feature-card:nth-child(8) {
  background: linear-gradient(135deg, var(--cream) 0%, white 100%);
  border: 2px solid var(--gold-light);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--gold-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--gold-dark);
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--gold);
  color: white;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Screenshots */
.screenshots-section {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(135deg, var(--cream) 0%, var(--light-gray) 50%, white 100%);
  overflow: hidden;
  position: relative;
}

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

.screenshots-scroll {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding: 2rem 2rem 4rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Firefox */
}

.screenshots-scroll::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

.screenshot-item {
  flex: 0 0 280px;
  scroll-snap-align: center;
  transition: var(--transition);
}

.screenshot-item img {
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
  border: 3px solid white;
}

.screenshot-item:hover img {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 20px 60px rgba(201, 169, 97, 0.3);
}

/* Testimonials */
.testimonials-section {
  padding: var(--spacing-xl) 0;
  background: var(--cream);
}

.testimonial-card {
  background: white;
  padding: 2.5rem;
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-light);
}

.stars {
  color: var(--gold);
  margin-bottom: 1rem;
  font-size: 1.3rem;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(201, 169, 97, 0.2);
}

.testimonial-text {
  font-size: 1.05rem;
  color: var(--charcoal);
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 48px;
  height: 48px;
  background: var(--sage-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.author-info h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.author-info p {
  font-size: 0.85rem;
  color: var(--gray);
}

/* Pricing/Value */
.value-section {
  padding: var(--spacing-xl) 0;
  background: white;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.value-item {
  text-align: center;
  padding: 2rem;
  transition: var(--transition);
}

.value-item:hover {
  transform: translateY(-5px);
}

.value-item h3 {
  color: var(--charcoal);
  margin-bottom: 0.75rem;
}

.value-item p {
  color: var(--gray);
  line-height: 1.7;
}

.price-box {
  background: linear-gradient(135deg, var(--charcoal) 0%, #1a1a1a 100%);
  border-radius: 32px;
  padding: 4rem 2rem;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.price-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--sage));
}

.price-box h3 {
  color: white;
}

.price-tag {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--gold);
  margin: 1rem 0;
  font-family: var(--font-heading);
}

.price-period {
  font-size: 1.25rem;
  opacity: 0.8;
}

/* Footer */
footer {
  background: #1a1a1a;
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-col a {
  display: block;
  margin-bottom: 0.75rem;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(201, 169, 97, 0.3);
  }
  50% {
    box-shadow: 0 4px 25px rgba(201, 169, 97, 0.5);
  }
}

.btn-primary {
  animation: pulse 2s ease-in-out infinite;
}

/* Scroll reveal animations */
.feature-card,
.testimonial-card,
.value-item {
  animation: fadeInUp 0.6s ease-out backwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.1s; }
.feature-card:nth-child(5) { animation-delay: 0.2s; }
.feature-card:nth-child(6) { animation-delay: 0.3s; }
.feature-card:nth-child(7) { animation-delay: 0.1s; }
.feature-card:nth-child(8) { animation-delay: 0.2s; }
.feature-card:nth-child(9) { animation-delay: 0.3s; }

.testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.testimonial-card:nth-child(2) { animation-delay: 0.2s; }
.testimonial-card:nth-child(3) { animation-delay: 0.3s; }
.testimonial-card:nth-child(4) { animation-delay: 0.1s; }
.testimonial-card:nth-child(5) { animation-delay: 0.2s; }
.testimonial-card:nth-child(6) { animation-delay: 0.3s; }

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  .hero {
    padding: var(--spacing-lg) 0 var(--spacing-md);
  }

  .hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }

  .hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  .nav-links {
    display: none;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .section-header p {
    font-size: 1rem;
  }

  .cta-group {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }

  /* Reduce features section padding on mobile */
  .features-section {
    padding: var(--spacing-md) 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  /* Hide less important features on mobile */
  .feature-card:nth-child(n+7) {
    display: none;
  }

  /* Keep only essential testimonials on mobile */
  .testimonial-card:nth-child(n+4) {
    display: none;
  }

  /* Simplify value grid on mobile */
  .value-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  .value-item:nth-child(n+3) {
    display: none;
  }

  /* Reduce testimonial card padding */
  .testimonial-card {
    padding: 1.5rem;
  }

  /* Reduce feature card padding */
  .feature-card {
    padding: 1.75rem;
  }

  /* Adjust grid spacing */
  .grid {
    gap: 1.5rem;
    grid-template-columns: 1fr;
  }

  /* Tighten screenshot section */
  .screenshots-section {
    padding: var(--spacing-md) 0;
  }

  .screenshots-scroll {
    padding: 1rem 1rem 2rem;
    gap: 1rem;
  }

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

  /* Reduce hero subtitle size */
  .hero-subtitle {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    margin-bottom: 1rem;
  }

  .one-time-badge {
    font-size: 0.85rem;
    margin-top: 1rem;
  }

  /* Footer adjustments */
  footer {
    padding: 3rem 0 1.5rem;
  }

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

  .footer-col h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  /* Show More button for mobile */
  .show-more-btn {
    display: block;
    margin: 2rem auto 0;
    padding: 0.75rem 2rem;
    background: white;
    color: var(--gold-dark);
    border: 2px solid var(--gold);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
  }

  .show-more-btn:hover {
    background: var(--gold-light);
  }

  /* Show hidden items when expanded */
  .expanded .feature-card:nth-child(n+7),
  .expanded .testimonial-card:nth-child(n+4),
  .expanded .value-item:nth-child(n+3) {
    display: block;
  }

  .expanded .show-more-btn {
    display: none;
  }
}

/* Desktop: hide show more button */
@media (min-width: 769px) {
  .show-more-btn {
    display: none;
  }
}