:root {
  --bg: #071017;
  --panel: #0b1220;
  --muted: #9aa6b2;
  --accent: #00e6a8;
  --glass: rgba(255, 255, 255, 0.03);
  --error: #ff4d4d;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  background: linear-gradient(180deg, #061018 0%, #041018 60%);
  color: #dbe9ef;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px;
}

.header {
  margin-bottom: 48px;
}

.back-link {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 24px;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--accent);
}

.site-title {
  font-size: clamp(18px, 6.5vw, 48px);
  margin: 0 0 8px;
  color: var(--accent);
  letter-spacing: -0.5px;
  word-break: normal;
}

.site-title .accent {
  color: var(--accent);
}

.site-title::after {
  content: ';';
  color: var(--accent);
  opacity: 0.85;
  margin-left: 6px;
}

.tagline {
  color: var(--muted);
  margin: 0;
  font-size: 18px;
}

.message-form {
  background: var(--panel);
  padding: 32px;
  border-radius: 12px;
  border: 1px solid var(--glass);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.form-group {
  margin-bottom: 24px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--muted);
}

.optional {
  font-size: 12px;
  opacity: 0.6;
}

.required {
  color: var(--accent);
}

input,
textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass);
  border-radius: 8px;
  padding: 12px 16px;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(0, 230, 168, 0.3);
  box-shadow: 0 0 0 4px rgba(0, 230, 168, 0.05);
}

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

button {
  width: 100%;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 14px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
}

button:hover:not(:disabled) {
  background: rgba(0, 230, 168, 0.05);
  box-shadow: 0 6px 20px rgba(0, 230, 168, 0.1);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-status {
  margin-top: 16px;
  font-size: 14px;
  text-align: center;
  min-height: 20px;
}

.form-status.success {
  color: var(--accent);
}

.form-status.error {
  color: var(--error);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2, .9, .3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 640px) {
  .container {
    padding: 40px 20px;
  }

  .message-form {
    padding: 24px;
  }
}