/* SpaceRobit5 — pure HTML/CSS stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  --background: hsl(230 35% 5%);
  --foreground: hsl(40 25% 94%);
  --card: hsl(230 30% 8%);
  --primary: hsl(38 95% 55%);
  --primary-foreground: hsl(230 35% 5%);
  --secondary: hsl(230 25% 14%);
  --muted: hsl(230 25% 14%);
  --muted-foreground: hsl(230 12% 62%);
  --border: hsl(230 20% 18%);
  --star: hsl(40 40% 85%);
  --radius: 0.75rem;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Space Grotesk", sans-serif;
  overflow-x: hidden;
}

.font-display { font-family: "Orbitron", sans-serif; }

a { color: inherit; }

/* Starfield backdrop */
@keyframes starfield-drift {
  from { background-position: 0 0, 0 0, 0 0; }
  to { background-position: -600px 300px, -300px 200px, -150px 100px; }
}

.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
  background-image:
    radial-gradient(1px 1px at 20% 30%, hsl(var(--star)) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 70% 60%, hsl(var(--star)) 50%, transparent 50%),
    radial-gradient(1px 1px at 40% 80%, hsl(var(--star)) 50%, transparent 50%);
  background-size: 600px 600px, 400px 400px, 250px 250px;
  animation: starfield-drift 120s linear infinite;
}

.fade-bottom {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, transparent 60%, var(--background));
}

.glow {
  position: fixed;
  left: 50%;
  top: -10%;
  width: 900px;
  height: 500px;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
  opacity: 0.3;
  filter: blur(64px);
  border-radius: 9999px;
  background: radial-gradient(circle, hsl(var(--primary) / 0.5), transparent 70%);
}

@media (prefers-reduced-motion: reduce) {
  .starfield { animation: none; }
}

/* Layout */
.shell {
  position: relative;
  z-index: 10;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
header.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.5rem;
  max-width: 80rem;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--foreground);
}

.brand img {
  height: 2.25rem;
  width: 2.25rem;
  border-radius: 0.5rem;
  object-fit: cover;
}

.brand-name {
  font-family: "Orbitron", sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
}

.brand-name:hover { color: var(--primary); }

/* Main */
main { flex: 1 1 auto; }

.hero {
  text-align: center;
  padding: 2rem 1.5rem 6rem;
  max-width: 48rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .hero { padding-top: 4rem; }
}

.tagline {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--muted-foreground);
}

h1.headline {
  font-family: "Orbitron", sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
}

@media (min-width: 640px) {
  h1.headline { font-size: 3.75rem; }
}

.headline .accent { color: var(--primary); }

.subtext {
  max-width: 36rem;
  margin: 1.25rem auto 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

@media (min-width: 640px) {
  .subtext { font-size: 1.125rem; }
}

/* Name showcase */
.showcase-label {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--muted-foreground);
  margin: 3rem 0 1.5rem;
}

.name-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 48rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .name-grid { grid-template-columns: repeat(2, 1fr); }
}

.name-card {
  border: 1px solid var(--border);
  background: hsl(var(--card) / 0.7);
  backdrop-filter: blur(12px);
  border-radius: 1rem;
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.name-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.name-card .who {
  font-family: "Orbitron", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

@media (min-width: 640px) {
  .name-card .who { font-size: 1.75rem; }
}

.name-card .title {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-style: italic;
  color: var(--primary);
}

.note {
  max-width: 36rem;
  margin: 2rem auto 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 28rem;
  margin: 2.5rem auto;
}

.divider .line {
  height: 1px;
  flex: 1;
  background: var(--border);
}

.divider .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--muted-foreground);
}

/* Footer */
footer.site-footer {
  position: relative;
  z-index: 10;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem 2.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

footer.site-footer a {
  color: var(--muted-foreground);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

footer.site-footer a:hover { color: var(--primary); }

/* 404 page */
.not-found {
  max-width: 42rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 8rem;
  text-align: center;
}

.not-found-code {
  margin: 0 0 1rem;
  color: var(--primary);
  font-family: "Orbitron", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.not-found h1 {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.not-found h1 .accent { color: var(--primary); }

.not-found-copy {
  max-width: 31rem;
  margin: 1.25rem auto 0;
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.7;
}

.not-found-action {
  margin-top: 2rem;
  text-decoration: none;
}

@media (min-width: 640px) {
  .not-found { padding-top: 7rem; }
  .not-found h1 { font-size: 3.75rem; }
  .not-found-copy { font-size: 1.125rem; }
}

/* About page */
.about {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 6rem;
}

@media (min-width: 640px) {
  .about { padding-top: 3rem; }
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.about h1 {
  font-family: "Orbitron", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}

@media (min-width: 640px) {
  .about h1 { font-size: 3rem; }
}

.about h1 .accent { color: var(--primary); }

.card-panel {
  margin-top: 2rem;
  border: 1px solid var(--border);
  background: hsl(var(--card) / 0.7);
  backdrop-filter: blur(12px);
  border-radius: 1rem;
  padding: 2rem;
}

.card-panel p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
}

@media (min-width: 640px) {
  .card-panel p { font-size: 1.125rem; }
  .privacy-policy .card-panel h2 { font-size: 1.125rem; }
}

.card-panel p + p { margin-top: 1.25rem; color: var(--muted-foreground); }

.privacy-policy .subtext {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.privacy-policy .card-panel h2 {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.privacy-policy .card-panel h2:not(:first-child) { margin-top: 2rem; }

.privacy-policy .card-panel p { color: var(--muted-foreground); }

.privacy-policy .card-panel p a {
  color: var(--primary);
  text-underline-offset: 2px;
}

.about h2 {
  font-family: "Orbitron", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 3rem 0 0;
}

@media (min-width: 640px) {
  .about h2 { font-size: 1.5rem; }
}

.about .sub {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Form */
form.feedback-form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border: 1px solid var(--border);
  background: hsl(var(--card) / 0.7);
  backdrop-filter: blur(12px);
  border-radius: 1rem;
  padding: 2rem;
}

.field { display: flex; flex-direction: column; gap: 0.5rem; }

.field label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: hsl(var(--background) / 0.6);
  color: var(--foreground);
  font-family: inherit;
  font-size: 0.875rem;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--muted-foreground); }

.field input:focus,
.field textarea:focus { border-color: var(--primary); }

.field textarea { resize: none; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: "Orbitron", sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.875rem 2rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.btn-primary:hover { transform: translateY(-2px); }
.btn-primary:active { transform: scale(0.98); }

.form-note {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-align: center;
}

/* Name forge */
.is-hidden { display: none !important; }

.forge {
  max-width: 32rem;
  margin: 2.5rem auto 0;
  text-align: center;
}

.forge-modes {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: hsl(var(--card) / 0.6);
  backdrop-filter: blur(12px);
  margin: 0 auto 1.25rem;
}

.forge-mode {
  border: none;
  background: transparent;
  color: var(--muted-foreground);
  font-family: "Orbitron", sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 0.5rem 1.1rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.forge-mode:hover { color: var(--foreground); }

.forge-mode.is-active {
  background: var(--primary);
  color: var(--primary-foreground);
}

.forge-panel {
  border: 1px solid var(--border);
  background: hsl(var(--card) / 0.7);
  backdrop-filter: blur(12px);
  border-radius: 1rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.forge-actions {
  display: flex;
  justify-content: center;
}

.forge-result {
  position: relative;
  text-align: center;
  animation: forge-pop 0.3s ease-out;
}

@keyframes forge-pop {
  from { opacity: 0; transform: translateY(6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .forge-result { animation: none; }
}

.btn-copy {
  margin-top: 1rem;
  border: 1px solid var(--border);
  background: hsl(var(--background) / 0.6);
  color: var(--muted-foreground);
  font-family: "Orbitron", sans-serif;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.btn-copy:hover { color: var(--primary); border-color: var(--primary); }
