/* Stili generali */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #020617;
  color: #e5e7eb;
}

/* Topbar / navbar */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 32px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid #1f2937;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  font-weight: 600;
  font-size: 1.1rem;
  color: #f9fafb;
}

.topbar nav a {
  margin-left: 18px;
  text-decoration: none;
  color: #cbd5f5;
  font-size: 0.95rem;
  position: relative;
}

.topbar nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: #3b82f6;
  transition: width 0.2s ease;
}

.topbar nav a:hover::after {
  width: 100%;
}

/* Hero / contenuto principale */

.hero {
  min-height: calc(100vh - 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.hero-content {
  max-width: 640px;
}

.hero h1 {
  font-size: 2.3rem;
  margin-bottom: 12px;
  color: #f9fafb;
}

.hero p {
  color: #9ca3af;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Bottone principale */

.primary-btn {
  display: inline-block;
  margin-top: 18px;
  padding: 12px 22px;
  background: #3b82f6;
  color: white;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.5);
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.2s ease;
}

.primary-btn:hover {
  background: #2563eb;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.45);
}

.primary-btn:active {
  transform: translateY(1px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.7);
}

/* Card per la pagina di test */

.card {
  background: #020617;
  padding: 24px 28px;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  max-width: 420px;
  width: 100%;
  border: 1px solid #1f2937;
}

.card h1 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.5rem;
  color: #f9fafb;
}

.card p {
  margin-top: 0;
  margin-bottom: 16px;
  color: #9ca3af;
  font-size: 0.95rem;
}

/* Form nella card */

.card label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.card input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #4b5563;
  background: #020617;
  color: #e5e7eb;
  font-size: 1rem;
  margin-bottom: 10px;
}

/* Pulsante nella card */

.card button {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: none;
  background: #2563eb;
  color: white;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.05s ease;
}

.card button:hover {
  background: #1d4ed8;
}

.card button:active {
  transform: translateY(1px);
}

/* Output & status */

#output {
  margin-top: 16px;
  padding: 10px;
  border-radius: 8px;
  background: #020617;
  border: 1px solid #374151;
  min-height: 34px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 0.9rem;
  color: #d1d5db;
  white-space: pre-wrap;
}

.status {
  margin-top: 8px;
  font-size: 0.8rem;
  color: #9ca3af;
}
