/* ==========================================================================
   Binzard — home.css
   Home-page sections only. Depends on the tokens defined in main.css.
   ========================================================================== */

/* ----------------------------------------------------------------- Hero */
.hero {
  position: relative;
  padding-block: clamp(3rem, 1.5rem + 7vw, 6.5rem) clamp(3rem, 2rem + 4vw, 5rem);
  overflow: hidden;
}

/* Violet bloom behind the hero. Decorative only. */
.hero::before {
  content: '';
  position: absolute;
  top: -32%;
  left: 50%;
  width: min(1100px, 130%);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(85, 37, 241, 0.34) 0%, rgba(85, 37, 241, 0) 62%);
  pointer-events: none;
  z-index: -1;
}

.hero .container {
  display: grid;
  gap: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 1000px) {
  .hero .container { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
}

.hero h1 { margin-bottom: var(--sp-5); }

.hero .lead { max-width: 54ch; color: var(--t-body); }

/* Highlight inside the H1 — gradient text with a solid fallback. */
.hero h1 .accent {
  background: linear-gradient(100deg, #c4b5ff 0%, #8f7bff 55%, #6f8dff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: #c4b5ff;
}
@supports (-webkit-text-fill-color: transparent) {
  .hero h1 .accent { -webkit-text-fill-color: transparent; }
}

/* -------------------------------------------------- Hero proof strip */
.proof-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: var(--sp-4) var(--sp-5);
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line);
}
.proof-strip li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--t-body);
}
.proof-strip svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--c-lavender);
}

/* --------------------------------------------- Hero visual: live call */
.call-card {
  position: relative;
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  background: linear-gradient(165deg, rgba(20, 14, 66, 0.92), rgba(6, 10, 36, 0.94));
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 40px 80px -30px rgba(85, 37, 241, 0.6);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.call-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--line);
}

.call-card__status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--t-heading);
}
.call-card__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: pulse-dot 2s ease-out infinite;
}
@keyframes pulse-dot {
  70%  { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.call-card__meta {
  font-size: var(--fs-xs);
  color: var(--t-muted);
  font-variant-numeric: tabular-nums;
}

/* Waveform: bars animate on a stagger set inline via --i in the markup. */
.waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 72px;
  margin-block: var(--sp-5);
}
.waveform span {
  width: 4px;
  min-height: 5px;
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, #c4b5ff, #5525f1);
  transform-origin: center;
  animation: wave 1.25s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -0.08s);
}
@keyframes wave {
  from { height: 8%; opacity: 0.55; }
  to   { height: 88%; opacity: 1; }
}

/* Transcript */
.transcript { display: grid; gap: var(--sp-3); }

.transcript li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--sp-3);
  align-items: start;
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.transcript .who {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-top: 0.15rem;
}
.transcript .who--caller { color: var(--t-muted); }
.transcript .who--agent  { color: var(--c-lavender); }

.transcript .said { color: var(--t-body); }

.call-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}
.call-card__foot .pill { font-size: 0.75rem; }
.call-card__foot .pill svg { width: 13px; height: 13px; color: var(--c-lavender); }

/* ------------------------------------------------------------- Problem */
.problem-card {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
}
.problem-card .card-icon { margin-bottom: 0; }
.problem-card h3 { margin-bottom: var(--sp-2); }

/* --------------------------------------------------------------- Steps */
.steps {
  counter-reset: step;
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.step { position: relative; padding-top: var(--sp-6); }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--f-display);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #c4b5ff, #5525f1);
  -webkit-background-clip: text;
  background-clip: text;
  color: #c4b5ff;
  opacity: 0.9;
}
@supports (-webkit-text-fill-color: transparent) {
  .step::before { -webkit-text-fill-color: transparent; }
}
.step h3 { margin-bottom: var(--sp-2); }
.step p  { color: var(--t-muted); font-size: var(--fs-sm); }

/* -------------------------------------------------------- Capabilities */
.capability { height: 100%; }

/* ------------------------------------------------------------ Use cases */
.usecase {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.usecase:hover {
  border-color: rgba(173, 149, 255, 0.4);
  background: rgba(255, 255, 255, 0.07);
}
.usecase svg { width: 20px; height: 20px; color: var(--c-lavender); flex-shrink: 0; }
.usecase h3 { font-size: var(--fs-body); font-weight: 600; margin: 0; }
.usecase p  { font-size: var(--fs-xs); color: var(--t-muted); margin-top: 0.15rem; }

/* --------------------------------------------------- Control/reliability */
.split {
  display: grid;
  gap: clamp(2rem, 1.5rem + 3vw, 4rem);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.check-list { display: grid; gap: var(--sp-5); }
.check-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--sp-4);
  align-items: start;
}
.check-list .tick {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(85, 37, 241, 0.28);
  border: 1px solid rgba(173, 149, 255, 0.45);
  flex-shrink: 0;
}
.check-list .tick svg { width: 15px; height: 15px; color: #fff; }
.check-list h3 { font-size: var(--fs-body); margin-bottom: 0.15rem; }
.check-list p  { font-size: var(--fs-sm); color: var(--t-muted); }

/* ------------------------------------------------------ Other solutions */
/* Deliberately lower-contrast and denser than the voice-agent sections so
   the visual hierarchy matches the business priority. */
.other-solutions { border-top: 1px solid var(--line); }
.other-solutions .section-head p { max-width: 58ch; }

.solution { display: flex; gap: var(--sp-4); align-items: flex-start; height: 100%; }
.solution .card-icon { margin-bottom: 0; }
.solution h3 { font-size: var(--fs-body); margin-bottom: var(--sp-2); }
.solution p  { font-size: var(--fs-sm); color: var(--t-muted); }

/* --------------------------------------------------------------- About */
.about-quote {
  max-width: var(--maxw-prose);
  margin-inline: auto;
  text-align: center;
}
.about-quote p { font-size: var(--fs-lead); color: var(--t-body); }
.about-quote p + p { margin-top: var(--sp-4); }

/* ----------------------------------------------------------------- FAQ */
.faq { max-width: 52rem; margin-inline: auto; }

/* Built on native <details>/<summary> so the answers are readable with
   JavaScript disabled, and so `name="faq"` gives exclusive-accordion
   behaviour in modern browsers with no script at all. */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5) 0;
  cursor: pointer;
  list-style: none;          /* hide the default disclosure triangle */
}
.faq-q::-webkit-details-marker { display: none; }

.faq-q h3 {
  font-family: var(--f-body);
  font-size: var(--fs-lead);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--t-heading);
  transition: color 0.16s var(--ease);
}
.faq-q:hover h3 { color: var(--c-lavender); }

.faq-q .chev {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--c-lavender);
  transition: transform 0.25s var(--ease);
}
.faq-item[open] > .faq-q .chev { transform: rotate(180deg); }

.faq-a {
  padding: 0 0 var(--sp-5);
  max-width: 62ch;
  color: var(--t-muted);
  font-size: var(--fs-sm);
}
.faq-a p + p { margin-top: var(--sp-3); }

/* ------------------------------------------------------------ CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 2rem + 3vw, 4rem) clamp(1.5rem, 1rem + 3vw, 4rem);
  border: 1px solid rgba(173, 149, 255, 0.28);
  border-radius: var(--r-xl);
  background:
    radial-gradient(90% 140% at 15% 0%, rgba(85, 37, 241, 0.42) 0%, rgba(85, 37, 241, 0) 60%),
    linear-gradient(135deg, rgba(29, 53, 152, 0.55), rgba(14, 6, 55, 0.75));
  text-align: center;
}
.cta-band h2 { margin-bottom: var(--sp-4); }
.cta-band p {
  max-width: 52ch;
  margin-inline: auto;
  color: var(--t-body);
  font-size: var(--fs-lead);
}

/* ------------------------------------------------------ Motion opt-out */
@media (prefers-reduced-motion: reduce) {
  /* Freeze the waveform at a varied static profile rather than a flat line,
     so the visual still reads as audio. */
  .waveform span {
    animation: none;
    height: calc(18% + (var(--i) % 5) * 16%);
    opacity: 0.9;
  }
  .call-card__dot { animation: none; }
}
