:root {
  --marketing-contact-border: rgba(255, 255, 255, 0.14);
  --marketing-contact-bg: rgba(6, 9, 16, 0.92);
  --marketing-contact-panel: rgba(18, 22, 31, 0.92);
  --marketing-contact-copy: rgba(232, 238, 248, 0.88);
  --marketing-contact-muted: rgba(173, 184, 201, 0.76);
  --marketing-contact-accent: #9de7ff;
  --marketing-contact-accent-strong: #f4a261;
}

.marketing-utility-rail {
  position: fixed;
  top: 88px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.marketing-utility-rail.is-inline {
  display: none;
}

.marketing-header-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.marketing-header-actions .marketing-discord-nav-btn,
.marketing-header-actions .marketing-utility-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.marketing-header-actions .marketing-utility-btn {
  min-width: 96px;
  min-height: 36px;
  padding: 9px 16px;
  font-size: 10px;
}

.marketing-utility-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 124px;
  min-height: 44px;
  padding: 11px 15px;
  border-radius: 999px;
  border: 1px solid var(--marketing-contact-border);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.1), rgba(52, 63, 80, 0.18) 44%, rgba(10, 13, 21, 0.92)),
    rgba(8, 10, 17, 0.9);
  color: #f3f7ff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  font-family: 'Kode Mono', monospace;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 12px 34px rgba(4, 7, 15, 0.4),
    0 0 36px rgba(102, 158, 255, 0.1);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.marketing-utility-btn:hover,
.marketing-utility-btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(157, 231, 255, 0.46);
  color: #ffffff;
  box-shadow:
    0 0 0 1px rgba(157, 231, 255, 0.18) inset,
    0 14px 38px rgba(4, 7, 15, 0.48),
    0 0 42px rgba(157, 231, 255, 0.14);
  outline: none;
}

.marketing-utility-btn.primary {
  color: #08111f;
  border-color: rgba(255, 205, 150, 0.4);
  background:
    linear-gradient(135deg, rgba(252, 225, 196, 0.98), rgba(157, 231, 255, 0.92)),
    linear-gradient(135deg, rgba(255, 170, 102, 0.9), rgba(123, 209, 255, 0.75));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.28) inset,
    0 12px 34px rgba(7, 11, 18, 0.42),
    0 0 46px rgba(157, 231, 255, 0.18);
}

.marketing-contact-overlay {
  position: fixed;
  inset: 0;
  z-index: 10020;
  background:
    radial-gradient(circle at top, rgba(92, 122, 178, 0.22), transparent 36%),
    rgba(2, 4, 9, 0.76);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.marketing-contact-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 10021;
  width: min(94vw, 720px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background:
    linear-gradient(165deg, rgba(31, 39, 56, 0.92), rgba(10, 13, 21, 0.98) 42%, rgba(4, 6, 12, 1)),
    rgba(6, 9, 16, 0.96);
  box-shadow:
    0 30px 120px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 60px rgba(157, 231, 255, 0.14);
  color: var(--marketing-contact-copy);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -46%) scale(0.985);
  transition: opacity 220ms ease, transform 220ms ease;
}

body.marketing-contact-open .marketing-contact-overlay {
  opacity: 1;
  pointer-events: auto;
}

body.marketing-contact-open .marketing-contact-modal {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.marketing-contact-shell {
  padding: clamp(20px, 3vw, 30px);
}

.marketing-contact-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.marketing-contact-kicker {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: 'Kode Mono', monospace;
  color: rgba(244, 162, 97, 0.9);
}

.marketing-contact-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #f8fbff;
}

.marketing-contact-sub {
  margin: 12px 0 0;
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--marketing-contact-muted);
}

.marketing-contact-close {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #f3f7ff;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10px;
  font-family: 'Kode Mono', monospace;
  cursor: pointer;
}

.marketing-contact-close:hover,
.marketing-contact-close:focus-visible {
  border-color: rgba(157, 231, 255, 0.46);
  outline: none;
}

.marketing-contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.marketing-contact-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.marketing-contact-field.full {
  grid-column: 1 / -1;
}

.marketing-contact-field label {
  font-size: 11px;
  font-family: 'Kode Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(206, 217, 234, 0.7);
}

.marketing-contact-field input,
.marketing-contact-field select,
.marketing-contact-field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 14px 15px;
  background: rgba(255, 255, 255, 0.04);
  color: #f5f8ff;
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.marketing-contact-field select {
  appearance: none;
  -webkit-appearance: none;
  color-scheme: dark;
  padding-right: 44px;
  background-image:
    linear-gradient(150deg, rgba(255, 255, 255, 0.1), rgba(52, 63, 80, 0.18) 44%, rgba(10, 13, 21, 0.92)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23f5f8ff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, right 14px center;
  background-size: auto, 16px 16px;
}

.marketing-contact-field select option {
  color: #08111f;
  background: #f4f7fb;
}

.marketing-contact-field select option:checked,
.marketing-contact-field select option:hover,
.marketing-contact-field select option:focus {
  color: #08111f;
  background: #e6d0dc;
}

.marketing-contact-field input::placeholder,
.marketing-contact-field textarea::placeholder {
  color: rgba(173, 184, 201, 0.42);
}

.marketing-contact-field textarea {
  min-height: 180px;
  resize: vertical;
}

.marketing-contact-field input:focus,
.marketing-contact-field select:focus,
.marketing-contact-field textarea:focus {
  outline: none;
  border-color: rgba(157, 231, 255, 0.56);
  box-shadow:
    0 0 0 1px rgba(157, 231, 255, 0.15),
    0 0 0 4px rgba(157, 231, 255, 0.08);
}

.marketing-contact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(173, 184, 201, 0.74);
}

.marketing-contact-note {
  max-width: 40ch;
  line-height: 1.6;
}

.marketing-contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 214, 170, 0.46);
  background:
    linear-gradient(135deg, rgba(255, 229, 202, 0.98), rgba(157, 231, 255, 0.9)),
    linear-gradient(135deg, rgba(255, 170, 102, 0.84), rgba(123, 209, 255, 0.78));
  color: #0b1220;
  font-family: 'Kode Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.marketing-contact-submit:hover,
.marketing-contact-submit:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 34px rgba(3, 8, 18, 0.36), 0 0 40px rgba(157, 231, 255, 0.16);
  outline: none;
}

.marketing-contact-submit[disabled] {
  cursor: wait;
  opacity: 0.72;
  transform: none;
  box-shadow: none;
}

.marketing-contact-status {
  min-height: 20px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(173, 184, 201, 0.88);
}

.marketing-contact-status.ok {
  color: #a8f0cb;
}

.marketing-contact-status.error {
  color: #ffb4b4;
}

@media (max-width: 900px) {
  .marketing-utility-rail {
    top: auto;
    right: auto;
    left: 16px;
    bottom: 82px;
    flex-direction: row;
    align-items: center;
  }

  .marketing-header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .marketing-utility-btn {
    min-width: 0;
    padding-inline: 13px;
  }
}

@media (max-width: 720px) {
  .marketing-contact-head {
    flex-direction: column;
  }

  .marketing-contact-grid {
    grid-template-columns: 1fr;
  }

  .marketing-contact-field.full {
    grid-column: auto;
  }

  .marketing-contact-meta {
    align-items: stretch;
  }

  .marketing-contact-submit {
    width: 100%;
  }
}
