:root {
  --bg: #060a10;
  --text: #e7f2f8;
  --muted: #9eb4c6;
  --faint: #6d879c;
  --line: rgba(150, 200, 230, 0.22);
  --field: #0c141c;
  --accent: #d7ecff;
  --accent-fg: #071018;
  --glow: rgba(120, 190, 255, 0.45);
  --body: "Source Sans 3", system-ui, sans-serif;
  --display: Orbitron, system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.55;
}
.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 12% 0%, rgba(70, 150, 210, 0.16), transparent 48%),
    radial-gradient(ellipse at 100% 100%, rgba(30, 70, 120, 0.12), transparent 46%),
    #060a10;
  background-size: 160% 160%, 140% 140%, 100% 100%;
  animation: drift 36s ease-in-out infinite alternate;
}
.sky svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.45;
}
@keyframes drift {
  from { background-position: 0% 0%, 100% 100%, 0 0; }
  to { background-position: 40% 20%, 60% 70%, 0 0; }
}

.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 3vw;
  background: rgba(6, 10, 16, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.bar-line {
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

main {
  width: min(720px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 3.2rem 0 6.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  text-transform: uppercase;
}
.brand img { filter: drop-shadow(0 0 8px var(--glow)); }
h1 {
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
h1 span { display: block; }
.lede {
  margin-top: 1.25rem;
  color: var(--muted);
  max-width: 38rem;
}
#points {
  list-style: none;
  margin-top: 2.6rem;
}
.point {
  padding: 1.05rem 0;
  border-top: 1px solid var(--line);
  cursor: default;
}
.point:last-child { border-bottom: 1px solid var(--line); }
.point:focus-visible { outline: 1px solid #7eb6de; outline-offset: 4px; }
.point-title {
  display: block;
  margin-bottom: 0.2rem;
  color: #9fd0f2;
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.point p { font-size: 1.2rem; line-height: 1.4; }
.point.on p { color: #fff; }
.detail {
  display: none;
  position: fixed;
  z-index: 18;
  width: 320px;
  padding: 1rem 1.05rem 1.15rem;
  background: rgba(8, 16, 26, 0.96);
  border: 1px solid rgba(150, 205, 245, 0.4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}
.detail.show { display: block; }
.detail-icon svg {
  width: 28px;
  height: 28px;
  stroke: #9fd4ff;
  fill: none;
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.detail h2 {
  margin: 0.55rem 0 0.35rem;
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.detail p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
  margin-top: 0.45rem;
}
.foot {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 11rem 0 3vw;
  background: rgba(8, 14, 22, 0.92);
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.88rem;
}

.dock {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 30;
  width: 168px;
  height: 52px;
  overflow: hidden;
  background: rgba(8, 16, 26, 0.94);
  border-top: 1px solid rgba(150, 205, 245, 0.45);
  border-left: 1px solid rgba(150, 205, 245, 0.45);
  box-shadow: 0 0 0 1px rgba(8, 20, 32, 0.4), 0 0 28px rgba(70, 150, 220, 0.18);
  clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%, 0 16px);
  transition: width 240ms ease, height 240ms ease;
}
.dock.open {
  width: min(440px, 100vw);
  height: min(78vh, 700px);
  overflow: auto;
  clip-path: none;
}
.corner {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 168px;
  height: 52px;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-family: var(--display);
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  text-transform: uppercase;
  cursor: pointer;
}
.corner:hover { color: #fff; text-shadow: 0 0 12px var(--glow); }
.dock.open .corner { background: rgba(8, 18, 28, 0.96); }
.panel {
  display: none;
  padding: 1rem 1rem 4.2rem;
}
.dock.open .panel { display: grid; gap: 0.75rem; }
.panel h2 {
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}
.hint { color: var(--muted); font-size: 0.95rem; line-height: 1.45; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
label {
  display: grid;
  gap: 0.3rem;
  color: var(--faint);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
input, textarea, select {
  width: 100%;
  background: var(--field);
  color: var(--text);
  border: 1px solid var(--line);
  padding: 0.6rem 0.65rem;
  font: 1rem var(--body);
  min-height: 42px;
}
textarea { min-height: 7rem; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 1px solid #7eb6de; }
.composer-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
  color: var(--faint);
  font-size: 0.78rem;
}
.composer-bar span { margin-right: auto; }
.composer-bar button, .quiet {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  font: 0.8rem var(--body);
  min-height: 30px;
  padding: 0 0.5rem;
  cursor: pointer;
}
.btn {
  background: var(--accent);
  color: var(--accent-fg);
  border: 0;
  min-height: 40px;
  padding: 0 1rem;
  font-family: var(--display);
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  text-transform: uppercase;
  cursor: pointer;
}
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.actions { display: flex; align-items: center; gap: 0.6rem; }
#form-status, #turnstile-status { color: var(--muted); font-size: 0.9rem; min-height: 1.1em; flex: 1; }
#turnstile-slot { min-height: 65px; }

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .bar-line { display: none; }
  .dock.open { width: 100vw; }
}
@media (prefers-reduced-motion: reduce) {
  .sky { animation: none; }
  .dock { transition: none; }
}
