/* ============ VitalityDesk — landing page styles ============ */

.ld-hero {
  position: relative;
  padding: 180px 0 96px;
  text-align: center;
  overflow: hidden;
}
.ld-hero__inner { position: relative; z-index: 1; max-width: 880px; }
.ld-hero__inner .vd-hero__eyebrow { margin-inline: auto; }
.ld-hero__h {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 24px 0 20px;
  color: var(--text);
}
.ld-hero__inner .vd-hero__sub { max-width: 640px; margin-bottom: 36px; }

/* grids */
.ld-grid { display: grid; gap: 20px; margin-top: 48px; }
.ld-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ld-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) {
  .ld-grid--3, .ld-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .ld-grid--3, .ld-grid--4 { grid-template-columns: 1fr; }
}

/* cards */
.ld-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color var(--d-fast) var(--ease-out), transform var(--d-fast) var(--ease-out);
}
.ld-card:hover { border-color: rgba(163, 41, 66, 0.45); transform: translateY(-3px); }
.ld-card h3 {
  font-family: var(--font-display);
  font-size: var(--t-lg);
  color: var(--text);
  margin: 0;
}
.ld-card p { color: var(--muted); font-size: var(--t-sm); line-height: 1.65; margin: 0; }
.ld-card__icon { font-size: 1.8rem; line-height: 1; }
.ld-card--link { text-decoration: none; cursor: pointer; }
.ld-card__more {
  margin-top: auto;
  padding-top: 12px;
  color: var(--primary-bright, #d4516e);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.04em;
}
.ld-card--step { position: relative; padding-top: 56px; }
.ld-step__num {
  position: absolute;
  top: 20px; left: 28px;
  font-family: var(--font-mono);
  font-size: var(--t-sm);
  color: var(--primary-bright, #d4516e);
  letter-spacing: 0.08em;
}

/* FAQ (native details/summary) */
.ld-faq { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; }
.ld-faq__item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0;
  overflow: hidden;
}
.ld-faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-size: var(--t-base);
  color: var(--text);
  position: relative;
}
.ld-faq__item summary::-webkit-details-marker { display: none; }
.ld-faq__item summary::after {
  content: "+";
  position: absolute;
  right: 24px; top: 50%;
  transform: translateY(-50%);
  color: var(--primary-bright, #d4516e);
  font-size: 1.3rem;
}
.ld-faq__item[open] summary::after { content: "–"; }
.ld-faq__item p {
  padding: 0 24px 20px;
  margin: 0;
  color: var(--muted);
  font-size: var(--t-sm);
  line-height: 1.7;
}

/* founder */
.ld-founder {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.ld-founder__photo {
  border-radius: var(--r-lg);
  background-size: cover;
  background-position: center top;
  min-height: 520px;
  border: 1px solid var(--border);
  position: relative;
}
.ld-founder__caption {
  position: absolute;
  left: 24px; bottom: 20px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.12em;
  line-height: 1.7;
}
.ld-founder__copy p { color: var(--muted); line-height: 1.75; margin: 0 0 18px; }
.ld-founder__copy p strong, .ld-founder__copy p em { color: var(--text); }
@media (max-width: 900px) {
  .ld-founder { grid-template-columns: 1fr; gap: 32px; }
  .ld-founder__photo { min-height: 420px; }
}

/* homepage founder section reuses the same layout */
.vd-founder-home { background: var(--card); }

/* ============ high-tech interaction layer ============ */

/* --- animated "call the AI" CTA (number hidden, click-to-call) --- */
.vd-callcta {
  --cta-glow: rgba(163, 41, 66, 0.55);
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 28px;
  margin: 0 0 28px;
  border-radius: 18px;
  background: linear-gradient(160deg, #1a0d12 0%, #120a0d 60%, #151515 100%);
  text-decoration: none;
  isolation: isolate;
  overflow: hidden;
  transition: transform var(--d-fast) var(--ease-out), box-shadow var(--d-fast) var(--ease-out);
  box-shadow: 0 0 0 1px rgba(163, 41, 66, 0.25), 0 10px 40px -18px var(--cta-glow);
}
.vd-callcta::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--cta-angle, 0deg),
    transparent 0%, rgba(212, 81, 110, 0.9) 12%, transparent 28%,
    transparent 50%, rgba(212, 81, 110, 0.5) 62%, transparent 78%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: ctaSpin 4s linear infinite;
  pointer-events: none;
}
@property --cta-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes ctaSpin { to { --cta-angle: 360deg; } }
@supports not (background: conic-gradient(from var(--cta-angle, 0deg), #000, #fff)) {
  .vd-callcta::before { animation: none; opacity: 0.6; }
}
.vd-callcta:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 0 0 1px rgba(212, 81, 110, 0.55), 0 18px 60px -16px var(--cta-glow);
}
.vd-callcta__orb {
  position: relative;
  width: 58px; height: 58px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d4516e 0%, var(--primary) 55%, #5e1626 100%);
  font-size: 1.45rem;
  box-shadow: 0 0 24px rgba(212, 81, 110, 0.5);
}
.vd-callcta__orb::before,
.vd-callcta__orb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(212, 81, 110, 0.7);
  animation: ctaRing 2.2s var(--ease-out) infinite;
}
.vd-callcta__orb::after { animation-delay: 1.1s; }
@keyframes ctaRing {
  0%   { transform: scale(1);    opacity: 0.9; }
  100% { transform: scale(1.85); opacity: 0; }
}
.vd-callcta__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.vd-callcta__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: #d4516e;
}
.vd-callcta__live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #d4516e;
  animation: pulse 1.4s ease-in-out infinite;
}
.vd-callcta__title {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}
.vd-callcta__hint { font-size: 0.8rem; color: var(--muted); }
.vd-callcta__wave {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  height: 30px;
}
.vd-callcta__wave span {
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, #d4516e, var(--primary));
  animation: waveform 1s ease-in-out infinite;
}
.vd-callcta__wave span:nth-child(1) { height: 10px; animation-delay: 0s; }
.vd-callcta__wave span:nth-child(2) { height: 20px; animation-delay: .12s; }
.vd-callcta__wave span:nth-child(3) { height: 28px; animation-delay: .24s; }
.vd-callcta__wave span:nth-child(4) { height: 16px; animation-delay: .36s; }
.vd-callcta__wave span:nth-child(5) { height: 24px; animation-delay: .48s; }
.vd-callcta__wave span:nth-child(6) { height: 12px; animation-delay: .6s; }
@media (max-width: 480px) {
  .vd-callcta__wave { display: none; }
}

/* --- primary button sheen sweep --- */
.vd-btn--primary {
  position: relative;
  overflow: hidden;
}
.vd-btn--primary::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  animation: sheen 3.6s var(--ease-out) infinite;
  pointer-events: none;
}
@keyframes sheen {
  0%, 60% { left: -80%; }
  100%    { left: 160%; }
}

/* --- cursor-tracking spotlight on cards --- */
.vd-feature-card, .vd-ind-card, .vd-problem-card, .ld-card, .vd-case-card, .vd-hiw__step {
  position: relative;
  overflow: hidden;
}
.vd-feature-card::before, .vd-ind-card::before, .vd-problem-card::before,
.ld-card::before, .vd-case-card::before, .vd-hiw__step::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%),
              rgba(212, 81, 110, 0.10), transparent 65%);
  opacity: 0;
  transition: opacity var(--d-fast) var(--ease-out);
  pointer-events: none;
  z-index: 0;
}
.vd-feature-card:hover::before, .vd-ind-card:hover::before, .vd-problem-card:hover::before,
.ld-card:hover::before, .vd-case-card:hover::before, .vd-hiw__step:hover::before {
  opacity: 1;
}
.vd-feature-card > *, .vd-ind-card > *, .vd-problem-card > *,
.ld-card > *, .vd-case-card > *, .vd-hiw__step > * {
  position: relative;
  z-index: 1;
}

/* --- transcript line stagger --- */
body.js-anim .vd-demo__line {
  opacity: 0;
  animation: lineIn 0.5s var(--ease-out) forwards;
}
@keyframes lineIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* --- gradient shimmer for hero em / landing h1 accent ---
   When GSAP splits headlines into word spans (.mw), background-clip:text
   on the outer em no longer reaches the text, so the gradient must be
   painted on the innermost span that actually holds the glyphs. */
.ld-hero__h em, .vd-hero__h em,
.ld-hero__h em .mw, .vd-hero__h em .mw {
  font-style: normal;
  background: linear-gradient(90deg, #d4516e, #f0a5b8, #d4516e);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}
/* the em itself becomes a passthrough once split — its own clip can't
   reach through the inline-block wrappers, so neutralize it */
.ld-hero__h em:has(.mw), .vd-hero__h em:has(.mw) {
  background: none;
  -webkit-text-fill-color: inherit;
  animation: none;
}
@keyframes shimmer { to { background-position: 200% center; } }

/* --- floating idle motion for hero dashboard --- */
@media (prefers-reduced-motion: no-preference) {
  .vd-hero__dashboard { animation: floatY 7s ease-in-out infinite; }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .vd-callcta::before, .vd-callcta__orb::before, .vd-callcta__orb::after,
  .vd-btn--primary::after, .vd-callcta__wave span,
  .ld-hero__h em, .vd-hero__h em { animation: none; }
}

/* ============ trust pages (prose) ============ */
.ld-prose { max-width: 760px; }
.ld-prose h2 {
  font-family: var(--font-display);
  font-size: var(--t-xl);
  color: var(--text);
  margin: 40px 0 12px;
}
.ld-prose h2:first-child { margin-top: 0; }
.ld-prose p { color: var(--muted); line-height: 1.75; margin: 0 0 14px; }
.ld-prose__updated {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--muted);
  opacity: 0.7;
  margin-top: 36px;
}

/* ============ integrations ============ */
.ld-int-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.ld-int-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
}

/* ============ voice library ============ */
.ld-voice__head { display: flex; align-items: center; gap: 14px; }
.ld-voice__avatar {
  width: 46px; height: 46px;
  flex: 0 0 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  background: radial-gradient(circle at 35% 30%, #d4516e 0%, var(--primary) 60%, #5e1626 100%);
}
.ld-voice__head h3 { margin: 0; }
.ld-voice__style {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-bright, #d4516e);
}
.ld-voice__play {
  margin-left: auto;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(212, 81, 110, 0.5);
  background: rgba(163, 41, 66, 0.12);
  color: var(--primary-bright, #d4516e);
  font-size: 0.8rem;
  cursor: pointer;
  transition: background var(--d-fast) var(--ease-out), transform var(--d-fast) var(--ease-out);
}
.ld-voice__play:hover { background: rgba(163, 41, 66, 0.3); transform: scale(1.08); }
.ld-voice__sample {
  margin: 4px 0 0;
  padding: 12px 16px;
  border-left: 2px solid rgba(212, 81, 110, 0.5);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 0 10px 10px 0;
  color: var(--text);
  font-size: var(--t-sm);
  line-height: 1.6;
  font-style: italic;
}

/* ============ blog articles ============ */
.ld-article a { color: var(--primary-bright, #d4516e); text-decoration: none; border-bottom: 1px solid rgba(212, 81, 110, 0.35); }
.ld-article a:hover { border-bottom-color: var(--primary-bright, #d4516e); }
.ld-article ul { color: var(--muted); line-height: 1.75; padding-left: 22px; margin: 0 0 16px; }
.ld-article li { margin-bottom: 8px; }
.ld-article li strong { color: var(--text); }
.ld-article p strong { color: var(--text); }

/* ============ quiz ============ */
.vdq-progress { height: 4px; background: rgba(255, 255, 255, 0.07); border-radius: 999px; overflow: hidden; margin-bottom: 28px; }
.vdq-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), #d4516e); transition: width 0.35s var(--ease-out); }
.vdq-num { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--primary-bright, #d4516e); margin-bottom: 10px; }
.vdq-q { font-family: var(--font-display); font-size: 1.3rem; color: var(--text); margin: 0 0 20px; }
.vdq-opt { display: block; width: 100%; text-align: left; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); border-radius: 12px; color: var(--text); font-size: 0.95rem; padding: 15px 18px; margin-bottom: 10px; cursor: pointer; transition: border-color var(--d-fast) var(--ease-out), transform var(--d-fast) var(--ease-out), background var(--d-fast) var(--ease-out); }
.vdq-opt:hover { border-color: rgba(212, 81, 110, 0.6); background: rgba(163, 41, 66, 0.1); transform: translateX(4px); }
.vdq-result { color: var(--muted); line-height: 1.7; }

/* ============ roi calculator + case study stats ============ */
.vdr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vdr-grid label { display: flex; flex-direction: column; gap: 7px; font-size: var(--t-sm); color: var(--muted); }
.vdr-grid input, .vdr-gate input { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-size: 1rem; padding: 12px 14px; font-family: var(--font-mono); }
.vdr-grid input:focus, .vdr-gate input:focus { outline: none; border-color: rgba(212, 81, 110, 0.6); }
.vdr-gate { display: flex; gap: 10px; }
.vdr-gate input { flex: 1; }
.vdr-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.vdr-results--compact { margin-top: 8px; }
.vdr-stat { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); border-radius: 12px; padding: 16px 14px; text-align: center; display: flex; flex-direction: column; gap: 5px; }
.vdr-stat--good { border-color: rgba(212, 81, 110, 0.45); background: rgba(163, 41, 66, 0.1); }
.vdr-num { font-family: var(--font-mono); font-size: 1.25rem; font-weight: 700; color: var(--primary-bright, #d4516e); }
.vdr-lab { font-size: 0.7rem; color: var(--muted); line-height: 1.4; }
@media (max-width: 640px) {
  .vdr-grid, .vdr-results { grid-template-columns: 1fr; }
  .vdr-gate { flex-direction: column; }
}

/* ============ GSAP motion layer support ============ */

/* When GSAP owns motion, the CSS reveal system stands down */
body.gsap-on .reveal:not(.revealed),
body.gsap-on .reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
body.gsap-on .vd-demo__line { animation: none; opacity: 1; }
body.gsap-on .vd-hero__dashboard { animation: none; }

/* ambient radar sweep behind hero */
.vd-radar {
  position: absolute;
  top: 50%; left: 50%;
  width: 140vmax; height: 140vmax;
  margin: -70vmax 0 0 -70vmax;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    transparent 0deg,
    rgba(163, 41, 66, 0.07) 28deg,
    rgba(212, 81, 110, 0.045) 52deg,
    transparent 80deg);
  pointer-events: none;
  z-index: 0;
}
.vd-hero, .ld-hero { position: relative; }
.vd-hero__inner, .ld-hero__inner { position: relative; z-index: 1; }

/* nav auto-hide */
.vd-nav { transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s, box-shadow 0.3s; }
.vd-nav--hidden { transform: translateY(-110%); }
.vd-nav--hidden .vd-nav__dropdown { display: none; }

/* wordmark: two-color bold treatment */
.vd-brand__vitality {
  color: #f5f0eb;
  font-weight: 700;
}
.vd-brand__desk {
  color: #A32942;
  font-weight: 700;
}
