:root {
  color-scheme: light;
  --brand-red: #ed2c2c;
  --base: #09090b;
  --white: #ffffff;
  --soft: #f8f8f8;
  --cool-gray: #dee2e6;
  --ink: var(--base);
  --muted: #5f636d;
  --line: var(--cool-gray);
  --panel: rgba(255, 255, 255, 0.92);
  --panel-solid: #ffffff;
  --accent: var(--brand-red);
  --accent-strong: #c9151d;
  --accent-soft: rgba(237, 44, 44, 0.12);
  --advertiser-green: #1f7a45;
  --advertiser-soft: rgba(31, 122, 69, 0.12);
  --error: #b42318;
  --shadow: 0 24px 70px rgba(9, 9, 11, 0.08);
  --font-heading: Lora, Georgia, "Times New Roman", serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family:
    var(--font-body);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(248, 248, 248, 0.98), rgba(248, 248, 248, 0.84)),
    var(--soft);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px 20px;
}

.hero {
  width: min(100%, 720px);
  display: grid;
  justify-items: center;
  gap: 32px;
}

.logo-stage {
  width: min(100%, 360px);
  justify-self: center;
  margin-inline: auto;
}

.logo {
  display: block;
  width: 100%;
  height: auto;
}

.intro {
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
}

h1,
h2,
p {
  margin: 0;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.tagline {
  max-width: 640px;
  color: var(--base);
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 500;
  line-height: 1.4;
}

.pill {
  width: fit-content;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
}

.pill::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: 1px;
}

.pill-hiring {
  color: var(--brand-red);
  background: rgba(237, 44, 44, 0.08);
}

.contact-card {
  width: min(100%, 560px);
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(222, 226, 230, 0.95);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.form-heading {
  display: grid;
}

.form-heading h1 {
  color: var(--base);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.5;
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--base);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-solid);
  color: var(--ink);
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

input {
  min-height: 46px;
  padding: 0 13px;
}

textarea {
  min-height: 136px;
  padding: 12px 13px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.cf-turnstile {
  min-height: 65px;
}

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

.form-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
}

button {
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  color: #ffffff;
  background: var(--accent);
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.5;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

button:hover {
  background: var(--accent-strong);
}

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

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.status {
  min-height: 1.4em;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.status[data-tone="success"] {
  color: var(--accent-strong);
}

.status[data-tone="error"] {
  color: var(--error);
}

@media (max-width: 640px) {
  .page-shell {
    padding: 40px 16px;
  }

  .hero {
    gap: 28px;
  }

  .logo-stage {
    width: min(100%, 300px);
  }

  .contact-card {
    padding: 20px;
  }

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

@media (prefers-reduced-motion: reduce) {
  button,
  input,
  textarea {
    transition: none;
  }
}
