/* ===== Khorezmai brand theme =====
   Ranglar logotipdan olindi:
   - cyan  #50B3DE  (yuqori gradient)
   - blue  #5E91DB  (o'rta gradient)
   - purple#6E7DD9  (past gradient)
   - gold  #EDBC42  (tugun / accent) */
:root {
  --brand-cyan:   #50B3DE;
  --brand-blue:   #5E91DB;
  --brand-purple: #6E7DD9;
  --brand-gold:   #EDBC42;

  --primary:      #4C7FE0;
  --primary-dark: #3A63C4;
  --accent:       #EDBC42;
  --accent-dark:  #D9A62C;

  --brand-gradient: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-blue) 45%, var(--brand-purple) 100%);

  --bg:        #f6f8fc;
  --surface:   #ffffff;
  --ink:       #0f172a;
  --muted:     #64748b;
  --border:    rgba(15, 23, 42, .08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:      #0b1120;
    --surface: #111a2e;
    --ink:     #e8eefc;
    --muted:   #93a1bd;
    --border:  rgba(255, 255, 255, .10);
  }
}

* { box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
}

/* ===== Header / topbar ===== */
.topbar {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .85rem 1.25rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: inherit;
}
.brand__logo { height: 38px; width: auto; display: block; }
.brand__name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.01em;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Main hero ===== */
main {
  flex: 1;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
}
.hero__logo {
  width: 160px;
  max-width: 42vw;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(94, 145, 219, .35));
  animation: floaty 4s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
h1 {
  margin: 1.25rem 0 .5rem;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: -.02em;
}
main p { color: var(--muted); margin: .35rem 0; max-width: 34rem; }

.status {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.5rem;
  padding: .5rem .9rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent);
  color: var(--ink);
  font-size: .95rem;
}

/* ===== Footer ===== */
.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 1rem;
  color: var(--muted);
  font-size: .85rem;
  border-top: 1px solid var(--border);
}
.footer__logo { height: 20px; width: auto; opacity: .9; }

/* ===== Splash / loading ===== */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--brand-gradient);
  transition: opacity .5s ease, visibility .5s ease;
}
.splash__logo {
  width: 140px;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .25));
  animation: pop .7s ease both, floaty 3s ease-in-out .7s infinite;
}
.splash__name {
  margin-top: 1rem;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.splash.hidden { opacity: 0; visibility: hidden; }
@keyframes pop {
  0%   { transform: scale(.85); opacity: 0; }
  100% { transform: scale(1);   opacity: 1; }
}
.splash__inner { display: grid; justify-items: center; }
