:root {
  color-scheme: light;
  --ink: #10213d;
  --ink-soft: #24456d;
  --muted: #6d819a;
  --panel: rgba(250, 253, 255, 0.88);
  --line: rgba(55, 117, 153, 0.18);
  --teal: #147f99;
  --teal-dark: #0e5b78;
  --coral: #d9787b;
  --gold: #e9c47b;
  --shadow: 0 24px 70px rgba(17, 51, 89, 0.18);
  font-family: "Hiragino Sans GB", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: #dceff5;
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(9, 31, 66, 0.1), rgba(237, 248, 251, 0.96) 38%, rgba(245, 250, 250, 1)),
    url("/assets/posters/halfwake-whale-worldview-background.png") center top / cover fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.5), transparent 24%),
    radial-gradient(circle at 88% 18%, rgba(255, 214, 199, 0.34), transparent 28%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.1));
}

button,
input,
textarea {
  font: inherit;
}

.shell {
  position: relative;
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 24px 18px 56px;
}

.hero-card,
.intro-panel,
.panel,
.success {
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #17365d;
}

.hero-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card__content {
  position: absolute;
  right: 22px;
  bottom: 20px;
  display: flex;
  max-width: calc(100% - 44px);
  color: white;
  text-shadow: 0 2px 20px rgba(5, 26, 59, 0.4);
}

.eyebrow,
.overline,
.section-title p,
.success span {
  margin: 0;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-card .eyebrow {
  width: max-content;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(11, 77, 111, 0.42);
  color: rgba(246, 252, 255, 0.96);
}

h1 {
  margin: 18px 0 14px;
  font-size: clamp(44px, 7vw, 72px);
  line-height: 1.04;
  letter-spacing: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.hero-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-card__meta span {
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(10, 47, 81, 0.42);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.94);
  font-size: 13px;
}

.intro-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  margin: 18px 0;
  padding: 28px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
}

.intro-panel h2 {
  margin: 6px 0 10px;
  font-size: 30px;
  line-height: 1.2;
}

.intro-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

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

.feature-grid article {
  min-height: 142px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(250, 254, 255, 0.9), rgba(232, 247, 251, 0.74));
}

.feature-grid span {
  display: block;
  width: 30px;
  height: 30px;
  margin-bottom: 14px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #ffffff 0 20%, transparent 21%),
    linear-gradient(135deg, var(--coral), var(--gold));
}

.feature-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
}

.feature-grid p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.survey {
  display: grid;
  gap: 16px;
}

.progress-card {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  padding: 14px 16px;
  background: rgba(245, 252, 254, 0.86);
  box-shadow: 0 12px 30px rgba(16, 48, 88, 0.12);
  backdrop-filter: blur(18px);
}

.progress-card div:first-child {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

.progress-card strong {
  color: var(--teal-dark);
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(35, 93, 126, 0.12);
}

.progress-track i {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), #72bfd0, var(--coral));
  transition: width 180ms ease;
}

.panel,
.success {
  background: var(--panel);
  backdrop-filter: blur(20px);
}

.panel {
  padding: 26px;
}

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

.section-title > span {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--teal), #62b9c9);
  color: white;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(20, 127, 153, 0.22);
}

.section-title h2 {
  margin: 3px 0 0;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 0;
}

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

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

legend,
.field > span {
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.5;
}

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

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

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

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

.choices--stack {
  grid-template-columns: 1fr;
}

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

.choices label,
.partner-choices label {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
  line-height: 1.45;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.choices label:hover,
.partner-choices label:hover {
  transform: translateY(-1px);
  border-color: rgba(20, 127, 153, 0.34);
  box-shadow: 0 10px 24px rgba(20, 70, 105, 0.1);
}

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

textarea,
input[type="text"] {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 15px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  line-height: 1.7;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

textarea {
  min-height: 118px;
}

input[type="text"] {
  height: 52px;
  resize: none;
}

textarea:focus,
input[type="text"]:focus,
.choices label:has(input:focus-visible),
.nps label:has(input:focus-visible) span,
.partner-choices label:has(input:focus-visible) {
  border-color: rgba(20, 127, 153, 0.78);
  box-shadow: 0 0 0 3px rgba(20, 127, 153, 0.14);
}

.choices label:has(input:checked),
.partner-choices label:has(input:checked) {
  border-color: rgba(20, 127, 153, 0.62);
  background: linear-gradient(180deg, rgba(225, 249, 253, 0.94), rgba(247, 254, 255, 0.96));
  box-shadow: 0 10px 24px rgba(20, 127, 153, 0.13);
}

.partner-choices {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.partner-choices label {
  min-height: 124px;
  align-items: flex-start;
  flex-direction: column;
  padding: 14px;
}

.partner-choices input {
  margin-bottom: 2px;
}

.partner-choices span {
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.partner-choices small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.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: 15px;
  background: rgba(255, 255, 255, 0.72);
}

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: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--teal-dark);
  font-weight: 800;
}

.nps input:checked + span {
  border-color: rgba(217, 120, 123, 0.72);
  background: rgba(255, 233, 224, 0.94);
  color: #a74647;
  box-shadow: 0 10px 22px rgba(217, 120, 123, 0.16);
}

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

.submit-bar {
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  padding: 18px;
  background: rgba(235, 248, 251, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

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

button {
  min-width: 172px;
  border: 0;
  border-radius: 8px;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--teal), #64bac9);
  color: white;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(20, 127, 153, 0.28);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(20, 127, 153, 0.34);
}

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

.success {
  margin-top: 18px;
  padding: 36px 28px;
}

.success h2 {
  margin: 8px 0 10px;
  font-size: 32px;
}

.success p {
  max-width: 650px;
  color: var(--muted);
  line-height: 1.8;
}

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

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

  .shell {
    padding: 12px 10px 40px;
  }

  .hero-card img {
    object-position: center;
  }

  .hero-card__content {
    right: 12px;
    bottom: 10px;
    max-width: calc(100% - 24px);
  }

  .intro-panel {
    grid-template-columns: 1fr;
    padding: 20px;
  }

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

  .feature-grid article {
    min-height: auto;
  }

  .panel {
    padding: 20px;
  }

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

  .choices--chips {
    grid-template-columns: 1fr;
  }

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

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

  button {
    width: 100%;
  }
}

@media (max-width: 400px) {
  h1 {
    font-size: 40px;
  }

  .hero-card__meta span {
    font-size: 12px;
  }

  .section-title h2 {
    font-size: 21px;
  }
}
