:root {
  --night: #111315;
  --ink: #f4f5f7;
  --muted: #8a8f96;
  --faint: #5c6168;
  --line: #2a2e33;
  --red: #ff5a6a;
  --supergraphic: linear-gradient(90deg, #d0021b 0%, #2f5bd3 50%, #1f7a4d 100%);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
html { background: var(--night); color: var(--ink); }
body {
  margin: 0;
  font-family: "Albert Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}
p { margin: 0; }

.stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 72px 28px;
  animation: rise 1.6s ease-out both;
}
.mark { margin: 0 0 40px; }
.mark img { height: 34px; width: auto; display: block; }
.lines p { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.lines .faint, .thanks .faint { color: var(--faint); font-weight: 400; }

.ask {
  margin-top: 44px;
  align-self: flex-start;
  font: inherit;
  font-size: 15px;
  color: var(--muted);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0 0 2px;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
}
.ask:hover, .ask[aria-expanded="true"] { color: var(--ink); border-color: var(--muted); }
.ask::after { content: " →"; }
.ask[aria-expanded="true"]::after { content: ""; }

.invite { margin-top: 32px; animation: rise 0.6s ease-out both; }
form { display: grid; gap: 18px; }
.field { display: grid; gap: 4px; }
label { font-size: 13px; color: var(--muted); letter-spacing: 0.02em; }
input, textarea {
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 6px 0 8px;
  width: 100%;
  transition: border-color 0.2s;
}
input:focus, textarea:focus { outline: none; border-color: var(--muted); }
textarea { resize: vertical; min-height: 72px; }
textarea::placeholder { color: var(--faint); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--red); }
.error, .form-error { color: var(--red); font-size: 13px; }
.error:empty, .form-error:empty { display: none; }

.send {
  justify-self: start;
  margin-top: 6px;
  font: inherit;
  font-weight: 500;
  color: var(--night);
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  padding: 10px 24px;
  cursor: pointer;
}
.send:hover { background: #fff; }
.send:disabled { opacity: 0.5; cursor: progress; }
.ask:focus-visible, .send:focus-visible { outline: 2px solid var(--muted); outline-offset: 4px; }
.kvkk { color: var(--faint); font-size: 12px; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.thanks { display: grid; gap: 2px; font-size: 20px; font-weight: 500; outline: none; }

.bar {
  height: 3px;
  background: var(--supergraphic);
  background-size: 200% 100%;
  opacity: 0.85;
  animation: drift 14s ease-in-out infinite alternate;
}

@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes drift { from { background-position: 0% 0; } to { background-position: 100% 0; } }
@media (prefers-reduced-motion: reduce) {
  .stage, .invite, .bar { animation: none; }
}
@media (max-width: 480px) {
  .stage { padding: 56px 24px; }
  .lines p, .thanks { font-size: 18px; }
}
