:root {
  --ink: #0b2930;
  --ink-soft: #526d72;
  --green: #27b67b;
  --green-dark: #0d8b63;
  --blue: #2d9cf4;
  --line: rgba(11, 41, 48, 0.1);
  --field-line: rgba(11, 41, 48, 0.14);
  --error: #c83e4d;
  --shadow: 0 34px 90px rgba(20, 125, 119, 0.16);
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100svh;
  margin: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 7% 5%, rgba(68, 215, 158, 0.22), transparent 30rem),
    radial-gradient(circle at 92% 10%, rgba(69, 179, 245, 0.2), transparent 34rem),
    linear-gradient(180deg, #fbfffd 0%, #f5fffb 50%, #f8fcff 100%);
}

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

.site-header {
  min-height: 80px;
  display: flex;
  align-items: center;
  padding: 0 clamp(22px, 6vw, 100px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 21px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, var(--green), var(--blue));
  box-shadow: 0 12px 28px rgba(39, 182, 123, 0.22);
}

.brand-ai {
  color: var(--green);
}

.form-page {
  width: min(1240px, calc(100% - 44px));
  min-height: 0;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(48px, 7vw, 110px);
  align-items: center;
  margin: 0 auto;
  padding: 40px 0 70px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.18em;
}

.form-intro h1 {
  margin: 0;
  font-size: clamp(50px, 6.1vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.form-intro h1 span {
  display: block;
  color: var(--green);
}

.intro-text {
  max-width: 570px;
  margin: 27px 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 1.45vw, 22px);
  line-height: 1.65;
}

.release-note {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  padding: 11px 16px;
  color: var(--green-dark);
  border: 1px solid rgba(39, 182, 123, 0.13);
  border-radius: 999px;
  background: rgba(39, 182, 123, 0.07);
  font-size: 14px;
  font-weight: 800;
}

.release-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(39, 182, 123, 0.1);
}

.form-panel {
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.formrun {
  display: grid;
  gap: 23px;
}

.form-field {
  display: grid;
  gap: 9px;
}

.form-field label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.optional,
.required {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.optional {
  color: var(--ink-soft);
}

.required {
  color: var(--green-dark);
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  border: 1px solid var(--field-line);
  border-radius: 17px;
  outline: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.84);
  font: inherit;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

input[type="text"],
input[type="email"] {
  min-height: 54px;
  padding: 0 17px;
}

textarea {
  min-height: 71px;
  padding: 16px 17px;
  resize: vertical;
  line-height: 1.55;
}

input::placeholder,
textarea::placeholder {
  color: rgba(82, 109, 114, 0.55);
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: rgba(39, 182, 123, 0.72);
  background: #fff;
  box-shadow: 0 0 0 5px rgba(39, 182, 123, 0.1);
}

.field-error {
  color: var(--error);
  font-size: 12px;
  line-height: 1.45;
}

.consent-field {
  display: grid;
  gap: 8px;
}

.checkbox-label {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  cursor: pointer;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.checkbox-label input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.custom-checkbox {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  margin-top: 1px;
  border: 1px solid var(--field-line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.88);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.checkbox-label input:checked + .custom-checkbox {
  border-color: var(--green);
  background: linear-gradient(145deg, var(--green), var(--blue));
  box-shadow: 0 8px 18px rgba(39, 182, 123, 0.18);
}

.checkbox-label input:checked + .custom-checkbox::after {
  width: 9px;
  height: 5px;
  content: "";
  transform: translateY(-1px) rotate(-45deg);
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
}

.checkbox-label input:focus-visible + .custom-checkbox {
  box-shadow: 0 0 0 5px rgba(39, 182, 123, 0.1);
}

.checkbox-label b {
  color: var(--green-dark);
  font-size: 11px;
  white-space: nowrap;
}

.consent-error {
  padding-left: 36px;
}

.submit-button {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 18px 40px rgba(11, 41, 48, 0.22);
  font: inherit;
  font-size: 15px;
  font-weight: 850;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.submit-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 23px 46px rgba(11, 41, 48, 0.25);
}

.submit-button:hover svg {
  transform: translateX(3px);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.66;
  transform: none;
}

.privacy-note {
  margin: -7px 0 0;
  color: var(--ink-soft);
  text-align: center;
  font-size: 11px;
  line-height: 1.5;
}

footer {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 clamp(22px, 6vw, 100px);
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  font-size: 13px;
}

footer span {
  color: var(--green-dark);
  font-weight: 750;
}

@media (max-width: 920px) {
  .form-page {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 54px;
  }

  .form-intro {
    text-align: center;
  }

  .intro-text {
    margin-inline: auto;
  }

  .release-note {
    margin-inline: auto;
  }
}

@media (max-width: 600px) {
  .site-header {
    min-height: 70px;
    padding-inline: 20px;
  }

  .form-page {
    width: min(100% - 28px, 1240px);
    padding-top: 35px;
    padding-bottom: 42px;
  }

  .form-panel {
    padding: 26px 20px;
    border-radius: 27px;
  }

  .form-field label {
    align-items: flex-start;
  }

  footer {
    min-height: 74px;
    padding-inline: 20px;
  }

  footer span {
    display: none;
  }
}

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