/* ============================================================
   Calyber AI — Shared Design Upgrade Layer
   Loads AFTER style.css on ALL pages.
   Adds: scroll animations, enhanced nav/footer/buttons/cards,
         CTA section upgrade, visual polish.
   ============================================================ */

/* ---- Scroll Reveal System ---- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }
.delay-5 { transition-delay: 0.40s; }
.delay-6 { transition-delay: 0.48s; }

/* ---- Nav Upgrade ---- */
.nav {
  backdrop-filter: blur(12px);
  background-color: rgba(247,244,239,0.85);
}

.nav-cta {
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(232,130,12,0.12);
}

.nav-cta:hover {
  box-shadow: 0 4px 16px rgba(232,130,12,0.2);
}

/* ---- Button Upgrades ---- */
.btn-primary {
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(232,130,12,0.15);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(232,130,12,0.25);
  transform: translateY(-2px);
}

.btn-secondary {
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(28,28,30,0.08);
}

/* ---- Section Label Pill ---- */
.section-label {
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  padding: 5px 14px;
  background: rgba(232,130,12,0.08);
  border-radius: 100px;
  border: 1px solid rgba(232,130,12,0.12);
  display: inline-block;
}

/* ---- Hero Eyebrow Upgrade (shared across pages) ---- */
.hero-eyebrow {
  border: 1px solid rgba(232,130,12,0.2);
}

/* ---- Proof Bar Upgrade ---- */
.proof-bar {
  position: relative;
  overflow: hidden;
}

.proof-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(232,130,12,0.07) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(232,130,12,0.04) 0%, transparent 50%);
  pointer-events: none;
}

.proof-bar-grid {
  position: relative;
  z-index: 1;
}

.proof-stat {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 8px;
}

.proof-stat:hover {
  background-color: rgba(247,244,239,0.04);
  transform: translateY(-2px);
}

.proof-stat:hover .proof-stat-number {
  color: var(--color-amber);
}

/* ---- Card Hover Enhancements ---- */
.case-study-full {
  border-radius: 16px;
  transition: box-shadow 0.4s ease;
}

.case-study-full:hover {
  box-shadow: 0 8px 32px rgba(28,28,30,0.08);
}

/* ---- Testimonial Geometric Accents ---- */
.testimonial-section {
  position: relative;
  overflow: hidden;
}

.testimonial-section::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 60px solid rgba(232,130,12,0.05);
  pointer-events: none;
}

.testimonial-section::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 40px solid rgba(247,244,239,0.03);
  pointer-events: none;
}

/* ---- CTA Section — Indigo Upgrade ---- */
.cta-section {
  background: linear-gradient(135deg, var(--color-indigo) 0%, #2a1a5e 60%, #1a0e3a 100%);
  padding: 100px 0;
  border-top: none;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -80px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: rgba(232,130,12,0.06);
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(247,244,239,0.03);
  pointer-events: none;
}

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

.cta-section h2 {
  color: var(--color-cream);
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.cta-section p {
  color: rgba(247,244,239,0.65);
  font-size: 1.125rem;
}

.cta-section .btn-white {
  background-color: var(--color-amber);
  color: var(--color-white);
  padding: 16px 36px;
  font-size: 1.0625rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(232,130,12,0.25);
}

.cta-section .btn-white:hover {
  background-color: #f5941e;
  box-shadow: 0 8px 28px rgba(232,130,12,0.35);
  transform: translateY(-2px);
}

/* Fix CTA secondary links on indigo background */
.cta-section a:not(.btn-white):not(.btn-primary) {
  color: rgba(247,244,239,0.6) !important;
}

.cta-section a:not(.btn-white):not(.btn-primary):hover {
  color: rgba(247,244,239,0.9) !important;
}

/* ---- Footer Upgrade ---- */
.footer {
  background: linear-gradient(to bottom, var(--color-indigo), #160d36);
}

/* ---- Conviction Block Upgrade (About page) ---- */
.conviction-block {
  position: relative;
  overflow: hidden;
}

.conviction-block::before {
  content: '';
  position: absolute;
  top: -80px;
  left: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(232,130,12,0.05);
  pointer-events: none;
}

/* ---- Enhanced Content Cards ---- */
.content-grid-3 > div,
.content-grid-4 > div {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.content-grid-3 > div:hover,
.content-grid-4 > div:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(28,28,30,0.06);
}

/* ---- Day Grid Enhancement ---- */
.day-card {
  transition: transform 0.2s ease;
}

.day-card:hover {
  transform: scale(1.03);
}

/* ---- FAQ Card Enhancement ---- */
.bg-white [style*="background: var(--color-cream)"],
[style*="background: var(--color-cream); border-radius"] {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ---- Comparison Table Enhancement ---- */
.table-scroll-wrap table {
  border-radius: 12px;
  overflow: hidden;
}

/* ---- Tag Enhancement ---- */
.tag {
  transition: all 0.2s ease;
}

.tag:hover {
  background-color: var(--color-amber-light);
  border-color: rgba(232,130,12,0.2);
  transform: translateY(-1px);
}

/* ---- Dot Grid Background Motif ---- */
.dot-grid-bg {
  position: relative;
}
.dot-grid-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(30,18,72,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}
.dot-grid-bg > * {
  position: relative;
  z-index: 1;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .cta-section {
    padding: 80px 0;
  }
}
