:root {
  color-scheme: dark;
  --bg: #0b0c10;
  --bg-raised: #11141b;
  --panel: #171b24;
  --panel-strong: #1d2330;
  --field: #202636;
  --line: #313847;
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #f4f6fa;
  --muted: #aab4c4;
  --subtle: #778397;
  --cyan: #56c7e8;
  --violet: #a77cff;
  --green: #7ddfba;
  --danger: #ff7a88;
  --shadow: rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, #111721 0, var(--bg) 24rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 10;
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding: 0.75rem max(1rem, calc((100% - 1120px) / 2));
  border-bottom: 1px solid var(--line-soft);
  background: rgba(11, 12, 16, 0.88);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(67, 178, 248, 0.24));
}

.brand-copy {
  display: grid;
  gap: 0.05rem;
}

.brand-copy strong {
  font-size: 0.98rem;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.82rem;
}

.support-page {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.support-desk {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(340px, 1fr);
  gap: 2rem;
  align-items: start;
  padding: 3.25rem 0 2.75rem;
}

.desk-copy {
  display: grid;
  gap: 1.35rem;
  padding-top: 0.35rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 3.4rem;
  line-height: 1;
  letter-spacing: 0;
}

.intro-copy {
  max-width: 32rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.intro-copy a {
  color: var(--cyan);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.support-form {
  position: relative;
  display: grid;
  gap: 0.95rem;
  padding: 1.35rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(23, 27, 36, 0.92);
  box-shadow: 0 18px 52px var(--shadow);
}

.support-form::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--green));
}

.notice {
  padding: 0.8rem 0.9rem;
  border: 1px solid;
  border-radius: 8px;
  font-weight: 700;
}

.notice.success {
  border-color: rgba(125, 223, 186, 0.5);
  background: rgba(125, 223, 186, 0.12);
  color: #c7ffe9;
}

.notice.error {
  border-color: rgba(255, 122, 136, 0.48);
  background: rgba(255, 122, 136, 0.12);
  color: #ffd7dc;
}

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

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

label {
  display: grid;
  gap: 0.36rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 2.7rem;
  border: 1px solid #424b60;
  border-radius: 8px;
  background: var(--field);
  color: var(--text);
  padding: 0.68rem 0.78rem;
  outline: none;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 1.13rem,
    calc(100% - 12px) 1.13rem;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.4rem;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(86, 199, 232, 0.16);
}

.field-error {
  color: #ffc2c8;
  font-size: 0.8rem;
  font-weight: 700;
}

.message-meta {
  color: var(--subtle);
  font-size: 0.8rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  padding-top: 0.15rem;
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  border: 1px solid #7adbf4;
  border-radius: 8px;
  background: var(--cyan);
  color: #061016;
  padding: 0.72rem 1rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

button:hover,
button:focus-visible {
  background: #82ddf5;
  outline: none;
}

.site-footer {
  padding: 1rem max(1rem, calc((100% - 1120px) / 2));
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .support-desk {
    grid-template-columns: 1fr;
  }

  .support-desk {
    padding-top: 2.4rem;
  }

  .desk-copy {
    max-width: 44rem;
  }

  h1 {
    font-size: 3rem;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
  }

  .support-page {
    width: min(100% - 1rem, 1120px);
  }

  .support-desk {
    gap: 1.25rem;
    padding: 1.5rem 0 2rem;
  }

  h1 {
    font-size: 2.35rem;
  }

  .intro-copy {
    font-size: 1rem;
  }

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

  .support-form {
    padding: 1rem;
  }

  .message-meta,
  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  button {
    width: 100%;
  }
}

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