:root {
  color-scheme: light;
  --ink: #151922;
  --soft-ink: #353d4d;
  --muted: #6f7786;
  --line: #e2e6ed;
  --paper: #ffffff;
  --wash: #f7f8fa;
  --accent: #2e4e9d;
  --accent-dark: #1f3670;
  --shadow: 0 24px 70px rgba(21, 25, 34, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 14%, rgba(46, 78, 157, 0.08), transparent 26rem),
    linear-gradient(180deg, #fbfbfa 0%, var(--wash) 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(21, 25, 34, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 25, 34, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.58), transparent 72%);
}

.hero,
.landing {
  width: min(100%, 70rem);
  margin: 0 auto;
}

.landing {
  min-height: 100vh;
}

.hero {
  display: grid;
  justify-items: center;
  align-items: center;
  min-height: 100vh;
  padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 4vw, 2rem);
}

.contact-panel {
  animation: rise-in 600ms ease both;
}

p {
  margin-top: 0;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-panel {
  position: relative;
  overflow: hidden;
  width: min(100%, 32rem);
  padding: clamp(1rem, 3vw, 1.45rem);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  animation-delay: 100ms;
}

.contact-panel::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background-image:
    linear-gradient(rgba(21, 25, 34, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 25, 34, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.48), transparent);
}

.panel-header,
.contact-form {
  position: relative;
  z-index: 1;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(226, 230, 237, 0.95);
}

.contact-form {
  display: grid;
  gap: 0.92rem;
  margin-top: 0.95rem;
}

label {
  display: grid;
  gap: 0.42rem;
  color: var(--ink);
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid #cfd6e1;
  border-radius: 10px;
  padding: 0.92rem 1rem;
  color: var(--ink);
  font: inherit;
  background: white;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(46, 78, 157, 0.14);
}

textarea {
  resize: vertical;
}

.field-error {
  min-height: 1rem;
  color: #a42828;
  font-size: 0.82rem;
  font-weight: 700;
}

.field-invalid {
  border-color: #a42828;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.86rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

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

.button.primary {
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 16px 30px rgba(46, 78, 157, 0.24);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
}

.button.full-width {
  width: 100%;
}

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

.form-status {
  min-height: 1.5rem;
  margin: 0;
  color: var(--muted);
}

.privacy-line,
.noscript-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.form-status.success {
  color: #126235;
}

.form-status.error {
  color: #a42828;
}

.sent-state {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: start;
  gap: 0.65rem;
  padding: 1.75rem 0 0.5rem;
}

.sent-state[hidden] {
  display: none;
}

.sent-mark {
  width: 2.65rem;
  height: 2.65rem;
  border: 1px solid rgba(18, 98, 53, 0.18);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(18, 98, 53, 0.12), rgba(18, 98, 53, 0.04)),
    white;
}

.sent-mark::before {
  display: block;
  width: 0.76rem;
  height: 1.18rem;
  margin: 0.55rem auto 0;
  border-right: 3px solid #126235;
  border-bottom: 3px solid #126235;
  content: "";
  transform: rotate(45deg);
}

.sent-state h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 2.65rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.sent-state p:last-child {
  margin: 0;
  color: var(--soft-ink);
  line-height: 1.6;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 900px) {
  .hero {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 2.35rem;
  }

  .panel-header {
    flex-direction: column;
  }
}
