/* FailOverHub - Ultra-Premium Responsive Design System */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Outfit:wght@600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg-main: #f8f5f0;
  --bg-surface: rgba(255, 255, 255, 0.94);
  --bg-surface-alt: rgba(243, 239, 230, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  
  --accent-teal: #0f4c47;
  --accent-teal-hover: #0d3b37;
  --accent-teal-light: #e6f4f1;
  
  --accent-gold: #d97706;
  --accent-gold-light: #fef3c7;
  
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  
  --border-subtle: #e7e2d7;
  --border-highlight: rgba(15, 76, 71, 0.25);
  
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  
  --shadow-soft: 0 10px 30px -5px rgba(15, 76, 71, 0.08);
  --shadow-elevation: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  padding-bottom: 90px;
  overflow-x: hidden;
  background: var(--bg-main) url('../assets/bg_wave.jpg') no-repeat center top fixed;
  background-size: cover;
}

.container {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header Navbar */
header {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(248, 245, 240, 0.92);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* Prominent High-Impact Brand Typography Logo */
.brand {
  font-family: 'Outfit', sans-serif;
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: -0.8px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}

.brand .logo-fail {
  color: #0f4c47;
}

.brand .logo-over {
  background: linear-gradient(135deg, #0f4c47 0%, #2563eb 50%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
}

.brand .logo-hub {
  color: #d97706;
}

.badge-trust {
  background: var(--accent-teal-light);
  color: var(--accent-teal);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 30px;
  border: 1px solid rgba(15, 76, 71, 0.2);
  white-space: nowrap;
}

/* Hero Section */
.hero {
  padding: 36px 0 20px 0;
  text-align: center;
}

.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(243, 239, 230, 0.9);
  backdrop-filter: blur(8px);
  color: var(--accent-teal);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 30px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.8px;
  margin-bottom: 14px;
  color: var(--text-primary);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-title span {
  color: var(--accent-teal);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 740px;
  margin: 0 auto 24px auto;
  font-weight: 500;
}

/* Stats Row */
.stats-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.stat-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.stat-item span {
  color: var(--accent-gold);
}

/* Pricing Card Component */
.pricing-card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 840px;
  margin: 0 auto 40px auto;
  box-shadow: var(--shadow-elevation);
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-teal), var(--accent-gold));
}

.price-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.price-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.price-main {
  font-family: 'Outfit', sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text-primary);
}

.price-old {
  font-size: 1.15rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.save-tag {
  background: var(--accent-gold-light);
  color: var(--accent-gold);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(217, 119, 6, 0.3);
}

.price-sub {
  font-size: 0.85rem;
  color: var(--accent-teal);
  margin-top: 4px;
  font-weight: 600;
}

/* Call to Action Button */
.btn-cta {
  background: linear-gradient(135deg, var(--accent-teal) 0%, #134e4a 100%);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  padding: 16px 32px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(15, 76, 71, 0.25);
  transition: all 0.25s ease;
  width: 100%;
  max-width: 320px;
}

.btn-cta:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #134e4a 0%, var(--accent-teal) 100%);
  box-shadow: 0 12px 28px rgba(15, 76, 71, 0.4);
}

/* "Why Chose These Notes" Feature Grid */
.why-section {
  padding: 40px 0;
  background: rgba(243, 239, 230, 0.75);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 40px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.why-card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.why-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.why-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-purple { background: #f3e8ff; color: #7e22ce; }
.badge-teal { background: var(--accent-teal-light); color: var(--accent-teal); }
.badge-gold { background: var(--accent-gold-light); color: var(--accent-gold); }
.badge-rose { background: #ffe4e6; color: #be123c; }

.why-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--bg-surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.why-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.why-card p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.handwritten-box {
  font-family: 'Caveat', cursive;
  font-size: 1.25rem;
  line-height: 1.3;
  color: #374151;
  background: #fffbeb;
  border: 1px dashed #fcd34d;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-top: 10px;
}

/* Screenshot Preview Section */
.preview-section {
  padding: 36px 0;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.preview-card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.preview-card-header {
  padding: 10px 14px;
  background: rgba(243, 239, 230, 0.9);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--accent-teal);
  font-weight: 700;
}

.window-dots {
  display: flex;
  gap: 5px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.preview-img-wrapper {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #ffffff;
}

.preview-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Curriculum Grid */
.section-header {
  text-align: center;
  margin-bottom: 24px;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.section-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  max-width: 600px;
  margin: 0 auto;
  font-weight: 500;
}

.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}

.curriculum-card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.curriculum-content {
  flex: 1;
}

.card-num {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-teal);
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.curriculum-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.curriculum-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.curriculum-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(243, 239, 230, 0.9);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* Trust Section */
.trust-section {
  padding: 36px 0;
  background: rgba(243, 239, 230, 0.75);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.trust-card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.trust-icon {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.trust-card h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.trust-card p {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* Reviews Grid */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.review-card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
}

.stars {
  color: var(--accent-gold);
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.review-text {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.45;
  font-weight: 500;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #ffffff;
  font-size: 0.85rem;
}

.reviewer-name {
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--text-primary);
}

.reviewer-title {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* FAQ Section */
.faq-section {
  padding: 36px 0;
}

.faq-list {
  max-width: 800px;
  margin: 18px auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  padding: 14px 18px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.faq-answer {
  padding: 0 18px 14px 18px;
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Mobile Sticky Bar */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(248, 245, 240, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 999;
}

.sticky-price {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
}

.sticky-price span {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 6px;
}

.mobile-sticky-bar .btn-cta {
  padding: 10px 20px;
  font-size: 0.95rem;
  width: auto;
}

/* Mobile Overrides */
@media (max-width: 640px) {
  .container {
    padding: 0 12px;
  }

  .brand {
    font-size: 1.5rem;
  }

  .badge-trust {
    font-size: 0.68rem;
    padding: 3px 8px;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .hero-desc {
    font-size: 0.9rem;
  }

  .pricing-card {
    flex-direction: column;
    text-align: center;
    padding: 18px 14px;
  }

  .price-details {
    align-items: center;
  }

  .why-grid,
  .preview-grid,
  .curriculum-grid,
  .trust-grid,
  .reviews-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .why-card[style*="grid-column"] {
    grid-column: span 1 !important;
  }

  .why-card,
  .preview-card,
  .curriculum-card,
  .trust-card,
  .review-card {
    width: 100% !important;
  }
}
