:root {
  --bg: #070b10;
  --bg-deep: #04080b;
  --panel: #0d1318;
  --panel-soft: #10171d;
  --panel-flat: #0b1115;
  --field: #060c10;
  --field-hover: #081216;
  --text: #eef7f2;
  --text-soft: #d8e8e2;
  --muted: #a4bbb3;
  --muted-2: #80958e;
  --line: rgba(238, 247, 242, .12);
  --line-soft: rgba(238, 247, 242, .08);
  --line-strong: rgba(238, 247, 242, .20);
  --accent: #28e0a3;
  --accent-soft: rgba(40, 224, 163, .08);
  --accent-line: rgba(40, 224, 163, .24);
  --danger: #ff6b6b;
  --danger-soft: rgba(255, 107, 107, .12);
  --shadow: rgba(0, 0, 0, .28);
  --font-ui: "Segoe UI", Inter, Roboto, Helvetica, Arial, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  color-scheme: dark;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: var(--font-ui);
  background:
    radial-gradient(circle at 16% 0%, rgba(40, 224, 163, .12), transparent 34%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  color: var(--text);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea,
option,
optgroup {
  font-family: var(--font-ui);
}

button,
input,
select,
textarea {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
}

h1,
h2,
h3,
p,
a,
label,
span,
small,
strong,
dt,
dd,
li {
  font-family: inherit;
}

a { color: inherit; }

.site-header,
.site-footer {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-header { flex: 0 0 auto; }

.site-footer {
  flex: 0 0 auto;
  margin-top: auto;
  border-top: 1px solid var(--line-soft);
  color: var(--muted-2);
  font-size: 13px;
}

.footer-links,
nav {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-links a,
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 450;
}

.footer-links a:hover,
nav a:hover { color: var(--text); }

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #16242c, #080d12);
  border: 1px solid var(--line);
  color: var(--accent);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -.02em;
}

.brand strong {
  display: block;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -.01em;
}

.brand small {
  display: block;
  color: var(--muted-2);
  margin-top: 1px;
  font-size: 12px;
}

.page {
  flex: 1 0 auto;
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 28px 24px 64px;
}

.hero-card,
.form-card,
.ticket-card,
.panel {
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.016));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 36px;
  box-shadow: 0 18px 45px var(--shadow);
}

.hero-card h1,
.form-card h1 {
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: -.05em;
  font-weight: 650;
  margin: 0 0 18px;
  color: var(--text);
}

.ticket-card h2,
.panel h2,
.section-heading h2 {
  letter-spacing: -.025em;
}

.ticket-card h2 {
  margin: 0 0 20px;
  font-size: 24px;
  font-weight: 600;
}

.ticket-card h3 {
  margin: 26px 0 10px;
  font-size: 18px;
  font-weight: 600;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 16px;
}

.muted,
.hint,
.section-heading p {
  color: var(--muted);
  font-weight: 400;
}

.actions,
.inline-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.compact-actions { margin-top: 16px; }

.button {
  appearance: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 11px 17px;
  background: rgba(255,255,255,.035);
  color: var(--text-soft);
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.2;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.button:hover {
  border-color: var(--accent-line);
  background: rgba(255,255,255,.055);
}

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

.button.primary {
  width: 100%;
  background: linear-gradient(180deg, #35e7ad 0%, #25d69c 100%);
  border-color: transparent;
  color: #03100b;
  font-weight: 600;
}

.button.ghost {
  color: var(--muted);
  background: transparent;
}

.grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.desk-form,
form {
  display: grid;
  gap: 22px;
}

.field,
label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 500;
}

.field > span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background-color: var(--field);
  color: var(--text);
  padding: 13px 15px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.018);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted-2);
  opacity: .9;
  font-weight: 400;
}

input:hover,
select:hover,
textarea:hover {
  background-color: var(--field-hover);
  border-color: var(--line-strong);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 3px rgba(40,224,163,.08);
}

select {
  color-scheme: dark;
  cursor: pointer;
  font-weight: 500;
}

select option,
select optgroup {
  background: #091015;
  color: var(--text);
  font-weight: 400;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

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

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

.support-summary-box,
.support-details-box,
.details-panel {
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  padding: 18px;
  background: rgba(255,255,255,.018);
  box-shadow: none;
}

.support-summary-box textarea { margin-top: 14px; }

.section-heading {
  display: grid;
  gap: 4px;
  margin-bottom: 4px;
}

.section-heading h2,
.section-heading p { margin: 0; }

.section-heading h2 {
  color: var(--text-soft);
  font-size: 21px;
  line-height: 1.2;
  font-weight: 600;
}

.section-heading.slim { margin-bottom: 14px; }

.section-heading p { font-size: 14px; }

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.form-errors,
.message.error {
  border: 1px solid rgba(255,107,107,.45);
  background: var(--danger-soft);
  color: #ffd6d6;
  border-radius: 16px;
  padding: 14px 16px;
}

.receipt {
  white-space: pre-wrap;
  background: rgba(0,0,0,.24);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  margin-top: 22px;
}

dl {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 8px 18px;
  margin: 0;
}

dt {
  color: var(--muted);
  font-weight: 500;
}

dd { margin: 0; }

.timeline {
  color: var(--muted);
  padding-left: 22px;
  margin-bottom: 0;
}

.timeline li { margin: 8px 0; }

.timeline strong {
  color: var(--muted);
  font-weight: 600;
}

.errorlist {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  color: #ffd6d6;
  font-weight: 500;
}

.messages {
  display: grid;
  gap: 12px;
  margin: 0 auto 16px;
  max-width: 720px;
}

.compact-card {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.separate-card { margin-top: 26px; }

.turnstile { min-height: 65px; }

@media (max-width: 760px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .page { padding: 22px 16px 48px; }

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

  .hero-card,
  .form-card,
  .ticket-card,
  .panel {
    padding: 24px;
    border-radius: 22px;
  }

  .hero-card h1,
  .form-card h1 {
    font-size: clamp(34px, 10vw, 46px);
  }

  dl {
    grid-template-columns: 1fr;
    gap: 2px 0;
  }
}
