:root {
  color-scheme: dark;
  --ink: #f9f4e8;
  --muted: #b1b7ca;
  --night: #10142c;
  --panel: rgba(28, 34, 70, .78);
  --line: rgba(255, 255, 255, .12);
  --orange: #ff976f;
  --gold: #ffd166;
  --mint: #9be3cf;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; color: var(--ink); background: radial-gradient(circle at 16% 10%, #29335e 0, transparent 30%), radial-gradient(circle at 90% 10%, #322050 0, transparent 25%), var(--night); }
button, input, select { font: inherit; }
button { cursor: pointer; }
.app-shell { width: min(1080px, 100%); margin: 0 auto; padding: 28px 24px 36px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.brand { display: inline-flex; gap: 12px; align-items: center; color: var(--ink); text-decoration: none; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; letter-spacing: .02em; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; position: relative; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; }
.brand-mark span { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.brand-mark span:nth-child(1) { transform: translate(-9px, -5px); }
.brand-mark span:nth-child(2) { transform: translate(7px, 7px); background: var(--mint); }
.brand-mark span:nth-child(3) { transform: translate(9px, -8px); background: var(--orange); }
.live-pill { border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 8px 13px; color: var(--muted); background: rgba(255,255,255,.06); font-size: 12px; }
.live-pill.ok { color: #d4fff3; border-color: rgba(155,227,207,.5); background: rgba(155,227,207,.12); }
.live-pill.bad { color: #ffd7cf; border-color: rgba(255,151,111,.5); background: rgba(255,151,111,.12); }
.hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(340px, 1.1fr); gap: 34px; align-items: center; padding: 48px 0 30px; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow, .section-label { margin: 0 0 12px; color: var(--mint); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 16px var(--orange); }
h1 { margin: 0; font-size: clamp(44px, 8vw, 78px); line-height: .97; letter-spacing: -.07em; }
h1 em { color: var(--orange); font-style: normal; }
.intro { max-width: 380px; margin: 22px 0 26px; color: var(--muted); line-height: 1.7; }
.hero-actions, .button-row, .chat-row { display: flex; gap: 10px; }
.button { min-height: 46px; border: 1px solid transparent; border-radius: 14px; padding: 0 18px; color: var(--ink); font-weight: 700; }
.button-primary { background: var(--orange); color: #241426; box-shadow: 0 9px 28px rgba(255,151,111,.22); }
.button-primary:disabled, .action-card:disabled { cursor: not-allowed; opacity: .45; }
.button-ghost { border-color: var(--line); background: rgba(255,255,255,.05); }
.pet-stage { position: relative; min-height: 420px; overflow: hidden; border: 1px solid var(--line); border-radius: 32px; background: linear-gradient(150deg, rgba(255,255,255,.09), rgba(255,255,255,.015)), #171c3b; box-shadow: 0 32px 80px rgba(0,0,0,.23); }
.pet-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(120deg, rgba(255,255,255,.1), transparent 40%); }
.orbit { position: absolute; border: 1px solid rgba(155,227,207,.18); border-radius: 50%; transform: rotate(-20deg); }
.orbit-one { width: 84%; height: 43%; top: 27%; left: 8%; }
.orbit-two { width: 72%; height: 32%; top: 33%; left: 14%; transform: rotate(24deg); border-color: rgba(255,209,102,.15); }
.moon-glow { position: absolute; width: 240px; height: 240px; top: 76px; left: calc(50% - 120px); border-radius: 50%; background: radial-gradient(circle, rgba(255,209,102,.36), rgba(255,151,111,.09) 50%, transparent 70%); filter: blur(2px); }
.pet-shadow { position: absolute; width: 210px; height: 34px; left: calc(50% - 105px); bottom: 58px; border-radius: 50%; background: rgba(0,0,0,.35); filter: blur(12px); }
.video-stage video { position: absolute; inset: 26px; width: calc(100% - 52px); height: calc(100% - 52px); z-index: 2; border-radius: 22px; object-fit: contain; background: rgba(0,0,0,.22); }
.video-placeholder { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--muted); text-align: center; }
.video-placeholder strong { color: var(--ink); font-size: 20px; }
.video-placeholder small { font-size: 12px; }
.placeholder-orbit { display: grid; place-items: center; width: 72px; height: 72px; border: 1px solid rgba(255,209,102,.4); border-radius: 50%; color: var(--gold); font-size: 30px; animation: drift 3s ease-in-out infinite; }
@keyframes drift { 50% { transform: translateY(-8px) rotate(18deg); } }
.floating-note { position: absolute; z-index: 4; right: 24px; bottom: 22px; max-width: 65%; padding: 10px 13px; border: 1px solid rgba(255,255,255,.14); border-radius: 13px; background: rgba(15,19,43,.8); color: var(--gold); font-size: 12px; }
.control-panel, .debug-panel { border: 1px solid var(--line); border-radius: 24px; background: var(--panel); backdrop-filter: blur(20px); }
.control-panel { padding: 24px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 18px; }
.section-heading h2 { margin: 0; font-size: 24px; letter-spacing: -.04em; }
.action-hint { color: var(--muted); font-size: 12px; }
.control-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 12px; margin-bottom: 12px; }
.field { display: grid; gap: 7px; color: var(--muted); font-size: 12px; }
.field input, .field select, .chat-row input { width: 100%; min-height: 44px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; outline: none; background: rgba(0,0,0,.16); color: var(--ink); }
.field input:focus, .field select:focus, .chat-row input:focus { border-color: var(--orange); }
.button-row { margin-bottom: 12px; }
.action-card { flex: 1; display: flex; align-items: center; gap: 11px; min-height: 64px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); background: rgba(255,255,255,.055); text-align: left; }
.action-card:hover:not(:disabled) { transform: translateY(-2px); border-color: rgba(255,151,111,.5); background: rgba(255,151,111,.1); }
.action-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 11px; background: rgba(255,209,102,.16); color: var(--gold); font-size: 18px; }
.action-card strong, .action-card small { display: block; }
.action-card strong { font-size: 13px; }
.action-card small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.chat-row input { flex: 1; }
.chat-row .button { flex: 0 0 auto; }
.status-line { display: flex; align-items: center; gap: 9px; margin-top: 16px; color: var(--muted); font-size: 12px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.status-dot.ok { background: var(--mint); box-shadow: 0 0 12px var(--mint); }
.status-dot.bad { background: var(--orange); box-shadow: 0 0 12px var(--orange); }
.debug-panel { margin-top: 14px; padding: 15px 18px; }
.debug-panel summary { cursor: pointer; color: var(--muted); font-size: 12px; }
.debug-panel pre { max-height: 260px; margin: 14px 0 0; overflow: auto; color: #c6c9d8; font-size: 11px; line-height: 1.55; white-space: pre-wrap; }
.footer { display: flex; justify-content: space-between; gap: 16px; padding: 20px 3px 0; color: var(--muted); font-size: 11px; letter-spacing: .05em; }
@media (max-width: 760px) { .app-shell { padding: 20px 16px 28px; } .hero { grid-template-columns: 1fr; gap: 24px; padding-top: 38px; } .pet-stage { min-height: 330px; } .control-grid { grid-template-columns: 1fr; } }
@media (max-width: 440px) { h1 { font-size: 48px; } .hero-actions, .button-row { flex-direction: column; } .hero-actions .button, .action-card { width: 100%; } .chat-row { gap: 7px; } .chat-row .button { padding: 0 14px; } .footer { flex-direction: column; gap: 5px; } }
