/* Silent Creek Tech — concept system */
:root {
  --navy: #0a192f;
  --navy-deep: #020617;
  --emerald: #10b981;
  --emerald-hover: #0d9668;
  --slate: #64748b;
  --white: #ffffff;
  --gray-bg: #f8fafc;
  --border: #e2e8f0;
  --radius-sm: 4px;
  --radius-md: 6px;
  --shadow-header: 0 1px 0 rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 4px 24px rgba(15, 23, 42, 0.08);
  --font-heading: "Inter", system-ui, sans-serif;
  --font-body: "Open Sans", system-ui, sans-serif;
  --container: min(1120px, 92vw);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: #1e293b;
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-header);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--navy-deep);
}

.logo-mark {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--emerald) 0%, #059669 100%);
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  opacity: 0.95;
  animation: logoGlow 4s ease-in-out infinite;
}

.logo-tech {
  font-weight: 500;
  color: var(--slate);
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
}

.nav-main a {
  position: relative;
}

.nav-main a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--emerald);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.28s ease;
}

.nav-main a:hover {
  color: var(--emerald);
}

.nav-main a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-header {
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 4vw 1.5rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-heading);
  font-weight: 500;
}

.mobile-nav.is-open {
  display: flex;
  animation: navSlideDown 0.35s ease forwards;
}

.mobile-nav a {
  transition: color 0.2s ease, transform 0.25s ease;
}

.mobile-nav a:hover {
  color: var(--emerald);
  transform: translateX(6px);
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-toggle span {
  transition: transform 0.25s ease, opacity 0.2s ease;
}

@media (max-width: 900px) {
  .nav-main,
  .btn-header {
    display: none;
  }

  .header-inner {
    justify-content: center;
    gap: 1.25rem;
  }

  /* Wordmark hidden on small screens; home link keeps aria-label */
  .site-header .logo-text {
    display: none;
  }

  .site-header .logo {
    gap: 0;
    justify-content: center;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-nav {
    align-items: center;
    text-align: center;
  }

  .mobile-nav a:hover {
    transform: translateY(-2px);
  }

  /* Footer brand column: center mark, links, and social icon */
  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-brand .logo-footer {
    justify-content: center;
  }

  .pillar {
    text-align: center;
  }

  .pillar .pillar-icon {
    margin-inline: auto;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--emerald);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--emerald-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-lg {
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
}

.btn-xl {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.link-underline {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  transition: color 0.2s ease, transform 0.25s ease;
}

.link-underline:hover {
  color: var(--emerald);
  transform: translateX(4px);
}

/* Hero */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4rem, 10vw, 6rem);
  overflow: hidden;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.35;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 38%);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    max-height: 280px;
  }
}

.hero-copy h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  color: var(--white);
}

.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  font-weight: 400;
  color: var(--slate);
  line-height: 1.65;
  margin: 0 0 2rem;
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
}

/* Hero visual — abstract nodes */
.hero-visual {
  position: relative;
  min-height: 320px;
}

.hero-nodes {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin-inline: auto;
  aspect-ratio: 1;
}

.node-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.35), rgba(16, 185, 129, 0.05));
  border: 2px solid var(--emerald);
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.25);
}

.node {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
  animation: pulse 3s ease-in-out infinite;
}

.n1 {
  left: 12%;
  top: 18%;
  animation-delay: 0s;
}
.n2 {
  right: 10%;
  top: 22%;
  animation-delay: 0.4s;
}
.n3 {
  left: 8%;
  bottom: 28%;
  animation-delay: 0.8s;
}
.n4 {
  right: 14%;
  bottom: 22%;
  animation-delay: 1.2s;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.85;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

.node-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.node-lines .line {
  fill: none;
  stroke: rgba(16, 185, 129, 0.35);
  stroke-width: 1.5;
  stroke-dasharray: 6 6;
  animation: dash 20s linear infinite;
}

@keyframes dash {
  to {
    stroke-dashoffset: -200;
  }
}

/* Social proof */
.social-proof {
  background: var(--white);
  padding: 1.75rem 0 2rem;
  border-bottom: 1px solid var(--border);
}

.social-label {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 1.25rem;
}

.logo-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.logo-track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.partner-logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: #94a3b8;
  white-space: nowrap;
  filter: grayscale(1);
  opacity: 0.85;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Value proposition */
.value-prop {
  background: var(--gray-bg);
}

.section-pad {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #334155;
  margin: 0 0 1rem;
}

.section-title.center {
  text-align: center;
  max-width: 20em;
  margin-inline: auto;
}

.section-lead {
  max-width: 52rem;
  margin: 0 auto 2.75rem;
  color: var(--slate);
  font-size: 1.05rem;
}

.section-lead.center {
  text-align: center;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.cards-grid.two-col {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 900px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .cards-grid.two-col {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.75rem;
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.card-icon {
  color: var(--emerald);
  margin-bottom: 1rem;
}

.card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--navy);
}

.card p {
  margin: 0 0 1.25rem;
  color: var(--slate);
  font-size: 0.95rem;
}

.card-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--emerald);
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease, transform 0.25s ease;
}

.card-link:hover {
  text-decoration: underline;
  transform: translateX(5px);
}

/* Differentiator */
.differentiator {
  background: var(--white);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.diff-visual {
  background: var(--gray-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2rem;
  min-height: 280px;
}

.flow-chart {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.flow-bar.roi {
  height: 120px;
  border-radius: var(--radius-sm);
  background: linear-gradient(
    to top right,
    rgba(16, 185, 129, 0.15),
    rgba(16, 185, 129, 0.45)
  );
  position: relative;
  clip-path: polygon(0 100%, 0 55%, 18% 48%, 35% 62%, 52% 28%, 70% 35%, 88% 12%, 100% 8%, 100% 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  transform-origin: bottom left;
}

.flow-chart.is-animated .flow-bar.roi {
  animation: roiGrow 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.flow-chart.is-animated .flow-step {
  animation: stepPop 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.flow-chart.is-animated .flow-step:nth-child(1) { animation-delay: 0.15s; }
.flow-chart.is-animated .flow-step:nth-child(3) { animation-delay: 0.35s; }
.flow-chart.is-animated .flow-step:nth-child(5) { animation-delay: 0.55s; }
.flow-chart.is-animated .flow-arrow:nth-child(2) { animation-delay: 0.25s; }
.flow-chart.is-animated .flow-arrow:nth-child(4) { animation-delay: 0.45s; }

.flow-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.flow-step {
  padding: 0.4rem 0.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.flow-arrow {
  color: var(--emerald);
  display: inline-block;
  animation: arrowPulse 1.8s ease-in-out infinite;
}

.flow-caption {
  margin: 0;
  font-size: 0.8rem;
  color: var(--slate);
}

.overline {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--emerald);
  margin: 0 0 0.75rem;
}

.diff-copy h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.diff-copy > p {
  margin: 0 0 1.5rem;
  color: var(--slate);
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.65rem;
  color: #334155;
  font-weight: 500;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--emerald);
  font-weight: 700;
}

.checklist.is-animated li {
  animation: checklistIn 0.45s ease backwards;
}

.checklist.is-animated li:nth-child(1) { animation-delay: 0.1s; }
.checklist.is-animated li:nth-child(2) { animation-delay: 0.22s; }
.checklist.is-animated li:nth-child(3) { animation-delay: 0.34s; }
.checklist.is-animated li:nth-child(4) { animation-delay: 0.46s; }

/* CTA band */
.cta-band {
  background: var(--navy);
  color: var(--white);
  padding: clamp(4rem, 10vw, 5.5rem) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(16, 185, 129, 0.12), transparent 70%);
  animation: ctaGlow 6s ease-in-out infinite;
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  margin-inline: auto;
}

.cta-band h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.cta-sub {
  color: var(--slate);
  margin: 0 0 2rem;
  font-size: 1.05rem;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #94a3b8;
  padding: 3.5rem 0 2.5rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 2.5rem;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.logo-footer .logo-text {
  color: var(--white);
}

.logo-footer .logo-tech {
  color: #94a3b8;
}

.tagline {
  margin: 1rem 0;
  line-height: 1.55;
  max-width: 16rem;
}

.social-li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid #334155;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--white);
}

.social-li:hover {
  border-color: var(--emerald);
  color: var(--emerald);
}

.site-footer .footer-email {
  color: #94a3b8;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer .footer-email:hover {
  color: var(--emerald);
}

.footer-col h3 {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a:hover {
  color: var(--emerald);
}

.hq {
  margin: 0 0 1rem;
  line-height: 1.5;
}

.copyright {
  margin: 1.25rem 0 0;
  font-size: 0.8rem;
  color: #64748b;
}

/* Generic page sections */
.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.kicker {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--emerald);
  margin: 0 0 0.75rem;
}

.center { text-align: center; }

.page-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.2vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  color: var(--white);
}

.page-sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  color: var(--slate);
  line-height: 1.65;
  margin: 0 0 2rem;
  max-width: 46rem;
}

/* Value pillars (3 core pillars) */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0 1.75rem;
}

@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; }
}

.pillar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
}

.pillar .pillar-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.pillar h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
}

.pillar p {
  margin: 0;
  color: var(--slate);
  font-size: 0.95rem;
}

/* Section cards / feature blocks */
.feature-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

@media (max-width: 900px) {
  .feature-wrap { grid-template-columns: 1fr; }
}

.panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.75rem;
}

.panel h3 {
  font-family: var(--font-heading);
  margin: 0 0 0.75rem;
  color: var(--navy);
}

.panel p {
  margin: 0 0 1rem;
  color: var(--slate);
}

/* Tech stack band */
.stack-band {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #ffffff;
}

.stack-pill {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  color: #334155;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.65rem;
  background: #f8fafc;
}

/* Details / accordions */
details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  padding: 0.75rem 1rem;
}

details + details {
  margin-top: 0.75rem;
}

summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
}

details p {
  margin: 0.75rem 0 0;
  color: var(--slate);
}

/* Metrics grid */
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 900px) {
  .metrics { grid-template-columns: 1fr; }
}

.metric {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--gray-bg);
  padding: 1.25rem 1.25rem 1rem;
}

.metric .value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--emerald);
  margin: 0 0 0.35rem;
}

.metric .label {
  color: var(--slate);
  margin: 0;
  font-weight: 600;
}

/* Before/after slider */
.ba {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #ffffff;
}

.ba-stage {
  position: relative;
  height: 220px;
}

.ba-base,
.ba-overlay {
  position: absolute;
  inset: 0;
}

.ba-base {
  background: linear-gradient(180deg, rgba(148,163,184,0.18), rgba(148,163,184,0.06));
  padding: 1rem;
  font-family: var(--font-heading);
  color: #0f172a;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.ba-overlay {
  width: 50%;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(16,185,129,0.18), rgba(16,185,129,0.06));
  padding: 1rem;
  font-family: var(--font-heading);
  color: #0f172a;
}

.ba-base .ba-box,
.ba-overlay .ba-box {
  flex: 1;
  border: 1px dashed rgba(148,163,184,0.55);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  background: rgba(255,255,255,0.75);
}

.ba-overlay .ba-box {
  border-style: solid;
  border-color: rgba(16,185,129,0.35);
}

.ba-hint {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.ba-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ba-list li {
  margin: 0.25rem 0;
  font-weight: 700;
  color: var(--slate);
}

.ba-overlay .ba-list li {
  color: #0f172a;
  opacity: 0.9;
}

.ba-slider {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem 1rem;
}

.ba-slider input[type="range"] {
  width: 100%;
  accent-color: var(--emerald);
}

.ba-slider .ba-pct {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--slate);
  font-size: 0.85rem;
  white-space: nowrap;
}

/* ─── Site-wide motion ─── */
@keyframes logoGlow {
  0%, 100% { filter: brightness(1); transform: scale(1); }
  50% { filter: brightness(1.12); transform: scale(1.06); }
}

@keyframes arrowPulse {
  0%, 100% { transform: translateX(0); opacity: 0.75; }
  50% { transform: translateX(5px); opacity: 1; }
}

@keyframes navSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes roiGrow {
  from { transform: scaleY(0.2); opacity: 0.4; }
  to { transform: scaleY(1); opacity: 1; }
}

@keyframes stepPop {
  from { opacity: 0; transform: translateY(10px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes checklistIn {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes ctaGlow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes heroSlideIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroVisualIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes metricPop {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Hero entrance (page load) */
.hero-enter {
  animation: heroSlideIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-enter-delay {
  animation-delay: 0.18s;
}

.hero-visual.hero-enter {
  animation-name: heroVisualIn;
  animation-duration: 1s;
  animation-delay: 0.32s;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-fade {
  opacity: 0;
  transition: opacity 0.7s ease;
  transition-delay: var(--reveal-delay, 0s);
}

.reveal-fade.is-visible {
  opacity: 1;
}

/* Card icon subtle float */
.card:hover .card-icon,
.pillar:hover .pillar-icon {
  animation: iconFloat 2s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.card-icon,
.pillar-icon {
  transition: transform 0.3s ease;
}

/* Metric values pulse when visible */
.metric.is-visible .value {
  animation: metricPop 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Stack pills stagger shimmer on hover */
.stack-band:hover .stack-pill {
  animation: pillHighlight 0.4s ease backwards;
}

.stack-band:hover .stack-pill:nth-child(1) { animation-delay: 0s; }
.stack-band:hover .stack-pill:nth-child(2) { animation-delay: 0.05s; }
.stack-band:hover .stack-pill:nth-child(3) { animation-delay: 0.1s; }
.stack-band:hover .stack-pill:nth-child(4) { animation-delay: 0.15s; }
.stack-band:hover .stack-pill:nth-child(5) { animation-delay: 0.2s; }
.stack-band:hover .stack-pill:nth-child(6) { animation-delay: 0.25s; }

@keyframes pillHighlight {
  from { background: #f8fafc; border-color: #e5e7eb; }
  to { background: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.35); }
}

/* Accordion open smooth */
details[open] summary ~ p {
  animation: fadeUp 0.35s ease;
}

/* Social proof band */
.social-proof {
  animation: fadeIn 0.8s ease 0.3s both;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal,
  .reveal-fade {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-enter,
  .hero-visual.hero-enter,
  .social-proof,
  .flow-arrow,
  .logo-mark,
  .cta-band::before,
  .card:hover .card-icon,
  .pillar:hover .pillar-icon,
  .node-lines .line,
  .logo-track {
    animation: none !important;
  }

  .btn-primary:hover {
    transform: none;
    box-shadow: none;
  }

  .card-link:hover,
  .link-underline:hover {
    transform: none;
  }
}
