/* Home page: hero, services, about and FAQ.
   Builds on site.css tokens and the components in case-studies.css (phone, slider, buttons). */

/* ---------- Nav: section links (desktop only) ---------- */
.cs-nav-anchor {
  display: none;
}

@media screen and (min-width: 992px) {
  .cs-nav-anchor {
    display: inline;
  }
}

html {
  scroll-padding-top: 6rem;
}

h1,
h2 {
  text-wrap: balance;
}

/* ---------- Hero ---------- */
.section.hero.hero-v2 {
  padding-top: 9.5rem;
  padding-bottom: 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: 3rem;
  margin-bottom: 4.5rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  margin-bottom: 1.5rem;
  padding: .375rem 1rem .375rem .375rem;
  border: 1px solid var(--color--border-color);
  border-radius: 2rem;
  background-color: #ffffff08;
  color: #ffffffd9;
  font-size: var(--typography--text-s);
}

.hero-eyebrow img {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  object-fit: cover;
}

.hero-eyebrow .hero-dot {
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background-color: var(--system--success);
  box-shadow: 0 0 0 0 #4cb06c99;
  animation: hero-pulse 2.4s ease-out infinite;
}

.hero-title {
  font-size: 3.375rem;
  line-height: 1.1;
  letter-spacing: -.01em;
}

.hero-accent {
  background: linear-gradient(90deg, #a58fff 0%, #657cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 34rem;
  margin-top: 1.5rem;
  color: #ffffffbf;
  font-size: var(--size--paragraph-l);
  line-height: 1.55;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2.25rem;
}

.hero-ctas .button-purple,
.hero-ctas .button-secondary {
  min-width: 0;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.25rem;
}

.hero-avatars {
  display: flex;
}

.hero-avatars img {
  width: 2.5rem;
  height: 2.5rem;
  margin-left: -.625rem;
  border: 2px solid var(--color--main-background-color);
  border-radius: 50%;
  object-fit: cover;
}

.hero-avatars img:first-child {
  margin-left: 0;
}

.hero-proof-text {
  color: #ffffffa6;
  font-size: var(--typography--text-s);
  line-height: 1.4;
}

.hero-proof-text strong {
  display: block;
  color: var(--neutral--white);
  font-weight: 500;
}

/* Visual: phone with a live control/variant comparison + floating results */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 1.5rem 0;
}

.hero-visual::before {
  content: "";
  position: absolute;
  top: 8%;
  left: 50%;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  background: radial-gradient(circle, #6139ff59 0%, #6139ff00 70%);
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-visual .cs-ba-wrap {
  position: relative;
  width: 100%;
  max-width: 17rem;
  margin: 0;
}

.hero-visual .cs-ba-labels {
  margin-bottom: .75rem;
}

.hero-chip {
  position: absolute;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: .125rem;
  padding: .75rem 1rem;
  border: 1px solid #ffffff2e;
  border-radius: .875rem;
  background-color: #14142ae6;
  box-shadow: 0 1rem 2rem #00000073;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  white-space: nowrap;
  animation: hero-float 6s ease-in-out infinite;
}

.hero-chip-label {
  color: #ffffffa6;
  font-size: .75rem;
}

.hero-chip-value {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.hero-chip-value .up {
  margin-right: .25rem;
  color: var(--system--success);
  font-size: .75rem;
  vertical-align: .2em;
}

.hero-chip.chip-vps {
  top: 22%;
  left: -1.5rem;
}

.hero-chip.chip-rev {
  top: 52%;
  right: -1.25rem;
  animation-delay: -2s;
}

.hero-chip.chip-test {
  bottom: 6%;
  left: 2%;
  flex-direction: row;
  align-items: center;
  gap: .5rem;
  font-size: var(--typography--text-s);
  animation-delay: -4s;
}

.hero-chip.chip-test .hero-dot {
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background-color: var(--system--success);
}

.hero-reel-label {
  margin-bottom: 1.5rem;
  color: #ffffff80;
  font-size: var(--typography--text-s);
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
}

/* Entrance: transform-only on the H1 so it paints immediately (LCP) */
@media (prefers-reduced-motion: no-preference) {
  .hero-eyebrow,
  .hero-sub,
  .hero-ctas,
  .hero-proof,
  .hero-visual {
    animation: hero-in .7s cubic-bezier(.2, .7, .2, 1) both;
  }

  .hero-title {
    animation: hero-rise .7s cubic-bezier(.2, .7, .2, 1) both;
  }

  .hero-title { animation-delay: .05s; }
  .hero-sub { animation-delay: .15s; }
  .hero-ctas { animation-delay: .25s; }
  .hero-proof { animation-delay: .35s; }
  .hero-visual { animation-delay: .2s; }

  .hero-visual .hero-chip {
    animation: hero-chip-in .6s cubic-bezier(.2, .7, .2, 1) both, hero-float 6s ease-in-out infinite;
  }

  .hero-visual .chip-vps { animation-delay: .6s, .6s; }
  .hero-visual .chip-rev { animation-delay: .8s, -1.2s; }
  .hero-visual .chip-test { animation-delay: 1s, -3.4s; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-chip,
  .hero-eyebrow .hero-dot {
    animation: none;
  }
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(1.25rem); }
  to { opacity: 1; transform: none; }
}

@keyframes hero-rise {
  from { transform: translateY(1.25rem); }
  to { transform: none; }
}

@keyframes hero-chip-in {
  from { opacity: 0; transform: translateY(.75rem) scale(.96); }
  to { opacity: 1; transform: none; }
}

@keyframes hero-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -.5rem; }
}

@keyframes hero-pulse {
  0% { box-shadow: 0 0 0 0 #4cb06c99; }
  70% { box-shadow: 0 0 0 .5rem #4cb06c00; }
  100% { box-shadow: 0 0 0 0 #4cb06c00; }
}

/* ---------- Section intro shared by the new sections ---------- */
.home-eyebrow {
  margin-bottom: 1rem;
  color: #a58fff;
  font-size: var(--typography--text-s);
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ---------- Services ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--container--grid-gap-2rem);
}

.svc-card {
  height: 100%;
  transition: border-color .25s ease, transform .25s ease;
}

.svc-card:hover {
  border-color: #6139ffb3;
  transform: translateY(-.25rem);
}

.svc-card .icon-block svg {
  width: 1.75rem;
  height: 1.75rem;
  color: #a58fff;
}

.svc-card p {
  color: #ffffffbf;
}

.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .375rem;
  margin-top: auto;
  padding-top: .5rem;
}

.svc-tags span {
  padding: .2rem .55rem;
  border: 1px solid #ffffff26;
  border-radius: .25rem;
  color: #ffffffa6;
  font-size: .75rem;
}

/* ---------- About ---------- */
.section.about-section {
  background: radial-gradient(50% 60% at 15% 50%, #6139ff2e 0%, #6139ff00 100%), var(--color--main-background-color);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 4rem;
}

.about-photo {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color--border-color);
  border-radius: 1.5rem;
  background: radial-gradient(70% 70% at 50% 100%, #6139ff80 0%, #6139ff00 100%), #0d0a2c;
  aspect-ratio: 1 / 1;
}

.about-photo > img {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 92%;
  height: auto;
  transform: translateX(-50%);
}

.about-badges {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: .5rem;
}

.about-badges img {
  flex: none;
  width: 3.5rem;
  height: 3.5rem;
}

.about-copy p {
  color: #ffffffbf;
  font-size: var(--size--paragraph-m);
  line-height: 1.65;
}

.about-copy p + p {
  margin-top: 1rem;
}

.about-list {
  display: grid;
  gap: .75rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.about-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}

.about-list img {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
}

.about-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: var(--size--max-784px);
  margin: 0 auto;
  border-top: 1px solid #ffffff1a;
}

.faq-item {
  border-bottom: 1px solid #ffffff1a;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.375rem 0;
  font-size: var(--typography--h6);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid #ffffff33;
  border-radius: 50%;
  color: #a58fff;
  font-size: 1.25rem;
  font-weight: 400;
  transition: transform .25s ease, background-color .25s ease;
}

.faq-item[open] summary::after {
  background-color: #6139ff33;
  transform: rotate(45deg);
}

.faq-item summary:hover {
  color: #d8cfff;
}

.faq-answer {
  max-width: 44rem;
  padding: 0 0 1.5rem;
  color: #ffffffbf;
  font-size: var(--size--paragraph-m);
  line-height: 1.65;
}

.faq-answer p + p {
  margin-top: .75rem;
}

/* ---------- Responsive ---------- */
@media screen and (max-width: 991px) {
  .hero-grid,
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-grid {
    gap: 2.5rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  .svc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-photo {
    max-width: 26rem;
  }
}

@media screen and (max-width: 767px) {
  .section.hero.hero-v2 {
    padding-top: 7.5rem;
  }

  .hero-title {
    font-size: 2.375rem;
  }

  .hero-sub {
    font-size: var(--size--paragraph-m);
  }

  .hero-ctas > * {
    flex: 1 1 100%;
  }

  .hero-visual .cs-ba-wrap {
    max-width: 14rem;
  }

  .hero-chip {
    padding: .5rem .75rem;
  }

  .hero-chip-value {
    font-size: 1.125rem;
  }

  .hero-chip.chip-vps {
    left: 0;
  }

  .hero-chip.chip-rev {
    right: 0;
  }

  .svc-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-grid {
    gap: 2.5rem;
  }

  .faq-item summary {
    font-size: var(--typography--text-l);
  }
}
