@import url("../fonts/local-fonts.css");

:root {
  --ink: #14201c;
  --ink-soft: #24352f;
  --fog: #d7e0d8;
  --paper: #eef3ee;
  --mist: rgba(238, 243, 238, 0.72);
  --accent: #c4a574;
  --accent-deep: #9a7a4a;
  --line: rgba(238, 243, 238, 0.14);
  --danger: #d27b6a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --font-display: "Literata", "Times New Roman", serif;
  --font-body: "Onest", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
}

.skip-link:focus {
  top: 1rem;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 10% -10%, rgba(196, 165, 116, 0.18), transparent 55%),
    radial-gradient(90% 70% at 100% 0%, rgba(88, 122, 108, 0.35), transparent 50%),
    linear-gradient(165deg, #101915 0%, #1a2923 42%, #0f1714 100%);
}

.atmosphere__wash {
  position: absolute;
  inset: -20%;
  background:
    linear-gradient(120deg, transparent 20%, rgba(238, 243, 238, 0.04) 48%, transparent 70%);
  animation: drift 18s var(--ease) infinite alternate;
}

.atmosphere__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
}

.atmosphere__orb--a {
  width: min(48vw, 420px);
  height: min(48vw, 420px);
  top: 12%;
  right: -8%;
  background: rgba(196, 165, 116, 0.22);
  animation: float-a 14s var(--ease) infinite alternate;
}

.atmosphere__orb--b {
  width: min(55vw, 520px);
  height: min(55vw, 520px);
  bottom: -18%;
  left: -12%;
  background: rgba(74, 110, 96, 0.35);
  animation: float-b 16s var(--ease) infinite alternate;
}

.atmosphere__grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.stage {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1.75rem 0 4rem;
}

.stage--thanks {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand {
  margin-bottom: 4.5rem;
}

.brand__mark {
  display: inline-block;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.brand__mark:hover {
  color: var(--accent);
}

.hero {
  width: 100%;
  max-width: none;
  margin-bottom: 5.5rem;
}

.hero--compact {
  margin-bottom: 0;
}

.hero__kicker {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__title {
  display: block;
  width: 100%;
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 450;
  /* Keep lines long so the block matches form width, not a left stub */
  font-size: clamp(1.85rem, 3.6vw, 3.05rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero__lead {
  display: block;
  width: 100%;
  margin: 0 0 2rem;
  color: var(--mist);
  font-size: 1.08rem;
  max-width: none;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn--primary {
  background: var(--accent);
  color: var(--ink);
}

.btn--primary:hover {
  background: #d4b68a;
  transform: translateY(-1px);
}

.btn--ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--paper);
}

.btn--ghost:hover {
  border-color: rgba(238, 243, 238, 0.35);
  background: rgba(238, 243, 238, 0.05);
}

.audit {
  display: grid;
  gap: 1.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

.audit__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 450;
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  letter-spacing: -0.02em;
}

.audit__text {
  margin: 0;
  max-width: 100%;
  color: var(--mist);
}

.form {
  display: grid;
  gap: 1rem;
  padding: 1.35rem 0 0;
}

.form__trap {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__alert {
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(210, 123, 106, 0.45);
  border-radius: 0.9rem;
  background: rgba(210, 123, 106, 0.12);
  color: #f0c4bc;
  font-size: 0.92rem;
}

.form__row--captcha {
  align-items: end;
}

.field--action .btn {
  width: 100%;
}

.turnstile-wrap {
  margin-top: 0.25rem;
}

.form__row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .form__row {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field__label {
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: rgba(238, 243, 238, 0.78);
}

.field__label em {
  font-style: normal;
  opacity: 0.55;
}

.field__input {
  width: 100%;
  min-height: 3rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(20, 32, 28, 0.45);
  color: var(--paper);
  font: inherit;
  outline: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field__input::placeholder {
  color: rgba(238, 243, 238, 0.35);
}

.field__input:focus {
  border-color: rgba(196, 165, 116, 0.55);
  background: rgba(20, 32, 28, 0.7);
  box-shadow: 0 0 0 3px rgba(196, 165, 116, 0.12);
}

.field__input--area {
  min-height: 7rem;
  resize: vertical;
}

.form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-top: 0.35rem;
}

.form__note {
  margin: 0;
  max-width: 22rem;
  color: rgba(238, 243, 238, 0.5);
  font-size: 0.82rem;
}

.foot {
  margin-top: 4.5rem;
  color: rgba(238, 243, 238, 0.38);
  font-size: 0.82rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@keyframes drift {
  from { transform: translate3d(-2%, 0, 0) scale(1); }
  to { transform: translate3d(3%, 2%, 0) scale(1.05); }
}

@keyframes float-a {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-4%, 6%, 0); }
}

@keyframes float-b {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(5%, -4%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .atmosphere__wash,
  .atmosphere__orb,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
