:root {
  color-scheme: dark;
  --ink: #f6fbff;
  --muted: #9aa8b7;
  --paper: #081017;
  --paper-strong: #111b24;
  --panel: rgba(15, 26, 35, 0.82);
  --panel-strong: rgba(20, 34, 45, 0.94);
  --line: rgba(155, 209, 255, 0.16);
  --line-strong: rgba(155, 209, 255, 0.28);
  --green: #30d988;
  --amber: #f5b84b;
  --red: #ff5c6a;
  --blue: #37d8ff;
  --coral: #ff8a5c;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

#signalCanvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 18% 12%, rgba(55, 216, 255, 0.17), transparent 26rem),
    radial-gradient(circle at 84% 20%, rgba(245, 184, 75, 0.1), transparent 24rem),
    radial-gradient(circle at 70% 78%, rgba(255, 92, 106, 0.11), transparent 30rem),
    linear-gradient(180deg, #081017 0%, #0b151e 54%, #060b10 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(155, 209, 255, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 209, 255, 0.052) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.78), transparent 82%);
  content: "";
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 0%, rgba(55, 216, 255, 0.075) 48%, transparent 55%),
    linear-gradient(90deg, transparent 0%, rgba(245, 184, 75, 0.035) 50%, transparent 100%);
  background-size:
    100% 260px,
    420px 100%;
  animation: fieldSweep 9s linear infinite;
  content: "";
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  padding: 10px 0;
  backdrop-filter: blur(18px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  position: relative;
  min-height: 42px;
  gap: 0.42rem;
  padding: 9px 0;
  color: var(--ink);
  font-size: 1.06rem;
  font-weight: 950;
  letter-spacing: 0;
}

.brand::after {
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--blue), var(--amber) 58%, transparent 58%),
    rgba(55, 216, 255, 0.16);
  background-size: 180% 100%;
  box-shadow: 0 0 18px rgba(55, 216, 255, 0.42);
  content: "";
  animation: proofLine 4s ease-in-out infinite;
}

.nav-links {
  gap: 0.25rem;
}

.nav-links a {
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(55, 216, 255, 0.1);
}

.hero {
  display: grid;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100svh - 68px);
  margin: 0 auto;
  padding: 48px 0 74px;
}

.hero-copy {
  max-width: 860px;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  overflow-wrap: normal;
  white-space: nowrap;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1;
  letter-spacing: 0;
}

h1 {
  max-width: 100%;
  font-size: clamp(3rem, 12.5vw, 8.9rem);
  font-weight: 950;
}

.lead {
  max-width: 720px;
  margin: 16px 0 0;
  color: #d8e6f2;
  font-size: clamp(1.35rem, 3.2vw, 2.35rem);
  font-weight: 760;
  line-height: 1.1;
}

.workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  gap: 18px;
  align-items: stretch;
}

.input-panel,
.receipt-panel,
.beta-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.input-panel {
  display: grid;
  gap: 16px;
  min-height: 438px;
  padding: 18px;
}

.panel-heading,
.form-actions,
.receipt-topline,
.receipt-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-heading {
  font-size: 0.92rem;
  font-weight: 850;
}

.text-button {
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue);
  background: rgba(55, 216, 255, 0.08);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 800;
}

.text-button:hover {
  border-color: rgba(55, 216, 255, 0.48);
  background: rgba(55, 216, 255, 0.16);
}

.segments {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.segments label {
  min-width: 0;
}

.segments input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.segments span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 820;
  text-align: center;
  white-space: nowrap;
}

.segments input:checked + span {
  border-color: rgba(55, 216, 255, 0.72);
  color: #061016;
  background: var(--blue);
  box-shadow: 0 0 24px rgba(55, 216, 255, 0.2);
}

textarea,
input[type="email"],
select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(3, 10, 16, 0.72);
  color: var(--ink);
  outline: none;
}

textarea:focus,
input[type="email"]:focus,
select:focus {
  border-color: rgba(55, 216, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(55, 216, 255, 0.12);
}

textarea {
  min-height: 196px;
  resize: vertical;
  padding: 14px;
}

.field-hint {
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 760;
}

.primary-button {
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  color: #061016;
  background: var(--blue);
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 14px 32px rgba(55, 216, 255, 0.18);
}

.primary-button:hover {
  background: #7be7ff;
}

.secondary-button {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-weight: 900;
}

.secondary-button:hover {
  border-color: rgba(155, 209, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.secondary-button.danger {
  color: var(--red);
}

.privacy-note {
  max-width: 310px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.receipt-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 438px;
  padding: 20px;
}

.receipt-panel::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 0%, rgba(55, 216, 255, 0.08) 48%, transparent 52%),
    linear-gradient(90deg, transparent, rgba(55, 216, 255, 0.08), transparent);
  background-size:
    100% 120px,
    160px 100%;
  opacity: 0.72;
  content: "";
}

.receipt-panel > * {
  position: relative;
}

.receipt-label,
.receipt-footer {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.risk-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 5px 11px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.risk-pill.low {
  background: var(--green);
}

.risk-pill.medium {
  background: var(--amber);
}

.risk-pill.high {
  background: var(--red);
}

.receipt-panel h2 {
  margin-top: 24px;
  font-size: clamp(1.55rem, 4vw, 2.45rem);
  line-height: 1.05;
}

.receipt-panel p {
  margin: 14px 0 0;
  color: var(--muted);
}

.receipt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.receipt-grid section {
  min-width: 0;
}

.receipt-grid h3 {
  margin-bottom: 8px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.receipt-grid ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.receipt-grid li {
  position: relative;
  padding-left: 18px;
  color: #d7e4ee;
  font-size: 0.94rem;
}

.receipt-grid li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  content: "";
}

.receipt-footer {
  margin-top: auto;
  padding-top: 22px;
}

.section-band {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 78px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 26px;
}

.section-heading h2,
.beta h2 {
  font-size: clamp(2rem, 5.6vw, 4.2rem);
  line-height: 0.98;
}

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

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

.example-card,
.sample-card {
  min-height: 212px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.example-card {
  cursor: pointer;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.example-card:hover,
.example-card:focus-visible {
  border-color: rgba(55, 216, 255, 0.38);
  background: var(--panel-strong);
  outline: none;
  transform: translateY(-2px);
}

.example-type {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  color: #061016;
  background: var(--blue);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.example-card:nth-child(2) .example-type {
  background: var(--green);
}

.example-card:nth-child(3) .example-type {
  background: var(--amber);
}

.example-card h3,
.sample-card h3 {
  margin-top: 42px;
  font-size: 1.45rem;
  line-height: 1.08;
}

.sample-card h3 {
  margin-top: 26px;
}

.sample-card {
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 280px;
}

.sample-card ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sample-card li {
  position: relative;
  padding-left: 18px;
  color: #d7e4ee;
}

.sample-card li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  content: "";
}

.sample-card-button {
  align-self: end;
  margin-top: auto;
}

.example-card p,
.beta-copy p {
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.check-list div {
  display: grid;
  grid-template-columns: minmax(110px, 0.32fr) minmax(0, 1fr);
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.check-list div:first-child {
  border-top: 0;
}

.check-list strong {
  font-size: 1.18rem;
}

.check-list span {
  color: var(--muted);
  font-size: 1.18rem;
}

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

.post-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.post-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.post-heading span {
  font-weight: 900;
}

.post-card textarea {
  min-height: 340px;
  color: #d7e4ee;
  font-size: 0.92rem;
  line-height: 1.45;
}

.copy-message {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--green);
  font-weight: 850;
}

.submit-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
  gap: 20px;
  align-items: start;
}

.submit-copy {
  display: grid;
  gap: 20px;
  max-width: 520px;
}

.submit-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.signal-strip {
  display: grid;
  gap: 10px;
}

.signal-strip span {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.signal-strip strong {
  color: var(--ink);
}

.case-form {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.case-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.case-form textarea {
  min-height: 154px;
}

.case-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

select {
  min-height: 48px;
  padding: 0 12px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 21px,
    calc(100% - 12px) 21px;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
}

.beta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.56fr);
  gap: 24px;
  align-items: center;
  padding-bottom: 110px;
}

.beta-copy p {
  max-width: 580px;
  font-size: 1.08rem;
}

.beta-form {
  display: grid;
  gap: 12px;
  padding: 18px;
}

input[type="email"] {
  min-height: 52px;
  padding: 0 14px;
}

.form-message {
  min-height: 20px;
  margin: 0;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 800;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 740;
}

.thanks-page {
  min-height: 100svh;
  background:
    radial-gradient(circle at 20% 10%, rgba(55, 216, 255, 0.16), transparent 24rem),
    radial-gradient(circle at 80% 20%, rgba(245, 184, 75, 0.1), transparent 26rem),
    var(--paper);
}

.thanks-shell {
  display: grid;
  align-content: center;
  gap: 42px;
  width: min(760px, calc(100% - 32px));
  min-height: 100svh;
  margin: 0 auto;
  padding: 48px 0;
}

.thanks-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.thanks-card h1 {
  font-size: clamp(3rem, 14vw, 7.5rem);
}

.thanks-card p:not(.eyebrow) {
  max-width: 520px;
  color: var(--muted);
  font-size: 1.15rem;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 12px;
  padding: 0 18px;
  border-radius: 8px;
  color: #061016;
  background: var(--blue);
  font-weight: 900;
}

.admin-drawer {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  width: min(440px, calc(100% - 32px));
}

.admin-panel {
  max-height: min(600px, calc(100svh - 32px));
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.admin-panel h2 {
  font-size: 1.7rem;
}

.admin-panel p {
  color: var(--muted);
}

.admin-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

#submissionList {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

#submissionList li {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(3, 10, 16, 0.62);
}

#submissionList strong {
  display: block;
  margin-bottom: 5px;
}

#submissionList span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

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

.netlify-hidden {
  display: none;
}

@keyframes fieldSweep {
  0% {
    background-position:
      0 -260px,
      -420px 0;
    opacity: 0.58;
  }
  50% {
    opacity: 0.92;
  }
  100% {
    background-position:
      0 calc(100vh + 260px),
      420px 0;
    opacity: 0.58;
  }
}

@keyframes proofLine {
  0%,
  100% {
    background-position: 0 0;
    opacity: 0.86;
  }
  50% {
    background-position: 100% 0;
    opacity: 1;
  }
}

@media (max-width: 920px) {
  .workbench,
  .beta,
  .submit-layout,
  .post-grid,
  .sample-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 34px;
  }

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

  .example-card {
    min-height: 172px;
  }

  .example-card h3 {
    margin-top: 24px;
  }
}

@media (max-width: 620px) {
  .topbar {
    width: min(1180px, calc(100% - 24px));
  }

  .nav-links {
    display: none;
  }

  .hero,
  .section-band,
  .site-footer {
    width: min(1180px, calc(100% - 24px));
  }

  .hero {
    min-height: auto;
    padding: 34px 0 60px;
  }

  h1 {
    font-size: clamp(2.8rem, 14.4vw, 4.6rem);
  }

  .lead {
    font-size: 1.42rem;
  }

  .input-panel,
  .receipt-panel,
  .beta-form {
    padding: 14px;
  }

  .panel-heading {
    align-items: stretch;
    flex-direction: column;
  }

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

  .form-actions,
  .receipt-topline,
  .receipt-footer,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button,
  .text-button {
    width: 100%;
  }

  .receipt-grid,
  .check-list div,
  .case-controls,
  .admin-actions {
    grid-template-columns: 1fr;
  }

  .check-list div {
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
