:root {
  --color-obsidian: #0b0b0c;
  --color-precious-ivory: #f7f2e7;
  --color-imperial-gold: #c9a227;
  color-scheme: dark;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--color-obsidian);
  color: var(--color-precious-ivory);
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(90deg, rgb(247 242 231 / 3%) 1px, transparent 1px) 50% 0 /
      min(8vw, 96px) 100%,
    radial-gradient(
      circle at 72% 32%,
      rgb(201 162 39 / 12%),
      transparent 31rem
    ),
    var(--color-obsidian);
}

button {
  font: inherit;
}

button:focus-visible {
  outline: 2px solid var(--color-precious-ivory);
  outline-offset: 4px;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.masthead,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-color: rgb(247 242 231 / 18%);
  color: rgb(247 242 231 / 62%);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.masthead {
  min-height: 76px;
  border-bottom: 1px solid rgb(247 242 231 / 18%);
}

.eyebrow {
  color: var(--color-imperial-gold);
  font-weight: 700;
}

.connection::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.connection[data-connected="true"]::before {
  background: var(--color-imperial-gold);
  border-color: var(--color-imperial-gold);
}

.conversation {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(390px, 1.1fr);
  gap: clamp(52px, 8vw, 118px);
  align-items: center;
  padding: clamp(46px, 7vh, 82px) 0 58px;
}

.intro {
  align-self: center;
}

.kicker {
  margin: 0 0 20px;
  color: var(--color-imperial-gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1,
p,
dl,
dd {
  margin-top: 0;
}

h1 {
  max-width: 560px;
  margin-bottom: 26px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.6rem, 6.8vw, 6.6rem);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.lede {
  max-width: 540px;
  margin-bottom: 36px;
  color: rgb(247 242 231 / 68%);
  font-size: clamp(1rem, 1.45vw, 1.14rem);
  line-height: 1.75;
}

.specs {
  max-width: 540px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 0;
  border-top: 1px solid rgb(247 242 231 / 18%);
  border-bottom: 1px solid rgb(247 242 231 / 18%);
}

.specs div {
  min-width: 0;
  padding: 17px 14px 17px 0;
}

.specs div + div {
  padding-left: 14px;
  border-left: 1px solid rgb(247 242 231 / 14%);
}

.specs dt {
  margin-bottom: 7px;
  color: rgb(247 242 231 / 46%);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.specs dd {
  margin-bottom: 0;
  color: var(--color-precious-ivory);
  font-size: 0.84rem;
}

.watch-simulator {
  min-width: 0;
  margin: 0;
  display: grid;
  justify-items: center;
  perspective: 1000px;
}

.watch-device {
  --screen-glow: rgb(201 162 39 / 13%);
  width: min(100%, 355px);
  display: grid;
  justify-items: center;
  filter: drop-shadow(0 30px 44px rgb(11 11 12 / 72%));
  transform: rotateY(-4deg) rotateX(1deg);
  transition: transform 300ms ease;
}

.watch-device:hover {
  transform: rotateY(0deg) rotateX(0deg) translateY(-2px);
}

.watch-strap {
  position: relative;
  z-index: 0;
  width: 44%;
  height: 84px;
  overflow: hidden;
  border-right: 1px solid rgb(247 242 231 / 15%);
  border-left: 1px solid rgb(247 242 231 / 8%);
  background:
    linear-gradient(90deg, transparent, rgb(247 242 231 / 5%), transparent),
    var(--color-obsidian);
}

.watch-strap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 9px,
    rgb(247 242 231 / 5%) 9px 10px
  );
}

.watch-strap-top {
  margin-bottom: -18px;
  border-radius: 22px 22px 8px 8px;
}

.watch-strap-bottom {
  height: 94px;
  margin-top: -18px;
  border-radius: 8px 8px 28px 28px;
}

.watch-strap span {
  position: absolute;
  z-index: 1;
  left: 50%;
  width: 12px;
  height: 5px;
  border: 1px solid rgb(247 242 231 / 20%);
  border-radius: 3px;
  transform: translateX(-50%);
}

.watch-strap span:nth-child(1) {
  top: 18px;
}

.watch-strap span:nth-child(2) {
  top: 38px;
}

.watch-strap span:nth-child(3) {
  top: 58px;
}

.watch-case {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 12px;
  border: 1px solid rgb(247 242 231 / 22%);
  border-radius: 54px;
  background:
    linear-gradient(145deg, rgb(247 242 231 / 10%), transparent 34%),
    var(--color-obsidian);
  box-shadow:
    inset 0 0 0 1px rgb(11 11 12 / 90%),
    inset -8px -12px 24px rgb(247 242 231 / 3%),
    0 0 38px var(--screen-glow);
}

.watch-bezel {
  padding: 10px;
  border: 1px solid rgb(201 162 39 / 28%);
  border-radius: 43px;
  background: var(--color-obsidian);
}

.case-button {
  position: absolute;
  right: -12px;
  width: 11px;
  height: 46px;
  border: 1px solid rgb(247 242 231 / 20%);
  border-left: 0;
  border-radius: 0 7px 7px 0;
  background: var(--color-obsidian);
}

.case-button-upper {
  top: 104px;
}

.case-button-lower {
  top: 174px;
  height: 32px;
}

.watch-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 410 / 502;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  padding: 20px 20px 17px;
  border: 1px solid rgb(247 242 231 / 12%);
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 42%, var(--screen-glow), transparent 46%),
    var(--color-obsidian);
}

.watch-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    118deg,
    rgb(247 242 231 / 8%),
    transparent 24%,
    transparent 72%,
    rgb(247 242 231 / 3%)
  );
}

.watch-statusbar,
.watch-signature {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgb(247 242 231 / 56%);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.device-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.device-link i {
  width: 6px;
  height: 6px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.watch-device[data-state="idle"] .device-link i,
.watch-device[data-state="listening"] .device-link i,
.watch-device[data-state="thinking"] .device-link i,
.watch-device[data-state="speaking"] .device-link i {
  background: var(--color-imperial-gold);
  border-color: var(--color-imperial-gold);
}

.watch-face {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.watch-brand {
  margin-bottom: 18px;
  color: var(--color-imperial-gold);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.voice-mark {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
}

.voice-mark span {
  width: 3px;
  height: 15px;
  background: var(--color-imperial-gold);
  transform-origin: center;
}

.voice-mark.active span {
  animation: voice 0.9s ease-in-out infinite alternate;
}

.voice-mark.active span:nth-child(2),
.voice-mark.active span:nth-child(4) {
  animation-delay: -0.36s;
}

.voice-mark.active span:nth-child(3) {
  animation-delay: -0.63s;
}

@keyframes voice {
  from {
    transform: scaleY(0.55);
  }
  to {
    transform: scaleY(2.7);
  }
}

.state-label {
  min-height: 24px;
  margin-bottom: 9px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
  line-height: 1.1;
}

.watch-transcript {
  width: 96%;
  height: 3.75em;
  margin-bottom: 0;
  overflow: hidden;
  color: rgb(247 242 231 / 78%);
  font-size: 0.92rem;
  font-weight: 520;
  line-height: 1.25;
  overflow-wrap: anywhere;
  white-space: normal;
}

.talk-button {
  position: relative;
  z-index: 2;
  min-width: 116px;
  min-height: 48px;
  margin: 0 auto 15px;
  padding: 8px 15px 8px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--color-imperial-gold);
  border-radius: 999px;
  background: var(--color-imperial-gold);
  color: var(--color-obsidian);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 750;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.talk-button:hover:not(:disabled) {
  background: var(--color-precious-ivory);
  border-color: var(--color-precious-ivory);
  transform: translateY(-1px);
}

.talk-button[data-listening="true"] {
  background: transparent;
  color: var(--color-precious-ivory);
}

.talk-button:disabled {
  cursor: wait;
  opacity: 0.42;
}

.touch-symbol {
  position: relative;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.touch-symbol::before,
.touch-symbol::after,
.touch-symbol i {
  content: "";
  position: absolute;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.touch-symbol::before {
  width: 14px;
  height: 14px;
  opacity: 0.45;
}

.touch-symbol::after {
  width: 5px;
  height: 5px;
  background: currentColor;
}

.watch-signature {
  padding-top: 13px;
  border-top: 1px solid rgb(247 242 231 / 12%);
  font-size: 0.52rem;
}

.watch-device[data-state="listening"] {
  --screen-glow: rgb(201 162 39 / 28%);
}

.watch-device[data-state="thinking"] .voice-mark {
  animation: breathe 1.2s ease-in-out infinite alternate;
}

.watch-device[data-state="speaking"] {
  --screen-glow: rgb(247 242 231 / 16%);
}

@keyframes breathe {
  to {
    opacity: 0.35;
    transform: scale(0.88);
  }
}

.watch-simulator figcaption {
  margin-top: 17px;
  color: rgb(247 242 231 / 42%);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

footer {
  min-height: 72px;
  border-top: 1px solid rgb(247 242 231 / 18%);
}

@media (max-width: 820px) {
  .shell {
    width: min(100% - 28px, 680px);
  }

  .conversation {
    grid-template-columns: 1fr;
    gap: 56px;
    padding: 48px 0;
  }

  .intro {
    text-align: left;
  }

  .watch-device {
    width: min(82vw, 345px);
    transform: none;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .masthead {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 4.5rem);
  }

  .specs {
    grid-template-columns: 1fr;
  }

  .specs div + div {
    padding-left: 0;
    border-top: 1px solid rgb(247 242 231 / 14%);
    border-left: 0;
  }
}

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