html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

::selection {
  background: #8fb8dd;
  color: #fff;
}

/* ---------- Nav links ---------- */
.nav-link {
  position: relative;
  transition: color 0.25s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1.5px;
  background: linear-gradient(90deg, #8fb8dd, #131b30);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover {
  color: #131b30;
}
.nav-link:hover::after {
  width: 100%;
}

/* ---------- Eyebrow labels ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8fb8dd;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 10px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 10'><path d='M1 5 C 4 1 8 9 11 5 S 18 1 21 5 S 28 9 31 5' fill='none' stroke='%238fb8dd' stroke-width='2' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
  flex: none;
}

/* ---------- Wave watermark ---------- */
.wave-watermark {
  opacity: 0.16;
}

/* ---------- Buttons ---------- */
.btn-primary,
.btn-secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  font-weight: 600;
  padding: 1rem 1.75rem;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.35s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #1b2544, #0a0e1a 70%);
  box-shadow: 0 10px 30px -8px rgba(10, 14, 26, 0.55);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 45px -10px rgba(10, 14, 26, 0.65), 0 0 0 1px rgba(143, 184, 221, 0.25);
}
.btn-primary:active {
  transform: translateY(-1px);
}

.btn-secondary {
  color: #131b30;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(19, 27, 48, 0.1);
  box-shadow: 0 4px 20px -8px rgba(19, 27, 48, 0.12);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  transform: translateY(-3px);
  border-color: rgba(143, 184, 221, 0.45);
  box-shadow: 0 14px 34px -10px rgba(19, 27, 48, 0.22);
}

.btn-sm {
  padding: 0.65rem 1.35rem;
  font-size: 0.875rem;
}

.btn-shine {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.35) 45%, transparent 70%);
  transform: translateX(-120%);
}
.btn-primary:hover .btn-shine {
  animation: shine-sweep 0.9s ease forwards;
}
@keyframes shine-sweep {
  to {
    transform: translateX(120%);
  }
}

/* ---------- Cards ---------- */
.lux-card {
  background: #fff;
  border-radius: 1.75rem;
  padding: 1.9rem;
  border: 1px solid rgba(19, 27, 48, 0.05);
  box-shadow: 0 2px 20px -6px rgba(19, 27, 48, 0.06);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s ease;
}
.lux-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -18px rgba(19, 27, 48, 0.2);
  border-color: rgba(143, 184, 221, 0.25);
}

.icon-badge {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  background: linear-gradient(140deg, #eaf1f9, #ffffff);
  box-shadow: inset 0 0 0 1px rgba(19, 27, 48, 0.05);
}

.avatar-ring {
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  color: rgba(143, 184, 221, 0.7);
  background: linear-gradient(140deg, #eaf1f9, #ffffff);
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px rgba(143, 184, 221, 0.25);
}

.glass-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.75rem;
  padding: 1.9rem;
  backdrop-filter: blur(6px);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), background 0.5s ease, border-color 0.5s ease;
}
.glass-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(143, 184, 221, 0.35);
}

.quote-card {
  position: relative;
  background: linear-gradient(160deg, #eaf1f9 0%, #f4f8fc 100%);
  border-radius: 1.75rem;
  padding: 2.1rem;
  border: 1px solid rgba(19, 27, 48, 0.05);
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}
.quote-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -18px rgba(19, 27, 48, 0.15);
}
.quote-mark {
  position: absolute;
  top: -1.2rem;
  left: 0.75rem;
  font-family: 'Fraunces', serif;
  font-size: 7rem;
  color: rgba(143, 184, 221, 0.15);
  line-height: 1;
  pointer-events: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid rgba(19, 27, 48, 0.1);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(19, 27, 48, 0.7);
  padding: 0.4rem 1.1rem;
  border-radius: 9999px;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}
.pill:hover {
  border-color: rgba(143, 184, 221, 0.4);
  color: #8fb8dd;
  background: #fffdf8;
}

.social-icon {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}
.social-icon:hover {
  background: linear-gradient(135deg, #8fb8dd, #131b30);
  color: #fff;
  transform: translateY(-3px);
  border-color: transparent;
}

/* ---------- Floating cards on hero ---------- */
.card-float {
  animation: float-a 6s ease-in-out infinite;
}
.card-float-slow {
  animation: float-b 7.5s ease-in-out infinite;
}
@keyframes float-a {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes float-b {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ---------- Image zoom on hover ---------- */
.img-zoom:hover img {
  transform: scale(1.05);
}

/* ---------- Progress bar fill-in animation ---------- */
.progress-fill {
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible .progress-fill,
.is-visible .progress-fill {
  transform: scaleX(1);
}

/* ---------- Marquee ---------- */
.marquee-track {
  width: max-content;
  animation: marquee 32s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.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.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .card-float, .card-float-slow, .marquee-track {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid rgba(19, 27, 48, 0.08);
}
.faq-item:first-child {
  border-top: 1px solid rgba(19, 27, 48, 0.08);
}
.faq-item button[aria-expanded="true"] .faq-chevron {
  transform: rotate(45deg);
  color: #8fb8dd;
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-answer > div {
  overflow: hidden;
}
.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
}
.faq-item.open button span:first-child {
  color: #8fb8dd;
}

/* ---------- Header shrink ---------- */
#siteHeader.scrolled {
  box-shadow: 0 8px 30px -12px rgba(19, 27, 48, 0.15);
}
#siteHeader.scrolled #headerInner {
  height: 4.25rem;
}
