:root {
  --bg: #f4efe7;
  --ink: #1c1c1c;
  --muted: #6b655d;
  --accent: #2f6f57;
  --accent-2: #c98d3a;
  --panel: rgba(255, 252, 246, 0.92);
  --line: rgba(28, 28, 28, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Noto Sans TC", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(201, 141, 58, 0.14), transparent 25%),
    radial-gradient(circle at bottom right, rgba(47, 111, 87, 0.18), transparent 32%),
    var(--bg);
}

.shell {
  width: min(1000px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 60px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 340px;
  gap: 28px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.04;
  font-family: Georgia, "Times New Roman", serif;
}

.summary {
  max-width: 760px;
  margin: 18px 0 0;
  line-height: 1.7;
  color: var(--muted);
  font-size: 17px;
}

.coach-stage {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 28px;
  min-height: 360px;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.82), transparent 38%),
    linear-gradient(180deg, rgba(226, 240, 231, 0.85), rgba(244, 239, 231, 0.94));
  box-shadow: 0 18px 44px rgba(53, 45, 35, 0.08);
  overflow: hidden;
}

.coach-stage::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background:
    radial-gradient(circle at 30% 40%, rgba(80, 146, 92, 0.2), transparent 22%),
    linear-gradient(180deg, rgba(94, 155, 87, 0.14), rgba(54, 118, 64, 0.3));
}

.coach-avatar {
  position: relative;
  width: 240px;
  height: 280px;
  margin: 16px auto 8px;
  transform-origin: bottom center;
}

.coach-avatar[data-state="idle"] {
  animation: coachFloat 3s ease-in-out infinite;
}

.coach-avatar[data-state="swing"] .coach-body {
  animation: coachSwing 1.15s ease-in-out infinite;
}

.coach-avatar[data-state="swing"] .arm-back {
  animation: clubSwing 1.15s ease-in-out infinite;
}

.coach-avatar[data-state="swing"] .coach-ball {
  animation: ballLaunch 1.15s ease-in-out infinite;
}

.coach-avatar[data-state="talk"] .coach-head {
  animation: coachNod 1.4s ease-in-out infinite;
}

.coach-shadow {
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 108px;
  height: 18px;
  border-radius: 999px;
  background: rgba(28, 28, 28, 0.14);
  transform: translateX(-50%);
  filter: blur(4px);
}

.coach-body {
  position: absolute;
  inset: 16px 0 18px;
  transform-origin: 50% 88%;
}

.coach-head {
  position: absolute;
  top: 0;
  left: 50%;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  border-radius: 50%;
  background: #f1c8a4;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.06);
}

.coach-head::before {
  content: "";
  position: absolute;
  inset: 2px 2px auto;
  height: 18px;
  border-radius: 18px 18px 10px 10px;
  background: #224233;
}

.coach-torso {
  position: absolute;
  top: 42px;
  left: 50%;
  width: 76px;
  height: 94px;
  margin-left: -38px;
  border-radius: 20px 20px 24px 24px;
  background: linear-gradient(180deg, #2f6f57, #214d3f);
}

.coach-torso::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 18px;
  right: 18px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.coach-arm,
.coach-leg {
  position: absolute;
  transform-origin: top center;
  background: linear-gradient(180deg, #f1c8a4, #e0b18c);
}

.coach-arm {
  top: 54px;
  width: 18px;
  height: 90px;
  border-radius: 999px;
}

.arm-back {
  left: 82px;
  transform: rotate(44deg);
}

.arm-front {
  right: 82px;
  transform: rotate(-22deg);
}

.club {
  position: absolute;
  top: -60px;
  left: 7px;
  width: 6px;
  height: 118px;
  border-radius: 999px;
  background: linear-gradient(180deg, #7d8790, #d7dde3);
}

.club::after {
  content: "";
  position: absolute;
  left: -9px;
  top: -5px;
  width: 24px;
  height: 10px;
  border-radius: 8px;
  background: #2d3135;
}

.coach-leg {
  top: 126px;
  width: 22px;
  height: 104px;
  border-radius: 999px;
}

.leg-back {
  left: 94px;
  transform: rotate(8deg);
}

.leg-front {
  right: 94px;
  transform: rotate(-10deg);
}

.leg-back::after,
.leg-front::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: -8px;
  width: 38px;
  height: 12px;
  border-radius: 12px;
  background: #ffffff;
}

.coach-ball {
  position: absolute;
  right: 54px;
  bottom: 26px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.24);
}

.coach-caption {
  position: relative;
  z-index: 1;
  margin: 6px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.card {
  margin-top: 28px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 18px 44px rgba(53, 45, 35, 0.08);
  backdrop-filter: blur(16px);
}

.chat-card {
  position: relative;
  padding: 24px;
  overflow: hidden;
}

.thinking-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(244, 239, 231, 0.78);
  backdrop-filter: blur(8px);
}

.thinking-overlay[hidden] {
  display: none;
}

.thinking-panel {
  width: min(420px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 28px;
  padding: 32px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0, rgba(201, 141, 58, 0.16), transparent 42%),
    rgba(255, 252, 246, 0.96);
  box-shadow: 0 24px 70px rgba(33, 77, 63, 0.2);
  animation: thinkingAppear 240ms ease-out both;
}

.thinking-spinner {
  width: 62px;
  height: 62px;
  margin: 0 auto 20px;
  border: 6px solid rgba(47, 111, 87, 0.14);
  border-top-color: var(--accent);
  border-right-color: var(--accent-2);
  border-radius: 50%;
  animation: thinkingSpin 900ms linear infinite;
}

.thinking-title {
  margin: 0;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 700;
}

.thinking-detail {
  margin: 12px 0 0;
  color: var(--ink);
  line-height: 1.6;
}

.thinking-elapsed {
  display: inline-block;
  margin: 18px 0 0;
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--accent);
  background: rgba(47, 111, 87, 0.1);
  font-size: 14px;
  font-weight: 800;
}

.thinking-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.support-card {
  padding: 24px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.1;
  font-family: Georgia, "Times New Roman", serif;
}

.section-copy {
  margin: 0;
  max-width: 420px;
  color: var(--muted);
  line-height: 1.6;
}

.chat-log {
  min-height: 440px;
  max-height: 60vh;
  overflow: auto;
  padding-right: 6px;
}

.video-upload {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.video-upload-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}

.video-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(0, 230, 230, 0.3);
  border-radius: 999px;
  padding: 9px 14px;
  color: #bdfcff;
  background: rgba(0, 230, 230, 0.07);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.video-toggle:hover {
  border-color: rgba(0, 230, 230, 0.65);
  background: rgba(0, 230, 230, 0.12);
}

.video-toggle-icon {
  width: 16px;
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
}

.video-upload-content[hidden] {
  display: none;
}

.video-upload-description {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.video-upload-head h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
}

.video-upload-head > p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.video-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.video-picker {
  display: grid;
  gap: 7px;
  border: 1px dashed rgba(47, 111, 87, 0.38);
  border-radius: 18px;
  padding: 18px;
  background: rgba(47, 111, 87, 0.05);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.video-picker:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: rgba(47, 111, 87, 0.09);
}

.video-picker input {
  width: 100%;
  padding: 8px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 13px;
}

.video-angle {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.video-file-name {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-help {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.bubble {
  max-width: 82%;
  margin: 0 0 14px;
  border-radius: 20px;
  padding: 16px 18px;
  line-height: 1.65;
}

.bubble p {
  margin: 0;
  white-space: pre-wrap;
}

.bubble-user {
  margin-left: auto;
  background: linear-gradient(135deg, #2f6f57, #4d8d72);
  color: white;
}

.bubble-assistant {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
}

.answer-category {
  display: inline-block;
  margin-bottom: 10px;
  border: 1px solid rgba(0, 230, 230, 0.24);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--accent);
  background: rgba(0, 230, 230, 0.06);
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.composer {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

textarea {
  width: 100%;
  min-height: 130px;
  resize: vertical;
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 14px 16px;
  font: inherit;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

input {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 14px 16px;
  font: inherit;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.support-form {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.support-grid label {
  display: block;
}

.support-grid span {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--muted);
}

.support-grid .full {
  grid-column: 1 / -1;
}

.composer-row {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.status {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #245644);
  color: white;
  font: inherit;
  font-weight: 800;
  padding: 14px 22px;
  cursor: pointer;
  white-space: nowrap;
}

button:disabled,
textarea:disabled,
input:disabled {
  opacity: 0.7;
  cursor: wait;
}

@keyframes coachFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes coachSwing {
  0%, 100% { transform: rotate(0deg); }
  30% { transform: rotate(-12deg); }
  55% { transform: rotate(18deg); }
  75% { transform: rotate(8deg); }
}

@keyframes clubSwing {
  0%, 100% { transform: rotate(44deg); }
  30% { transform: rotate(76deg); }
  55% { transform: rotate(-8deg); }
  75% { transform: rotate(16deg); }
}

@keyframes ballLaunch {
  0%, 44% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  62% {
    transform: translate(-36px, -60px) scale(0.92);
    opacity: 1;
  }
  100% {
    transform: translate(-78px, -118px) scale(0.72);
    opacity: 0;
  }
}

@keyframes coachNod {
  0%, 100% { transform: rotate(0deg); }
  30% { transform: rotate(6deg); }
  60% { transform: rotate(-5deg); }
}

@keyframes thinkingSpin {
  to { transform: rotate(360deg); }
}

@keyframes thinkingAppear {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 20px, 1000px);
    padding-top: 28px;
  }

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

  .coach-stage {
    min-height: 300px;
  }

  .coach-avatar {
    width: 220px;
    height: 250px;
  }

  .chat-card {
    padding: 16px;
  }

  .bubble {
    max-width: 92%;
  }

  .composer-row {
    flex-direction: column;
    align-items: stretch;
  }

  .section-head {
    flex-direction: column;
    align-items: start;
  }

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

  .video-upload-head {
    align-items: start;
    flex-direction: column;
  }

  .video-upload-grid {
    grid-template-columns: 1fr;
  }

  .support-grid .full {
    grid-column: auto;
  }
}

/* ORVIA motion-intelligence visual system */
:root {
  --bg: #03050a;
  --ink: #f4f7ff;
  --muted: #8e9ab4;
  --accent: #00e6e6;
  --accent-2: #6847ff;
  --panel: rgba(10, 14, 25, 0.84);
  --line: rgba(133, 162, 213, 0.16);
  --glow: 0 0 36px rgba(0, 230, 230, 0.14);
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Bahnschrift", "Aptos", "Noto Sans TC", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 10%, rgba(0, 230, 230, 0.13), transparent 25%),
    radial-gradient(circle at 82% 22%, rgba(104, 71, 255, 0.16), transparent 28%),
    linear-gradient(145deg, #020308 0%, #080d18 48%, #03050a 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.3;
  background: url("/static/brand/og-banner.png") 50% 0 / min(1200px, 100vw) auto no-repeat;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
  pointer-events: none;
}

.ambient-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(80, 114, 165, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 114, 165, 0.12) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 25%, black, transparent 76%);
  pointer-events: none;
}

.email-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 5, 12, 0.82);
  backdrop-filter: blur(12px);
}

.email-modal[hidden] {
  display: none;
}

.email-dialog {
  width: min(430px, 100%);
  border: 1px solid rgba(0, 230, 230, 0.28);
  border-radius: 24px;
  padding: 28px;
  color: #e8f1ff;
  background:
    radial-gradient(circle at 50% 0, rgba(0, 230, 230, 0.13), transparent 42%),
    linear-gradient(145deg, #10192b, #060a12);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.62);
}

.email-dialog img {
  display: block;
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
}

.email-dialog h2 {
  margin: 0;
  font-size: 28px;
}

.email-dialog > p:not(.eyebrow, .email-status) {
  margin: 12px 0 20px;
  color: #9baac2;
  line-height: 1.6;
}

.email-dialog label {
  display: block;
  margin-bottom: 7px;
  color: #aebbd0;
  font-size: 12px;
}

.email-dialog input {
  width: 100%;
  padding: 13px 15px;
}

.email-dialog button {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 13px 18px;
  color: #001414;
  background: linear-gradient(90deg, #24e4e1, #7384ff);
  font-weight: 800;
  cursor: pointer;
}

.email-status {
  min-height: 20px;
  margin: 8px 0;
  color: #ff9ca8;
  font-size: 12px;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  padding: 24px 0 80px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
}

.brand-lockup {
  display: block;
  width: min(270px, 46vw);
}

.brand-lockup img {
  display: block;
  width: 100%;
  height: auto;
}

.system-state {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #a9b7d1;
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.state-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
  animation: statePulse 1.8s ease-in-out infinite;
}

.state-divider {
  width: 1px;
  height: 13px;
  background: var(--line);
}

.hero {
  grid-template-columns: minmax(0, 1.3fr) minmax(340px, 0.7fr);
  min-height: 620px;
  gap: 64px;
  padding: 72px 0 48px;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--accent);
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 11px;
  letter-spacing: 0.19em;
}

h1 {
  font-family: "Bahnschrift", "Aptos", sans-serif;
  font-size: clamp(58px, 8vw, 104px);
  font-weight: 300;
  letter-spacing: -0.055em;
}

h1 span {
  color: transparent;
  background: linear-gradient(90deg, #ffffff 8%, #b9faff 56%, #9887ff);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.store-links {
  display: grid;
  flex: 0 0 auto;
  gap: 10px;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 166px;
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 13px;
  padding: 8px 14px;
  color: #fff;
  text-decoration: none;
  background: rgba(11, 13, 18, 0.92);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 230, 230, 0.52);
  box-shadow: 0 14px 34px rgba(0, 230, 230, 0.12);
}

.store-badge.google-play {
  border-color: transparent;
  background: linear-gradient(120deg, #18cdea, #7352ed);
}

.store-badge span {
  display: grid;
  gap: 1px;
  line-height: 1;
}

.store-badge small {
  font-size: 10px;
  font-weight: 400;
}

.store-badge strong {
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.store-icon {
  width: 25px;
  height: 29px;
  flex: 0 0 auto;
}

.google-play .play-icon {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.24));
}

.apple-icon {
  width: 24px;
  color: #fff;
}

.summary {
  max-width: 700px;
  color: #9aa7bf;
  font-size: 16px;
  line-height: 1.85;
}

.hero-metrics {
  display: flex;
  gap: 42px;
  margin-top: 38px;
}

.hero-metrics div {
  display: grid;
  gap: 6px;
}

.hero-metrics strong {
  color: #eafaff;
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 20px;
  font-weight: 500;
}

.hero-metrics span {
  color: #71809c;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.coach-stage {
  min-height: 440px;
  border-color: rgba(0, 230, 230, 0.2);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 44%, rgba(0, 230, 230, 0.09), transparent 36%),
    linear-gradient(145deg, rgba(13, 20, 36, 0.93), rgba(5, 8, 16, 0.96));
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.4),
    inset 0 1px rgba(255, 255, 255, 0.07),
    var(--glow);
}

.coach-stage::before {
  height: 38%;
  opacity: 0.65;
  background:
    linear-gradient(transparent 96%, rgba(0, 230, 230, 0.12) 96%) 0 0 / 100% 22px,
    linear-gradient(90deg, transparent 96%, rgba(0, 230, 230, 0.1) 96%) 0 0 / 22px 100%;
  transform: perspective(240px) rotateX(55deg) scale(1.5);
  transform-origin: bottom;
}

.stage-topline {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  color: #8897b4;
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.live-pill {
  border: 1px solid rgba(0, 230, 230, 0.3);
  border-radius: 99px;
  padding: 4px 9px;
  color: var(--accent);
  background: rgba(0, 230, 230, 0.07);
}

.stage-mark {
  position: absolute;
  top: 82px;
  left: 50%;
  width: 210px;
  height: 210px;
  opacity: 0.13;
  transform: translateX(-50%);
  filter: drop-shadow(0 0 22px rgba(0, 230, 230, 0.35));
  animation: markOrbit 14s linear infinite;
}

.scan-line {
  position: absolute;
  z-index: 3;
  top: 68px;
  right: 16px;
  left: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 12px var(--accent);
  animation: stageScan 3.8s ease-in-out infinite;
}

.coach-avatar {
  z-index: 2;
  margin-top: 34px;
  filter: drop-shadow(0 0 18px rgba(0, 230, 230, 0.18));
}

.coach-torso {
  background: linear-gradient(180deg, #087c86, #2436a3);
}

.coach-head::before {
  background: #10172b;
}

.coach-caption {
  color: #8ea0bd;
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.card {
  margin-top: 24px;
  border-color: var(--line);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(15, 21, 36, 0.9), rgba(6, 9, 17, 0.92));
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.32),
    inset 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(24px);
}

.chat-card,
.support-card {
  padding: 30px;
}

.card-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 24px;
}

.card-heading h2,
.section-head h2,
.video-upload-head h2 {
  margin: 0;
  color: #eef3ff;
  font-family: "Bahnschrift", "Aptos", sans-serif;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.card-heading h2 {
  font-size: 32px;
}

.secure-badge {
  border: 1px solid rgba(104, 71, 255, 0.34);
  border-radius: 99px;
  padding: 7px 12px;
  color: #a99cff;
  background: rgba(104, 71, 255, 0.09);
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chat-log {
  min-height: 380px;
  border: 1px solid rgba(133, 162, 213, 0.1);
  border-radius: 22px;
  padding: 20px;
  background:
    linear-gradient(rgba(6, 9, 17, 0.74), rgba(6, 9, 17, 0.9)),
    radial-gradient(circle at 5% 0, rgba(0, 230, 230, 0.09), transparent 32%);
}

.bubble {
  border-radius: 18px 18px 18px 5px;
  padding: 16px 18px;
}

.bubble-assistant {
  border-color: rgba(0, 230, 230, 0.14);
  color: #dce5f6;
  background: rgba(17, 25, 42, 0.86);
}

.bubble-user {
  border-radius: 18px 18px 5px 18px;
  background: linear-gradient(135deg, #087d8b, #4935bd);
  box-shadow: 0 8px 24px rgba(49, 45, 164, 0.22);
}

.video-upload,
.composer,
.support-form {
  border-top-color: var(--line);
}

.video-picker {
  border-color: rgba(0, 230, 230, 0.25);
  color: #dce5f6;
  background:
    linear-gradient(135deg, rgba(0, 230, 230, 0.06), rgba(104, 71, 255, 0.06));
}

.video-picker:hover {
  border-color: var(--accent);
  background:
    linear-gradient(135deg, rgba(0, 230, 230, 0.12), rgba(104, 71, 255, 0.1));
  box-shadow: 0 0 24px rgba(0, 230, 230, 0.08);
}

.video-angle {
  color: var(--accent);
}

textarea,
input {
  border-color: rgba(133, 162, 213, 0.18);
  color: #e8eefb;
  background: rgba(2, 5, 12, 0.68);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

textarea:focus,
input:focus {
  border-color: rgba(0, 230, 230, 0.6);
  box-shadow: 0 0 0 3px rgba(0, 230, 230, 0.08);
}

textarea::placeholder,
input::placeholder {
  color: #53627c;
}

button {
  position: relative;
  overflow: hidden;
  padding: 14px 24px;
  background: linear-gradient(110deg, #00aebd, #3757e8 60%, #6847ff);
  box-shadow: 0 10px 28px rgba(55, 87, 232, 0.25);
}

button::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: translateX(-100%);
  transition: opacity 160ms ease;
}

button:hover::after {
  opacity: 1;
  animation: buttonSweep 800ms ease;
}

.thinking-overlay {
  background: rgba(2, 4, 10, 0.76);
  backdrop-filter: blur(14px);
}

.thinking-panel {
  border-color: rgba(0, 230, 230, 0.24);
  background:
    radial-gradient(circle at 50% 0, rgba(0, 230, 230, 0.14), transparent 44%),
    linear-gradient(145deg, rgba(15, 22, 38, 0.98), rgba(5, 8, 16, 0.98));
  box-shadow:
    0 26px 90px rgba(0, 0, 0, 0.6),
    0 0 44px rgba(0, 230, 230, 0.1);
}

.thinking-title {
  color: #eaffff;
  font-family: "Bahnschrift", "Aptos", sans-serif;
}

.thinking-detail {
  color: #a7b4ca;
}

.thinking-elapsed {
  color: var(--accent);
  background: rgba(0, 230, 230, 0.08);
}

.support-card {
  background:
    linear-gradient(145deg, rgba(11, 16, 29, 0.92), rgba(5, 8, 15, 0.95));
}

.section-copy,
.status,
.video-file-name,
.video-help,
.support-grid span,
.thinking-note {
  color: var(--muted);
}

@keyframes statePulse {
  0%, 100% { opacity: 0.55; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

@keyframes markOrbit {
  to { transform: translateX(-50%) rotate(360deg); }
}

@keyframes stageScan {
  0%, 100% { top: 72px; opacity: 0; }
  15%, 85% { opacity: 0.75; }
  50% { top: 355px; opacity: 1; }
}

@keyframes buttonSweep {
  to { transform: translateX(100%); }
}

.coach-avatar {
  width: 300px;
  height: 340px;
  margin: 10px auto -6px;
  filter: none;
  --follow-x: 0px;
  --follow-y: 0px;
  --follow-rx: 0deg;
  --follow-ry: 0deg;
  transform: perspective(700px) translate3d(var(--follow-x), var(--follow-y), 0)
    rotateX(var(--follow-rx)) rotateY(var(--follow-ry));
  transform-style: preserve-3d;
  transition: transform 260ms cubic-bezier(0.16, 0.8, 0.25, 1);
  will-change: transform;
}

.holo-coach {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform-origin: 50% 62%;
  filter: drop-shadow(0 22px 22px rgba(0, 240, 230, 0.2));
}

.golfer-figure {
  transform-origin: 63px 199px;
}

.coach-face {
  transform-origin: 164px 96px;
  transition: transform 180ms ease-out;
}

.coach-stage:hover .coach-face {
  transform: translateY(-1px) rotate(1.5deg);
}

.coach-eye {
  transform-box: fill-box;
  transform-origin: center;
  animation: coachBlink 5.2s infinite;
}

.coach-smile {
  filter: none;
}

.coach-shirt,
.coach-trousers {
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.35));
}

.golf-club {
  stroke: #c4faff;
  stroke-width: 3;
}

.club-head {
  stroke: #ffffff;
  stroke-width: 7;
}

.motion-orbits {
  opacity: 0.14;
  stroke-width: 1;
  stroke-dasharray: 4 10;
}

.orbit-one {
  animation: orbitDash 12s linear infinite;
}

.orbit-two {
  animation: orbitDash 16s linear infinite reverse;
}

.swing-trail {
  opacity: 0.18;
  stroke-width: 3;
  stroke-dasharray: 12 12;
}

.impact-core {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.golf-ball-svg {
  filter: drop-shadow(0 0 6px #ffffff);
}

.ground-line {
  opacity: 0.42;
  stroke-width: 1.5;
  filter: drop-shadow(0 0 5px #00f0e6);
}

.coach-data {
  position: absolute;
  z-index: 5;
  display: grid;
  gap: 3px;
  border-left: 1px solid rgba(0, 230, 230, 0.42);
  padding-left: 9px;
  color: #8d9bb5;
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 8px;
  letter-spacing: 0.12em;
  text-align: left;
}

.coach-data strong {
  color: #dffeff;
  font-size: 12px;
  font-weight: 500;
}

.data-angle {
  top: 132px;
  left: -4px;
}

.data-tempo {
  right: -2px;
  bottom: 66px;
}

.coach-avatar[data-state="idle"] {
  animation: none;
}

.coach-avatar[data-state="idle"] .holo-coach {
  animation: holoBreathe 3.2s ease-in-out infinite;
}

.coach-avatar[data-state="talk"] .golfer-figure {
  animation: figureRespond 1.8s ease-in-out infinite;
}

.coach-avatar[data-state="talk"] .coach-smile {
  animation: coachTalk 650ms ease-in-out infinite;
}

.coach-avatar[data-state="talk"] .swing-trail {
  opacity: 0.45;
  animation: trailFlow 1.8s linear infinite;
}

.coach-avatar[data-state="swing"] .golfer-figure {
  animation: holoSwing 2.1s cubic-bezier(0.45, 0, 0.25, 1) infinite;
}

.coach-avatar[data-state="swing"] .club-group {
  transform-box: fill-box;
  transform-origin: 4% 96%;
  animation: clubKinetic 2.1s cubic-bezier(0.45, 0, 0.25, 1) infinite;
}

.coach-avatar[data-state="swing"] .swing-trail {
  opacity: 0.92;
  animation: trailFlow 720ms linear infinite;
}

.coach-avatar[data-state="swing"] .impact-core {
  animation: impactFlash 2.1s ease-out infinite;
}

.coach-avatar[data-state="swing"] .golf-ball-svg {
  animation: holoBall 2.1s ease-out infinite;
}

@keyframes orbitDash {
  to { stroke-dashoffset: -140; }
}

@keyframes holoBreathe {
  0%, 100% {
    transform: translateY(5px) rotate(-0.8deg) scale(0.99);
    filter: drop-shadow(0 14px 15px rgba(0, 240, 230, 0.14));
  }
  50% {
    transform: translateY(-14px) rotate(0.8deg) scale(1.015);
    filter: drop-shadow(0 30px 25px rgba(80, 89, 255, 0.3));
  }
}

@keyframes coachBlink {
  0%, 45%, 49%, 100% { transform: scaleY(1); }
  47% { transform: scaleY(0.08); }
}

@keyframes coachTalk {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.45) translateY(1px); }
}

@keyframes figureRespond {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes holoSwing {
  0%, 100% { transform: rotate(0deg) translate(0, 0); }
  24% { transform: rotate(-5deg) translate(-3px, -2px); }
  48% { transform: rotate(4deg) translate(3px, 1px); }
  66% { transform: rotate(7deg) translate(5px, 0); }
}

@keyframes clubKinetic {
  0%, 100% { transform: rotate(0deg); }
  24% { transform: rotate(-16deg); }
  48% { transform: rotate(10deg); }
  66% { transform: rotate(18deg); }
}

@keyframes trailFlow {
  to { stroke-dashoffset: -48; }
}

@keyframes impactFlash {
  0%, 43%, 100% { opacity: 0; transform: scale(0.2); }
  51% { opacity: 0.95; transform: scale(1); }
  68% { opacity: 0; transform: scale(1.8); }
}

@keyframes holoBall {
  0%, 47% { opacity: 1; transform: translate(0, 0); }
  72%, 100% { opacity: 0; transform: translate(110px, -62px); }
}

/* Compact desktop layout keeps the coach and primary controls in one viewport. */
@media (min-width: 821px) {
  .shell {
    padding: 10px 0 28px;
  }

  .topbar {
    min-height: 52px;
  }

  .brand-lockup {
    width: 210px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 230px;
    gap: 30px;
    padding: 18px 0 12px;
  }

  .hero-copy {
    max-width: 900px;
  }

  h1 {
    font-size: clamp(38px, 4.6vw, 58px);
    line-height: 0.98;
  }

  .eyebrow {
    margin-bottom: 7px;
  }

  .summary {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.5;
  }

  .coach-stage {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 60;
    width: 238px;
    height: 268px;
    min-height: 0;
    padding: 13px;
    border-radius: 26px;
    cursor: pointer;
    box-shadow:
      0 24px 70px rgba(0, 0, 0, 0.56),
      0 0 34px rgba(0, 230, 230, 0.13),
      inset 0 1px rgba(255, 255, 255, 0.09);
    transition: border-color 180ms ease, box-shadow 180ms ease;
  }

  .coach-stage:hover,
  .coach-stage:focus-visible {
    border-color: rgba(0, 230, 230, 0.58);
    box-shadow:
      0 28px 82px rgba(0, 0, 0, 0.62),
      0 0 42px rgba(0, 230, 230, 0.22),
      inset 0 1px rgba(255, 255, 255, 0.12);
    outline: none;
  }

  .stage-mark {
    top: 54px;
    width: 150px;
    height: 150px;
  }

  .scan-line {
    top: 54px;
  }

  .coach-avatar {
    width: 188px;
    height: 210px;
    margin-top: -9px;
  }

  .coach-caption {
    margin-top: 0;
    transform: translateY(-34px);
    color: #c8faff;
    font-size: 9px;
  }

  .card {
    margin-top: 10px;
  }

  .chat-card {
    padding: 16px;
  }

  .card-heading {
    margin-bottom: 10px;
  }

  .card-heading h2 {
    font-size: 23px;
  }

  .chat-log {
    min-height: 300px;
    max-height: 52vh;
    padding: 10px;
  }

  .bubble {
    padding: 9px 13px;
  }

  .video-upload {
    margin-top: 10px;
    padding-top: 10px;
  }

  .video-upload-head h2 {
    font-size: 21px;
  }

  .video-upload-head > p,
  .video-help {
    font-size: 12px;
    line-height: 1.4;
  }

  .video-upload-grid {
    gap: 10px;
    margin-top: 10px;
  }

  .video-picker {
    padding: 11px 14px;
  }

  .composer {
    margin-top: 10px;
    padding-top: 10px;
  }

  .composer textarea {
    min-height: 72px;
    padding: 11px 14px;
  }

  .composer-row {
    margin-top: 8px;
  }
}

@media (max-width: 820px) {
  .hero-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .store-links {
    display: flex;
    width: 100%;
    gap: 8px;
  }

  .store-badge {
    width: auto;
    min-width: 0;
    flex: 1;
    padding: 8px 10px;
  }

  .store-badge strong {
    font-size: 14px;
  }

  .coach-stage {
    position: fixed;
    right: 10px;
    bottom: 10px;
    z-index: 60;
    width: 88px;
    height: 104px;
    min-height: 0;
    padding: 5px;
    border-radius: 18px;
    cursor: pointer;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55), 0 0 18px rgba(0, 230, 230, 0.13);
  }

  .coach-avatar {
    width: 76px;
    height: 92px;
    margin: 1px auto 0;
    transform: none;
  }

  .coach-stage .stage-topline,
  .coach-stage .coach-caption,
  .coach-stage .coach-data,
  .coach-stage .scan-line {
    display: none;
  }

  .stage-mark {
    top: 16px;
    width: 62px;
    height: 62px;
  }

  .chat-log {
    min-height: 280px;
    max-height: 55vh;
  }
  .shell {
    width: min(100% - 24px, 1180px);
  }

  .system-state {
    display: none;
  }

  .brand-lockup {
    width: 230px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 32px;
    padding: 56px 0 32px;
  }

  h1 {
    font-size: clamp(54px, 16vw, 82px);
  }

  .hero-metrics {
    gap: 22px;
  }

  .coach-stage {
    min-height: 390px;
  }

  .chat-card,
  .support-card {
    padding: 18px;
  }

  .card-heading {
    align-items: start;
    flex-direction: column;
    gap: 14px;
  }
}

/* Keep the mobile coach compact despite earlier stage minimum-height rules. */
@media (max-width: 820px) {
  .coach-stage {
    width: 82px !important;
    height: 96px !important;
    min-height: 0 !important;
    max-height: 96px !important;
    padding: 4px !important;
    overflow: hidden;
  }

  .coach-avatar {
    width: 72px !important;
    height: 86px !important;
    margin: 1px auto 0 !important;
  }
}
