:root {
  color-scheme: dark;
  --bg: #070a10;
  --bg-elev: #0c121c;
  --bg-card: #101826;
  --border: rgba(120, 180, 255, 0.12);
  --border-strong: rgba(120, 200, 255, 0.22);
  --text: #e8eef8;
  --muted: #8090a8;
  --accent: #3dffa8;
  --accent-2: #4cc9ff;
  --danger: #ff6b86;
  --radius: 14px;
  --font: "DM Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --display: "Orbitron", "DM Sans", system-ui, sans-serif;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.grid-bg {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(100, 180, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 180, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 40%, #000 15%, transparent 70%);
  z-index: 0;
}

.glow {
  pointer-events: none;
  position: fixed;
  width: 560px;
  height: 400px;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -40%);
  background: radial-gradient(circle, rgba(61, 255, 168, 0.12), transparent 65%);
  filter: blur(10px);
  z-index: 0;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(440px, calc(100% - 2rem));
  margin: auto;
  padding: 3rem 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2rem;
}

.brand {
  text-align: center;
}

.logo-mark {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 2.75rem);
  letter-spacing: 0.08em;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.35rem;
  background: linear-gradient(165deg, var(--bg-card), var(--bg-elev));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  outline: none;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(76, 201, 255, 0.12);
}

.hp {
  position: absolute !important;
  left: -9999px !important;
  height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.15s, box-shadow 0.15s;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), #2dd4a0);
  color: #04140e;
  box-shadow: 0 0 24px rgba(61, 255, 168, 0.2);
}

.btn.primary:hover {
  filter: brightness(1.05);
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.form-status {
  margin: 0;
  font-size: 0.9rem;
}

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

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