:root {
  color-scheme: light;
  --ink: #10213d;
  --muted: #5c718d;
  --line: rgba(51, 103, 137, 0.18);
  --panel: rgba(249, 253, 255, 0.9);
  --teal: #157c96;
  --teal-dark: #0f5c77;
  --coral: #de827e;
  --gold: #e9c47b;
  --shadow: 0 18px 48px rgba(23, 54, 92, 0.16);
  font-family: "Hiragino Sans GB", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: #dcedf4;
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(7, 22, 52, 0.24), rgba(242, 250, 253, 0.92)),
    url("/assets/posters/halfwake-whale-worldview-background.png") center top / cover fixed;
}

button,
input,
textarea {
  font: inherit;
}

.shell {
  width: min(100%, 860px);
  margin: 0 auto;
  padding-bottom: 48px;
}

.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
}

.hero__art {
  position: absolute;
  inset: 0;
  background: url("/assets/posters/halfwake-whale-worldview-background.png") center 14% / cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 23, 56, 0.28), rgba(5, 23, 56, 0.02) 52%, rgba(220, 239, 246, 1)),
    radial-gradient(circle at 50% 33%, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.36) 52%, rgba(220, 239, 246, 0.96) 78%);
}

.hero__content {
  position: relative;
  display: flex;
  min-height: 560px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 56px 22px 74px;
  color: white;
  text-shadow: 0 2px 20px rgba(6, 31, 71, 0.4);
}

.eyebrow {
  width: max-content;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(12, 64, 100, 0.34);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 20px 0 12px;
  font-size: clamp(44px, 10vw, 82px);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero p {
  width: min(100%, 560px);
  margin: 0;
  color: rgba(245, 253, 255, 0.94);
  font-size: 19px;
  line-height: 1.7;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero__meta span {
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.94);
  font-size: 13px;
}

.survey {
  display: grid;
  gap: 18px;
  margin: -28px 14px 0;
  position: relative;
}

.panel,
.success {
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.panel {
  padding: 22px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.section-title span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--teal), #53a7bd);
  color: white;
  font-weight: 700;
}

h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0;
}

.field {
  display: grid;
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}

.field:last-child {
  margin-bottom: 0;
}

legend,
.field > span {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
}

.hint {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.choices {
  display: grid;
  gap: 10px;
}

.choices--grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choices--chips {
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}

.choices label,
.nps label {
  cursor: pointer;
  user-select: none;
}

.choices label {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.68);
  color: #18334f;
}

input[type="radio"],
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
  flex: 0 0 auto;
}

textarea {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 15px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  line-height: 1.6;
  outline: none;
}

textarea:focus,
.choices label:has(input:focus-visible),
.nps label:has(input:focus-visible) span {
  border-color: rgba(21, 124, 150, 0.78);
  box-shadow: 0 0 0 3px rgba(21, 124, 150, 0.14);
}

.choices label:has(input:checked) {
  border-color: rgba(21, 124, 150, 0.58);
  background: rgba(220, 246, 251, 0.86);
}

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

.split-scale label {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.68);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--coral);
}

.nps {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 7px;
}

.nps input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nps span {
  display: grid;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--teal-dark);
  font-weight: 700;
}

.nps input:checked + span {
  border-color: rgba(222, 130, 126, 0.7);
  background: rgba(255, 232, 223, 0.92);
  color: #a64545;
}

.nps-labels {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

.submit-bar {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.7);
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  background: rgba(233, 247, 251, 0.88);
  backdrop-filter: blur(18px);
}

.submit-bar p {
  margin: 0;
  color: #9a4545;
  font-size: 14px;
}

button {
  min-width: 136px;
  border: 0;
  border-radius: 8px;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--teal), #63b2c1);
  color: white;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(21, 124, 150, 0.26);
  cursor: pointer;
}

button:disabled {
  cursor: progress;
  opacity: 0.68;
}

.success {
  margin: -20px 14px 0;
  padding: 32px 24px;
}

.success h2 {
  margin-bottom: 10px;
  font-size: 30px;
}

.success p {
  color: var(--muted);
  line-height: 1.7;
}

.success a {
  color: var(--teal-dark);
  font-weight: 700;
}

@media (max-width: 620px) {
  body {
    background-attachment: scroll;
  }

  .hero {
    min-height: 520px;
  }

  .hero__content {
    min-height: 520px;
    padding: 42px 18px 66px;
  }

  .survey {
    margin-inline: 10px;
  }

  .panel {
    padding: 18px;
  }

  .choices--grid,
  .split-scale {
    grid-template-columns: 1fr;
  }

  .nps {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .submit-bar {
    grid-template-columns: 1fr;
  }

  button {
    width: 100%;
  }
}
