/* ============================================
   MEOW FICTION — Design System & Styles
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:wght@300;400;500;600;700&display=swap');

/* --- Design Tokens --- */
:root {
  /* Colors */
  --color-bg-dark: #16132B;
  --color-bg-section: #1E1A36;
  --color-bg-card: #2A2545;
  --color-amber: #F59E0B;
  --color-amber-light: #FCD34D;
  --color-coral: #F43F5E;
  --color-coral-dark: #E11D48;
  --color-teal: #14B8A6;
  --color-teal-dark: #0D9488;
  --color-cream: #FEF3C7;
  --color-cream-soft: #FFFBEB;
  --color-text-primary: #F8FAFC;
  --color-text-secondary: #CBD5E1;
  --color-text-muted: #94A3B8;
  --color-border: rgba(245, 158, 11, 0.15);

  /* Typography */
  --font-display: 'Fredoka', sans-serif;
  --font-body: 'Nunito', sans-serif;

  /* Spacing (8-point grid) */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 80px;
  --space-5xl: 120px;

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-glow-amber: 0 0 40px rgba(245, 158, 11, 0.2);
  --shadow-glow-coral: 0 0 40px rgba(244, 63, 94, 0.2);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.33, 1, 0.68, 1);
  --transition-base: 300ms cubic-bezier(0.33, 1, 0.68, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

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

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

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1rem, 2vw, 1.25rem); }

p {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--color-text-secondary);
  max-width: 65ch;
}

/* --- Accent Text --- */
.text-amber { color: var(--color-amber); }
.text-coral { color: var(--color-coral); }
.text-teal { color: var(--color-teal); }
.text-cream { color: var(--color-cream); }

/* --- Scroll Animation Base --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.33, 1, 0.68, 1),
              transform 0.7s cubic-bezier(0.33, 1, 0.68, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.7s cubic-bezier(0.33, 1, 0.68, 1),
              transform 0.7s cubic-bezier(0.33, 1, 0.68, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.7s cubic-bezier(0.33, 1, 0.68, 1),
              transform 0.7s cubic-bezier(0.33, 1, 0.68, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.6s ease-out,
              transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.delay-1 { transition-delay: 100ms; }
.delay-2 { transition-delay: 200ms; }
.delay-3 { transition-delay: 300ms; }
.delay-4 { transition-delay: 400ms; }
.delay-5 { transition-delay: 500ms; }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: var(--space-md);
  left: var(--space-md);
  right: var(--space-md);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  background: rgba(22, 19, 43, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.nav.scrolled {
  background: rgba(22, 19, 43, 0.95);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-amber);
  cursor: pointer;
}

.nav-brand svg {
  width: 32px;
  height: 32px;
}

.nav-overlay {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
  cursor: pointer;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-amber);
  border-radius: 2px;
  transition: width var(--transition-base);
}

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

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

.nav-cta {
  padding: 10px 24px;
  background: var(--color-coral);
  color: white;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: transform var(--transition-spring), background var(--transition-fast), box-shadow var(--transition-base);
}

.nav-cta:hover {
  background: var(--color-coral-dark);
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-glow-coral);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-fast);
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5xl) var(--space-lg) var(--space-4xl);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse-glow 6s ease-in-out infinite;
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse-glow 8s ease-in-out infinite reverse;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 20px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-amber);
  margin-bottom: var(--space-lg);
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero-title {
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

.hero-title .line-break {
  display: block;
}

.hero-highlight {
  position: relative;
  display: inline-block;
  color: var(--color-amber);
}

.hero-highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: -4px;
  right: -4px;
  height: 12px;
  background: rgba(245, 158, 11, 0.2);
  border-radius: 4px;
  z-index: -1;
  transform: rotate(-1deg);
}

.hero-description {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--color-text-secondary);
  margin: 0 auto var(--space-xl);
  max-width: 600px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 16px 36px;
  background: var(--color-coral);
  color: white;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: transform var(--transition-spring), background var(--transition-fast), box-shadow var(--transition-base);
}

.btn-primary:hover {
  background: var(--color-coral-dark);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 30px rgba(244, 63, 94, 0.35);
}

.btn-primary svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-spring);
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 16px 36px;
  background: transparent;
  color: var(--color-text-primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  border: 2px solid rgba(248, 250, 252, 0.2);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: transform var(--transition-spring), border-color var(--transition-fast), background var(--transition-fast);
}

.btn-secondary:hover {
  border-color: var(--color-amber);
  background: rgba(245, 158, 11, 0.08);
  transform: translateY(-3px);
}

.btn-secondary svg {
  width: 20px;
  height: 20px;
}

.hero-image-wrapper {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.hero-image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card), var(--shadow-glow-amber);
  transition: transform var(--transition-spring);
}

.hero-image:hover {
  transform: scale(1.02) rotate(-0.5deg);
}

/* Floating card decorations */
.floating-card {
  position: absolute;
  width: 80px;
  height: 110px;
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  border: 2px solid var(--color-border);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  z-index: 2;
}

.floating-card-1 {
  top: -20px;
  left: -40px;
  transform: rotate(-12deg);
  animation: float-card 5s ease-in-out infinite;
  border-color: rgba(245, 158, 11, 0.3);
}

.floating-card-2 {
  top: 30%;
  right: -50px;
  transform: rotate(8deg);
  animation: float-card 6s ease-in-out 1s infinite;
  border-color: rgba(244, 63, 94, 0.3);
}

.floating-card-3 {
  bottom: -15px;
  left: 15%;
  transform: rotate(5deg);
  animation: float-card 7s ease-in-out 0.5s infinite;
  border-color: rgba(20, 184, 166, 0.3);
}

@keyframes float-card {
  0%, 100% { transform: translateY(0) rotate(var(--rotate, -12deg)); }
  50% { transform: translateY(-15px) rotate(calc(var(--rotate, -12deg) + 3deg)); }
}

.floating-card-1 { --rotate: -12deg; }
.floating-card-2 { --rotate: 8deg; }
.floating-card-3 { --rotate: 5deg; }

/* Hero stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-3xl);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

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

.hero-stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-amber);
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* --- SECTION SHARED --- */
.section {
  padding: var(--space-5xl) var(--space-lg);
  position: relative;
}

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

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 16px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-amber);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}

.section-title {
  margin-bottom: var(--space-md);
}

.section-description {
  margin: 0 auto;
  text-align: center;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* --- ABOUT / WHAT IS --- */
.about-section {
  background: var(--color-bg-section);
}

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

.about-image-wrapper {
  position: relative;
}

.about-image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.about-image-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  padding: 12px 24px;
  background: var(--color-amber);
  color: var(--color-bg-dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transform: rotate(3deg);
}

.about-text h2 {
  margin-bottom: var(--space-lg);
}

.about-text p {
  margin-bottom: var(--space-md);
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.about-feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.1);
}

.about-feature-icon svg {
  width: 22px;
  height: 22px;
  color: var(--color-amber);
}

.about-feature-text h4 {
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.about-feature-text p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* --- HOW TO PLAY --- */
.how-to-play-section {
  background: var(--color-bg-dark);
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  position: relative;
}

/* Connector line between steps */
.steps-container::before {
  content: '';
  position: absolute;
  top: 60px;
  left: 16.66%;
  right: 16.66%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-amber), var(--color-coral), var(--color-teal));
  border-radius: 2px;
}

.step-card {
  position: relative;
  text-align: center;
  padding: var(--space-xl);
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: transform var(--transition-spring), box-shadow var(--transition-base);
  cursor: pointer;
}

.step-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow-amber);
}

.step-number {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

.step-card:nth-child(1) .step-number {
  background: var(--color-amber);
  color: var(--color-bg-dark);
}

.step-card:nth-child(2) .step-number {
  background: var(--color-coral);
  color: white;
}

.step-card:nth-child(3) .step-number {
  background: var(--color-teal);
  color: white;
}

.step-card h3 {
  margin-bottom: var(--space-sm);
}

.step-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin: 0 auto;
}

.step-icon {
  margin: var(--space-md) auto 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon svg {
  width: 36px;
  height: 36px;
  opacity: 0.6;
}

/* --- CARD TYPES --- */
.card-types-section {
  background: var(--color-bg-section);
}

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

.card-types-image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.card-types-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.card-type-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  border-left: 4px solid;
  transition: transform var(--transition-spring), box-shadow var(--transition-base);
  cursor: pointer;
}

.card-type-item:hover {
  transform: translateX(8px);
}

.card-type-item:nth-child(1) {
  border-left-color: var(--color-amber);
}

.card-type-item:nth-child(2) {
  border-left-color: var(--color-teal);
}

.card-type-item:nth-child(3) {
  border-left-color: var(--color-coral);
}

.card-type-item:nth-child(4) {
  border-left-color: var(--color-cream);
}

.card-type-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.card-type-item:nth-child(1) .card-type-icon {
  background: rgba(245, 158, 11, 0.12);
  color: var(--color-amber);
}

.card-type-item:nth-child(2) .card-type-icon {
  background: rgba(20, 184, 166, 0.12);
  color: var(--color-teal);
}

.card-type-item:nth-child(3) .card-type-icon {
  background: rgba(244, 63, 94, 0.12);
  color: var(--color-coral);
}

.card-type-item:nth-child(4) .card-type-icon {
  background: rgba(254, 243, 199, 0.12);
  color: var(--color-cream);
}

.card-type-icon svg {
  width: 24px;
  height: 24px;
}

.card-type-text h4 {
  margin-bottom: 4px;
}

.card-type-text p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* --- TESTIMONIALS --- */
.testimonials-section {
  background: var(--color-bg-dark);
}

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

.testimonial-card {
  padding: var(--space-xl);
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: transform var(--transition-spring), box-shadow var(--transition-base);
  cursor: pointer;
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow-amber);
}

.testimonial-quote {
  font-size: 3rem;
  font-family: var(--font-display);
  color: var(--color-amber);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.testimonial-text {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-amber), var(--color-coral));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
}

.testimonial-name {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-text-primary);
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-md);
}

.testimonial-stars svg {
  width: 16px;
  height: 16px;
  fill: var(--color-amber);
}

/* --- FEATURES GRID --- */
.features-section {
  background: var(--color-bg-section);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.feature-card {
  padding: var(--space-xl);
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: transform var(--transition-spring), box-shadow var(--transition-base), border-color var(--transition-fast);
  cursor: pointer;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-amber);
  border-color: rgba(245, 158, 11, 0.3);
}

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

.feature-card:nth-child(1) .feature-card-icon { background: rgba(245, 158, 11, 0.12); }
.feature-card:nth-child(2) .feature-card-icon { background: rgba(244, 63, 94, 0.12); }
.feature-card:nth-child(3) .feature-card-icon { background: rgba(20, 184, 166, 0.12); }
.feature-card:nth-child(4) .feature-card-icon { background: rgba(254, 243, 199, 0.12); }

.feature-card-icon svg {
  width: 28px;
  height: 28px;
}

.feature-card:nth-child(1) .feature-card-icon svg { color: var(--color-amber); }
.feature-card:nth-child(2) .feature-card-icon svg { color: var(--color-coral); }
.feature-card:nth-child(3) .feature-card-icon svg { color: var(--color-teal); }
.feature-card:nth-child(4) .feature-card-icon svg { color: var(--color-cream); }

.feature-card h3 {
  margin-bottom: var(--space-sm);
}

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

/* --- CTA SECTION --- */
.cta-section {
  background: var(--color-bg-dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: var(--space-md);
}

.cta-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin: 0 auto var(--space-xl);
  max-width: 550px;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.cta-trust {
  margin-top: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
}

.cta-trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.cta-trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--color-teal);
}

/* --- FOOTER --- */
.footer {
  background: var(--color-bg-section);
  padding: var(--space-3xl) var(--space-lg) var(--space-xl);
  border-top: 1px solid var(--color-border);
}

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

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-amber);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer-brand svg {
  width: 28px;
  height: 28px;
}

.footer-about p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-card);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-spring);
  cursor: pointer;
}

.footer-social a:hover {
  background: var(--color-amber);
  color: var(--color-bg-dark);
  transform: translateY(-3px);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
}

.footer-column h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-column ul a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
  cursor: pointer;
}

.footer-column ul a:hover {
  color: var(--color-amber);
}

.footer-bottom {
  max-width: 1200px;
  margin: var(--space-xl) auto 0;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-md);
}

.footer-bottom-links a {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
}

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

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
  }
}

/* --- RESPONSIVE --- */

/* Tablet */
@media (max-width: 1024px) {
  .about-grid,
  .card-types-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .card-types-grid .card-types-image-wrapper {
    order: -1;
  }

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

  .steps-container::before {
    display: none;
  }

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

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

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

  .hero-stats {
    gap: var(--space-xl);
  }
}

/* Mobile */
@media (max-width: 768px) {
  /* --- MOBILE NAV --- */
  .nav {
    left: 1rem;
    right: 1rem;
    top: 1rem;
    border-radius: 2rem;
    padding: 1rem var(--space-md);
    background: rgba(22, 19, 43, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: visible;
  }

  /* Put CTA button next to hamburger */
  .nav-cta {
    font-size: 0.8rem;
    padding: 8px 16px;
    order: 2;
    margin-left: auto;
    margin-right: var(--space-sm);
  }

  .nav-toggle {
    display: flex;
    order: 3;
  }

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

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

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

  /* Mobile menu dropdown — hidden by default */
  .nav-links {
    position: absolute;
    top: calc(100% + 1rem);
    left: 0;
    right: 0;
    border-radius: 1.5rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #16132B;
    padding: 0;
    border: 1px solid var(--color-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }

  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: -1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
  }

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

  .nav-links.active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: var(--space-md) var(--space-xl);
    font-size: 1.15rem;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--color-text-primary);
    text-align: center;
    border-bottom: 1px solid rgba(245, 158, 11, 0.08);
    transition: color 0.2s, background 0.2s;
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  .nav-links a:hover,
  .nav-links a:active {
    color: var(--color-amber);
    background: rgba(245, 158, 11, 0.06);
  }

  .nav-links a::after {
    display: none;
  }

  /* --- HERO FIX: Clear the fixed nav --- */
  .hero {
    padding-top: 140px;
    padding-bottom: var(--space-3xl);
    min-height: auto;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 5px 14px;
  }

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

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .hero-stat {
    padding: var(--space-sm) 0;
  }

  .hero-image-wrapper {
    max-width: 100%;
  }

  .floating-card {
    display: none;
  }

  /* --- SECTIONS --- */
  .section {
    padding: var(--space-4xl) var(--space-md);
  }

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

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

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
  }

  .cta-trust {
    flex-direction: column;
    gap: var(--space-md);
  }

  .about-image-badge {
    right: 8px;
    bottom: -12px;
    font-size: 0.85rem;
    padding: 8px 16px;
  }

  /* --- SALE PRICING MOBILE --- */
  .btn-sale {
    font-size: 1.05rem;
    padding: 16px 32px;
  }
}

/* Extra small */
@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  
  .nav-brand {
    font-size: 1.1rem;
  }

  .nav-brand svg {
    width: 24px;
    height: 24px;
  }

  .nav-cta {
    font-size: 0.75rem;
    padding: 6px 12px;
  }

  .hero {
    padding-top: 120px;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .hero-stat-number {
    font-size: 1.5rem;
  }

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

  .step-card {
    padding: var(--space-md);
  }

  .testimonial-card {
    padding: var(--space-md);
  }

  .testimonial-text {
    font-size: 0.9rem;
  }

  .price-sale {
    font-size: 1.75rem;
  }

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

/* ============================================
   RATING SUMMARY
   ============================================ */
.rating-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  padding: var(--space-xl) var(--space-2xl);
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.rating-summary-score {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.rating-big-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color-amber);
  line-height: 1;
}

.rating-out-of {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.rating-summary-stars {
  display: flex;
  gap: 4px;
}

.rating-summary-stars svg {
  width: 24px;
  height: 24px;
  fill: var(--color-amber);
}

.rating-summary-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.rating-count {
  font-weight: 600;
  color: var(--color-text-secondary);
}

.rating-separator {
  opacity: 0.3;
}

.rating-sold {
  color: var(--color-teal);
  font-weight: 600;
}

.rating-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
}

.rating-bar-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

.rating-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.rating-bar-fill {
  height: 100%;
  background: var(--color-amber);
  border-radius: 3px;
  transition: width 1s cubic-bezier(0.33, 1, 0.68, 1);
}

.rating-bar-pct {
  min-width: 28px;
  text-align: right;
}

/* Empty star (4/5 rating) */
.testimonial-stars .star-empty {
  fill: rgba(245, 158, 11, 0.2);
}

/* ============================================
   SALE PRICING
   ============================================ */
.sale-pricing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.sale-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  background: var(--color-coral);
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: var(--radius-sm);
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.sale-prices {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.price-original {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: line-through;
  text-decoration-color: var(--color-coral);
  text-decoration-thickness: 2px;
}

.price-sale {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-amber);
  line-height: 1;
}

.sale-sold {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-coral);
}

.sale-sold svg {
  fill: var(--color-coral);
  stroke: var(--color-coral);
}

/* Sale CTA button with subtle pulse */
.btn-sale {
  font-size: 1.2rem;
  padding: 18px 44px;
  animation: cta-glow 3s ease-in-out infinite;
}

@keyframes cta-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0); }
  50% { box-shadow: 0 0 24px 4px rgba(244, 63, 94, 0.25); }
}

/* ============================================
   RESPONSIVE: New components
   ============================================ */
@media (max-width: 1024px) {
  .rating-summary {
    flex-direction: column;
    text-align: center;
    gap: var(--space-md);
  }

  .rating-bars {
    min-width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  .rating-summary {
    padding: var(--space-lg);
  }

  .rating-big-number {
    font-size: 2.5rem;
  }

  .rating-summary-meta {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .rating-separator {
    display: none;
  }

  .sale-pricing {
    flex-direction: column;
    gap: var(--space-md);
  }

  .price-sale {
    font-size: 2rem;
  }
}

/* Reduced motion for new animations */
@media (prefers-reduced-motion: reduce) {
  .sale-badge,
  .btn-sale {
    animation: none;
  }
}
