/* ========================================
   Glimmer Cards - Main Stylesheet
   ======================================== */

/* CSS Custom Properties */
:root {
  /* Colors */
  --color-bg: #FFFFFF;
  --color-text: #111111;
  --color-muted: #444444;
  --color-light-gray: #f5f5f5;
  --color-border: #e0e0e0;

  /* Rainbow gradient for accents */
  --gradient-rainbow: linear-gradient(
    135deg,
    rgba(255, 182, 193, 0.3) 0%,
    rgba(255, 218, 185, 0.3) 20%,
    rgba(255, 255, 186, 0.3) 40%,
    rgba(186, 255, 201, 0.3) 60%,
    rgba(186, 225, 255, 0.3) 80%,
    rgba(221, 186, 255, 0.3) 100%
  );

  --gradient-rainbow-subtle: linear-gradient(
    135deg,
    rgba(255, 182, 193, 0.15) 0%,
    rgba(255, 218, 185, 0.15) 20%,
    rgba(255, 255, 186, 0.15) 40%,
    rgba(186, 255, 201, 0.15) 60%,
    rgba(186, 225, 255, 0.15) 80%,
    rgba(221, 186, 255, 0.15) 100%
  );

  --gradient-rainbow-vivid: linear-gradient(
    135deg,
    #ffb6c1 0%,
    #ffdab9 20%,
    #ffffba 40%,
    #baffca 60%,
    #bae1ff 80%,
    #ddbaff 100%
  );

  /* Typography */
  --font-heading: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --section-spacing: 6rem;
  --container-max: 1200px;
  --container-padding: 1.5rem;

  /* Borders & Shadows */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
}

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

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 1rem;
}

p {
  margin: 0 0 1rem;
}

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

a:hover {
  color: var(--color-muted);
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* Accessibility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
}

/* ========================================
   Layout
   ======================================== */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--section-spacing) 0;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
  box-shadow: var(--shadow-subtle);
}

.btn-primary:hover {
  background: var(--color-muted);
  border-color: var(--color-muted);
  color: var(--color-bg);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-text);
}

.btn-secondary:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* ========================================
   Header
   ======================================== */

.header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
}

.logo:hover {
  color: var(--color-text);
}

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

.nav-list a {
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav-list a:hover {
  color: var(--color-muted);
}

.header-cta {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

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

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition-base);
}

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

.hero {
  padding: 4rem 0 var(--section-spacing);
  background: var(--gradient-rainbow-subtle);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-headline {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.hero-subheadline {
  font-size: 1.5rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.hero-subheadline em {
  font-style: normal;
  color: var(--color-text);
  font-weight: 500;
}

.hero-body {
  font-size: 1.125rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.trust-icon {
  width: 20px;
  height: 20px;
  color: var(--color-text);
}

.hero-media {
  display: flex;
  justify-content: center;
}

.hero-image {
  max-width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ========================================
   Eyebrow & Section Headlines
   ======================================== */

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}

.section-headline {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

/* ========================================
   Steps Section
   ======================================== */

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

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin: 3rem 0;
}

.step {
  text-align: center;
  padding: 2rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--gradient-rainbow-vivid);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.step-text {
  color: var(--color-muted);
  margin: 0;
}

.supporting-note {
  font-size: 1.125rem;
  color: var(--color-muted);
  font-style: italic;
  margin: 0;
}

/* ========================================
   Product Section
   ======================================== */

.product-section {
  background: var(--gradient-rainbow-subtle);
}

.product-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.product-body {
  font-size: 1.125rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.product-bullets {
  margin-bottom: 1.5rem;
}

.product-bullets li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-muted);
}

.product-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 8px;
  height: 8px;
  background: var(--gradient-rainbow-vivid);
  border-radius: 50%;
}

.price-display {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.price-note {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-muted);
}

.product-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Gallery */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gallery-main {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.gallery-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.gallery-image.active {
  opacity: 1;
}

.gallery-thumbs {
  display: flex;
  gap: 0.75rem;
}

.gallery-thumb {
  width: 80px;
  height: 60px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-bg);
  padding: 0;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.gallery-thumb:hover,
.gallery-thumb.active {
  border-color: var(--color-text);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========================================
   Content Band
   ======================================== */

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

.content-body {
  font-size: 1.25rem;
  color: var(--color-muted);
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.callout {
  background: var(--color-light-gray);
  border-radius: var(--radius-md);
  padding: 2rem;
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.callout-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.callout-text {
  color: var(--color-muted);
  margin: 0;
}

/* ========================================
   Quotes Section
   ======================================== */

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

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.quote-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: left;
  margin: 0;
  box-shadow: var(--shadow-subtle);
}

.quote-text {
  font-size: 1.0625rem;
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.quote-attribution {
  font-size: 0.875rem;
  font-style: normal;
  color: var(--color-muted);
}

.quote-attribution::before {
  content: '— ';
}

/* ========================================
   Newsletter Section
   ======================================== */

.newsletter-section {
  background: var(--gradient-rainbow);
  text-align: center;
}

.newsletter-inner {
  max-width: 500px;
}

.newsletter-body {
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.newsletter-form .form-group {
  display: flex;
  gap: 0.75rem;
}

.form-input {
  flex: 1;
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  transition: border-color var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-text);
}

.form-input::placeholder {
  color: var(--color-muted);
}

.consent-text {
  font-size: 0.8125rem;
  color: var(--color-muted);
  margin-top: 0.75rem;
  margin-bottom: 0;
}

/* ========================================
   CTA Band
   ======================================== */

.cta-band {
  background: var(--color-text);
  color: var(--color-bg);
  text-align: center;
}

.cta-inner {
  max-width: 700px;
}

.cta-headline {
  font-size: 2.5rem;
  color: var(--color-bg);
}

.cta-body {
  font-size: 1.125rem;
  opacity: 0.85;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-band .btn-primary {
  background: var(--color-bg);
  color: var(--color-text);
  border-color: var(--color-bg);
}

.cta-band .btn-primary:hover {
  background: var(--color-light-gray);
  border-color: var(--color-light-gray);
}

.cta-band .btn-secondary {
  color: var(--color-bg);
  border-color: var(--color-bg);
}

.cta-band .btn-secondary:hover {
  background: var(--color-bg);
  color: var(--color-text);
}

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

.footer {
  background: var(--color-light-gray);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.footer-links,
.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-links a,
.footer-legal a {
  font-size: 0.9375rem;
  color: var(--color-muted);
}

.footer-links a:hover,
.footer-legal a:hover {
  color: var(--color-text);
}

.footer-copyright {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin: 0;
}

/* ========================================
   Mobile Menu Overlay
   ======================================== */

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.98);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

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

.mobile-nav ul {
  margin-bottom: 2rem;
}

.mobile-nav li {
  margin-bottom: 1.5rem;
}

.mobile-nav a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
}

/* ========================================
   Responsive Styles
   ======================================== */

@media (max-width: 1024px) {
  :root {
    --section-spacing: 5rem;
  }

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

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

  .steps {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --section-spacing: 4rem;
  }

  /* Header */
  .nav,
  .header-cta {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

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

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

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

  /* Hero */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-content {
    order: 1;
  }

  .hero-media {
    order: 2;
  }

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

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

  .hero-ctas {
    flex-direction: column;
  }

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

  .trust-row {
    gap: 1rem;
  }

  /* Steps */
  .steps {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .step {
    padding: 1.5rem;
  }

  /* Product */
  .product-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .product-gallery {
    order: -1;
  }

  .product-ctas {
    flex-direction: column;
  }

  .product-ctas .btn {
    width: 100%;
  }

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

  /* Newsletter */
  .newsletter-form .form-group {
    flex-direction: column;
  }

  /* CTA Band */
  .cta-headline {
    font-size: 2rem;
  }

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

  .cta-buttons .btn {
    width: 100%;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 2rem;
  }

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

  .trust-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .gallery-thumbs {
    justify-content: center;
  }

  .gallery-thumb {
    width: 60px;
    height: 45px;
  }
}

/* ========================================
   Sticky Mobile CTA (Optional)
   ======================================== */

@media (max-width: 768px) {
  .sticky-mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--color-border);
    z-index: 50;
  }

  .sticky-mobile-cta .btn {
    width: 100%;
  }

  /* Add bottom padding to body when sticky CTA is present */
  body.has-sticky-cta {
    padding-bottom: 80px;
  }
}
