/* LiveCaption page. Builds on styles.css and the section styles in astral.css. */

.neon { color: #ff3fd0; text-shadow: 0 0 .03em #ffe6fa, 0 0 .14em rgba(255, 63, 208, .9), 0 0 .5em rgba(255, 63, 208, .55), 0 0 1.1em rgba(140, 80, 255, .45); animation: neon-flicker 5.5s linear infinite; }
@keyframes neon-flicker { 0%, 61%, 63%, 65%, 100% { opacity: 1; } 62% { opacity: .5; } 64% { opacity: .8; } }

/* ---------- hero ---------- */
.lc-hero { position: relative; overflow: hidden; padding: 140px var(--gutter) clamp(48px, 8vw, 96px); background: radial-gradient(60% 70% at 85% 30%, rgba(140, 60, 255, .26), transparent 70%), radial-gradient(50% 60% at 5% 90%, rgba(0, 96, 220, .28), transparent 70%), #000; }
.lc-waves { position: absolute; inset: auto 0 0 0; height: 46%; display: flex; align-items: flex-end; gap: 1.2%; padding: 0 2%; opacity: .2; pointer-events: none; }
.lc-waves i { flex: 1; height: 100%; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #ff3fd0, #1ea7ff 60%, transparent); transform-origin: bottom; animation: wave-bar 1.6s ease-in-out infinite; }
.lc-waves i:nth-child(3n) { animation-duration: 1.1s; } .lc-waves i:nth-child(4n) { animation-duration: 2.1s; } .lc-waves i:nth-child(5n) { animation-duration: 1.35s; }
.lc-waves i:nth-child(2n) { animation-delay: -.5s; } .lc-waves i:nth-child(7n) { animation-delay: -.9s; }
@keyframes wave-bar { 0%, 100% { transform: scaleY(.18); } 50% { transform: scaleY(1); } }
.lc-hero-inner { position: relative; max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) clamp(170px, 22vw, 320px); gap: clamp(28px, 5vw, 72px); align-items: center; }
.lc-title { margin: 0; font: 400 clamp(3rem, 8.6vw, 8.2rem)/.88 var(--display); text-transform: uppercase; color: var(--bolt); text-shadow: 0 0 18px rgba(30, 167, 255, .7), 0 0 70px rgba(30, 167, 255, .4); }
.lc-title span { display: block; }
.lc-title .line { color: transparent; -webkit-text-stroke: clamp(1px, .014em, 2.5px) var(--bolt); text-shadow: none; filter: drop-shadow(0 0 12px rgba(30, 167, 255, .55)); }
.lc-icon { display: block; animation: av-float 6s ease-in-out infinite; transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.lc-icon img { width: 100%; height: auto; border-radius: 22.5%; box-shadow: 0 0 0 1px rgba(255, 150, 240, .5), 0 0 70px -4px rgba(255, 63, 208, .8), 0 0 160px -20px rgba(30, 167, 255, .9); }
.lc-icon:hover { transform: scale(1.05) rotate(3deg); }
.lc-platforms { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 22px 0 0; }
.lc-platforms span { padding: 6px 11px; border: 1px solid var(--line-hot); border-radius: 999px; color: var(--bolt-hi); font: 700 .7rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; }
.lc-platforms em { font-style: normal; color: var(--dim); font-size: .8rem; font-weight: 600; letter-spacing: .08em; margin-left: 4px; }

/* ---------- the prompter rig ---------- */
.rig { display: grid; grid-template-columns: minmax(200px, 30%) minmax(0, 1fr); gap: 14px; margin: 26px 0 16px; }
.heard { padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; display: flex; flex-direction: column; min-height: 320px; }
.rig-label { margin: 0 0 12px !important; }
.state { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line-hot); color: var(--bolt-hi); font: 700 .68rem/1 var(--body); letter-spacing: .18em; text-transform: uppercase; }
.state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; animation: pulse 1.2s ease-in-out infinite; }
.rig[data-state="thinking"] .state { color: #ffb21f; border-color: #ffb21f88; }
.rig[data-state="answer"] .state { color: #39ff14; border-color: #39ff1488; }
.vu { display: flex; align-items: center; gap: 4px; height: 38px; margin-bottom: 16px; }
.vu i { flex: 1; height: 100%; border-radius: 2px; background: var(--bolt); transform: scaleY(.12); animation: wave-bar .9s ease-in-out infinite; animation-play-state: paused; opacity: .5; }
.vu i:nth-child(2n) { animation-duration: .6s; } .vu i:nth-child(3n) { animation-duration: 1.2s; animation-delay: -.3s; }
.rig[data-state="listening"] .vu i { animation-play-state: running; opacity: 1; }
.heard-who { margin: 0 0 6px !important; color: var(--dim); font: 700 .68rem/1 var(--body) !important; letter-spacing: .2em; text-transform: uppercase; }
.heard-text { margin: 0 !important; font-size: 1.12rem !important; line-height: 1.45 !important; color: var(--core); min-height: 5em; }
.heard-text::after { content: "▍"; color: var(--bolt); animation: pulse 1s steps(2) infinite; }

.prompter {
  position: relative; min-height: 320px; padding: 46px clamp(18px, 4vw, 40px) 26px; border-radius: 8px; overflow: hidden; background: #000;
  border: 1px solid color-mix(in srgb, var(--neon) 55%, transparent);
  box-shadow: 0 0 80px -16px var(--neon), inset 0 0 110px -30px color-mix(in srgb, var(--neon) 50%, transparent);
  transition: box-shadow .4s, border-color .4s;
}
.prompter::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .28) 0 1px, transparent 1px 4px); }
.prompter-style { position: absolute; top: 14px; left: 18px; margin: 0 !important; color: var(--neon); font: 700 .68rem/1 var(--body) !important; letter-spacing: .2em; text-transform: uppercase; opacity: .85; }
.prompter-text {
  margin: 0 !important; max-width: none !important; white-space: pre-line; color: var(--neon);
  font: 600 clamp(1.5rem, 3.3vw, 2.5rem)/1.28 var(--body) !important; letter-spacing: .01em;
  text-shadow: 0 0 .04em #fff, 0 0 .3em var(--neon), 0 0 .9em color-mix(in srgb, var(--neon) 60%, transparent);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), color .3s;
}
.prompter-text .w { opacity: 0; animation: word-in .28s ease-out forwards; }
@keyframes word-in { from { opacity: 0; filter: blur(6px); } to { opacity: 1; filter: none; } }
.prompter.mirror .prompter-text { transform: scaleX(-1); }

.deck { display: grid; gap: 12px; margin-bottom: 14px; }
.deck-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.swatches { display: inline-flex; gap: 8px; margin-left: 6px; }
.swatches button { width: 28px; height: 28px; border-radius: 50%; cursor: pointer; background: var(--c); border: 2px solid #000; box-shadow: 0 0 0 1px var(--line-hot), 0 0 14px -2px var(--c); transition: transform .15s, box-shadow .15s; }
.swatches button[aria-pressed="true"] { transform: scale(1.18); box-shadow: 0 0 0 2px var(--c), 0 0 22px var(--c); }

/* ---------- sections ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.feats .panel { transition: transform .25s cubic-bezier(.2, .7, .2, 1), border-color .25s, box-shadow .25s; }
.feats .panel:hover { transform: translateY(-4px); border-color: var(--line-hot); box-shadow: 0 16px 50px -14px rgba(0, 110, 255, .7); }
.feats h3 { font-size: 1.45rem; }
.lc-mac { margin: 24px 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-hot); box-shadow: 0 0 90px -16px rgba(120, 90, 255, .8); }
.lc-mac img { width: 100%; height: auto; }
.keys { margin: 18px 0 0; display: grid; gap: 8px; }
.keys div { display: flex; align-items: center; gap: 12px; }
.keys dt { flex: none; min-width: 7.6em; display: flex; gap: 4px; }
.keys dd { margin: 0; color: var(--ink); font-size: .94rem; }
kbd { display: inline-grid; place-items: center; min-width: 1.9em; padding: 4px 7px; border: 1px solid var(--line-hot); border-bottom-width: 2px; border-radius: 4px; background: #000; color: var(--bolt-hi); font: 700 .78rem/1 var(--body); }
.lc-price { margin: 18px 0 0 !important; color: var(--ink); font-size: .95rem !important; }
.lc-price b { font: 400 1.7rem/1 var(--display); color: var(--bolt); text-shadow: var(--glow); }
.lc-shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.lc-shots figure { margin: 0; }
.lc-shots img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s, border-color .3s; }
.lc-shots figure:hover img { transform: translateY(-6px); border-color: var(--bolt); box-shadow: 0 0 40px -6px rgba(30, 167, 255, .8); }
.lc-shots figcaption { margin-top: 10px; color: var(--dim); font-size: .86rem; line-height: 1.4; }
.lc-shots figcaption b { display: block; color: var(--bolt); font: 400 1.15rem/1.1 var(--display); letter-spacing: .03em; text-transform: uppercase; }

@media (max-width: 760px) {
  .lc-hero { padding-top: 96px; }
  .lc-hero-inner { grid-template-columns: minmax(0, 1fr); }
  .lc-icon { width: min(40%, 160px); order: -1; }
  .rig, .steps, .feats { grid-template-columns: minmax(0, 1fr); }
  .heard { min-height: 0; } .heard-text { min-height: 4.4em; }
  .prompter { min-height: 300px; }
  .lc-shots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .lc-shots figure { flex: 0 0 52%; scroll-snap-align: start; }
  .lc .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .neon, .lc-waves i, .vu i { animation: none; } .prompter-text .w { opacity: 1; animation: none; } }
