:root {
  color: #f7f2e8;
  background: #0a0d0c;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(185, 140, 67, 0.17), transparent 32rem),
    radial-gradient(circle at 82% 76%, rgba(45, 102, 82, 0.22), transparent 34rem),
    #0a0d0c;
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.2;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, .75fr);
  gap: 2.5rem;
  width: min(1180px, calc(100% - 3rem));
  min-height: calc(100vh - 7rem);
  margin: 0 auto;
  padding: 2.75rem 0 2.5rem;
}

.hero { display: flex; flex-direction: column; min-width: 0; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: #cfb078;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: .5rem;
  height: .5rem;
  border-radius: 99px;
  background: #76d6ae;
  box-shadow: 0 0 0 .25rem rgba(118, 214, 174, .12);
}

h1 {
  margin: .6rem 0 .2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6.5vw, 5rem);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .92;
}

.dek {
  max-width: 42rem;
  margin: 1rem 0 0;
  color: #aeb6b1;
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  line-height: 1.5;
}

.byline {
  margin: .55rem 0 0;
  color: #8a938d;
  font-size: .82rem;
  letter-spacing: .01em;
}
.byline a {
  color: #d9bc81;
  text-decoration: none;
  border-bottom: 1px solid rgba(217, 188, 129, .35);
}
.byline a:hover { border-bottom-color: #d9bc81; }
.byline a:focus-visible { outline: 2px solid #d9bc81; outline-offset: 2px; }

.stage {
  display: grid;
  justify-items: center;
  flex: 1;
  align-content: start;
  min-height: auto;
  padding: 1.5rem 0 1rem;
}

.orb-wrap {
  position: relative;
  display: grid;
  width: 9.25rem;
  height: 9.25rem;
  place-items: center;
}

.orb {
  position: relative;
  z-index: 2;
  display: grid;
  width: 6.5rem;
  height: 6.5rem;
  place-items: center;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  color: #fff7e6;
  background: radial-gradient(circle at 34% 26%, #d8b66f, #806532 43%, #213c33 100%);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.25), 0 2rem 6rem rgba(0,0,0,.55);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.75rem;
}

.orb-ring {
  position: absolute;
  border: 1px solid rgba(207,176,120,.28);
  border-radius: 50%;
  opacity: .55;
}

.orb-ring-one { inset: .6rem; }
.orb-ring-two { inset: 0; opacity: .22; }

[data-state="connecting"] .orb-ring-one,
[data-state="live"] .orb-ring-one,
[data-speaker="agent"] .orb-ring-two {
  animation: pulse 1.8s ease-out infinite;
}

[data-speaker="agent"] .orb { filter: brightness(1.14); }

@keyframes pulse {
  0% { transform: scale(.86); opacity: .65; }
  75%, 100% { transform: scale(1.16); opacity: 0; }
}

.status-label { margin: 1.2rem 0 .25rem; font-size: 1.15rem; font-weight: 650; }
.status-detail { min-height: 2.8rem; margin: 0; color: #89928d; text-align: center; line-height: 1.45; }

.controls { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.4rem; }
button {
  min-width: 8rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: .82rem 1.25rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, opacity .18s ease;
}
button:hover:not(:disabled) { transform: translateY(-2px); }
button:focus-visible { outline: 2px solid #d9bc81; outline-offset: 3px; }
button:disabled { cursor: not-allowed; opacity: .42; }
.primary { color: #111512; background: #f1ddad; }
.secondary { color: #e7e9e5; border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.055); }
.error { max-width: 34rem; margin: 1rem 0 0; color: #ffb4a8; text-align: center; }
.call-id { margin: .7rem 0 0; color: #7f8984; font: .75rem ui-monospace, SFMono-Regular, Menlo, monospace; }

.builder-contact-cta {
  display: none;
  width: min(28rem, 100%);
  margin-top: 1.3rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(207,176,120,.24);
  border-radius: 1rem;
  background: rgba(207,176,120,.075);
  text-align: center;
}

.stage[data-state="ended"] .builder-contact-cta { display: block; }
.builder-contact-cta p { margin: 0 0 .75rem; color: #aeb6b1; font-size: .88rem; line-height: 1.45; }
.builder-contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(207,176,120,.42);
  border-radius: 999px;
  padding: .68rem 1rem;
  color: #f5e6c2;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease;
}
.builder-contact-link:hover { transform: translateY(-2px); background: rgba(207,176,120,.1); }
.builder-contact-link:focus-visible { outline: 2px solid #d9bc81; outline-offset: 3px; }

.test-card {
  align-self: center;
  min-width: 0;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 1.3rem;
  padding: 1.75rem;
  background: rgba(17, 22, 20, .76);
  box-shadow: 0 2.5rem 7rem rgba(0,0,0,.35);
  backdrop-filter: blur(18px);
}

.test-card > * + * { margin-top: 1.1rem; }
.carousel-head { display: flex; flex-direction: column; }
.carousel-lede { color: #9aa39d; font-size: .86rem; }
.carousel-lede strong { color: #d7d9d5; font-weight: 600; }

.carousel { position: relative; min-width: 0; }
.carousel-viewport { min-width: 0; }
.carousel--ready .carousel-viewport { overflow: hidden; transition: height .42s cubic-bezier(.4, .01, .2, 1); }
.carousel-track { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.carousel--ready .carousel-track { display: flex; align-items: flex-start; gap: 0; transition: transform .42s cubic-bezier(.4, .01, .2, 1); }
.carousel-slide {
  padding: 1.1rem;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 1rem;
  background: rgba(255,255,255,.022);
}
.carousel-slide.featured { border-color: rgba(207,176,120,.42); background: rgba(207,176,120,.09); }
.carousel-slide.featured .step-number { color: #f0d59a; }
.carousel-slide.featured h3 { color: #fbeecb; }
.carousel--ready .carousel-slide { flex: 0 0 100%; }

.carousel-controls { display: none; align-items: center; justify-content: center; gap: .9rem; margin-top: 1rem; }
.carousel--ready .carousel-controls { display: flex; }
.carousel-arrow {
  min-width: 0;
  width: 2rem;
  height: 2rem;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  color: #e7e9e5;
  font-size: 1.2rem;
  line-height: 1;
}
.carousel-dots { display: flex; align-items: center; gap: .5rem; }
.carousel-dots .carousel-dot {
  min-width: 0;
  width: .5rem;
  height: .5rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.24);
  transition: background .2s ease, transform .2s ease;
}
.carousel-dots .carousel-dot:hover { transform: scale(1.2); background: rgba(255,255,255,.42); }
.carousel-dots .carousel-dot.is-active { background: #f1ddad; transform: scale(1.35); }

.carousel-foot { color: #7f8984; font-size: .78rem; }

.step-number { color: #cfb078; font: .72rem ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .15em; }
.test-card h2 { margin: .4rem 0 .3rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; font-weight: 400; }
.test-card h3 { margin: .4rem 0 .45rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; font-weight: 400; color: #f3ede1; }
.test-card p { margin: 0; color: #a6aea9; font-size: .9rem; line-height: 1.5; }
.test-card .test-script { color: #d7d9d5; margin-top: .1rem; }
.test-card .expectation { margin-top: .55rem; color: #89928d; font-size: .8rem; }
.test-card .expectation strong { color: #b8d6c8; }
.test-card em { color: #dbbd83; font-style: normal; }

footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 1.25rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #69716d;
  font-size: .72rem;
  letter-spacing: .04em;
}

@media (max-width: 820px) {
  .shell { grid-template-columns: minmax(0, 1fr); padding-top: 2.5rem; }
  .stage { min-height: 22rem; }
  footer { flex-direction: column; gap: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
