/* ============================================
   Carousel Shop AI — Marketing Website Styles
   Delft Blue Palette
   ============================================ */

:root {
  --primary-dark: #0F2A4A;
  --primary-medium: #1B3A6B;
  --steel-blue: #4A6B8A;
  --muted-text: #6B7D8D;
  --light-bg: #EDF1F5;
  --border: #D4DEE8;
  --white: #FFFFFF;
  --cta-green: #7FB069;
  --cta-green-hover: #6A9A56;
  --font-stack: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ============================================
   Reset & Base
   ============================================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: var(--font-stack);
  color: var(--primary-dark);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

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

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

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  text-align: center;
}

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

.btn-primary:hover {
  background: var(--cta-green-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(127, 176, 105, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.btn-outline {
  background: transparent;
  color: var(--primary-medium);
  border: 2px solid var(--primary-medium);
}

.btn-outline:hover {
  background: var(--primary-medium);
  color: var(--white);
  transform: translateY(-1px);
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(15, 42, 74, 0.1);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary-dark);
}

.logo-img {
  height: 40px;
  width: 40px;
  object-fit: contain;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted-text);
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-dark);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-medium);
  border-radius: 1px;
}

.nav-cta {
  padding: 10px 24px;
  background: var(--cta-green);
  color: var(--white);
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.nav-cta:hover {
  background: var(--cta-green-hover);
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary-dark);
  transition: all 0.3s ease;
}

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

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

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

/* ============================================
   Hero
   ============================================ */

.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
  color: var(--white);
  padding: 160px 0 100px;
  text-align: center;
}

.hero-headline {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-subheadline {
  font-size: 1.2rem;
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto 40px;
  opacity: 0.9;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-note {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ============================================
   Section Titles
   ============================================ */

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--muted-text);
  margin-bottom: 56px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   Features
   ============================================ */

.features {
  padding: 100px 0;
  background: var(--white);
}

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

.feature-card {
  padding: 36px 28px;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: transparent;
  box-shadow: 0 8px 30px rgba(15, 42, 74, 0.1);
  transform: translateY(-4px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  color: var(--primary-medium);
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--muted-text);
  line-height: 1.6;
}

/* ============================================
   How It Works
   ============================================ */

.how-it-works {
  padding: 100px 0;
  background: var(--light-bg);
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  text-align: center;
  flex: 1;
  padding: 0 24px;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-medium);
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.step p {
  font-size: 0.95rem;
  color: var(--muted-text);
  line-height: 1.6;
}

.step-connector {
  width: 60px;
  height: 2px;
  background: var(--border);
  margin-top: 28px;
  flex-shrink: 0;
}

/* ============================================
   Pricing
   ============================================ */

.pricing {
  padding: 100px 0;
  background: var(--white);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto 40px;
}

.pricing-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 28px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  box-shadow: 0 8px 30px rgba(15, 42, 74, 0.1);
  transform: translateY(-4px);
}

.pricing-card-featured {
  border: 2px solid var(--primary-medium);
  box-shadow: 0 8px 30px rgba(15, 42, 74, 0.12);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-medium);
  color: var(--white);
  padding: 4px 20px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.pricing-header h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.pricing-price {
  margin-bottom: 8px;
}

.price-amount {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.price-period {
  font-size: 1rem;
  color: var(--muted-text);
}

.pricing-desc {
  font-size: 0.9rem;
  color: var(--muted-text);
  margin-bottom: 24px;
}

.pricing-features {
  text-align: left;
  margin-bottom: 32px;
  flex-grow: 1;
}

.pricing-features li {
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li + li {
  border-top: 1px solid var(--light-bg);
}

.check {
  color: var(--cta-green);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.pricing-card .btn {
  width: 100%;
}

.pricing-trial-note {
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted-text);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   About
   ============================================ */

.about {
  padding: 100px 0;
  background: var(--light-bg);
}

.about-logo {
  display: block;
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin: 0 auto 32px;
  border-radius: 16px;
}

.about-content {
  max-width: 720px;
  margin: 0 auto;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--steel-blue);
  margin-bottom: 20px;
}

.about-content p:last-child {
  margin-bottom: 0;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: 60px 0 24px;
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-logo-img {
  height: 48px;
  width: 48px;
  object-fit: contain;
  border-radius: 8px;
}

.footer-brand .logo-text {
  font-size: 1.15rem;
  font-weight: 700;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--steel-blue);
  line-height: 1.6;
  max-width: 280px;
}

.footer-links h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  color: var(--steel-blue);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--steel-blue);
}

/* ============================================
   Responsive — Tablet
   ============================================ */

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-headline {
    font-size: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* ============================================
   Responsive — Mobile
   ============================================ */

@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Mobile menu */
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    gap: 20px;
    box-shadow: 0 8px 30px rgba(15, 42, 74, 0.1);
  }

  .nav-cta.mobile-open {
    display: block;
    position: absolute;
    top: calc(72px + var(--menu-height, 200px));
    left: 24px;
    right: 24px;
    text-align: center;
  }

  .hero {
    padding: 120px 0 80px;
  }

  .hero-headline {
    font-size: 2rem;
  }

  .hero-subheadline {
    font-size: 1.05rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

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

  .steps {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .step-connector {
    width: 2px;
    height: 32px;
    margin: 0;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .hero-ctas .btn {
    width: 100%;
    max-width: 300px;
  }
}

/* ============================================
   Scroll Animations
   ============================================ */

.animate-hidden {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in {
  opacity: 1;
  transform: translateY(0);
}
