/* PetCast · dark neon startup ref · SVG-only experiment */
:root {
  --bg: #0a0516;
  --bg2: #120a24;
  --card: rgba(24, 14, 48, 0.72);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f4f0ff;
  --muted: #b7a8d4;
  --pink: #ff4fd8;
  --cyan: #4de1ff;
  --orange: #ff6a3d;
  --magenta: #b44dff;
  --grad-cta: linear-gradient(90deg, #ff6a3d 0%, #ff4fd8 55%, #b44dff 100%);
  --grad-text: linear-gradient(90deg, #ff4fd8, #7ec8ff);
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --font: "Outfit", system-ui, sans-serif;
  --display: "Syne", "Outfit", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

/* ambient */
.bg-fx {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(900px 500px at 10% 0%, rgba(180, 77, 255, 0.28), transparent 60%),
    radial-gradient(700px 420px at 90% 15%, rgba(77, 225, 255, 0.18), transparent 55%),
    radial-gradient(600px 400px at 50% 85%, rgba(255, 79, 216, 0.12), transparent 50%),
    var(--bg);
}
.bg-fx::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.55) 1px, transparent 1.5px);
  background-size: 52px 52px;
  opacity: .12;
  mask-image: linear-gradient(#000, transparent 85%);
}
.ribbon {
  position: absolute; left: -10%; right: -10%; height: 180px;
  background: linear-gradient(90deg, transparent, rgba(255,79,216,.35), rgba(77,225,255,.28), transparent);
  filter: blur(28px); opacity: .55; transform: rotate(-4deg);
  pointer-events: none;
}
.ribbon.r1 { top: 420px; }
.ribbon.r2 { top: 1180px; transform: rotate(3deg); }
.ribbon.r3 { top: 2100px; }

.top-note, header, main, footer, .sticky-cta { position: relative; z-index: 1; }

.top-note {
  text-align: center;
  font-size: .78rem;
  color: var(--muted);
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 5, 22, .7);
  backdrop-filter: blur(10px);
}

.topbar {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(10, 5, 22, .72);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; letter-spacing: -.02em;
}
.brand svg { width: 34px; height: 34px; flex: 0 0 auto; }
.brand em { font-style: normal; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: none; gap: 18px; font-size: .92rem; color: var(--muted); }
.nav-links a:hover { color: #fff; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; border: 0; cursor: pointer;
  border-radius: 999px; padding: 12px 22px;
  font-weight: 600; transition: transform .15s ease, filter .15s ease, opacity .15s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--grad-cta); color: #fff; box-shadow: 0 10px 30px rgba(255, 79, 216, .28); }
.btn-ghost {
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,.35); padding: 11px 20px;
}
.btn-sm { padding: 8px 16px; font-size: .9rem; }

.hero { padding: 36px 0 20px; }
.hero-grid {
  display: grid; gap: 28px; align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 40px; }
  .nav-links { display: flex; }
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; color: #f0d9ff;
  border: 1px solid rgba(255,79,216,.35);
  background: rgba(255,79,216,.08);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 14px;
}
h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.08; letter-spacing: -.03em; margin: 0 0 14px;
}
.grad {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { color: var(--muted); font-size: 1.05rem; max-width: 48ch; margin: 0 0 14px; }
.lead-soft { font-size: .98rem; opacity: .95; margin-bottom: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.narrow { max-width: 68ch; margin: 0 auto; }
.prose-band h2 { font-family: var(--display); letter-spacing: -.02em; margin: 0 0 14px; }
.prose-band p { color: var(--muted); margin: 0 0 14px; font-size: 1.02rem; }
.method-intro p { color: var(--muted); margin: 0 0 18px; }
#reel-canvas { width: 100%; height: 100%; display: block; border-radius: 18px; }
.frame916.has-canvas svg { display: none; }
.frame916.has-canvas #reel-canvas { display: block; }

.stage {
  position: relative;
  border-radius: 28px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(40,20,80,.55), rgba(12,6,28,.85));
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.stage-glow {
  position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%);
  width: 70%; height: 42%;
  background: radial-gradient(ellipse, rgba(255,79,216,.45), rgba(77,225,255,.15), transparent 70%);
  filter: blur(18px);
}
.podium {
  position: relative; z-index: 1;
  width: min(100%, 420px); margin: 0 auto;
}
.podium svg { width: 100%; height: auto; }
.podium-photo { position: relative; z-index: 2; }
.hero-face {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 24px;
  border: 2px solid rgba(255,79,216,.45);
  box-shadow: 0 0 40px rgba(255,79,216,.35);
}
.speech-bubble {
  position: absolute;
  right: 4%;
  top: 6%;
  max-width: 58%;
  background: rgba(20, 10, 40, .92);
  border: 1px solid rgba(255,79,216,.5);
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.3;
  padding: 10px 12px;
  border-radius: 16px 16px 16px 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.hero-mosaic {
  position: absolute;
  inset: 12px 12px auto auto;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 22%;
  min-width: 72px;
  max-width: 110px;
  opacity: .92;
}
.hero-mosaic img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
}
.stage figcaption {
  position: relative; z-index: 1;
  text-align: center; color: var(--muted); font-size: .82rem; margin-top: 8px;
}

.section { padding: 54px 0; }
.sec-h { text-align: center; margin-bottom: 28px; }
.sec-h h2 {
  font-family: var(--display);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  margin: 0 0 8px; letter-spacing: -.02em;
}
.sec-h p { margin: 0 auto; color: var(--muted); max-width: 52ch; }

.grid3 {
  display: grid; gap: 16px;
}
@media (min-width: 800px) { .grid3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: 0 0 0 1px rgba(180,77,255,.05), 0 16px 40px rgba(0,0,0,.25);
}
.card .ico {
  width: 56px; height: 56px; margin-bottom: 14px;
  filter: drop-shadow(0 0 12px rgba(255,79,216,.35));
}
.card h3 { margin: 0 0 8px; font-size: 1.12rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }

.ex-grid {
  display: grid; gap: 14px;
}
@media (min-width: 800px) { .ex-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 800px) { .ex-grid-6 { grid-template-columns: repeat(3, 1fr); } }
.ex-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.ex-art {
  aspect-ratio: 1;
  background: #120826;
  overflow: hidden;
}
.ex-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ex-art svg { width: 86%; height: auto; margin: 12px auto; }
.ex-body { padding: 14px 16px 18px; }
.tag {
  display: inline-block; font-size: .72rem; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 999px; margin-bottom: 8px;
  background: rgba(77,225,255,.12); color: #9aefff;
  border: 1px solid rgba(77,225,255,.25);
}
.ex-body h3 { margin: 0 0 6px; font-size: 1.05rem; }
.ex-body p { margin: 0; color: var(--muted); font-size: .9rem; }

.method {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 12px;
}
.method li {
  display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 16px;
}
.method .dot {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center; font-weight: 700;
  background: var(--grad-cta); color: #fff; font-size: .9rem;
}
.method strong { display: block; margin-bottom: 4px; }
.method span { color: var(--muted); font-size: .92rem; }

.studio {
  background: linear-gradient(180deg, rgba(20,10,40,.35), transparent);
}
.studio-shell {
  display: grid; gap: 18px;
  background: rgba(16, 8, 34, .85);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow);
}
@media (min-width: 900px) {
  .studio-shell { grid-template-columns: 1fr 1fr; padding: 22px; }
}
.species {
  display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap;
}
.species button, .tones button {
  border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,255,255,.04); color: var(--muted);
  padding: 8px 14px; cursor: pointer;
}
.species button.on, .tones button.on {
  color: #fff; border-color: transparent;
  background: var(--grad-cta);
}
.tones { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.hint { font-size: .85rem; color: var(--muted); margin: 0 0 10px; }

.dropzone {
  border: 1.5px dashed rgba(255,79,216,.45);
  border-radius: 18px;
  min-height: 160px;
  display: grid; place-items: center;
  text-align: center; padding: 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,79,216,.12), transparent 55%),
    rgba(255,255,255,.02);
  cursor: pointer;
}
.dropzone:focus { outline: 2px solid var(--cyan); outline-offset: 2px; }
.dropzone.has-file { border-style: solid; border-color: rgba(77,225,255,.4); }
.dz-label { color: var(--muted); font-size: .95rem; }
.preview-muzzle {
  width: 120px; height: 120px; border-radius: 50%;
  object-fit: cover; margin: 0 auto 10px;
  border: 2px solid rgba(255,79,216,.5);
  box-shadow: 0 0 24px rgba(255,79,216,.35);
}

.scene-panel {
  border-radius: 18px;
  background: #0c0718;
  border: 1px solid var(--line);
  min-height: 360px;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.meters {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
.meter {
  background: rgba(255,255,255,.04); border-radius: 12px; padding: 8px;
  text-align: center;
}
.meter span { display: block; font-size: .72rem; color: var(--muted); margin-bottom: 6px; }
.meter .bar {
  height: 6px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden;
}
.meter .bar i {
  display: block; height: 100%; width: 0%;
  background: var(--grad-cta);
  transition: width .4s ease;
}
.spectrum {
  display: flex; align-items: flex-end; gap: 3px; height: 36px;
  padding: 0 12px 10px; opacity: .35;
}
.spectrum b {
  flex: 1; border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--cyan), var(--pink));
  height: 20%;
  transform-origin: bottom;
}
.spectrum.on { opacity: 1; }
.spectrum.on b { animation: eq 1s ease-in-out infinite alternate; }
.spectrum.on b:nth-child(2n) { animation-delay: .1s; }
.spectrum.on b:nth-child(3n) { animation-delay: .2s; }
@keyframes eq { from { height: 18%; } to { height: 95%; } }

.player {
  flex: 1; display: grid; place-items: center; padding: 12px;
  position: relative;
}
.frame916 {
  width: min(220px, 70%);
  aspect-ratio: 9/16;
  border-radius: 18px;
  background: linear-gradient(180deg, #1b1033, #0a0514);
  border: 1px solid rgba(255,255,255,.14);
  position: relative; overflow: hidden;
  box-shadow: 0 0 40px rgba(180,77,255,.25);
}
.frame916 svg { width: 100%; height: 100%; }
.frame916.is-ready svg#pet-sil { display: none; }
.result-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}
.play-btn {
  position: absolute;
  left: 50%; top: 42%;
  transform: translate(-50%, -50%);
  z-index: 4;
  width: 58px; height: 58px;
  border: 0; border-radius: 50%;
  cursor: pointer;
  background: rgba(10, 5, 22, .55);
  box-shadow: 0 0 0 2px rgba(255,255,255,.55), 0 12px 28px rgba(255,79,216,.35);
  backdrop-filter: blur(4px);
  display: grid; place-items: center;
  padding: 0;
}
.play-btn:hover { filter: brightness(1.1); transform: translate(-50%, -50%) scale(1.05); }
.play-icon {
  width: 0; height: 0;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fff;
  margin-left: 3px;
}
.frame916.is-playing .play-btn { opacity: 0; pointer-events: none; }
.reel-meta {
  position: absolute;
  left: 8px; right: 8px; top: 8px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}
.reel-dur {
  font-size: .72rem; font-weight: 700;
  padding: 4px 8px; border-radius: 999px;
  background: rgba(0,0,0,.62); color: #fff;
  border: 1px solid rgba(255,255,255,.2);
}
.reel-label {
  font-size: .68rem;
  padding: 4px 8px; border-radius: 999px;
  background: var(--grad-cta); color: #fff; font-weight: 600;
}
.subs {
  position: absolute; left: 8px; right: 8px; bottom: 10px;
  background: rgba(0,0,0,.62); border-radius: 10px;
  padding: 8px 10px; font-size: .78rem; line-height: 1.35;
  min-height: 2.8em;
  z-index: 3;
}
.frame916.is-ready .subs { bottom: 10px; }
.status-line {
  padding: 10px 12px; font-size: .85rem; color: var(--muted);
  border-top: 1px solid var(--line);
}
.result-box {
  display: none; margin-top: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  border-radius: 16px; padding: 14px;
}
.result-box.show { display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.chips span {
  font-size: .78rem; padding: 5px 10px; border-radius: 999px;
  background: rgba(255,79,216,.12); border: 1px solid rgba(255,79,216,.28);
}
.mono {
  white-space: pre-wrap; color: #ebe4ff; font-size: .95rem;
  background: rgba(0,0,0,.25); border-radius: 12px; padding: 12px; margin: 0 0 12px;
}
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.audience {
  display: grid; gap: 12px;
}
@media (min-width: 700px) { .audience { grid-template-columns: 1fr 1fr; } }
.audience article,
.audience-card {
  border-radius: 16px; padding: 0;
  background: var(--card); border: 1px solid var(--line);
  overflow: hidden;
}
.audience-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}
.audience-card > div,
.audience article > div { padding: 18px; }
.audience h3 { margin: 0 0 8px; }
.audience p { margin: 0; color: var(--muted); }

.guides {
  display: grid; gap: 12px;
}
@media (min-width: 800px) { .guides { grid-template-columns: repeat(3, 1fr); } }
.guide-card {
  display: block; padding: 18px;
  border-radius: 16px; background: var(--card); border: 1px solid var(--line);
  transition: border-color .15s;
}
.guide-card:hover { border-color: rgba(255,79,216,.45); }
.guide-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.guide-card p { margin: 0; color: var(--muted); font-size: .9rem; }

.faq details {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 16px; margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--muted); margin: 10px 0 0; }

.cta-band {
  text-align: center; padding: 48px 0 20px;
}
.cta-band h2 { font-family: var(--display); margin: 0 0 10px; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-band p { color: var(--muted); margin: 0 0 18px; }

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 100px;
  color: var(--muted); font-size: .88rem;
}
.foot-grid {
  display: grid; gap: 16px;
}
@media (min-width: 700px) {
  .foot-grid { grid-template-columns: 1.2fr 1fr; }
}
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.foot-links a:hover { color: #fff; }
.req { margin-top: 10px; line-height: 1.5; }

.sticky-cta {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%);
  z-index: 50; width: max-content; max-width: calc(100% - 24px);
}
.sticky-cta a {
  display: inline-flex; padding: 12px 20px; border-radius: 999px;
  background: var(--grad-cta); color: #fff; font-weight: 600; font-size: .92rem;
  box-shadow: 0 12px 32px rgba(255,79,216,.35);
}
.sticky-cta.hide { display: none; }

/* inner pages */
.page { padding: 28px 0 60px; }
.page h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.page .lead { max-width: 60ch; }
.prose { max-width: 68ch; color: #e6dff6; }
.prose h2 { font-family: var(--display); margin-top: 1.6em; }
.prose p { color: var(--muted); }
.prose a { color: #9aefff; text-decoration: underline; }

@media (max-width: 899px) {
  .nav .btn-sm { display: none; }
}
