html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 100ms; }
.stagger-2 { transition-delay: 200ms; }
.stagger-3 { transition-delay: 300ms; }
.stagger-4 { transition-delay: 400ms; }
.stagger-5 { transition-delay: 500ms; }

/* Gradient text */
.ai-collab-bg {
  background: linear-gradient(78.26deg, #1162e1 -10.21%, #844bfb 76.67%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.gradient-text {
  background: linear-gradient(135deg, #4588FF 0%, #6B46C1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Ambient orbs */
@keyframes orb-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -40px) scale(1.05); }
  66%       { transform: translate(-20px, 20px) scale(0.95); }
}

@keyframes orb-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(-40px, 30px) scale(0.95); }
  66%       { transform: translate(20px, -30px) scale(1.05); }
}

.animate-orb-1 { animation: orb-drift-1 20s ease-in-out infinite; }
.animate-orb-2 { animation: orb-drift-2 25s ease-in-out infinite; }

/* Nav scroll state */
.nav-scrolled {
  background-color: rgba(15, 10, 31, 0.85) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}

/* FAQ accordion */
.faq-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 350ms ease, opacity 350ms ease;
}

.faq-answer.is-open {
  max-height: 400px;
  opacity: 1;
}

.faq-chevron {
  transition: transform 300ms ease;
  flex-shrink: 0;
}

.faq-chevron.is-open {
  transform: rotate(180deg);
}

/* Video frame (matching existing site) */
.video-frame-container {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0px 13px 53px 0px rgba(37, 64, 115, 0.6);
  background: linear-gradient(141deg,
    rgba(43, 143, 255, 0.5) -6%,
    rgba(191, 123, 203, 0.5) 36%,
    rgba(151, 192, 199, 0.5) 68%,
    rgba(174, 159, 198, 0.5) 78%
  );
  padding: 10px;
}

.video-frame-container img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

/* Comparison table scroll on mobile */
.compare-scroll-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Glow */
.glow-blue-strong {
  box-shadow: 0 4px 24px rgba(69, 136, 255, 0.4);
}

/* Step card hover */
.step-card {
  transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: #334155;
  box-shadow: 0 0 40px rgba(69, 136, 255, 0.12);
}

/* Feature block image hover */
.feature-image-wrap {
  transition: border-color 300ms ease, box-shadow 300ms ease;
}

.feature-image-wrap:hover {
  border-color: #334155;
  box-shadow: 0 0 40px rgba(69, 136, 255, 0.12);
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0F0A1F; }
::-webkit-scrollbar-thumb { background: #1E293B; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #334155; }

/* ========= Three Steps — Horizontal Accordion ========= */

.step-hacc-wrap {
  display: flex;
  gap: 12px;
  align-items: stretch;
  height: 380px;
}

.step-hacc-card {
  flex: 1;
  min-width: 0;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(15, 10, 31, 0.06), 0 8px 32px rgba(15, 10, 31, 0.04);
  transition: flex 0.52s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.52s ease;
  cursor: default;
}

.step-hacc-card:hover,
.step-hacc-card.is-expanded {
  flex: 2.5;
  box-shadow: 0 8px 32px rgba(15, 10, 31, 0.10), 0 32px 72px rgba(15, 10, 31, 0.07);
}

/* When any card is hovered, collapse the default-expanded card if it isn't the one being hovered */
.step-hacc-wrap:hover .step-hacc-card.is-expanded:not(:hover) {
  flex: 1;
  box-shadow: 0 2px 12px rgba(15, 10, 31, 0.06), 0 8px 32px rgba(15, 10, 31, 0.04);
}

.step-hacc-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 36px 32px 32px;
  gap: 0;
}

.step-hacc-top {
  flex-shrink: 0;
  margin-bottom: 20px;
}

.step-hacc-bottom {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  min-height: 0;
  overflow: hidden;
}

.step-hacc-body {
  flex: 0 0 160px;
  font-size: 16px;
  line-height: 1.7;
  color: #4B5563;
}

.step-hacc-visual {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  opacity: 0;
  transform: translateX(18px);
  transition: opacity 0.28s ease 0.22s, transform 0.28s ease 0.22s;
  pointer-events: none;
}

.step-hacc-card:hover .step-hacc-visual,
.step-hacc-card.is-expanded .step-hacc-visual {
  opacity: 1;
  transform: translateX(0);
}

/* Collapse visual when default card loses its expanded state */
.step-hacc-wrap:hover .step-hacc-card.is-expanded:not(:hover) .step-hacc-visual {
  opacity: 0;
  transform: translateX(18px);
}

.card-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4588FF 0%, #6B46C1 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.card-headline {
  font-size: 26px;
  line-height: 1.15;
  font-weight: 700;
  color: #0F0A1F;
}

/* legacy alias — keep for any other usage */
.card-body {
  font-size: 16px;
  line-height: 1.7;
  color: #4B5563;
  margin-top: 16px;
}

/* Mobile: stack vertically */
@media (max-width: 1023px) {
  .step-hacc-wrap {
    flex-direction: column;
    height: auto;
    gap: 16px;
  }

  .step-hacc-card,
  .step-hacc-card.is-expanded {
    flex: none;
    width: 100%;
  }

  .step-hacc-inner {
    padding: 36px 32px;
  }

  .step-hacc-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .step-hacc-body {
    flex: none;
    width: 100%;
    font-size: 16px;
  }

  .step-hacc-visual {
    width: 100%;
    opacity: 1;
    transform: translateX(0);
    transition: none;
  }

  .card-headline { font-size: 32px; }
  .card-step-badge { margin-bottom: 20px; }
}

/* ========= FAQ Editorial Redesign ========= */

.faq-big-label {
  display: block;
  font-size: clamp(56px, 6.5vw, 96px);
  font-weight: 900;
  color: #0F0A1F;
  line-height: 1;
  letter-spacing: -0.025em;
}

@media (min-width: 1024px) {
  .faq-label-sticky {
    position: sticky;
    top: 120px;
  }
}

.faq-tab-bar {
  display: flex;
  border-bottom: 1px solid #E2E8F0;
  padding-top: 16px;
}

.faq-tab-btn-ed {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #94A3B8;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 14px 0;
  margin-right: 36px;
  margin-bottom: -1px;
  cursor: pointer;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color 200ms ease, border-color 200ms ease;
}

.faq-tab-btn-ed.is-active {
  color: #0F0A1F;
  border-bottom-color: #4588FF;
}

.faq-tab-btn-ed:hover:not(.is-active) {
  color: #475569;
}

.faq-tab-group {
  display: none;
}

.faq-tab-group.is-active {
  display: block;
}

.faq-section-light .faq-item {
  border-bottom: 1px solid #E2E8F0;
}

.faq-section-light .faq-item:first-child {
  border-top: 1px solid #E2E8F0;
}

.faq-section-light .faq-button {
  padding: 32px 0;
  gap: 24px;
}

.faq-section-light .faq-question-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #0F0A1F;
  line-height: 1.3;
  transition: color 200ms ease;
}

.faq-section-light .faq-button:hover .faq-question-text {
  color: #4588FF;
}

.faq-section-light .faq-answer p {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: #64748B;
  padding-bottom: 32px;
}

.faq-section-light .faq-answer a {
  color: #4588FF;
  text-decoration: none;
}

.faq-section-light .faq-answer a:hover {
  text-decoration: underline;
}

.faq-section-light .faq-chevron {
  color: #94A3B8;
}

/* ========= Scroll-driven text reveal ========= */

.scroll-word {
  color: white;
  opacity: 0.15;
  transition: opacity 0.3s ease;
  display: inline;
}

.scroll-word.highlight {
  color: #4588FF;
}

.scroll-word.highlight-closing {
  background: linear-gradient(135deg, #4588FF 0%, #6B46C1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.scroll-gap {
  display: block;
  height: 1em;
}

/* ========= Infinite logo marquee ========= */

@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-wrapper {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 3.5rem;
  animation: marquee-scroll 28s linear infinite;
  will-change: transform;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 200ms ease;
}

.marquee-item:hover {
  opacity: 1;
}

/* ========= What Changes — tab switcher ========= */

.wc-tab-btn {
  padding: 14px 32px;
  border-radius: 9999px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 18px;
  background: rgba(255, 255, 255, 0.07);
  color: #94A3B8;
  border: none;
  cursor: pointer;
  transition: background 220ms ease, color 220ms ease;
  white-space: nowrap;
}

.wc-tab-btn.is-active {
  background: linear-gradient(90deg, #1162E1, #844BFB);
  color: white;
}

.wc-tab-panel {
  display: none;
}

.wc-tab-panel.is-active {
  display: flex;
  animation: tab-fade-in 320ms ease;
}

@keyframes tab-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ========= Hero illustration ========= */

@keyframes hero-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-18px); }
}

@keyframes hero-glow-pulse {
  0%, 100% { filter: drop-shadow(0 24px 48px rgba(69, 136, 255, 0.28)); }
  50%       { filter: drop-shadow(0 36px 72px rgba(132, 75, 251, 0.45)); }
}

.hero-illustration {
  animation: hero-float 6s ease-in-out infinite,
             hero-glow-pulse 6s ease-in-out infinite;
  will-change: transform, filter;
}

/* ========= CTA gradient button ========= */

.cta-gradient-btn {
  background: linear-gradient(135deg, #4588FF 0%, #6B46C1 100%);
  transition: opacity 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  box-shadow: 0 4px 20px rgba(69, 136, 255, 0.35);
  color: white;
  text-decoration: none;
}

.cta-gradient-btn:hover {
  opacity: 0.9;
  transform: scale(1.02);
  box-shadow: 0 6px 28px rgba(69, 136, 255, 0.5);
}

/* ========= Ivy Hero Illustration ========= */

.ivy-hero-wrap {
  padding: 40px 36px;
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  max-width: 560px;
}
.ivy-blob { display: none; }

.ivy-flow {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ivy-card-rec {
  background: #0f172a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 16px 20px;
  width: 100%;
}
.ivy-rec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.ivy-rec-dot {
  width: 8px; height: 8px;
  background: #ef4444;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  animation: ivy-blink 1.5s infinite;
}
@keyframes ivy-blink { 0%,100%{opacity:1} 50%{opacity:0.3} }
.ivy-rec-label { font-size: 11px; font-weight: 700; color: #ef4444; letter-spacing: 0.08em; }
.ivy-rec-title  { font-size: 12px; color: rgba(255,255,255,0.5); margin-left: 8px; }
.ivy-avatars    { display: flex; }
.ivy-av {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700;
  border: 2px solid #0f172a;
  margin-left: -5px;
}
.ivy-av:first-child { margin-left: 0; }
.ivy-waveform { display: flex; align-items: center; gap: 3px; height: 28px; }
.ivy-bar {
  width: 3px; border-radius: 2px;
  background: #6366f1;
  animation: ivy-wave 1.4s ease-in-out infinite;
}
.ivy-bar:nth-child(1){height:35%;animation-delay:0s}
.ivy-bar:nth-child(2){height:65%;animation-delay:.1s}
.ivy-bar:nth-child(3){height:50%;animation-delay:.2s}
.ivy-bar:nth-child(4){height:85%;animation-delay:.3s}
.ivy-bar:nth-child(5){height:55%;animation-delay:.4s}
.ivy-bar:nth-child(6){height:75%;animation-delay:.5s}
.ivy-bar:nth-child(7){height:40%;animation-delay:.6s}
.ivy-bar:nth-child(8){height:70%;animation-delay:.7s}
.ivy-bar:nth-child(9){height:90%;animation-delay:.8s}
.ivy-bar:nth-child(10){height:45%;animation-delay:.9s}
.ivy-bar:nth-child(11){height:60%;animation-delay:.05s}
.ivy-bar:nth-child(12){height:80%;animation-delay:.15s}
.ivy-bar:nth-child(13){height:50%;animation-delay:.25s}
.ivy-bar:nth-child(14){height:70%;animation-delay:.35s}
.ivy-bar:nth-child(15){height:38%;animation-delay:.45s}
.ivy-bar:nth-child(16){height:88%;animation-delay:.55s}
.ivy-bar:nth-child(17){height:62%;animation-delay:.65s}
.ivy-bar:nth-child(18){height:44%;animation-delay:.75s}
@keyframes ivy-wave { 0%,100%{transform:scaleY(1)} 50%{transform:scaleY(0.3)} }

.ivy-connector {
  display: flex; flex-direction: column; align-items: center;
  position: relative; height: 44px; width: 2px;
}
.ivy-conn-track {
  width: 2px; height: 100%;
  border-left: 2px dashed rgba(139,92,246,0.4);
  position: relative;
}
.ivy-conn-dot {
  width: 8px; height: 8px;
  background: #a78bfa; border-radius: 50%;
  position: absolute; left: -5px; top: -4px;
  box-shadow: 0 0 8px #a78bfa;
  opacity: 0;
}
.ivy-conn-arrow-wrap { display: flex; justify-content: center; margin-top: 2px; }
.ivy-conn-arrow {
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid rgba(139,92,246,0.7);
}

.ivy-card-ai {
  background: linear-gradient(135deg, #4338ca, #7c3aed);
  border-radius: 16px;
  padding: 16px 20px;
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  position: relative; overflow: hidden;
}
.ivy-shimmer {
  position: absolute; top: 0; left: -60%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transform: skewX(-15deg);
}
.ivy-ai-left { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.ivy-sparkle {
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.18);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.ivy-ai-title { font-size: 15px; font-weight: 600; color: #fff; }
.ivy-ai-sub   { font-size: 12px; color: rgba(255,255,255,0.65); margin-top: 2px; min-height: 16px; transition: opacity 0.4s; }
.ivy-ai-badge {
  background: rgba(255,255,255,0.2); border-radius: 8px;
  padding: 4px 10px; font-size: 11px; font-weight: 700; color: #fff;
  position: relative; z-index: 1;
}

.ivy-split {
  display: flex; justify-content: center;
  width: 100%; position: relative; height: 50px;
}
.ivy-split-v {
  position: absolute; left: 50%; top: 0;
  width: 2px; height: 20px;
  border-left: 2px dashed rgba(139,92,246,0.4);
  transform: translateX(-50%);
}
.ivy-split-h {
  position: absolute; left: 16.5%; right: 16.5%; top: 20px;
  height: 2px; border-top: 2px dashed rgba(139,92,246,0.4);
}
.ivy-split-drop { position: absolute; top: 20px; width: 2px; height: 20px; border-left: 2px dashed rgba(139,92,246,0.4); }
.ivy-split-drop.l { left: 16.5%; }
.ivy-split-drop.c { left: 50%; transform: translateX(-50%); }
.ivy-split-drop.r { right: 16.5%; }
.ivy-split-arrow {
  position: absolute; bottom: 0;
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid rgba(139,92,246,0.7);
  transform: translateX(-50%);
}
.ivy-split-arrow.l { left: 16.5%; }
.ivy-split-arrow.c { left: 50%; }
.ivy-split-arrow.r { right: 16.5%; transform: translateX(50%); }
.ivy-travel-dot {
  width: 7px; height: 7px;
  background: #a78bfa; border-radius: 50%;
  box-shadow: 0 0 8px #a78bfa;
  position: absolute; opacity: 0;
  transform: translateX(-50%);
}

.ivy-bottom-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; width: 100%;
}
.ivy-card-action {
  background: #0f172a;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; padding: 14px;
  transition: border-color 0.4s, opacity 0.4s, filter 0.4s;
  opacity: 0.4; filter: brightness(0.7);
}
.ivy-card-action.active  { opacity: 1; filter: brightness(1); }
.ivy-card-action.flash   { border-color: #4ade80; }
.ivy-action-icon {
  width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff; margin-bottom: 6px;
}
.ivy-action-tag   { font-size: 9px; font-weight: 700; letter-spacing: 0.09em; color: rgba(255,255,255,0.3); margin-bottom: 5px; }
.ivy-action-title { font-size: 12px; font-weight: 600; color: #fff; line-height: 1.3; margin-bottom: 3px; }
.ivy-action-sub   { font-size: 10px; color: rgba(255,255,255,0.35); margin-bottom: 10px; }
.ivy-status-pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(74,222,128,0.15); border-radius: 20px;
  padding: 3px 8px; font-size: 9px; font-weight: 700; color: #4ade80;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.4s, transform 0.4s;
}
.ivy-card-action.active .ivy-status-pill { opacity: 1; transform: translateY(0); }

.ivy-footer {
  text-align: center; font-size: 12px;
  color: rgba(139,92,246,0.8); font-weight: 500;
  margin-top: 14px; letter-spacing: 0.02em;
}
