/* Component styles — @theme stays inline in index.html for Tailwind browser CDN */

/* ---- Brand ---- */
.brand {
  font-size: 24px;
  letter-spacing: -0.03em;
}
.brand--footer {
  font-size: 17px;
}
.brand-pricing {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #8faec7;
}
.brand-pricing--footer {
  font-size: 11px;
}

/* ---- Typography patterns ---- */
.eyebrow {
  color: #2D6EFF;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.eyebrow--loose {
  margin-bottom: 1.25rem;
}
.section-title {
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
@media (min-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
}
.section-title-sm {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}
@media (min-width: 768px) {
  .section-title-sm {
    font-size: 1.625rem;
  }
}

/* ---- Buttons (CTA wired in vera.js) ---- */
.btn-primary {
  background-color: #2D6EFF;
  color: #fff;
  font-weight: 500;
  border-radius: 0.375rem;
  transition: background-color 0.15s;
  cursor: pointer;
}
.btn-primary:hover {
  background-color: #1a4fd4;
}
.btn-primary--nav {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}
.btn-primary--hero {
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
}
.btn-primary--close {
  display: inline-flex;
  padding: 0.75rem 2rem;
  font-size: 1rem;
}

/* ---- Nav ---- */
#navbar {
  background-color: rgba(10, 15, 30, 0.85);
  border-bottom: 1px solid rgba(30, 41, 59, 0.5);
}

/* ---- Layout helpers ---- */
.icon-box {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.analytics-map-scroll {
  height: 300vh; /* 200vh scroll range + 100vh sticky panel = 4 states */
}
@media (min-width: 1024px) {
  .analytics-map-scroll.reveal-section {
    display: block;
    min-height: auto;
  }
}
.analysis-cards-grid {
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
}

/* ---- Ambient background ---- */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.ambient-blob {
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
  will-change: transform;
}
.ambient-blob--1 {
  top: 5%;
  left: 30%;
  width: 700px;
  height: 700px;
  background: rgba(45, 110, 255, 0.18);
  filter: blur(100px);
}
.ambient-blob--2 {
  top: -40%;
  right: -2%;
  width: 550px;
  height: 550px;
  background: rgba(45, 110, 255, 0.12);
  filter: blur(90px);
}
.ambient-blob--3 {
  top: 80%;
  left: -5%;
  width: 600px;
  height: 600px;
  background: rgba(45, 110, 255, 0.14);
  filter: blur(100px);
}
.ambient-blob--4 {
  top: -60%;
  right: 15%;
  width: 600px;
  height: 600px;
  background: rgba(45, 110, 255, 0.12);
  filter: blur(90px);
}

/* ---- Scroll reveal ---- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  transition-delay: var(--reveal-delay, 0ms);
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Section-level reveal + pacing ---- */
.reveal-section {
  scroll-margin-top: 5rem;
  position: relative;
}
@media (min-width: 1024px) {
  .reveal-section {
    min-height: 100svh;
    display: flex;
    align-items: center;
  }
  .reveal-section > :not(.absolute) {
    width: 100%;
  }
}

/* ---- Cards ---- */
.card-glass {
  background: rgba(15, 22, 41, 0.6);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(30, 41, 59, 0.5);
}
.card-glass:hover {
  border-color: rgba(45, 110, 255, 0.3);
}

/* ---- Shared feature card pattern (problem / what vera is / who it's for) ---- */
.feature-card-grid {
  align-items: stretch;
}
.feature-card {
  height: 100%;
}

/* ---- Design partner timeline ---- */
.partner-timeline__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.partner-timeline__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.25rem;
  padding-bottom: 2rem;
  position: relative;
}
.partner-timeline__step:last-child {
  padding-bottom: 0;
}
.partner-timeline__step:first-child::after {
  content: '';
  position: absolute;
  left: 7px;
  top: calc(0.2rem + 8px);
  width: 2px;
  height: 200%;
  transform: translateX(-50%);
  background: linear-gradient(
    to bottom,
    rgba(45, 110, 255, 0.55),
    rgba(124, 58, 237, 0.5) 50%,
    rgba(245, 166, 35, 0.55)
  );
  z-index: 0;
  pointer-events: none;
}
.partner-timeline__node {
  width: 16px;
  height: 16px;
  border-radius: 9999px;
  margin-top: 0.2rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px rgba(15, 22, 41, 0.9);
}
.partner-timeline__node--accent {
  background: #2D6EFF;
  box-shadow: 0 0 0 4px rgba(15, 22, 41, 0.9), 0 0 12px rgba(45, 110, 255, 0.45);
}
.partner-timeline__node--purple {
  background: #7C3AED;
  box-shadow: 0 0 0 4px rgba(15, 22, 41, 0.9), 0 0 12px rgba(124, 58, 237, 0.4);
}
.partner-timeline__node--amber {
  background: #F5A623;
  box-shadow: 0 0 0 4px rgba(15, 22, 41, 0.9), 0 0 12px rgba(245, 166, 35, 0.35);
}
.partner-timeline__when {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.25rem;
}
.partner-timeline__step:nth-child(1) .partner-timeline__when { color: #2D6EFF; }
.partner-timeline__step:nth-child(2) .partner-timeline__when { color: #7C3AED; }
.partner-timeline__step:nth-child(3) .partner-timeline__when { color: #F5A623; }
.partner-timeline__title {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}
.partner-timeline__body {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #94a3b8;
  margin: 0;
}

@media (min-width: 768px) {
  .partner-timeline__steps {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
    padding-top: 0;
  }
  .partner-timeline__step:first-child::after {
    top: 8px;
    left: 50%;
    width: 200%;
    height: 2px;
    transform: translateY(-50%);
    background: linear-gradient(
      to right,
      rgba(45, 110, 255, 0.55),
      rgba(124, 58, 237, 0.5) 50%,
      rgba(245, 166, 35, 0.55)
    );
  }
  .partner-timeline__step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 0.75rem 0;
    grid-template-columns: unset;
    gap: 0;
    position: relative;
  }
  .partner-timeline__node {
    margin: 0 auto 1.25rem;
    margin-top: 0;
  }
  .partner-timeline__content {
    max-width: 14rem;
  }
}

/* ---- Hero mock trace ---- */
.hero-trace-table {
  border-collapse: collapse;
}
@media (prefers-reduced-motion: reduce) {
  #hero-action-view,
  #hero-trace-view {
    transition: none;
  }
}

.dot-grid {
  background-image: radial-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ---- Analytics map ---- */
.analysis-card {
  transition: opacity 0.7s ease, border-color 0.7s ease, box-shadow 0.7s ease, filter 0.7s ease;
}
.analysis-card.locked {
  opacity: 0.2;
  filter: saturate(0);
}
.analysis-card.unlocked {
  opacity: 1;
  filter: saturate(1);
}
.analysis-card.unlocked[data-cluster="a"] {
  box-shadow: 0 0 16px rgba(45, 110, 255, 0.12);
  border-color: rgba(45, 110, 255, 0.35);
}
.analysis-card.unlocked[data-cluster="b"] {
  box-shadow: 0 0 16px rgba(124, 58, 237, 0.12);
  border-color: rgba(124, 58, 237, 0.35);
}
.analysis-card.unlocked[data-cluster="c"] {
  box-shadow: 0 0 16px rgba(245, 166, 35, 0.12);
  border-color: rgba(245, 166, 35, 0.35);
}
.analysis-card.unlocked[data-cluster="d"] {
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.35);
}

.data-node {
  transition: opacity 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease;
}
.data-node.inactive {
  opacity: 0.3;
}
.data-node.active {
  opacity: 1;
}
#node-transactional.data-node.active {
  box-shadow: 0 0 24px rgba(45, 110, 255, 0.18);
  border-color: rgba(45, 110, 255, 0.5);
}
#node-product.data-node.active {
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.18);
  border-color: rgba(124, 58, 237, 0.5);
}
#node-customer.data-node.active {
  box-shadow: 0 0 24px rgba(245, 166, 35, 0.18);
  border-color: rgba(245, 166, 35, 0.5);
}
#node-market.data-node.active {
  box-shadow: 0 0 24px rgba(52, 211, 153, 0.18);
  border-color: rgba(52, 211, 153, 0.5);
}

.state-bar-fill {
  transition: width 0.6s ease;
}
.map-step-label.is-past,
.map-step-label.is-current {
  color: #f1f5f9;
}
.map-step-label.is-current {
  font-weight: 600;
}
#scroll-hint.is-hidden {
  opacity: 0;
}

.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }

html {
  scroll-behavior: smooth;
}

@keyframes bounce-hint {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
.animate-bounce-hint { animation: bounce-hint 1.5s infinite; }

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .ambient-blob { transition: none; }
  .animate-bounce-hint { animation: none; }
  .state-bar-fill { transition: none; }
  .data-node,
  .analysis-card { transition: none; }
}
