@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #0c0b0a;
  --bg-elevated: #161311;
  --bg-card: #151210;
  --border: #2b2622;
  --border-soft: #221f1b;

  --text: #f3ede4;
  --text-muted: #9c9088;
  --text-dim: #6f6653;

  --accent: #ff7a1f;
  --accent-bright: #ff9a4d;
  --accent-dim: #7a3f18;

  --error: #d9695a;
  --success: #8fae6a;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --radius: 10px;
  --radius-sm: 6px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 900px 500px at 20% -10%, rgba(255, 122, 31, 0.09), transparent),
    radial-gradient(ellipse 700px 500px at 90% 10%, rgba(255, 122, 31, 0.06), transparent);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  color: var(--text);
  letter-spacing: -0.01em;
}

a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
  border-radius: 4px;
}
::selection { background: var(--accent); color: #12100e; }

.inline-link { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 3px; }
.inline-link:hover { color: var(--accent); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin: 0 0 0.9rem;
}

.section-inner { max-width: 640px; margin: 0 auto; padding: 0 1.5rem 6rem; }

/* ---------- HERO ---------- */

.hero { border-bottom: 1px solid var(--border-soft); }

.hero-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 5rem 1.5rem 3.5rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  line-height: 1.1;
  text-shadow: 0 0 40px rgba(255, 122, 31, 0.25);
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 48ch;
  margin: 1.1rem auto 0;
}

/* ---------- FORM ---------- */

.form-section { padding-top: 3.5rem; }

#appeal-form {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.field { display: flex; flex-direction: column; gap: 0.5rem; }

.field label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.field .req { color: var(--accent-bright); }

.field-hint {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: -0.2rem 0 0.1rem;
}

input[type="text"], select, textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  resize: vertical;
}

input[type="text"]::placeholder, textarea::placeholder { color: var(--text-dim); }

input[type="text"]:focus, select:focus, textarea:focus {
  border-color: var(--accent-dim);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239c9088' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 16px;
  padding-right: 2.4rem;
}

/* honeypot: visually hidden, but present in the DOM/tab order avoided */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- BUTTON ---------- */

.btn {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, opacity 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--accent); color: #1a1409; }
.btn-primary:hover { background: var(--accent-bright); }
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ---------- STATUS MESSAGE ---------- */

.form-status {
  margin: 0;
  font-size: 0.9rem;
  min-height: 1.2em;
}

.form-status[data-state="success"] { color: var(--success); }
.form-status[data-state="error"] { color: var(--error); }

@media (max-width: 600px) {
  .hero-inner { padding: 3.5rem 1.25rem 2.5rem; }
  #appeal-form { padding: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover { transform: none; }
}