:root {
  --nova-bg: #06101c;
  --nova-surface: #0d1b2d;
  --nova-card: #12263d;
  --nova-line: #2a4a6a;
  --nova-text: #eef6ff;
  --nova-muted: #9db6ce;
  --nova-accent: #3b9bff;
  --nova-ok: #3ad15a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 50% -10%, rgba(59, 155, 255, 0.18), transparent 42%),
    var(--nova-bg);
  color: var(--nova-text);
  font-family: "Segoe UI", Tahoma, sans-serif;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--nova-bg);
  text-align: center;
  padding: 24px;
}

.boot-screen.is-done { display: none; }

.home {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 80px;
}

.brand-kicker {
  margin: 0;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nova-accent);
  font-size: 0.75rem;
}

.home-header h1,
.boot-screen .brand-kicker + p {
  margin: 6px 0 0;
}

.greeting {
  margin: 8px 0 0;
  color: var(--nova-muted);
  font-size: 1.15rem;
}

.command-card,
.brain-card,
.results-card,
.tile {
  background: var(--nova-surface);
  border: 1px solid var(--nova-line);
  border-radius: 18px;
  padding: 20px;
  margin-top: 20px;
}

#command-input {
  width: 100%;
  border: 1px solid var(--nova-line);
  background: #081422;
  color: var(--nova-text);
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 1.05rem;
}

.command-actions,
.login-grid,
.destinations {
  display: grid;
  gap: 12px;
}

.command-actions {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-top: 14px;
}

.destinations {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 24px;
}

.tile { margin-top: 0; min-height: 180px; }
.tile.later { opacity: 0.82; }
.tile .button { min-height: 44px; }

button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  padding: 11px 14px;
  background: var(--nova-accent);
  color: #041018;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.secondary, .button.secondary {
  background: transparent;
  color: var(--nova-text);
  border: 1px solid var(--nova-line);
}

.later-label {
  display: inline-block;
  margin-top: 10px;
  color: var(--nova-ok);
  font-size: 0.85rem;
}

.hint, .tile p { color: var(--nova-muted); }
.hidden { display: none !important; }

.banner {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #3a2030;
}

.banner.ok { background: #16351f; }

#brain-output, #search-results {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-height: 72px;
}

.login-grid { grid-template-columns: 1fr 1fr auto; margin-top: 12px; }

input {
  width: 100%;
  border: 1px solid var(--nova-line);
  background: #081422;
  color: var(--nova-text);
  border-radius: 8px;
  padding: 10px;
}

@media (max-width: 720px) {
  .home { width: min(100% - 24px, 720px); padding-top: 16px; }
  .greeting { font-size: 1rem; }
  .login-grid { grid-template-columns: 1fr; }
  .home-header { flex-wrap: wrap; }
}

@media (min-width: 1280px) {
  .home { width: min(1280px, calc(100% - 48px)); }
  .command-card { padding: 28px; }
}

@media (min-width: 1600px) {
  .home { width: min(1440px, calc(100% - 64px)); }
}
