:root {
  --bg: #030303;
  --bg-soft: #0b0b0b;
  --text: #ffffff;
  --muted: #c8c8c8;
  --red: #ff3448;
  --yellow: #ffd93b;
  --blue: #2f74ff;
}

@font-face {
  font-family: "Former";
  src: url("../fonts/former.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

.site-header {
  position: relative;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(3, 3, 3, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.header-inner {
  width: min(1600px, 94vw);
  margin: 0 auto;
  min-height: 118px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 8px clamp(12px, 2.4vw, 28px);
  gap: 12px;
}

.header-spacer {
  min-width: 0;
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-actions a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.header-actions a:hover {
  color: #f5f5f5;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  text-decoration: none;
  color: var(--text);
  -webkit-user-select: none;
  user-select: none;
}

/* Text logo: white + steady glow; not selectable as text */
.logo-text {
  font-family: "Former", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(2rem, 5.2vw, 2.85rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.04em;
  color: #ffffff;
  -webkit-user-select: none;
  user-select: none;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.55),
    0 0 22px rgba(255, 255, 255, 0.35),
    0 0 36px rgba(255, 255, 255, 0.18);
}

.btn {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: #111;
  color: #fff;
  font-weight: 700;
  border-radius: 9px;
  padding: 10px 14px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  font-size: inherit;
  font-family: inherit;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 220ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.12);
}

.btn.primary {
  background: linear-gradient(130deg, rgba(255, 52, 72, 0.22), rgba(47, 116, 255, 0.2)), #0f0f0f;
  border-color: rgba(255, 255, 255, 0.36);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.site-footer {
  margin-top: 32px;
  padding: 14px 0 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: #9a9a9a;
  font-size: 0.88rem;
}

.site-footer a {
  color: #d0d0d0;
}

@media (max-width: 980px) {
  .header-inner {
    min-height: 100px;
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .brand {
    justify-self: center;
    order: -1;
  }

  .header-spacer {
    display: none;
  }

  .header-actions {
    justify-self: center;
  }
}
