:root {
  --bg: #06101f;
  --surface: #0b1728;
  --surface-soft: #0f1d30;
  --text: #f7f4ef;
  --muted: #91a0b8;
  --line: #34465f;
  --line-bright: #4e6685;
  --orange: #ff681d;
  --orange-deep: #e85312;
  --blue: #3198ed;
  --green: #48d7aa;
  --error: #ff8e86;
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.34), 0 1px 0 rgba(255, 255, 255, 0.025) inset;
  --radius: 16px;
  --font-display: "Manrope", "Helvetica Neue", sans-serif;
  --font-body: "DM Sans", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }

html { overflow-x: clip; scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: clip;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
a { color: inherit; }

.site-header {
  width: min(1100px, calc(100% - 48px));
  height: 104px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
}

.brand {
  font: 700 20px/1 var(--font-display);
  letter-spacing: -0.035em;
  text-decoration: none;
}

.brand strong, .brand-dot { color: var(--orange); }

.hero {
  width: min(1100px, calc(100% - 48px));
  min-height: 950px;
  margin: 0 auto;
  padding: 44px 0 88px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  width: 820px;
  height: 820px;
  top: -310px;
  left: 50%;
  border: 1px solid rgba(49, 152, 237, 0.16);
  border-radius: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-copy {
  width: min(860px, 100%);
  position: relative;
  z-index: 2;
  text-align: center;
}

h1 {
  margin: 0;
  font: 650 clamp(52px, 6vw, 82px)/1.02 var(--font-display);
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.hero-copy > p {
  max-width: 690px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.52;
  text-wrap: balance;
}

.hero-copy > .fit-line {
  max-width: 720px;
  margin-top: 24px;
  padding-top: 19px;
  color: #b5c0d0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.005em;
  border-top: 1px solid rgba(52, 70, 95, 0.7);
}

.data-lines {
  display: none;
}

.data-lines svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: rotate(12deg) scale(1.15);
}

.data-lines path {
  fill: none;
  stroke: rgba(49, 152, 237, 0.34);
  stroke-width: 1;
}

.data-lines circle { stroke: var(--bg); stroke-width: 4; }
.data-lines .node-blue { fill: var(--blue); }
.data-lines .node-coral { fill: var(--orange); }

.form-shell {
  width: min(760px, 100%);
  min-height: 600px;
  margin-top: 48px;
  padding: 38px 40px 30px;
  position: relative;
  z-index: 4;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(11, 23, 40, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.form-heading {
  margin-bottom: 30px;
  text-align: center;
}

.form-heading h2, .success-state h2 {
  margin: 0;
  font: 700 27px/1.2 var(--font-display);
  letter-spacing: -0.04em;
}

.form-heading p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px 20px;
}

.field { min-width: 0; }

label {
  display: block;
  margin: 0 0 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

input {
  width: 100%;
  height: 52px;
  padding: 0 15px;
  color: var(--text);
  font-size: 15px;
  border: 1px solid var(--line-bright);
  border-radius: 8px;
  background: #0a1626;
  outline: none;
  color-scheme: dark;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input::placeholder { color: #718099; }
input:hover { border-color: #6982a4; background: #0c192b; }

input:focus {
  border-color: #65b6f7;
  box-shadow: 0 0 0 3px rgba(49, 152, 237, 0.14);
  background: #0d1b2e;
}

input[aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(255, 142, 134, 0.1);
}

.field-error {
  min-height: 14px;
  display: block;
  margin-top: 5px;
  color: var(--error);
  font-size: 11px;
  line-height: 1.2;
}

.trap {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
}

.submit-button {
  width: 100%;
  min-height: 56px;
  margin-top: 12px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border: 0;
  border-radius: 8px;
  background: var(--orange);
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.submit-button:hover {
  background: var(--orange-deep);
  box-shadow: 0 10px 30px rgba(255, 104, 29, 0.22);
}

.submit-button:active { transform: translateY(1px); }

.submit-button:focus-visible,
.reset-button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(101, 182, 247, 0.7);
  outline-offset: 4px;
}

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

.submit-button svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms ease;
}

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

.privacy-note {
  max-width: 530px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.form-status {
  min-height: 18px;
  margin: 7px 0 0;
  color: var(--error);
  font-size: 13px;
  text-align: center;
}

.success-state {
  min-height: 530px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.form-shell.is-success form, .form-shell.is-success .form-heading { display: none; }
.form-shell.is-success .success-state { display: flex; }

.success-icon {
  width: 62px;
  height: 62px;
  margin-bottom: 26px;
  display: grid;
  place-items: center;
  color: var(--green);
  border: 2px solid var(--green);
  border-radius: 50%;
  box-shadow: 0 0 34px rgba(72, 215, 170, 0.14);
}

.success-icon svg {
  width: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success-state h2 { max-width: 430px; font-size: 35px; }
.success-state p { max-width: 450px; margin: 12px 0 0; color: var(--muted); font-size: 17px; line-height: 1.55; }

.reset-button {
  margin-top: 27px;
  padding: 0 0 5px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  border: 0;
  border-bottom: 2px solid var(--orange);
  background: transparent;
  cursor: pointer;
}

.closing {
  width: min(920px, calc(100% - 48px));
  min-height: 390px;
  margin: 0 auto;
  padding: 118px 0 108px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  overflow: hidden;
  text-align: center;
  border-top: 1px solid rgba(52, 70, 95, 0.62);
}

.closing::before {
  content: "";
  position: absolute;
  width: 980px;
  height: 400px;
  top: 150px;
  left: 50%;
  border: 1px solid rgba(49, 152, 237, 0.42);
  border-radius: 50% 50% 0 0;
  transform: translateX(-50%);
  box-shadow: 0 -16px 45px rgba(49, 152, 237, 0.07);
}

.closing p {
  max-width: 650px;
  margin: 0;
  position: relative;
  z-index: 1;
  font: 600 clamp(38px, 4.7vw, 61px)/1.08 var(--font-display);
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.closing span {
  max-width: 720px;
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.closing::after {
  content: "";
  width: 38px;
  height: 4px;
  margin-top: 6px;
  position: relative;
  z-index: 1;
  border-radius: 99px;
  background: var(--orange);
}

.process {
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
  padding: 94px 0 108px;
  border-top: 1px solid rgba(52, 70, 95, 0.62);
}

.process-heading {
  max-width: 680px;
  margin: 0 auto 58px;
  text-align: center;
}

.process-heading h2 {
  margin: 0;
  font: 650 clamp(36px, 4.3vw, 56px)/1.08 var(--font-display);
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.process-heading p {
  max-width: 620px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  text-wrap: balance;
}

.process ol {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process li {
  min-width: 0;
  padding: 30px 25px 34px;
  border-left: 1px solid var(--line);
}

.process li:first-child { border-left: 0; }

.process li > span {
  display: block;
  margin-bottom: 28px;
  color: var(--orange);
  font: 700 12px/1 var(--font-display);
  letter-spacing: 0.08em;
}

.process li strong {
  display: block;
  font: 700 20px/1.2 var(--font-display);
  letter-spacing: -0.03em;
}

.process li p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

footer {
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 30px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid rgba(52, 70, 95, 0.62);
}

@media (max-width: 720px) {
  .site-header { height: 84px; }
  .hero { min-height: auto; padding: 42px 0 68px; }
  .hero::before { width: 620px; height: 620px; top: -230px; }
  h1 { font-size: clamp(46px, 12.7vw, 66px); }
  .hero-copy > p { font-size: 18px; }
  .data-lines { width: 100vw; height: 460px; top: -160px; }
  .form-shell { margin-top: 40px; padding: 30px 26px 24px; }
  .form-grid { grid-template-columns: 1fr; gap: 12px; }
  .success-state { min-height: 510px; }
  .closing { min-height: 350px; padding: 88px 0 90px; }
  .process { padding: 76px 0 84px; }
  .process-heading { margin-bottom: 44px; }
  .process ol { grid-template-columns: 1fr 1fr; }
  .process li:nth-child(3) { border-left: 0; }
  .process li:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 480px) {
  .site-header, .hero, .closing, .process, footer { width: calc(100% - 32px); }
  .brand { font-size: 18px; }
  .hero { padding-top: 34px; }
  h1 { font-size: clamp(43px, 13.2vw, 58px); }
  .hero-copy > p { margin-top: 20px; font-size: 17px; }
  .hero-copy > .fit-line { margin-top: 22px; padding-top: 17px; font-size: 13px; }
  .form-shell { padding: 26px 20px 20px; border-radius: 13px; }
  .form-heading { margin-bottom: 26px; }
  .form-heading h2 { font-size: 23px; }
  .success-state { min-height: 470px; }
  .success-state h2 { font-size: 29px; }
  .process ol { grid-template-columns: 1fr; }
  .process li, .process li:nth-child(3) { padding: 24px 6px 27px; border-left: 0; border-top: 1px solid var(--line); }
  .process li:first-child { border-top: 0; }
  .process li > span { margin-bottom: 14px; }
  footer { flex-direction: column; align-items: center; gap: 7px; text-align: center; }
}

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