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

:root {
  color-scheme: dark;
  --bg: #060911;
  --bg-alt: #0a0f1a;
  --card: #0d1320;
  --card-hover: #121a2b;
  --border: #1c2638;
  --text: #eef4fb;
  --text-dim: #8b98ad;
  /* The logo's three colours: sky blue letters, gold claws, a silver rim. */
  --accent: #62b3f2;
  --accent-strong: #a8dafd;
  --accent-2: #f6c643;
  --accent-rgb: 98, 179, 242;
  --gold-rgb: 246, 198, 67;
  --silver-rgb: 170, 181, 196;
  --on-accent: #04101c;
  --on-gold: #1a1204;
  --outline: #07090d;
  --rim: #5c6570;
  --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: "Rubik", "Manrope", system-ui, sans-serif;
  font-weight: 700;
  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;
}

/* Faint sky-blue glow top-left, gold glow bottom-right: the logo's colours. */
.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(--gold-rgb), 0.09), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

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

/* The logo: beveled blue ВСЕ РЫНКИ in a black outline and silver rim, gold claws behind (logo.svg, logo-full.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) 45%, 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: linear-gradient(180deg, #ffe38a, var(--accent-2) 55%, #e2a526);
  color: var(--on-gold);
  border: 2px solid var(--outline);
  box-shadow: 0 3px 0 var(--rim);
  font: inherit;
  font-weight: 800;
  font-size: 15px;
  padding: 10px 22px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.waitlist-form button:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 4px 0 var(--rim); }
.waitlist-form button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--rim); }

.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; }
}
