/* ===== Fonts ===== */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/fraunces.woff2') format('woff2');
}

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/fraunces.woff2') format('woff2');
}

/* ===== Design Tokens ===== */
:root {
  --color-bg: #1e1b18;
  --color-bg-card: #2a2622;
  --color-accent: #d4896a;
  --color-accent-hover: #e09a7d;
  --color-text-primary: #f0ebe5;
  --color-text-secondary: #a89e94;
  --color-border: #3a3530;
  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

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

ul {
  list-style: none;
}

/* ===== Typography ===== */
h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--color-text-primary);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
}

p {
  color: var(--color-text-secondary);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
}

/* ===== Layout ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

/* ===== Scroll Animations ===== */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== 1. Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(30, 27, 24, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  padding: 14px 0;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(30, 27, 24, 0.95);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.inline-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: inline-block;
  vertical-align: middle;
  margin: 0 2px;
}

.trust-badges {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--color-text-secondary);
}

.trust-badges span {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.badge-dot {
  display: none;
}

@media (min-width: 768px) {
  .badge-dot {
    display: inline;
  }
}

/* ===== 2. Hero ===== */
.hero {
  padding: 80px 0 60px;
}

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

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

.hero-text h1 {
  margin-bottom: 20px;
}

.hero-text h1 .accent {
  color: var(--color-accent);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

.cta-button:hover {
  background: var(--color-accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 137, 106, 0.3);
}

.cta-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.hero-reassurance {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

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

.hero-image img {
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  max-width: 380px;
  width: 100%;
}

@media (min-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }

  .hero-text {
    text-align: left;
  }

  .hero-subtitle {
    margin-left: 0;
  }
}

/* ===== Card Grids (Problem + Solution) ===== */
.card-grid {
  display: grid;
  gap: 24px;
}

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

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

.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(212, 137, 106, 0.08);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Solution cards — shimmer top border is applied via ::before in animations section */

/* ===== 5. Trusted By ===== */
.trusted-section {
  text-align: center;
  padding: 60px 0;
}

.trusted-section h2 {
  margin-bottom: 20px;
}

.trusted-subtitle {
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

.trusted-badges {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.trusted-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 50px;
  padding: 10px 20px;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

/* ===== 6. How It Works ===== */
.steps-grid {
  display: grid;
  gap: 32px;
  justify-items: center;
  text-align: center;
}

@media (min-width: 1080px) {
  .steps-grid {
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: flex-start;
    gap: 24px;
  }
}

.step {
  max-width: 280px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.step h3 {
  margin-bottom: 8px;
}

.step-arrow {
  display: none;
  font-size: 1.5rem;
  color: var(--color-text-secondary);
  padding-top: 12px;
}

@media (min-width: 1080px) {
  .step-arrow {
    display: block;
  }
}

/* ===== 7. Product Showcase ===== */
.showcase {
  text-align: center;
}

.showcase-images {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.showcase-images img {
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  max-width: 480px;
  width: 100%;
  flex: 1 1 300px;
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.benefit-check {
  color: var(--color-accent);
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===== 8. FAQ ===== */
.faq {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-text-primary);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::marker {
  display: none;
  content: '';
}

.faq-icon {
  font-size: 1.4rem;
  color: var(--color-accent);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq-item[open] .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer-inner p {
  padding-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== 9. Final CTA ===== */
.final-cta {
  text-align: center;
  padding: 80px 0;
}

.final-cta h2 {
  margin-bottom: 28px;
  font-size: clamp(2rem, 4.5vw, 3rem);
}

.final-cta .cta-button {
  margin-bottom: 16px;
}

.final-cta-reassurance {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

/* ===== 10. Footer ===== */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 40px 0;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

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

.footer-links a:hover::after {
  width: 100%;
}

.footer-credit {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

/* ===== Animations & Micro-Interactions ===== */

/* --- 1. Hero Entrance Sequence --- */
.hero-text.fade-in-up.visible h1 {
  transition-delay: 0s;
}

.hero-text.fade-in-up.visible .hero-subtitle {
  transition-delay: 0.12s;
}

.hero-text.fade-in-up.visible .cta-button {
  transition-delay: 0.24s;
}

.hero-text.fade-in-up.visible .hero-reassurance {
  transition-delay: 0.36s;
}

.hero-text.fade-in-up > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-text.fade-in-up.visible > * {
  opacity: 1;
  transform: translateY(0);
}

.hero-image.fade-in-up.visible {
  transition-delay: 0.3s;
}

/* Hero image float */
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero-image.fade-in-up.visible img {
  animation: hero-float 6s ease-in-out infinite;
  animation-delay: 1s;
}

/* Accent text glow */
.hero-text h1 .accent {
  transition: text-shadow 0.8s ease;
  text-shadow: 0 0 0 transparent;
}

.hero-text.fade-in-up.visible h1 .accent {
  text-shadow: 0 0 20px rgba(212, 137, 106, 0.3);
}

/* Hero ambient glow */
.hero {
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(212, 137, 106, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* Hero image perspective */
.hero-image img {
  transition: transform 0.5s ease;
  transform: perspective(800px) rotateX(2deg);
}

.hero-image:hover img {
  transform: perspective(800px) rotateX(0deg);
}

.hero-image.fade-in-up.visible img {
  animation: hero-float 6s ease-in-out infinite;
  animation-delay: 1s;
}

/* --- 2. Staggered Card Reveals --- */
.card.fade-in-up {
  transition-delay: var(--stagger-delay, 0s);
}

/* Emoji icon bounce */
@keyframes icon-bounce {
  0% { transform: scale(0.8); }
  60% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.card .card-icon {
  display: inline-block;
  transform: scale(0.8);
  opacity: 0;
  transition: none;
}

.card.fade-in-up.visible .card-icon {
  animation: icon-bounce 0.4s ease forwards;
  animation-delay: calc(var(--stagger-delay, 0s) + 0.2s);
  opacity: 1;
}

/* --- 3. Enhanced Hover States --- */

/* CTA button press */
.cta-button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(212, 137, 106, 0.2);
  transition-duration: 0.1s;
}

/* CTA focus ring */
.cta-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--color-bg), 0 0 0 5px var(--color-accent);
}

/* Logo hover */
.logo {
  transition: filter 0.3s ease;
}

.logo:hover .logo-icon {
  filter: drop-shadow(0 0 6px rgba(212, 137, 106, 0.4));
}

.logo-icon {
  transition: filter 0.3s ease;
}

/* Trust badges hover */
.trust-badges span {
  transition: color 0.3s ease;
}

.trust-badges span:hover {
  color: var(--color-text-primary);
}

/* Showcase images hover */
.showcase-images img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.showcase-images img:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.5);
}

/* --- 4. How It Works Section --- */

/* Step number pulse */
@keyframes step-pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 137, 106, 0.4); }
  50% { transform: scale(1.08); box-shadow: 0 0 0 12px rgba(212, 137, 106, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 137, 106, 0); }
}

.steps-grid.fade-in-up.visible .step-number {
  animation: step-pulse 0.6s ease forwards;
}

.steps-grid.fade-in-up.visible .step:nth-child(1) .step-number {
  animation-delay: 0.1s;
}

.steps-grid.fade-in-up.visible .step:nth-child(3) .step-number {
  animation-delay: 0.4s;
}

.steps-grid.fade-in-up.visible .step:nth-child(5) .step-number {
  animation-delay: 0.7s;
}

/* Arrow slide-in */
.step-arrow {
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.steps-grid.fade-in-up.visible .step-arrow:nth-child(2) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.3s;
}

.steps-grid.fade-in-up.visible .step-arrow:nth-child(4) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.6s;
}

/* --- 5. Showcase & Benefits --- */

/* Benefits stagger */
.benefits-list .benefit-item {
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.benefits-list.fade-in-up.visible .benefit-item:nth-child(1) {
  opacity: 1; transform: translateX(0); transition-delay: 0.1s;
}

.benefits-list.fade-in-up.visible .benefit-item:nth-child(2) {
  opacity: 1; transform: translateX(0); transition-delay: 0.25s;
}

.benefits-list.fade-in-up.visible .benefit-item:nth-child(3) {
  opacity: 1; transform: translateX(0); transition-delay: 0.4s;
}

/* Checkmark bounce */
@keyframes check-bounce {
  0% { transform: scale(0.5); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.benefit-check {
  transform: scale(0.5);
}

.benefits-list.fade-in-up.visible .benefit-item:nth-child(1) .benefit-check {
  animation: check-bounce 0.4s ease forwards;
  animation-delay: 0.15s;
}

.benefits-list.fade-in-up.visible .benefit-item:nth-child(2) .benefit-check {
  animation: check-bounce 0.4s ease forwards;
  animation-delay: 0.3s;
}

.benefits-list.fade-in-up.visible .benefit-item:nth-child(3) .benefit-check {
  animation: check-bounce 0.4s ease forwards;
  animation-delay: 0.45s;
}

/* --- 6. FAQ Enhancements --- */

/* Hover indicator — left border */
.faq-item summary {
  position: relative;
}

.faq-item summary::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 0;
  width: 2px;
  height: 0;
  background: var(--color-accent);
  transition: height 0.3s ease;
}

.faq-item summary:hover::before {
  height: 100%;
}

/* Icon scale on hover/open */
.faq-icon {
  transition: transform var(--transition);
}

.faq-item summary:hover .faq-icon {
  transform: scale(1.1);
}

.faq-item[open] summary .faq-icon {
  transform: rotate(45deg) scale(0.95);
}

/* --- 7. Solution Card Shimmer --- */
@keyframes shimmer-shift {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.solution-card {
  position: relative;
  border-top: none;
  overflow: hidden;
}

.solution-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-hover), var(--color-accent));
  background-size: 200% 100%;
  animation: shimmer-shift 8s linear infinite;
}

/* --- 8. Ambient & Atmosphere --- */

/* Section dividers */
#problem,
#solution,
#how-it-works,
.showcase,
#faq {
  position: relative;
}

#problem::before,
#solution::before,
#how-it-works::before,
.showcase::before,
#faq::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 137, 106, 0.4), transparent);
}

/* Final CTA glow */
.final-cta {
  position: relative;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(212, 137, 106, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* Trusted section breathe */
@keyframes section-breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

.trusted-section h2 {
  animation: section-breathe 4s ease-in-out infinite;
}

/* --- 10. Heart Emoji Pulse --- */
@keyframes heartbeat {
  0%, 80%, 100% { transform: scale(1); }
  10% { transform: scale(1.15); }
  20% { transform: scale(1); }
  30% { transform: scale(1.1); }
  40% { transform: scale(1); }
}

.footer-heart {
  display: inline-block;
  animation: heartbeat 3s ease-in-out infinite;
}

/* --- 11. Reduced Motion Overrides --- */
@media (prefers-reduced-motion: reduce) {
  .hero-image.fade-in-up.visible img {
    animation: none;
  }

  .hero-text.fade-in-up > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .card .card-icon {
    opacity: 1;
    transform: none;
  }

  .card.fade-in-up.visible .card-icon {
    animation: none;
  }

  .steps-grid.fade-in-up.visible .step-number {
    animation: none;
  }

  .step-arrow {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .benefits-list .benefit-item {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .benefit-check {
    transform: none;
  }

  .benefits-list.fade-in-up.visible .benefit-item .benefit-check {
    animation: none;
  }

  .solution-card::before {
    animation: none;
  }

  .trusted-section h2 {
    animation: none;
  }

  .footer-heart {
    animation: none;
  }

  .hero-image img {
    transform: none;
    transition: none;
  }

  .site-header {
    transition: none;
  }

  .showcase-images img {
    transition: none;
  }

  .footer-links a::after {
    transition: none;
  }

  .faq-item summary::before {
    transition: none;
  }

  .card {
    transition: none;
  }

  .cta-button {
    transition: none;
  }
}
