@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes subtle-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(8,160,142,0.2); }
  50% { box-shadow: 0 0 30px rgba(8,160,142,0.4); }
}

.animate-fade-in-up { animation: fade-in-up 0.7s ease-out both; }
.animate-slide-in-right { animation: slide-in-right 0.7s ease-out both; }
.animate-subtle-pulse { animation: subtle-pulse 3s ease-in-out infinite; }
.animation-delay-100 { animation-delay: 0.1s; }
.animation-delay-200 { animation-delay: 0.2s; }
.animation-delay-300 { animation-delay: 0.3s; }
.animation-delay-500 { animation-delay: 0.5s; }

.glass {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
}

.premium-card {
  transition: transform 0.3s, box-shadow 0.3s;
}
.premium-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.gradient-border {
  position: relative;
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(8,160,142,0.3), transparent 50%);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.gradient-border:hover::before {
  opacity: 1;
}

button[class*="bg-accent"]:not([data-no-shine]) {
  position: relative;
  overflow: hidden;
}
button[class*="bg-accent"]:not([data-no-shine])::after,
a[class*="bg-accent"]:not([data-no-shine])::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: skewX(-25deg);
  animation: btn-shine 4s ease-in-out infinite;
  pointer-events: none;
}
a[class*="bg-accent"]:not([data-no-shine]) {
  position: relative;
  overflow: hidden;
}
@keyframes btn-shine {
  0%, 100% { left: -75%; }
  50% { left: 125%; }
}

.nav-link.active {
  color: #08a08e;
  position: relative;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: #08a08e;
  border-radius: 9999px;
}

.header-scrolled {
  background: rgba(255,255,255,0.95) !important;
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
  border-bottom-color: rgba(243,244,246,0.8) !important;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}
.faq-answer.open {
  max-height: 500px;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.faq-chevron {
  transition: transform 0.3s ease;
}
.faq-chevron.open {
  transform: rotate(180deg);
}

.ghost-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.875rem;
  font-weight: 700;
  color: #0A1F44;
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.ghost-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0A1F44;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}
.ghost-content p {
  color: #4b5563;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.ghost-content a {
  color: #08a08e;
  text-decoration: underline;
  transition: color 0.2s;
}
.ghost-content a:hover {
  color: #067a6b;
}
.ghost-content ul, .ghost-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
  color: #4b5563;
}
.ghost-content li {
  margin-bottom: 0.5rem;
  line-height: 1.75;
}
.ghost-content img {
  border-radius: 0.75rem;
  margin: 1.5rem 0;
}
.ghost-content blockquote {
  border-left: 4px solid #08a08e;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: #f9fafb;
  border-radius: 0 0.5rem 0.5rem 0;
  color: #374151;
  font-style: italic;
}
.ghost-content figcaption {
  text-align: center;
  font-size: 0.875rem;
  color: #9ca3af;
  margin-top: 0.5rem;
}

.kg-width-wide {
  position: relative;
  width: 85vw;
  min-width: 100%;
  margin: 1.5em auto;
  left: 50%;
  transform: translateX(-50%);
}
.kg-width-full {
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  margin: 1.5em auto;
}
.kg-width-full img,
.kg-width-wide img {
  width: 100%;
}

.in-view {
  animation: fade-in-up 0.7s ease-out both;
}

/* Speakable / Quick Answer blocks for AEO + voice + LLMs */
.speakable {
    background: linear-gradient(135deg, rgba(8,160,142,0.06), rgba(10,31,68,0.04));
    border-left: 4px solid #08a08e;
    border-radius: 0.75rem;
    padding: 1.5rem 1.75rem;
    margin: 1.5rem 0;
}
.speakable .speakable-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    color: #08a08e;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.speakable p {
    color: #0A1F44;
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

/* Hide ONLY the first image in blog post body (duplicate of hero feature image).
   Keep inline images, diagrams, and embeds further down the post visible. */
.ghost-content > figure:first-child,
.ghost-content > .kg-image-card:first-child,
.ghost-content > p:first-child > img:only-child,
.ghost-content > img:first-child {
    display: none !important;
}
.ghost-content > p:first-child:has(> img:only-child) {
    display: none !important;
}
