/* Shared base: tokens, page chrome, the logo and the waitlist form. App styles live in app.css. */

:root {
  color-scheme: dark;
  --bg: #05070c;
  --bg-alt: #0a0e16;
  --card: #0e131d;
  --card-hover: #121926;
  --border: #1d2533;
  --text: #eef4fb;
  --text-dim: #8a97aa;
  --accent: #5cc8ff;
  --accent-strong: #9fe0ff;
  --accent-2: #c2268a;
  --accent-rgb: 92, 200, 255;
  --magenta-rgb: 194, 38, 138;
  --on-accent: #041018;
  --success: #34c07a;
  --danger: #f2605a;
  --on-success: #fff;
  --on-danger: #fff;
  --radius: 12px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Space Grotesk", "Manrope", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0; }

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

/* 2001-poster light: icy glow top-left, magenta nebula bottom-right, both faint. */
.bg-glow {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(40% 55% at 0% 10%, rgba(var(--accent-rgb), 0.1), transparent 70%),
    radial-gradient(40% 50% at 100% 100%, rgba(var(--magenta-rgb), 0.12), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

main, .site-footer, .demo-banner { position: relative; z-index: 1; }

/* The logo: ZAVTRA rising behind the Earth's curve, MARKETS on the Earth below (inline SVG). */
.brand { display: inline-flex; flex: none; text-decoration: none; }
.brand-logo { display: block; } /* sized by its width/height attributes */

/* Highlighted words, e.g. "завтра" in the slogan. */
.logo-text {
  background: linear-gradient(155deg, var(--accent-strong), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.waitlist-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 24px auto 0;
  flex-wrap: wrap;
  justify-content: center;
}

.waitlist-form input {
  flex: 1 1 240px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  padding: 12px 16px;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s ease;
}

.waitlist-form input:focus { border-color: var(--accent); }

.waitlist-form button {
  flex: 0 0 auto;
  background: var(--accent);
  color: var(--on-accent);
  border: none;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.waitlist-form button:hover { filter: brightness(1.06); }
.waitlist-form button:active { transform: scale(0.97); }

.form-message {
  min-height: 20px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
}

.form-message.success { color: var(--success); }
.form-message.error { color: var(--danger); }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 20px 48px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}

.site-footer .brand { margin-bottom: 14px; }
.site-footer p { margin-top: 6px; }
.site-footer .fine-print { max-width: 520px; margin: 10px auto 0; opacity: 0.7; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
