/*
 * smooth-premium.css
 * Comprehensive "premium feel" layer — fixes stiffness, adds gradient blends,
 * polished interactions, typography rhythm, and micro-animations.
 * Applied last in the CSS chain so it wins all specificity battles.
 */

/* ─── 1. GLOBAL EASING & SMOOTHNESS ──────────────────────────────────────── */
*, *::before, *::after {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Upgrade all transitions from blunt "ease" to silky cubic-bezier */
a, button,
.btn-cta-large, .btn-cta-ghost, .btn-cta-dark,
.process-card, .service-card-v3,
.nav-link, .faq-v3-item h3 {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
  transition-duration: 0.25s !important;
}

/* ─── 2. SCROLL REVEAL — softer, slower, spring-based ───────────────────── */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity  0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Staggered children — each .fade-in-up inside a revealed parent gets a delay */
.fade-in-up.delay-100 { transition-delay: 0.10s !important; }
.fade-in-up.delay-200 { transition-delay: 0.20s !important; }
.fade-in-up.delay-300 { transition-delay: 0.32s !important; }
.fade-in-up.delay-400 { transition-delay: 0.44s !important; }
.fade-in-up.delay-500 { transition-delay: 0.56s !important; }

/* ─── 3. SECTION TRANSITIONS — gradient blends between navy ↔ white ─────── */
/* Soft shadow at top of every white section to blend into the navy above */
.section-white {
  position: relative;
}
.section-white::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, rgba(5,10,30,0.06) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}
/* All content above the fade-line */
.section-white > .container { position: relative; z-index: 1; }

/* Navy → white transition: bottom of navy section gets a very gentle fade */
section:not(.section-white) + .section-white {
  box-shadow: 0 -1px 0 rgba(5,10,30,0.08);
}

/* ─── 4. SECTION PADDING — 8pt grid rhythm ───────────────────────────────── */
.section-v3  { padding: 112px 0; }
.section-v3-sm { padding: 64px 0; }

/* ─── 5. NAVIGATION — glass morphism ────────────────────────────────────── */
.site-header {
  background: rgba(5,10,30,0.82) !important;
  backdrop-filter: blur(20px) saturate(1.8) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.8) !important;
  border-bottom: 1px solid rgba(255,255,255,0.07) !important;
  transition: background 0.4s cubic-bezier(0.4,0,0.2,1),
              box-shadow 0.4s cubic-bezier(0.4,0,0.2,1) !important;
}
.site-header.scrolled {
  background: rgba(5,10,30,0.96) !important;
  box-shadow: 0 4px 40px rgba(0,0,0,0.45) !important;
}
.nav-link {
  position: relative;
  letter-spacing: 0.01em;
}
/* Underline slide-in on nav hover */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s cubic-bezier(0.4,0,0.2,1);
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* ─── 6. BUTTONS — premium states ────────────────────────────────────────── */
.btn-cta-large {
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
  font-weight: 600 !important;
  border-radius: 6px !important;
}
/* Sheen sweep on hover */
.btn-cta-large::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.18) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: left 0.5s cubic-bezier(0.4,0,0.2,1);
}
.btn-cta-large:hover::after { left: 160%; }

.btn-cta-large:active { transform: scale(0.98); }

/* Ghost button refinement */
.btn-cta-ghost {
  backdrop-filter: blur(8px);
  font-weight: 500 !important;
  letter-spacing: 0.02em;
  border-radius: 6px !important;
}
.btn-cta-ghost:hover {
  border-color: rgba(255,255,255,0.45) !important;
  background: rgba(255,255,255,0.12) !important;
}

/* ─── 7. HERO REFINEMENTS ─────────────────────────────────────────────────── */
.hero-v3 h1 {
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  line-height: 1.06 !important;
}
.hero-v3 h1 em {
  background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 50%, #818CF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: normal;
}
.badge-eyebrow {
  font-size: 0.75rem !important;
  letter-spacing: 2.5px !important;
  font-weight: 600 !important;
}

/* ─── 8. CARDS — depth & hover polish ────────────────────────────────────── */
.process-card {
  border-radius: 10px !important;
  border-top-width: 2px !important;
  transition:
    transform 0.3s cubic-bezier(0.34,1.56,0.64,1),
    box-shadow 0.3s cubic-bezier(0.4,0,0.2,1) !important;
  will-change: transform;
}
.process-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 48px rgba(59,130,246,0.14) !important;
}

.service-card-v3 {
  border-radius: 12px !important;
  transition:
    transform 0.3s cubic-bezier(0.34,1.56,0.64,1),
    box-shadow 0.3s cubic-bezier(0.4,0,0.2,1) !important;
  will-change: transform;
}
.service-card-v3:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 48px rgba(59,130,246,0.12) !important;
}

/* Stat blocks — smooth scale on reveal */
.stat-block {
  border-radius: 10px !important;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1) !important;
}
.stat-block:hover { transform: scale(1.04); }
.stat-number {
  font-variant-numeric: tabular-nums;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
}

/* ─── 9. TRUST STRIP — smooth scroll marquee feel ─────────────────────────── */
.trust-strip { padding: 1.25rem 0; }
.trust-item {
  transition: color 0.2s ease, transform 0.2s ease;
}
.trust-item:hover {
  color: var(--accent) !important;
  transform: translateY(-1px);
}
.trust-item i {
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.trust-item:hover i { transform: scale(1.2) rotate(-5deg); }

/* ─── 10. FAQ — smooth accordion ─────────────────────────────────────────── */
.faq-v3-item p {
  max-height: 0;
  overflow: hidden;
  display: block !important; /* override JS display:none with max-height */
  transition: max-height 0.45s cubic-bezier(0.4,0,0.2,1),
              padding 0.3s ease,
              opacity 0.35s ease;
  opacity: 0;
  padding-bottom: 0;
}
.faq-v3-item.open p {
  max-height: 300px;
  opacity: 1;
  padding-bottom: 1.25rem;
}
.faq-v3-item h3 {
  font-size: 1.05rem !important;
  font-weight: 600 !important;
}
.faq-v3-item h3::after {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(59,130,246,0.1);
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 300;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1),
              background 0.2s ease !important;
}
.faq-v3-item:hover h3::after { background: rgba(59,130,246,0.18); }

/* ─── 11. GUARANTEE PANEL — subtle inner glow ────────────────────────────── */
.guarantee-panel {
  border-radius: 16px !important;
  box-shadow:
    0 0 0 1px rgba(59,130,246,0.15),
    0 24px 64px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.04) !important;
}
.guarantee-shield {
  border-radius: 50% !important;
  box-shadow: 0 0 0 8px rgba(59,130,246,0.08);
  transition: box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.guarantee-panel:hover .guarantee-shield {
  box-shadow: 0 0 0 12px rgba(59,130,246,0.12);
  transform: scale(1.08);
}

/* ─── 12. SECTION LABELS ─────────────────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: 0.72rem !important;
  letter-spacing: 3px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
}

/* ─── 13. SECTION DIVIDER ANIMATION ─────────────────────────────────────── */
.section-divider {
  transition: width 1.2s cubic-bezier(0.22,1,0.36,1) !important;
}

/* ─── 14. BOOK MOCKUP POLISH ─────────────────────────────────────────────── */
.book-cover {
  transition: box-shadow 0.4s ease;
}
.orbit-icon {
  transition: background 0.25s ease, border-color 0.25s ease;
}
.orbit-ring:hover .orbit-icon {
  background: rgba(59,130,246,0.25) !important;
  border-color: rgba(59,130,246,0.5) !important;
}

/* ─── 15. BODY COPY RHYTHM ───────────────────────────────────────────────── */
p { line-height: 1.8; }
h2 { line-height: 1.12; }
h3 { line-height: 1.25; }

/* ─── 16. ANNOUNCEMENT BAR ───────────────────────────────────────────────── */
.announcement-bar {
  background: linear-gradient(90deg, #1D4ED8 0%, #2563EB 50%, #1D4ED8 100%) !important;
  background-size: 200% auto !important;
  animation: bar-slide 6s linear infinite;
  font-weight: 500 !important;
  letter-spacing: 0.01em;
}
@keyframes bar-slide {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ─── 17. SCROLLBAR STYLING (Webkit) ─────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy-deepest); }
::-webkit-scrollbar-thumb {
  background: rgba(59,130,246,0.4);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(59,130,246,0.7); }

/* ─── 18. SELECTION COLOUR ───────────────────────────────────────────────── */
::selection {
  background: rgba(59,130,246,0.35);
  color: #fff;
}

/* ─── 19. FINAL CTA SECTION ─────────────────────────────────────────────── */
.section-v3:last-of-type {
  background: linear-gradient(160deg, #050A1E 0%, #0D1A3A 60%, #050A1E 100%);
}

/* ─── 20. FOUNDER PORTRAIT placeholder ──────────────────────────────────── */
.founder-portrait {
  border-radius: 12px !important;
  overflow: hidden;
  transition: box-shadow 0.35s ease;
  background: linear-gradient(135deg, #0D1A3A 0%, #162040 100%) !important;
}
.founder-portrait:hover {
  box-shadow: 0 16px 48px rgba(59,130,246,0.12) !important;
}

/* ─── TOUCH / REDUCED MOTION ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
@media (hover: none) {
  .process-card:hover,
  .service-card-v3:hover,
  .stat-block:hover { transform: none !important; }
}
