:root {
  color-scheme: dark;
  --background: #08110c;
  --surface: #111c16;
  --surface-raised: #18271e;
  --surface-soft: #0d1711;
  --border: #22382b;
  --border-strong: #3a5b46;
  --text: #f5f7f6;
  --muted: #9aada1;
  --accent: #20e878;
  --accent-light: #79f5a9;
  --accent-ink: #031108;
  --danger: #ff7770;
  --focus: #8bffb7;
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 80% 4%, rgba(32, 232, 120, 0.14), transparent 31rem),
    linear-gradient(180deg, rgba(15, 42, 25, 0.25), transparent 34rem),
    var(--background);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--text);
  color: var(--background);
  font-weight: 750;
  transform: translateY(-150%);
  transition: transform 160ms var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
main,
footer {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  border: 1px solid rgba(121, 245, 169, 0.38);
  background: #101a14;
  box-shadow: 0 8px 28px rgba(32, 232, 120, 0.18);
}

.brand-mark img {
  display: block;
  width: 34px;
  height: auto;
}

.icon-button {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-raised);
  color: var(--text);
  transition:
    transform 160ms var(--ease-out),
    background-color 160ms ease,
    border-color 160ms ease;
}

.icon-button:active,
.project-card:active,
.submit-button:active {
  transform: scale(0.97);
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  align-items: end;
  gap: 60px;
  min-height: 430px;
  padding: 82px 0 76px;
}

.eyebrow,
.step-label {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
}

.eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(27, 217, 106, 0.11);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 800px;
  margin-bottom: 0;
  font-size: clamp(50px, 8vw, 96px);
  line-height: 0.93;
  letter-spacing: -0.065em;
}

h1 span {
  color: var(--accent);
}

.hero-copy {
  max-width: 370px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.project-section {
  position: relative;
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.24),
    inset 0 1px rgba(255, 255, 255, 0.025);
}

.project-section::before {
  position: absolute;
  top: 34px;
  bottom: 34px;
  left: -1px;
  width: 3px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
}

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

.section-heading .step-label {
  margin-bottom: 10px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 47px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.project-count {
  flex: none;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(32, 232, 120, 0.08);
  color: var(--accent-light);
  font-size: 12px;
  font-weight: 700;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.project-card {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 16px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  text-decoration: none;
  transition:
    transform 180ms var(--ease-out),
    background-color 180ms ease,
    border-color 180ms ease;
}

.project-card::after {
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.project-card[aria-current="true"] {
  border-color: var(--accent);
  background: #163322;
  box-shadow: 0 10px 30px rgba(32, 232, 120, 0.09);
}

.project-card[aria-current="true"]::after {
  border-color: rgba(27, 217, 106, 0.25);
}

.project-card img {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  image-rendering: pixelated;
}

.project-meta {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 5px;
}

.project-meta strong {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-meta small {
  color: var(--muted);
  font-size: 12px;
}

.card-arrow {
  align-self: flex-start;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}

.feedback-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.62fr) minmax(0, 1.38fr);
  gap: 70px;
  padding: 128px 0 138px;
  scroll-margin-top: 24px;
}

.form-intro {
  position: sticky;
  top: 32px;
  align-self: start;
}

.form-intro h2 {
  max-width: 380px;
  margin-bottom: 22px;
}

.form-intro > p:not(.step-label) {
  max-width: 365px;
  color: var(--muted);
  line-height: 1.65;
}

.selected-preview {
  display: flex;
  align-items: center;
  gap: 13px;
  width: fit-content;
  margin-top: 30px;
  padding: 10px 15px 10px 10px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.selected-preview[hidden] {
  display: none;
}

.selected-preview img {
  border-radius: 11px;
  image-rendering: pixelated;
}

.selected-preview span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.selected-preview small {
  color: var(--muted);
  font-size: 11px;
}

.selected-preview strong {
  font-size: 14px;
}

.feedback-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 16px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.22),
    inset 0 1px rgba(255, 255, 255, 0.025);
}

.field {
  min-width: 0;
}

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

label,
legend {
  display: block;
  margin-bottom: 9px;
  color: #d9dcde;
  font-size: 13px;
  font-weight: 720;
}

legend {
  padding: 0;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.optional {
  margin-left: 5px;
  color: #747c83;
  font-size: 11px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: 0;
  background: #0b140f;
  color: var(--text);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

input,
select {
  height: 54px;
  padding: 0 15px;
}

select {
  padding-right: 45px;
  appearance: none;
  cursor: pointer;
}

textarea {
  min-height: 166px;
  padding: 15px;
  line-height: 1.55;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #676e74;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--focus);
  background: #0f1b14;
  box-shadow: 0 0 0 3px rgba(117, 245, 166, 0.12);
}

[aria-invalid="true"] {
  border-color: var(--danger);
}

.select-wrap {
  position: relative;
}

.select-wrap svg {
  position: absolute;
  top: 50%;
  right: 16px;
  color: var(--muted);
  pointer-events: none;
  transform: translateY(-50%);
}

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

.type-option {
  margin: 0;
  cursor: pointer;
}

.type-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.type-option span {
  display: flex;
  height: 54px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #0b140f;
  color: var(--muted);
  transition:
    transform 160ms var(--ease-out),
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.type-option input:checked + span {
  border-color: var(--accent);
  background: rgba(27, 217, 106, 0.11);
  color: var(--accent-light);
}

.type-option input:focus-visible + span {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.type-option span:active {
  transform: scale(0.98);
}

.field-error {
  min-height: 17px;
  margin: 6px 2px 0;
  color: var(--danger);
  font-size: 11px;
  line-height: 1.35;
}

.field-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

#character-count {
  margin-top: 7px;
  color: #747c83;
  font-size: 11px;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 6px;
}

.form-footer > p {
  max-width: 280px;
  margin: 0;
  color: #747c83;
  font-size: 11px;
  line-height: 1.45;
}

.submit-button {
  position: relative;
  display: grid;
  min-width: 210px;
  min-height: 56px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 12px 34px rgba(32, 232, 120, 0.22);
  cursor: pointer;
  font-weight: 820;
  transition:
    transform 160ms var(--ease-out),
    background-color 160ms ease,
    opacity 160ms ease;
}

.submit-button:focus-visible,
.project-card:focus-visible,
.icon-button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.button-label,
.button-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  transition:
    opacity 140ms ease,
    filter 140ms ease;
}

.button-loading {
  position: absolute;
  opacity: 0;
  filter: blur(2px);
}

.submit-button.is-loading .button-label {
  opacity: 0;
  filter: blur(2px);
}

.submit-button.is-loading .button-loading {
  opacity: 1;
  filter: blur(0);
}

.spinner {
  width: 17px;
  height: 17px;
  border: 2px solid rgba(7, 21, 12, 0.28);
  border-top-color: var(--accent-ink);
  border-radius: 50%;
  animation: spin 650ms linear infinite;
}

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

.form-status {
  display: none;
  align-items: center;
  min-height: 50px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
}

.form-status.is-success,
.form-status.is-error {
  display: flex;
}

.form-status.is-success {
  border: 1px solid rgba(27, 217, 106, 0.36);
  background: rgba(27, 217, 106, 0.1);
  color: var(--accent-light);
}

.form-status.is-error {
  border: 1px solid rgba(255, 119, 112, 0.35);
  background: rgba(255, 119, 112, 0.09);
  color: #ffaaa5;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0 34px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

footer p {
  margin: 0;
}

footer a {
  font-weight: 700;
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .icon-button:hover {
    border-color: var(--border-strong);
    background: #2a2e33;
    transform: scale(1.04);
  }

  .project-card:hover {
    border-color: var(--border-strong);
    background: var(--surface-raised);
    transform: translateY(-2px);
  }

  .project-card[aria-current="true"]:hover {
    border-color: var(--accent);
    background: #1a3b28;
  }

  .submit-button:hover {
    background: var(--accent-light);
    transform: scale(1.015);
  }

  footer a:hover {
    color: var(--text);
  }
}

@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    min-height: 0;
    padding: 74px 0 72px;
  }

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

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

  .feedback-section {
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 96px 0 110px;
  }

  .form-intro {
    position: static;
  }
}

@media (max-width: 620px) {
  .site-header,
  main,
  footer {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .site-header {
    padding-block: 14px;
  }

  .hero {
    padding: 56px 4px 58px;
  }

  h1 {
    font-size: clamp(46px, 15vw, 68px);
  }

  .project-section {
    padding: 18px;
    border-radius: 25px;
  }

  .section-heading {
    align-items: start;
    margin-bottom: 22px;
  }

  .project-count {
    display: none;
  }

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

  .project-card {
    min-height: 84px;
  }

  .feedback-section {
    padding: 80px 4px 90px;
  }

  .feedback-form {
    grid-template-columns: 1fr;
    padding: 18px;
    border-radius: 25px;
  }

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

  .type-picker {
    grid-template-columns: 1fr;
  }

  .type-option span {
    justify-content: flex-start;
    padding-inline: 16px;
  }

  .form-footer {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .submit-button {
    width: 100%;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

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