/* ==========================================================================
   Fork Yeah! — Landing Page Styles
   ========================================================================== */

/* ==========================================================================
   Section Header (shared)
   ========================================================================== */

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-black);
  line-height: var(--leading-tight);
  color: var(--brown);
  margin-bottom: var(--space-md);
}

.section-header__sub {
  font-size: var(--text-lg);
  color: var(--brown-muted);
  max-width: 500px;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .section-header__title {
    font-size: var(--text-4xl);
  }
}

@media (min-width: 1024px) {
  .section-header {
    margin-bottom: var(--space-4xl);
  }

  .section-header__title {
    font-size: var(--text-5xl);
  }
}

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

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + var(--space-3xl));
  padding-bottom: var(--space-3xl);
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(242, 106, 46, 0.06), transparent),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(78, 124, 89, 0.05), transparent),
    var(--cream);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero__content {
  max-width: 560px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 14px;
  background: var(--green-tint);
  color: var(--green);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-xl);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--weight-black);
  line-height: var(--leading-tight);
  color: var(--brown);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

.hero__title--accent {
  color: var(--orange);
  display: inline;
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--brown-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-2xl);
  max-width: 480px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xl);
}

.hero__app-store {
  display: inline-block;
  transition: all var(--duration-base) var(--ease-smooth);
  border-radius: var(--radius-md);
}

.hero__app-store:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.hero__app-store:active {
  transform: scale(0.97);
}

.hero__see-more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--brown-muted);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  transition: color var(--duration-fast);
}

.hero__see-more svg {
  transition: transform var(--duration-base) var(--ease-bounce);
}

.hero__see-more:hover {
  color: var(--orange);
}

.hero__see-more:hover svg {
  transform: translateY(3px);
}

/* Hero Visual: Phone Frame */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-frame {
  position: relative;
  width: 280px;
  padding: 16px 14px 20px;
  background: var(--warm-white);
  border-radius: var(--radius-2xl);
  border: 2px solid var(--divider);
  box-shadow: var(--shadow-xl);
}

.phone-frame__notch {
  width: 100px;
  height: 6px;
  background: var(--divider);
  border-radius: var(--radius-pill);
  margin: 0 auto var(--space-md);
}

.card-stack {
  position: relative;
  height: 240px;
  margin-bottom: var(--space-md);
}

.demo-card {
  position: absolute;
  inset: 0;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--duration-slow) var(--ease-smooth);
}

.demo-card--3 {
  transform: scale(0.9) translateY(16px);
  opacity: 0.4;
  z-index: 1;
}

.demo-card--2 {
  transform: scale(0.95) translateY(8px);
  opacity: 0.7;
  z-index: 2;
}

.demo-card--1 {
  transform: scale(1) translateY(0);
  opacity: 1;
  z-index: 3;
}

.demo-card__photo {
  height: 130px;
  position: relative;
}

.demo-card__photo--1 {
  background: linear-gradient(135deg, #F4B400 0%, #F26A2E 60%, #C62828 100%);
}

.demo-card__photo--2 {
  background: linear-gradient(135deg, #4E7C59 0%, #6B8E7F 60%, #F4B400 100%);
}

.demo-card__photo--3 {
  background: linear-gradient(135deg, #C62828 0%, #F26A2E 60%, #F4B400 100%);
}

.demo-card__info {
  padding: 12px 14px;
}

.demo-card__name {
  font-weight: var(--weight-bold);
  font-size: var(--text-base);
  color: var(--brown);
  margin-bottom: 4px;
}

.demo-card__meta {
  font-size: var(--text-xs);
  color: var(--brown-muted);
  margin-bottom: 4px;
}

.demo-card__status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  color: var(--green);
  font-weight: var(--weight-medium);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot--open {
  background: var(--green);
}

/* Swipe overlays */
.demo-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-black);
  border-radius: var(--radius-lg);
  opacity: 0;
  transition: opacity var(--duration-fast);
  pointer-events: none;
}

.demo-card__overlay--yeah {
  background: rgba(78, 124, 89, 0.15);
  color: var(--green);
  border: 3px solid var(--green);
}

.demo-card__overlay--no {
  background: rgba(198, 40, 40, 0.15);
  color: var(--red);
  border: 3px solid var(--red);
}

/* Phone action buttons */
.phone-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  padding-bottom: var(--space-sm);
}

.phone-action {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  transition: transform var(--duration-base) var(--ease-bounce);
}

.phone-action--no {
  background: var(--red-tint);
  color: var(--red);
  border: 2px solid var(--red);
}

.phone-action--meh {
  background: var(--yellow-tint);
  color: var(--brown);
  border: 2px solid var(--yellow);
}

.phone-action--yeah {
  background: var(--green);
  color: white;
  border: 2px solid var(--green);
}

/* Sparkles */
.sparkle {
  position: absolute;
  width: 20px;
  height: 20px;
  clip-path: polygon(50% 0%, 61% 35%, 100% 50%, 61% 65%, 50% 100%, 39% 65%, 0% 50%, 39% 35%);
}

.sparkle--1 {
  top: 10%;
  right: 5%;
  background: var(--yellow);
  animation: sparkle-float 3s ease-in-out infinite;
}

.sparkle--2 {
  top: 25%;
  right: 25%;
  width: 14px;
  height: 14px;
  background: var(--orange);
  animation: sparkle-float 3.5s ease-in-out infinite 0.5s;
}

.sparkle--3 {
  bottom: 25%;
  right: 10%;
  width: 16px;
  height: 16px;
  background: var(--green);
  animation: sparkle-float 4s ease-in-out infinite 1s;
}

.sparkle--4 {
  top: 5%;
  left: 5%;
  width: 12px;
  height: 12px;
  background: var(--orange);
  animation: sparkle-float 3.2s ease-in-out infinite 0.3s;
}

.sparkle--5 {
  bottom: 15%;
  left: 10%;
  width: 18px;
  height: 18px;
  background: var(--yellow);
  animation: sparkle-float 3.8s ease-in-out infinite 0.8s;
}

/* Hero grain */
.hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
}

/* Hero responsive */
@media (min-width: 768px) {
  .hero__title {
    font-size: var(--text-5xl);
  }

  .phone-frame {
    width: 300px;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding-top: var(--nav-height);
  }

  .hero__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
  }

  .hero__title {
    font-size: var(--text-6xl);
  }

  .phone-frame {
    width: 320px;
  }
}

@media (min-width: 1280px) {
  .hero__title {
    font-size: var(--text-7xl);
  }
}

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

.features {
  padding: var(--space-4xl) 0;
  background: var(--cream-dark);
  position: relative;
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.feature-card {
  background: var(--warm-white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--divider);
  transition: all var(--duration-base) var(--ease-smooth);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.feature-card__icon--orange {
  background: var(--orange-tint);
  color: var(--orange);
}

.feature-card__icon--green {
  background: var(--green-tint);
  color: var(--green);
}

.feature-card__icon--yellow {
  background: var(--yellow-tint);
  color: var(--yellow);
}

.feature-card__icon--red {
  background: var(--red-tint);
  color: var(--red);
}

.feature-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--brown);
  margin-bottom: var(--space-sm);
}

.feature-card__text {
  font-size: var(--text-sm);
  color: var(--brown-muted);
  line-height: var(--leading-relaxed);
}

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

@media (min-width: 1024px) {
  .features {
    padding: var(--space-5xl) 0;
  }

  .features__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
  }
}

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

.how-it-works {
  padding: var(--space-4xl) 0;
  position: relative;
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  max-width: 360px;
  margin: 0 auto;
}

.steps__connector {
  display: none;
}

.step {
  text-align: center;
}

.step__number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--orange);
  color: white;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-black);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  box-shadow: var(--shadow-glow-orange);
}

.step__demo {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.step__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--brown);
  margin-bottom: var(--space-sm);
}

.step__text {
  font-size: var(--text-sm);
  color: var(--brown-muted);
  line-height: var(--leading-relaxed);
}

/* Step Demo: Swipe */
.step-demo-swipe {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.step-demo-swipe__card {
  width: 120px;
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  animation: step-swipe-hint 3s ease-in-out infinite;
}

.step-demo-swipe__photo {
  height: 70px;
  background: linear-gradient(135deg, var(--orange), var(--yellow));
}

.step-demo-swipe__name {
  padding: 8px 10px;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--brown);
}

.step-demo-swipe__arrow {
  animation: step-arrow-bounce 3s ease-in-out infinite;
}

/* Step Demo: Rate */
.step-demo-rate {
  display: flex;
  gap: var(--space-sm);
}

.step-demo-rate__btn {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  cursor: default;
  border: 2px solid;
  transition: all var(--duration-base);
}

.step-demo-rate__btn--yeah {
  border-color: var(--green);
  color: var(--green);
  background: transparent;
}

.step-demo-rate__btn--yeah.step-demo-rate__btn--active {
  background: var(--green);
  color: white;
  box-shadow: var(--shadow-glow-green);
  animation: step-rate-pulse 2s ease-in-out infinite;
}

.step-demo-rate__btn--meh {
  border-color: var(--yellow);
  color: var(--brown);
  background: transparent;
}

.step-demo-rate__btn--no {
  border-color: var(--red);
  color: var(--red);
  background: transparent;
}

/* Step Demo: Rate Icons */
.step-demo-rate--icons {
  gap: var(--space-lg);
  align-items: flex-start;
  justify-content: center;
}

.step-demo-rate__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.step-demo-rate__icon {
  width: 48px;
  height: 48px;
  opacity: 0.4;
  transition: all var(--duration-base);
}

.step-demo-rate__icon--active {
  opacity: 1;
  transform: scale(1.1);
  animation: step-rate-pulse 2s ease-in-out infinite;
}

.step-demo-rate__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-align: center;
}

.step-demo-rate__label--yeah {
  color: var(--green);
}

.step-demo-rate__label--meh {
  color: var(--yellow);
}

.step-demo-rate__label--no {
  color: var(--red);
}

/* Step Demo: Vote */
.step-demo-vote {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.step-demo-vote__avatars {
  display: flex;
  gap: -8px;
}

.step-demo-vote__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  border: 3px solid var(--cream);
  margin-left: -8px;
}

.step-demo-vote__avatar:first-child {
  margin-left: 0;
}

.step-demo-vote__result {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--orange);
  animation: step-result-appear 3s ease-in-out infinite;
}

@media (min-width: 1024px) {
  .how-it-works {
    padding: var(--space-5xl) 0;
  }

  .steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    max-width: 100%;
  }

  .step {
    flex: 1;
  }

  .steps__connector {
    display: flex;
    align-items: center;
    width: 60px;
    flex-shrink: 0;
    padding-top: 24px;
  }
}

/* ==========================================================================
   Ratings
   ========================================================================== */

.ratings {
  padding: var(--space-4xl) 0;
  background: var(--cream-dark);
}

.ratings__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  max-width: 900px;
  margin: 0 auto;
}

.rating-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-2xl) var(--space-xl);
  background: var(--warm-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--divider);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: all var(--duration-base) var(--ease-smooth);
}

.rating-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.rating-card--yeah::before { background: var(--green); }
.rating-card--meh::before  { background: var(--yellow); }
.rating-card--no::before   { background: var(--red); }

.rating-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.rating-card__icon {
  margin-bottom: var(--space-lg);
}

.rating-card__icon--emoji {
  font-size: 64px;
  line-height: 1;
}

.rating-card__label {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-black);
  margin-bottom: var(--space-sm);
}

.rating-card__label--yeah { color: var(--green); }
.rating-card__label--meh  { color: var(--yellow); }
.rating-card__label--no   { color: var(--red); }

.rating-card__desc {
  font-size: var(--text-sm);
  color: var(--brown-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-lg);
  max-width: 280px;
}

.rating-card__tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
}

.rating-card__tag--yeah {
  background: var(--green-tint);
  color: var(--green);
}

.rating-card__tag--meh {
  background: var(--yellow-tint);
  color: var(--brown);
}

.rating-card__tag--no {
  background: var(--red-tint);
  color: var(--red);
}

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

@media (min-width: 1024px) {
  .ratings {
    padding: var(--space-5xl) 0;
  }
}

/* ==========================================================================
   Trust Strip
   ========================================================================== */

.trust-strip {
  background: var(--brown);
  color: var(--cream);
  padding: var(--space-xl) 0;
}

.trust-strip__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-lg);
}

.trust-strip__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.trust-strip__divider {
  width: 1px;
  height: 20px;
  background: rgba(250, 243, 232, 0.2);
  display: none;
}

@media (min-width: 640px) {
  .trust-strip__divider {
    display: block;
  }

  .trust-strip__inner {
    gap: var(--space-2xl);
  }
}

/* ==========================================================================
   Final CTA
   ========================================================================== */

.final-cta {
  padding: var(--space-5xl) 0;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(242, 106, 46, 0.08), transparent),
    radial-gradient(ellipse 60% 80% at 30% 70%, rgba(244, 180, 0, 0.05), transparent),
    var(--cream);
}

.final-cta__inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.final-cta__logo {
  border-radius: var(--radius-xl);
  margin: 0 auto var(--space-xl);
  box-shadow: var(--shadow-lg);
}

.final-cta__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-black);
  color: var(--brown);
  margin-bottom: var(--space-md);
}

.final-cta__subtitle {
  font-size: var(--text-xl);
  color: var(--brown-muted);
  margin-bottom: var(--space-2xl);
}

.final-cta__button {
  display: inline-block;
  transition: all var(--duration-base) var(--ease-smooth);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
}

.final-cta__button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.final-cta__button:active {
  transform: scale(0.97);
}

.final-cta__note {
  font-size: var(--text-sm);
  color: var(--brown-muted);
}

/* CTA sparkles */
.sparkle--cta-1 {
  top: 15%;
  left: 10%;
  width: 22px;
  height: 22px;
  background: var(--yellow);
  animation: sparkle-float 3.5s ease-in-out infinite;
}

.sparkle--cta-2 {
  top: 20%;
  right: 12%;
  width: 16px;
  height: 16px;
  background: var(--green);
  animation: sparkle-float 4s ease-in-out infinite 0.6s;
}

.sparkle--cta-3 {
  bottom: 25%;
  left: 15%;
  width: 14px;
  height: 14px;
  background: var(--orange);
  animation: sparkle-float 3s ease-in-out infinite 1.2s;
}

.sparkle--cta-4 {
  bottom: 18%;
  right: 18%;
  width: 20px;
  height: 20px;
  background: var(--yellow);
  animation: sparkle-float 3.8s ease-in-out infinite 0.3s;
}

@media (min-width: 768px) {
  .final-cta__title {
    font-size: var(--text-5xl);
  }
}
