:root {
  color-scheme: light;
  --ink: #10213d;
  --muted: #60708a;
  --panel: rgba(255, 255, 255, .88);
  --line: rgba(30, 64, 175, .14);
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --accent-soft: #eaf2ff;
  --danger: #b42318;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 5%, rgba(96, 165, 250, .28), transparent 38rem),
    radial-gradient(circle at 92% 84%, rgba(186, 230, 253, .5), transparent 34rem),
    #f5f9ff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: .42;
  background-image: linear-gradient(rgba(37,99,235,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(37,99,235,.07) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
}

.shell {
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 112px) 0 52px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .78fr);
  align-items: center;
  gap: clamp(48px, 8vw, 112px);
}

.eyebrow, .kicker {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: .74rem;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 7px; height: 7px; background: var(--accent); border-radius: 99px; box-shadow: 0 0 18px rgba(37, 99, 235, .55); }
.brand { margin: 0 0 12px; color: #52647e; font: 500 clamp(1rem, 2vw, 1.18rem)/1.4 Georgia, serif; font-style: italic; }

h1, h2 { margin: 0; letter-spacing: -.045em; line-height: .98; }
h1 { max-width: 760px; font-size: clamp(3.25rem, 7vw, 6.9rem); font-weight: 680; overflow-wrap: anywhere; }
h1 span { color: var(--accent); }
h2 { font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1.03; }

.intro { max-width: 650px; margin: 28px 0 32px; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.18rem); line-height: 1.75; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-row span { padding: 9px 13px; color: #425671; border: 1px solid var(--line); border-radius: 99px; background: rgba(255, 255, 255, .62); font-size: .78rem; }

.card {
  position: relative;
  padding: clamp(26px, 4vw, 42px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 32px 90px rgba(30, 64, 175, .14);
  backdrop-filter: blur(20px);
}

.card::before { position: absolute; inset: 0 0 auto; height: 2px; content: ""; background: linear-gradient(90deg, transparent, rgba(37,99,235,.75), transparent); }
.card-heading { margin-bottom: 28px; }
.card-heading .kicker { margin-bottom: 12px; }
.card-heading > p:last-child, .result > p:last-of-type { margin: 14px 0 0; color: var(--muted); line-height: 1.6; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 16px; }
label { display: block; margin: 0 0 8px; color: #263b59; font-size: .82rem; font-weight: 650; }
.optional { float: right; color: #8491a5; font-size: .7rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }

input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  padding: 13px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, .9);
  font: inherit;
  font-size: .94rem;
  transition: border-color .18s, box-shadow .18s;
}

textarea { min-height: 116px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #98a4b5; }
input:focus, textarea:focus { border-color: rgba(37,99,235,.7); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: rgba(180, 35, 24, .55); }
.field-error { display: block; margin-top: 6px; color: var(--danger); font-size: .76rem; }

button, .button-link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: var(--accent);
  font: inherit;
  font-weight: 780;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
button:hover, .button-link:hover { transform: translateY(-1px); background: var(--accent-strong); box-shadow: 0 10px 30px rgba(37,99,235,.22); }
button:focus-visible, .button-link:focus-visible { outline: 3px solid rgba(37,99,235,.28); outline-offset: 3px; }
.privacy { margin: 13px auto 0; max-width: 340px; color: #8190a5; text-align: center; font-size: .7rem; line-height: 1.5; }
.trap { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.alert { margin: -8px 0 20px; padding: 12px 14px; border: 1px solid rgba(180,35,24,.2); border-radius: 10px; color: var(--danger); background: #fff3f2; font-size: .82rem; line-height: 1.5; }

.result { padding: 36px 0 24px; text-align: center; }
.result-icon { width: 58px; height: 58px; margin: 0 auto 24px; display: grid; place-items: center; border-radius: 50%; color: var(--accent-strong); background: var(--accent-soft); border: 1px solid rgba(37,99,235,.18); font-size: 1.5rem; font-weight: 900; }
.result .kicker { margin-bottom: 12px; }
.result .button-link { margin-top: 30px; }

footer { min-height: 72px; display: grid; place-items: center; color: #8290a4; font-size: .72rem; letter-spacing: .07em; }

@media (max-width: 880px) {
  .shell { grid-template-columns: 1fr; width: min(680px, calc(100% - 32px)); padding-top: 64px; gap: 48px; }
  h1 { font-size: clamp(3.1rem, 12vw, 5.7rem); }
}

@media (max-width: 520px) {
  .shell { width: min(100% - 24px, 680px); padding-top: 42px; }
  .field-grid { grid-template-columns: 1fr; gap: 0; }
  .card { border-radius: 18px; }
}

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