:root {
  --bg: #050604;
  --panel: rgba(255, 255, 255, 0.055);
  --panel-strong: #10130e;
  --line: rgba(184, 215, 0, 0.38);
  --lime: #c8f401;
  --lime-strong: #d6ff00;
  --text: #f2f2ed;
  --muted: #a4a69c;
  --soft: rgba(255, 255, 255, 0.08);
  --danger: #ff6a52;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --lift-x: 0px;
  --lift-y: 0px;
  --mx: 50%;
  --my: 50%;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Montserrat, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #000;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.32), transparent 78%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.38'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}

.app-shell {
  min-height: 100vh;
  display: block;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), #000 62%),
    linear-gradient(105deg, transparent 0%, rgba(200, 244, 1, 0.055) 48%, transparent 100%),
    #000;
}

.visual-rail {
  position: fixed;
  inset: 0;
  min-height: 100vh;
  padding: 42px clamp(22px, 5vw, 76px);
  display: block;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.62), #000 78%),
    var(--custom-bg, linear-gradient(120deg, rgba(200, 244, 1, 0.05), transparent 34%));
  border-right: 0;
  overflow: hidden;
  pointer-events: none;
}

.visual-rail::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0, transparent calc(50% - 1px), rgba(200, 244, 1, 0.42) 50%, transparent calc(50% + 1px)),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 120px 120px, 120px 120px;
  opacity: 0.2;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 68%);
}

.visual-rail::after {
  content: "";
  position: absolute;
  top: 112px;
  left: 0;
  right: 0;
  width: 100%;
  height: 1px;
  background: var(--lime);
  box-shadow: 0 560px 0 rgba(200, 244, 1, 0.32);
  z-index: 0;
  opacity: 1;
  animation: none;
}

.brand-mark {
  position: absolute;
  top: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: block;
  width: min(250px, 44vw);
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

.rail-title {
  position: absolute;
  top: 190px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: min(1120px, calc(100vw - 48px));
  max-width: none;
  text-align: center;
}

.rail-title > span {
  display: inline-flex;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--lime);
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 6px;
}

.rail-title h1 {
  margin: 20px 0 0;
  font-family: Anton, Impact, sans-serif;
  font-size: clamp(74px, 9.4vw, 138px);
  line-height: 0.86;
  text-transform: uppercase;
  font-style: italic;
  letter-spacing: 0;
  text-wrap: balance;
}

.kinetic-title span,
.kinetic-title em {
  display: block;
  transform: translate3d(0, 0, 0);
  animation: titleRise 1400ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--i) * 180ms);
  transition: transform 1200ms cubic-bezier(0.16, 1, 0.3, 1), color 500ms ease;
}

.rail-title em {
  color: var(--lime);
  font-style: inherit;
}

.rail-title p {
  max-width: 760px;
  margin: 24px auto 0;
  color: #a9afbb;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 500;
}

.app-shell:hover .kinetic-title span {
  transform: translate3d(-6px, -3px, 0) skewX(-1.2deg);
}

.app-shell:hover .kinetic-title em {
  transform: translate3d(10px, 3px, 0) skewX(-2deg);
}
.metric-strip {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(520px, calc(100vw - 48px));
}

.metric-strip div {
  min-height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.035)),
    rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px) saturate(130%);
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1), border-color 600ms ease;
}

.metric-strip div:hover {
  border-color: var(--lime);
  transform: translateY(-4px);
}

.metric-strip b {
  color: var(--lime);
  font-size: 34px;
  line-height: 0.8;
}

.metric-strip span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.survey-panel {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 450px clamp(20px, 5vw, 70px) 158px;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.survey-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 82px 82px;
  opacity: 0.22;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 92%);
}

.survey-panel > * {
  position: relative;
  z-index: 1;
}

.topbar {
  display: grid;
  grid-template-columns: auto minmax(160px, 360px);
  gap: 26px;
  align-items: end;
  width: min(760px, 100%);
  margin: 0 auto 16px;
  padding: 0 8px;
}

.kicker,
.done-badge {
  color: var(--lime);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.topbar p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.progress-wrap {
  height: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.progress-wrap span {
  display: block;
  width: 16.66%;
  height: 100%;
  background: linear-gradient(90deg, var(--lime), var(--lime-strong), var(--lime));
  background-size: 220% 100%;
  transition: width 800ms cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  animation: progressFlow 5.8s linear infinite;
}

.progress-wrap span::after {
  content: none;
}

.question-card,
.done-panel {
  align-self: center;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: clamp(26px, 4vw, 48px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035) 38%, rgba(200, 244, 1, 0.040)),
    rgba(7, 8, 6, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 0 32px rgba(255, 255, 255, 0.026),
    inset 0 -1px 0 rgba(200, 244, 1, 0.12),
    0 30px 90px rgba(0, 0, 0, 0.70);
  backdrop-filter: blur(28px) saturate(135%);
  -webkit-backdrop-filter: blur(28px) saturate(135%);
  transform: perspective(1100px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translate3d(var(--lift-x), var(--lift-y), 0);
  transform-style: preserve-3d;
  transition: transform 950ms cubic-bezier(0.16, 1, 0.3, 1), border-color 700ms ease, box-shadow 700ms ease;
}

.question-card::before,
.done-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.18), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 24%, rgba(200, 244, 1, 0.10) 72%, transparent);
  opacity: 0.75;
  transition: opacity 900ms ease;
}

.question-card::after,
.done-panel::after {
  content: "";
  position: absolute;
  top: 1px;
  bottom: 1px;
  left: -70%;
  width: 70%;
  z-index: 0;
  border-radius: inherit;
  background:
    linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.10) 42%, rgba(200, 244, 1, 0.065) 50%, transparent 62%);
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-35%, 0, 0) skewX(-10deg);
  animation: liquidGlassSweep 8.5s cubic-bezier(0.45, 0, 0.25, 1) infinite;
}

.question-card > *,
.done-panel > * {
  position: relative;
  z-index: 1;
}

.question-card:hover,
.done-panel:hover {
  border-color: rgba(200, 244, 1, 0.50);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.30),
    inset 0 -1px 0 rgba(200, 244, 1, 0.18),
    0 36px 110px rgba(0, 0, 0, 0.78),
    0 0 58px rgba(200, 244, 1, 0.07);
}

.question-card.is-switching {
  animation: cardSwitch 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.step-number {
  color: var(--lime);
  font-family: Anton, Impact, sans-serif;
  font-size: clamp(68px, 10vw, 118px);
  line-height: 0.82;
  font-weight: 950;
  font-style: italic;
  margin-bottom: 20px;
  animation: numberIn 1200ms cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: transform 1000ms cubic-bezier(0.16, 1, 0.3, 1), text-shadow 700ms ease;
}

.question-card:hover .step-number {
  transform: translate3d(3px, -3px, 22px) skewX(-1deg);
  text-shadow: 0 0 26px rgba(199, 235, 0, 0.18);
}

label {
  display: block;
  font-family: Anton, Impact, sans-serif;
  font-size: clamp(36px, 4.4vw, 58px);
  line-height: 0.98;
  font-weight: 400;
  text-transform: uppercase;
  font-style: italic;
  letter-spacing: 0;
}

.label-word {
  display: inline-block;
  margin-right: 0.22em;
  transform: translate3d(0, 22px, 0);
  opacity: 0;
  animation: wordIn 1050ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--d) * 95ms);
  transition: transform 1100ms cubic-bezier(0.16, 1, 0.3, 1), color 650ms ease;
}

.question-card:hover .label-word {
  transform: translate3d(calc(var(--s) * .24px), calc(var(--r) * -.24px), 18px);
}

.question-card:hover .label-word:nth-child(2n + 1) {
  color: #fff;
}

#fieldPrompt {
  margin: 16px 0 26px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
  animation: fadeLift 1100ms 240ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

textarea,
input[type="number"] {
  display: block;
  width: 100%;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    rgba(0, 0, 0, 0.40);
  border: 1px solid rgba(200, 244, 1, 0.52);
  border-radius: 14px;
  outline: none;
  resize: none;
  font: inherit;
  font-size: 21px;
  line-height: 1.48;
  padding: 22px;
  transition: border-color 500ms ease, box-shadow 500ms ease, transform 700ms ease, background 700ms ease;
  animation: fieldIn 1100ms 260ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

input[type="number"] {
  max-width: 240px;
  height: 94px;
  font-size: 42px;
  font-weight: 900;
  text-align: center;
}

textarea:focus,
input[type="number"]:focus {
  border-color: var(--lime-strong);
  box-shadow: 0 0 0 5px rgba(168, 201, 0, 0.14);
  transform: translateY(-2px);
  background: rgba(0, 0, 0, 0.64);
}

.signature-pad {
  width: 100%;
}

.signature-pad canvas {
  display: block;
  width: 100%;
  height: clamp(150px, 24vh, 220px);
  border: 1px solid rgba(200, 244, 1, 0.52);
  border-radius: 14px;
  outline: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    rgba(0, 0, 0, 0.40);
  box-shadow:
    inset 0 0 28px rgba(200, 244, 1, 0.08),
    0 0 22px rgba(200, 244, 1, 0.08);
  cursor: crosshair;
  touch-action: none;
  animation: fieldIn 1100ms 260ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.signature-pad canvas:focus {
  border-color: var(--lime-strong);
  box-shadow: 0 0 0 5px rgba(168, 201, 0, 0.14);
}

.clear-signature {
  margin-top: 12px;
  width: auto;
  min-height: 42px;
  padding-inline: 18px;
}

.field-hint {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 34px;
}

button {
  min-height: 52px;
  border-radius: 6px;
  padding: 0 22px;
  border: 0;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
  transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 520ms ease, background 520ms ease;
}

button:hover:not(:disabled) {
  transform: translateY(-2px);
}

button:active:not(:disabled) {
  transform: translateY(0);
}

.primary-button {
  color: #070806;
  background: linear-gradient(180deg, var(--lime-strong), var(--lime));
  box-shadow: 0 12px 28px rgba(200, 244, 1, 0.18);
}

.primary-button:hover:not(:disabled) {
  box-shadow: 0 18px 38px rgba(168, 201, 0, 0.28);
}

.ghost-button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.ghost-button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.11);
}

button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.done-panel h2 {
  margin: 16px 0 12px;
  font-family: Anton, Impact, sans-serif;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.92;
  font-style: italic;
  text-transform: uppercase;
}

.done-panel > p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.ai-guide-preview {
  margin: 24px 0 22px;
  padding: 22px;
  border: 1px solid rgba(200, 244, 1, 0.36);
  border-radius: 16px;
  background:
    radial-gradient(circle at 14% 0%, rgba(200, 244, 1, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
}

.ai-guide-preview span {
  color: var(--lime);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.ai-guide-preview h3 {
  margin: 10px 0 10px;
  color: var(--text);
  font-size: 22px;
  line-height: 1.15;
}

.ai-guide-preview p,
.ai-guide-preview li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.ai-guide-preview ol {
  margin: 14px 0 0;
  padding-left: 20px;
}

.ai-guide-preview li + li {
  margin-top: 8px;
}

.editor-panel {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 20;
  width: min(320px, calc(100vw - 36px));
  padding: 18px;
  color: var(--text);
  border: 1px solid rgba(200, 244, 1, 0.36);
  border-radius: 16px;
  background: rgba(6, 7, 5, 0.78);
  backdrop-filter: blur(22px);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.62);
}

.editor-panel strong {
  display: block;
  margin-bottom: 12px;
  color: var(--lime);
  text-transform: uppercase;
}

.editor-panel label {
  display: block;
  margin: 10px 0;
  font-family: Montserrat, sans-serif;
  font-size: 12px;
  line-height: 1.2;
  font-style: normal;
  text-transform: none;
}

.editor-panel input,
.editor-panel textarea {
  width: 100%;
  min-height: 38px;
  margin-top: 6px;
  padding: 9px 10px;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  font: inherit;
}

.editor-panel button {
  width: 100%;
  margin-top: 8px;
  min-height: 42px;
  background: var(--lime);
  color: #000;
}

.editor-panel small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.4;
}

.inline-editable {
  cursor: text;
  border-radius: 6px;
  outline: 0;
  transition: background 260ms ease, box-shadow 260ms ease;
}

.inline-editable:hover {
  background: rgba(200, 244, 1, 0.055);
}

.inline-editable:focus {
  background: rgba(200, 244, 1, 0.10);
  box-shadow: 0 0 0 1px rgba(200, 244, 1, 0.45), 0 0 28px rgba(200, 244, 1, 0.08);
}

.edit-mode .label-word {
  animation: none;
  opacity: 1;
  transform: none;
}

@keyframes titleRise {
  from {
    opacity: 0;
    transform: translate3d(-22px, 28px, 0) skewX(-5deg);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) skewX(0deg);
  }
}

@keyframes wordIn {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0) rotate(1.5deg);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
}

@keyframes fadeLift {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fieldIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes numberIn {
  from {
    opacity: 0;
    transform: translate3d(-18px, 18px, 0) skewX(-8deg);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) skewX(0deg);
  }
}

@keyframes cardSwitch {
  from {
    opacity: 0.65;
    transform: perspective(1100px) translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: perspective(1100px) translateY(0) scale(1);
  }
}

@keyframes barsBreathe {
  0%, 100% {
    transform: translateY(0) scaleY(1);
    opacity: 0.82;
  }
  50% {
    transform: translateY(-12px) scaleY(1.035);
    opacity: 1;
  }
}

@keyframes progressFlow {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 220% 50%;
  }
}

@keyframes liquidGlassSweep {
  0% {
    opacity: 0;
    transform: translate3d(-35%, 0, 0) skewX(-10deg);
  }
  16% {
    opacity: 0.42;
  }
  52% {
    opacity: 0.22;
  }
  84% {
    opacity: 0.36;
  }
  100% {
    opacity: 0;
    transform: translate3d(260%, 0, 0) skewX(-10deg);
  }
}

:root {
  --motion-slow: 1.2s;
}

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

/* Form stability: typing must never resize or push the survey screen. */
@media (min-width: 921px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  .app-shell {
    height: 100vh;
  }

  .survey-panel {
    height: 100vh;
    overflow: hidden;
  }
}

.question-card {
  max-height: calc(100vh - 148px);
  display: flex;
  flex-direction: column;
}

.field-hint,
.actions {
  flex: 0 0 auto;
}

textarea,
input.name-line,
input[type="number"] {
  flex: 0 0 auto;
}

input.name-line {
  display: block;
  width: 100%;
  height: 58px;
  min-height: 58px;
  max-height: 58px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    rgba(0, 0, 0, 0.40);
  border: 1px solid rgba(200, 244, 1, 0.52);
  border-radius: 14px;
  outline: none;
  font: inherit;
  font-size: 20px;
  line-height: 1;
  padding: 0 20px;
  transition: border-color 500ms ease, box-shadow 500ms ease, transform 700ms ease, background 700ms ease;
  animation: fieldIn 1100ms 260ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

textarea {
  height: clamp(180px, 27vh, 245px);
  min-height: 180px;
  max-height: 245px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

textarea,
input {
  word-break: break-word;
}

input.name-line:focus {
  border-color: var(--lime-strong);
  box-shadow: 0 0 0 5px rgba(200, 244, 1, 0.14);
  transform: translateY(-2px);
  background: rgba(0, 0, 0, 0.64);
}

/* Final survey structure: academy rail on the left, one screen per question on the right. */
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(380px, 40vw) minmax(0, 1fr);
  overflow: hidden;
  background: #000;
}

.visual-rail {
  position: relative;
  inset: auto;
  min-height: 100vh;
  padding: 48px clamp(34px, 5vw, 72px);
  display: block;
  pointer-events: auto;
  background:
    linear-gradient(135deg, rgba(200, 244, 1, 0.075), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 18%),
    #020302;
  border-right: 1px solid rgba(200, 244, 1, 0.20);
}

.visual-rail::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 112px 112px;
  opacity: 0.26;
  mask-image: linear-gradient(115deg, rgba(0, 0, 0, 0.75), transparent 78%);
}

.visual-rail::after {
  top: 22%;
  left: auto;
  right: 13%;
  width: 8px;
  height: 58%;
  background: var(--lime);
  box-shadow: -44px 94px 0 -1px rgba(200, 244, 1, 0.72);
  opacity: 0.95;
}

.brand-mark {
  top: 54px;
  left: clamp(34px, 5vw, 72px);
  transform: none;
  width: min(250px, 58%);
}

.rail-title {
  top: 30%;
  left: clamp(34px, 5vw, 72px);
  transform: translateY(-18%);
  width: min(520px, calc(100% - 108px));
  text-align: left;
}

.rail-title > span {
  font-size: 12px;
  letter-spacing: 4px;
}

.rail-title h1 {
  margin-top: 22px;
  font-size: clamp(62px, 7vw, 104px);
  line-height: 0.88;
}

.rail-title p {
  max-width: 430px;
  margin: 22px 0 0;
  font-size: 16px;
}

.app-shell:hover .kinetic-title span {
  transform: translate3d(-4px, -3px, 0) skewX(-1deg);
}

.app-shell:hover .kinetic-title em {
  transform: translate3d(8px, 3px, 0) skewX(-1.5deg);
}

.metric-strip {
  left: clamp(34px, 5vw, 72px);
  right: clamp(34px, 5vw, 72px);
  bottom: 56px;
  transform: none;
  width: auto;
  max-width: 520px;
}

.survey-panel {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: center;
  padding: clamp(28px, 5vw, 68px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 30%),
    linear-gradient(115deg, transparent, rgba(200, 244, 1, 0.04) 54%, transparent),
    #000;
}

.topbar {
  width: min(760px, 100%);
  margin: 0 auto 22px;
}

.question-card,
.done-panel {
  width: min(760px, 100%);
  margin: 0 auto;
}

@media (max-width: 920px) {
  .app-shell {
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .visual-rail {
    min-height: 42vh;
    padding: 28px 22px 34px;
    border-right: 0;
    border-bottom: 1px solid rgba(200, 244, 1, 0.22);
  }

  .visual-rail::after {
    right: 11%;
    top: 25%;
    height: 58%;
    width: 5px;
    box-shadow: -28px 82px 0 -1px rgba(200, 244, 1, 0.68);
  }

  .brand-mark {
    top: 28px;
    left: 22px;
    width: min(210px, 56vw);
  }

  .rail-title {
    top: 130px;
    left: 22px;
    transform: none;
    width: calc(100% - 44px);
  }

  .rail-title h1 {
    font-size: clamp(52px, 15vw, 78px);
  }

  .rail-title p {
    max-width: 310px;
    font-size: 14px;
  }

  .metric-strip {
    display: none;
  }

  .survey-panel {
    min-height: 58vh;
    padding: 24px 18px 48px;
  }

  .editor-panel {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-height: 46vh;
    overflow: auto;
  }
}

.done-panel p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.48;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 20px;
}

.summary-grid article {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  min-height: 86px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.summary-grid span {
  display: block;
  color: var(--lime);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.summary-grid p {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.32;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.download-button {
  width: 100%;
}

.delivery-status {
  min-height: 24px;
  margin-bottom: 0;
}

.delivery-status.error {
  color: var(--danger);
}

.delivery-status.ok {
  color: var(--lime-strong);
}

@media (max-width: 920px) {
  .visual-rail {
    padding: 26px 20px;
  }

  .visual-rail::after {
    height: 38%;
    right: 10%;
  }

  .brand-mark {
    top: 30px;
    width: min(210px, 62vw);
  }

  .rail-title {
    top: 124px;
  }

  .rail-title h1 {
    font-size: clamp(52px, 16vw, 76px);
  }

  .rail-title p {
    font-size: 15px;
    margin-top: 16px;
  }

  .survey-panel {
    min-height: 100vh;
    padding: 370px 18px 136px;
  }

  .topbar {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .question-card,
  .done-panel {
    margin-top: 26px;
    padding: 24px;
  }

  label {
    font-size: 31px;
  }

  textarea {
    min-height: 210px;
    font-size: 18px;
  }

  .actions {
    flex-direction: column-reverse;
  }

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

  .metric-strip {
    bottom: 18px;
    gap: 8px;
  }

  .metric-strip div {
    min-height: 62px;
  }
}
