/* Base styles and design tokens */
:root {
  --bg: #0b1220;
  --surface: #0f1a2e;
  --surface-2: #0c1627;
  --text: #e7eefc;
  --muted: #93a4bb;
  --primary: #5b8cff;
  --primary-700: #3f6fe0;
  --border: #21314b;
  --danger: #ff5c5c;
  --success: #2ecc71;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  /* Layered cosmic-dark background with soft glows */
  background:
    radial-gradient(1200px 600px at 50% -200px, rgba(56, 87, 160, 0.18), transparent 60%),
    radial-gradient(800px 500px at 100% 0%, rgba(91, 140, 255, 0.18), transparent 40%),
    radial-gradient(700px 400px at 0% 0%, rgba(45, 79, 150, 0.16), transparent 45%),
    var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.45;
}

img { max-width: 100%; display: block; }

.container {
  max-width: 720px;
  padding: 28px 16px 44px;
  margin: 0 auto;
}

.brand.top {
  display: flex;
  justify-content: center;
  padding: 20px 0 6px;
}

.brand-logo {
  width: clamp(200px, 26vw, 280px);
  height: auto;
  opacity: 0.95;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.25));
  animation: logoFloat 6s ease-in-out infinite;
}

.header {
  text-align: center;
  margin-bottom: 14px;
}

.title {
  margin: 0 0 4px 0;
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 36px);
  letter-spacing: 0.1px;
  color: var(--text);
}

.subtitle {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

/* Card visuals live in form.css */

.status {
  margin-top: 8px;
  color: var(--muted);
  min-height: 18px;
  text-align: center;
}

.hidden { display: none; }

/* Buttons and spinners live in form.css */

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Button hover animation lives in form.css */

/* Result card reveal lives in post.css */

@keyframes logoFloat {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0px); }
}

@keyframes fadeSlideIn {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Links */
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Footer */
.footer {
  text-align: center;
  color: var(--muted);
}


