/* Home landing — animated walkthrough & hero (page-home body) */

.page-home .home-reveal {
  opacity: 0;
  transform: translateY(22px);
}
.page-home .home-reveal.is-visible {
  opacity: 1;
  transform: none;
}

body.page-home.site-nav-open main {
  pointer-events: none;
}

body.page-home.has-watermark::before {
  opacity: 0.28;
}

.home-hero--v2 {
  padding: clamp(32px, 6vw, 56px) 0 clamp(28px, 4vw, 40px);
  margin-top: 0;
  background: linear-gradient(165deg, var(--theme-background) 0%, var(--theme-primary-soft) 45%, var(--theme-primary-soft) 100%);
  border-bottom: 1px solid color-mix(in srgb, var(--theme-border-active) 12%, transparent);
}

.home-hero__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, color-mix(in srgb, var(--theme-border-active) 18%, transparent), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 30%, color-mix(in srgb, var(--theme-border-active) 20%, transparent), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(56, 189, 248, 0.08), transparent 55%);
  animation: homeMeshShift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes homeMeshShift {
  0% { opacity: 0.85; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.04) translate(1%, -1%); }
}

.home-hero__orb--c {
  width: 160px;
  height: 160px;
  background: color-mix(in srgb, var(--theme-border-active) 25%, transparent);
  top: 40%;
  right: -40px;
  animation-delay: -5s;
}

.home-hero__grid--v2 {
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(20px, 4vw, 40px);
  position: relative;
  z-index: 1;
}

.home-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid color-mix(in srgb, var(--theme-border-active) 25%, transparent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--theme-primary);
  box-shadow: 0 4px 20px color-mix(in srgb, var(--theme-primary) 8%, transparent);
}

.home-hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
  animation: homePulseDot 2s ease-in-out infinite;
}

@keyframes homePulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.85; }
}

.home-hero__title {
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--header-ink);
  margin: 0 0 16px;
}

.home-hero__gradient-text {
  background: linear-gradient(120deg, var(--theme-primary) 0%, var(--theme-primary) 45%, #2563eb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-hero__lede {
  font-size: clamp(15px, 2vw, 17px);
  max-width: 36rem;
}

.home-hero__checks {
  list-style: none;
  margin: 20px 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-hero__checks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--theme-primary);
  font-weight: 600;
  line-height: 1.45;
}

.home-hero__check-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--theme-border-active), var(--theme-primary));
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.home-hero__orbit {
  position: relative;
  aspect-ratio: 1;
  max-width: 420px;
  margin: 0 auto;
}

.home-hero__core {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--theme-primary), var(--theme-border-active));
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 24px 60px color-mix(in srgb, var(--theme-primary) 35%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: homeCoreFloat 6s ease-in-out infinite;
}

.home-hero__core-ring {
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  border: 2px dashed color-mix(in srgb, var(--theme-border-active) 35%, transparent);
  animation: homeSpin 24s linear infinite;
}

@keyframes homeSpin {
  to { transform: rotate(360deg); }
}

@keyframes homeCoreFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.home-hero__core-title {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.home-hero__core-sub {
  font-size: 12px;
  opacity: 0.9;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-hero__float-card {
  position: absolute;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid color-mix(in srgb, var(--theme-primary-soft) 90%, transparent);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--theme-primary) 12%, transparent);
  backdrop-filter: blur(8px);
  min-width: 100px;
}

.home-hero__float-card--a {
  top: 8%;
  left: 0;
  animation: homeFloatA 7s ease-in-out infinite;
}

.home-hero__float-card--b {
  top: 12%;
  right: 0;
  animation: homeFloatB 8s ease-in-out infinite;
}

.home-hero__float-card--c {
  bottom: 10%;
  left: 10%;
  animation: homeFloatC 6.5s ease-in-out infinite;
}

@keyframes homeFloatA {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(6px, -10px); }
}

@keyframes homeFloatB {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-8px, 8px); }
}

@keyframes homeFloatC {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(10px, 6px); }
}

.home-hero__float-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--theme-primary);
  margin-bottom: 6px;
}

.home-hero__float-bar {
  display: block;
  height: 6px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--theme-primary-soft), var(--theme-border-active));
  margin-bottom: 4px;
  width: 100%;
}

.home-hero__float-bar--short {
  width: 65%;
}

.home-hero__float-stat {
  font-size: 1.35rem;
  color: var(--header-ink);
}

.home-hero__float-icons {
  font-size: 11px;
  font-weight: 800;
  color: var(--theme-primary);
  letter-spacing: 0.05em;
}

/* Walkthrough */
.home-walkthrough {
  padding: clamp(40px, 6vw, 64px) 0;
}

.home-walkthrough__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 32px;
}

.home-walkthrough__intro {
  margin: 12px auto 0;
}

.home-walkthrough__stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(20px, 3vw, 32px);
  align-items: stretch;
  position: relative;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(160deg, #fff 0%, var(--theme-primary-soft) 100%);
  border: 1px solid color-mix(in srgb, var(--theme-border-active) 18%, transparent);
  box-shadow: 0 24px 64px color-mix(in srgb, var(--theme-primary-deep) 8%, transparent);
}

.home-walkthrough__progress {
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 4px;
  border-radius: 999px;
  background: var(--theme-primary-soft);
  overflow: hidden;
}

.home-walkthrough__progress-fill {
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, var(--theme-border-active), var(--theme-border-active));
  border-radius: inherit;
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-walkthrough__progress-fill[data-progress-total="5"][data-progress-step="1"] { width: 20%; }
.home-walkthrough__progress-fill[data-progress-total="5"][data-progress-step="2"] { width: 40%; }
.home-walkthrough__progress-fill[data-progress-total="5"][data-progress-step="3"] { width: 60%; }
.home-walkthrough__progress-fill[data-progress-total="5"][data-progress-step="4"] { width: 80%; }
.home-walkthrough__progress-fill[data-progress-total="5"][data-progress-step="5"] { width: 100%; }

.home-walkthrough__steps {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-wt-step {
  display: grid;
  grid-template-columns: 36px 40px 1fr;
  gap: 12px;
  align-items: start;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.home-wt-step:hover {
  background: rgba(255, 255, 255, 0.7);
  border-color: color-mix(in srgb, var(--theme-primary-soft) 80%, transparent);
}

.home-wt-step.is-active {
  background: #fff;
  border-color: var(--theme-primary-soft);
  box-shadow: 0 8px 28px color-mix(in srgb, var(--theme-primary) 10%, transparent);
  transform: translateX(4px);
}

.home-wt-step__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--theme-primary-soft);
  color: var(--theme-primary);
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-wt-step.is-active .home-wt-step__num {
  background: linear-gradient(145deg, var(--theme-border-active), var(--theme-primary));
  color: #fff;
}

.home-wt-step__icon {
  font-size: 1.35rem;
  line-height: 1;
  padding-top: 4px;
}

.home-wt-step__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.home-wt-step__text strong {
  font-size: 15px;
  color: var(--header-ink);
}

.home-wt-step__text span {
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
}

.home-wt-screen {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--theme-primary-soft);
  background: #0f172a;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.home-wt-screen__chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #1e293b;
  border-bottom: 1px solid #334155;
}

.home-wt-screen__chrome span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #475569;
}

.home-wt-screen__chrome span:nth-child(1) { background: #f87171; }
.home-wt-screen__chrome span:nth-child(2) { background: #fbbf24; }
.home-wt-screen__chrome span:nth-child(3) { background: #4ade80; }

.home-wt-screen__chrome em {
  margin-left: auto;
  font-style: normal;
  font-size: 11px;
  color: #94a3b8;
  letter-spacing: 0.04em;
}

.home-wt-screen__body {
  position: relative;
  flex: 1;
  padding: 20px;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
}

.home-wt-pane {
  position: absolute;
  inset: 20px;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition:
    opacity 0.45s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.home-wt-pane.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.home-wt-mock {
  color: #e2e8f0;
}

.home-wt-mock__title {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 700;
  color: #f8fafc;
}

.home-wt-mock__hint {
  margin: 16px 0 0;
  font-size: 11px;
  color: #94a3b8;
}

.home-wt-mock__field {
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 10px;
  animation: homeShimmer 2.2s ease-in-out infinite;
}

.home-wt-mock__btn {
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--theme-border-active), var(--theme-border-active));
  margin-top: 8px;
  animation: homeShimmer 2.2s ease-in-out infinite 0.3s;
}

.home-wt-mock__progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 16px;
  overflow: hidden;
}

.home-wt-mock__progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--theme-border-active), var(--theme-border-active));
  animation: homeProgressPulse 2.5s ease-in-out infinite;
}

.home-wt-mock__progress-bar--62 {
  width: 62%;
}

@keyframes homeProgressPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.home-wt-mock__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.home-wt-mock__row span {
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  animation: homeShimmer 2s ease-in-out infinite;
}

.home-wt-mock__table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.home-wt-mock__table span {
  height: 28px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--theme-border-active) 25%, transparent);
  animation: homeTablePop 0.6s ease backwards;
}

.home-wt-mock__table span:nth-child(1) { animation-delay: 0.05s; }
.home-wt-mock__table span:nth-child(2) { animation-delay: 0.1s; }
.home-wt-mock__table span:nth-child(3) { animation-delay: 0.15s; }
.home-wt-mock__table span:nth-child(4) { animation-delay: 0.2s; }
.home-wt-mock__table span:nth-child(5) { animation-delay: 0.25s; }
.home-wt-mock__table span:nth-child(6) { animation-delay: 0.3s; }
.home-wt-mock__table span:nth-child(7) { animation-delay: 0.35s; }
.home-wt-mock__table span:nth-child(8) { animation-delay: 0.4s; }
.home-wt-mock__table span:nth-child(9) { animation-delay: 0.45s; }

@keyframes homeTablePop {
  from { opacity: 0; transform: scaleY(0.6); }
  to { opacity: 1; transform: none; }
}

@keyframes homeShimmer {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

.home-wt-mock__doc {
  height: 120px;
  border-radius: 10px;
  border: 1px dashed color-mix(in srgb, var(--theme-border-active) 50%, transparent);
  background: rgba(255, 255, 255, 0.04);
  animation: homeShimmer 2.5s ease-in-out infinite;
}

.home-wt-mock__tier {
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  font-size: 12px;
  font-weight: 600;
}

.home-wt-mock__files {
  display: flex;
  gap: 12px;
}

.home-wt-mock__files span {
  flex: 1;
  text-align: center;
  padding: 20px 12px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
  background: linear-gradient(145deg, color-mix(in srgb, var(--theme-border-active) 35%, transparent), color-mix(in srgb, var(--theme-border-active) 25%, transparent));
  border: 1px solid color-mix(in srgb, var(--theme-border-active) 40%, transparent);
  animation: homeFloatA 4s ease-in-out infinite;
}

.home-wt-mock__files span:last-child {
  animation-delay: -2s;
}

.home-wt-controls {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-top: 8px;
}

.home-wt-play {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--theme-primary-soft);
  background: #fff;
  color: var(--theme-primary);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.home-wt-play:hover {
  box-shadow: 0 8px 24px color-mix(in srgb, var(--theme-primary) 15%, transparent);
  transform: translateY(-1px);
}

.home-wt-play.is-playing {
  background: linear-gradient(145deg, var(--theme-border-active), var(--theme-primary));
  color: #fff;
  border-color: transparent;
}

.home-wt-dots {
  display: flex;
  gap: 8px;
}

.home-wt-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: var(--theme-primary-soft);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.home-wt-dot.is-active {
  background: var(--theme-border-active);
  transform: scale(1.25);
}

.home-audience__grid {
  margin-top: 20px;
}

.home-audience__card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-audience__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px color-mix(in srgb, var(--theme-primary) 12%, transparent);
}

.home-audience__icon {
  font-size: 2rem;
  margin-bottom: 8px;
  line-height: 1;
}

.home-stat-row {
  grid-template-columns: repeat(4, 1fr);
}

.home-deliverables__card h3 {
  font-size: 0.95rem;
  margin: 0 0 6px;
}

.home-deliverables__sub {
  font-size: 12px;
  margin: 0;
  line-height: 1.4;
}

.cta-band--glow {
  position: relative;
  overflow: hidden;
}

.cta-band--glow::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  animation: homeSpin 12s linear infinite;
  pointer-events: none;
}

.cta-band--glow > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 960px) {
  .home-walkthrough__stage {
    grid-template-columns: 1fr;
  }
  .home-wt-screen {
    order: -1;
    min-height: 240px;
  }
  .home-stat-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .home-hero__grid--v2 {
    grid-template-columns: 1fr;
  }
  .home-hero__visual {
    max-width: 320px;
    margin: 0 auto;
  }
}

.home-seo-topics__lede {
  max-width: 52rem;
  line-height: 1.55;
  margin-bottom: 14px;
}
.home-seo-topics__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-seo-topics__list a {
  display: block;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--theme-border-active) 45%, transparent);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), color-mix(in srgb, var(--theme-primary-soft) 85%, transparent));
  color: var(--theme-primary-hover);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.home-seo-topics__list a:hover {
  border-color: var(--theme-border-active);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--theme-primary) 12%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__mesh,
  .home-hero__core,
  .home-hero__core-ring,
  .home-hero__float-card,
  .home-hero__badge-dot,
  .cta-band--glow::before {
    animation: none !important;
  }
  .home-wt-pane {
    transition: opacity 0.2s ease;
    transform: none !important;
  }
  .home-wt-mock__table span,
  .home-wt-mock__field,
  .home-wt-mock__btn,
  .home-wt-mock__row span {
    animation: none !important;
  }
}
