:root {
  color-scheme: light;
  --paper: #f8f7f3;
  --paper-deep: #eeeee9;
  --ink: #122a3a;
  --muted: #64727a;
  --line: rgba(18, 42, 58, 0.16);
  --steel: #17384f;
  --steel-strong: #0e2b40;
  --accent: #2c6d8e;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100%;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
}

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

.hero {
  position: relative;
  min-height: 94svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(48px, 7vw, 92px);
  background:
    radial-gradient(circle at 75% 45%, rgba(44, 109, 142, 0.09), transparent 31%),
    linear-gradient(135deg, var(--paper) 0%, var(--paper-deep) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--line);
}

.hero-mark {
  position: absolute;
  width: min(72vw, 760px);
  right: clamp(-210px, -11vw, -72px);
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.24;
  filter: blur(0.2px) saturate(0.92);
  pointer-events: none;
  user-select: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(58px, 12vw, 132px);
  line-height: 0.92;
  font-weight: 800;
}

.tagline {
  max-width: 780px;
  margin: 28px 0 0;
  font-size: clamp(26px, 4vw, 48px);
  line-height: 1.06;
  font-weight: 750;
}

.intro {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
}

.signup {
  width: min(100%, 620px);
  margin-top: 38px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 20px 60px rgba(18, 42, 58, 0.08);
  backdrop-filter: blur(20px);
}

.hidden {
  display: none !important;
}

.inf-success {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(44, 109, 142, 0.24);
  border-radius: 10px;
  background: rgba(44, 109, 142, 0.08);
}

.inf-success h2 {
  margin: 0;
  font-size: 20px;
}

.inf-success p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.form-heading h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 750;
}

.form-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.field {
  display: grid;
  gap: 7px;
}

.field span,
.device-field legend {
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.84);
  outline: none;
}

.field input,
.field select {
  height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
}

.field textarea {
  resize: vertical;
  min-height: 92px;
  padding: 12px 13px;
  border-radius: 8px;
  line-height: 1.4;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(44, 109, 142, 0.58);
  box-shadow: 0 0 0 4px rgba(44, 109, 142, 0.12);
}

.wide {
  margin-top: 14px;
}

.device-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.device-field label {
  display: inline-flex;
  align-items: center;
  flex: 1 1 96px;
  min-height: 46px;
  margin-top: 7px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  cursor: pointer;
}

.device-field input {
  width: 16px;
  height: 16px;
  margin: 0 8px 0 0;
  accent-color: var(--steel);
}

.device-field span {
  font-size: 15px;
  font-weight: 650;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.consent input {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  flex: 0 0 auto;
  accent-color: var(--steel);
}

.captcha-row {
  margin-top: 16px;
}

.captcha-row altcha-widget {
  --altcha-color-base: var(--ink);
  --altcha-color-border: rgba(18, 42, 58, 0.16);
  --altcha-color-bg: rgba(255, 255, 255, 0.84);
  --altcha-border-radius: 8px;
  max-width: 100%;
}

.submit-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.submit-row button,
.submit-row input[type="submit"] {
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  background: var(--steel);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.submit-row button:hover,
.submit-row input[type="submit"]:hover {
  background: var(--steel-strong);
}

.submit-row p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 20px;
  width: 28px;
  height: 1px;
  transform: translateX(-50%);
  background: rgba(18, 42, 58, 0.28);
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  padding: 1px;
}

.principle {
  min-height: 270px;
  padding: clamp(28px, 4vw, 46px);
  background: #fbfaf7;
}

.principle span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.principle h2 {
  margin: 42px 0 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.05;
}

.principle p {
  max-width: 360px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
}

.thanks-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  background: linear-gradient(135deg, var(--paper) 0%, var(--paper-deep) 100%);
}

.thanks-page img {
  width: 120px;
  height: 120px;
  margin-bottom: 28px;
}

.thanks-page h1 {
  font-size: clamp(42px, 8vw, 76px);
}

.thanks-page p {
  max-width: 520px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.45;
}

.thanks-page a {
  margin-top: 32px;
  color: var(--steel);
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 980px) {
  .hero {
    align-items: flex-start;
    padding: 58px 40px 78px;
  }

  .hero-content {
    width: min(100%, 680px);
  }

  .hero-mark {
    width: 620px;
    right: -230px;
    top: 44%;
    opacity: 0.18;
  }

  h1 {
    font-size: clamp(64px, 12vw, 108px);
  }

  .tagline {
    font-size: clamp(28px, 5vw, 42px);
  }

  .signup {
    width: min(100%, 640px);
  }

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

  .principle {
    min-height: 220px;
  }

  .principle h2 {
    margin-top: 30px;
  }
}

@media (max-width: 740px) {
  .hero {
    min-height: 100svh;
    padding: 38px 22px 70px;
    align-items: flex-end;
  }

  .hero-mark {
    width: 560px;
    right: -228px;
    top: 32%;
    opacity: 0.18;
  }

  .eyebrow {
    font-size: 12px;
  }

  .tagline {
    margin-top: 22px;
  }

  .signup {
    padding: 18px;
  }

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

  .submit-row {
    display: grid;
    gap: 10px;
  }

  .submit-row button,
  .submit-row input[type="submit"] {
    width: 100%;
    white-space: normal;
  }

  .principle {
    min-height: 230px;
  }
}
