/* ─────────────────────────────────────────────────────────────
   mogs.you — base styles, tokens, logo, nav, buttons, toast
   ───────────────────────────────────────────────────────────── */

:root {
  --bg: #05040a;
  --bg2: #0b0916;
  --card: rgba(19, 16, 36, 0.72);
  --card-solid: #141022;
  --card-hover: rgba(28, 23, 52, 0.9);
  --b: #241d42;
  --b-subtle: rgba(168, 85, 247, 0.16);
  --b-glow: rgba(168, 85, 247, 0.45);
  --a: #b77dff;
  --a2: #6d28d9;
  --a3: #c084fc;
  --t: #f5f3ff;
  --m: #9d98be;
  --bad: #f87171;
  --ok: #4ade80;
  --warn: #facc15;
  --r: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--t);
  font: 400 16px/1.65 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  min-height: 100vh;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(124, 58, 237, 0.14), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(79, 70, 229, 0.10), transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle fixed grid, drawn once with CSS gradients (cheap — no blur filters) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 20%, #000 25%, transparent 80%);
  mask-image: radial-gradient(ellipse 75% 60% at 50% 20%, #000 25%, transparent 80%);
}

h1, h2, h3 { font-family: 'Bricolage Grotesque', 'Manrope', system-ui, sans-serif; }

h1 { font-size: clamp(34px, 5.5vw, 60px); line-height: 1.06; letter-spacing: -.035em; margin: 0 0 .4em; font-weight: 800; }
h2 { font-size: clamp(24px, 3.6vw, 38px); line-height: 1.15; letter-spacing: -.025em; margin: 0 0 .5em; font-weight: 800; }
h3 { font-size: 19px; line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }

a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
p.m, .m { color: var(--m); }
.k { font-size: 13px; color: var(--m); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.spacer { flex: 1; }

/* ─── Navigation ───────────────────────────────────────────── */
nav.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 7, 16, 0.82);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--b-subtle);
}
nav.top .wrap { display: flex; align-items: center; gap: 22px; height: 68px; }
.brand-link { display: inline-flex; align-items: center; min-width: 112px; min-height: 40px; color: var(--t); font: 800 19px/1 'Bricolage Grotesque', 'Manrope', sans-serif; }
.brand-image { display: none; width: 112px; height: 38px; object-fit: contain; object-position: left center; }
.brand-link.has-image .brand-image { display: block; }
.brand-link.has-image .brand-text { display: none; }
.links { display: flex; gap: 24px; color: var(--m); font-weight: 600; font-size: 15px; }
.links a { transition: color .18s ease; }
.links a:hover, .links a.on { color: var(--t); }
#mb { display: none; }

/* ─── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--b);
  background: rgba(21, 17, 39, 0.85);
  color: var(--t);
  padding: 10px 20px;
  border-radius: 12px;
  font: 600 15px/1 'Manrope', system-ui, sans-serif;
  cursor: pointer;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { border-color: var(--b-glow); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 24px -8px rgba(168, 85, 247, 0.4); }
.btn:active { transform: translateY(0) scale(.99); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn.p {
  background: linear-gradient(135deg, #b77dff, #6d28d9);
  border-color: rgba(216, 180, 254, 0.35);
  box-shadow: 0 8px 26px -8px rgba(168, 85, 247, 0.6);
  color: #fff;
}
.btn.p:hover { background: linear-gradient(135deg, #c084fc, #7c3aed); box-shadow: 0 12px 32px -8px rgba(168, 85, 247, 0.7); }
.btn.ghost { background: transparent; }
.btn.danger { border-color: rgba(248, 113, 113, 0.35); color: #fca5a5; }
.btn.danger:hover { background: rgba(248, 113, 113, 0.16); color: #fff; border-color: var(--bad); }

/* ─── Badge / pill ─────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(168, 85, 247, 0.4);
  background: rgba(168, 85, 247, 0.12);
  color: #e9d5ff;
  border-radius: 99px;
  padding: 5px 15px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  margin-bottom: 18px;
}
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--a); box-shadow: 0 0 8px var(--a); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  background: #242038;
  color: var(--m);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag.ok { background: rgba(74, 222, 128, 0.14); color: var(--ok); border-color: rgba(74, 222, 128, 0.3); }
.tag.warn { background: rgba(250, 204, 21, 0.14); color: var(--warn); border-color: rgba(250, 204, 21, 0.3); }
.tag.bad { background: rgba(248, 113, 113, 0.14); color: #fca5a5; border-color: rgba(248, 113, 113, 0.3); }

/* ─── Cards ────────────────────────────────────────────────── */
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--b);
  border-radius: var(--r);
  padding: 26px;
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color .25s ease, box-shadow .25s ease, transform .2s ease;
}
.card:hover { border-color: rgba(168, 85, 247, 0.4); }
.card h3 { font-size: 18px; }
.card p { color: var(--m); font-size: 15px; line-height: 1.6; margin: 0; }

.ic {
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(168, 85, 247, 0.4);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(109, 40, 217, 0.1));
  display: grid; place-items: center;
  color: var(--a);
  margin-bottom: 14px;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.18);
}

/* Shared grid + call-to-action row (used across pages) */
.g { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* ─── Footer ───────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--b-subtle);
  padding: 40px 0;
  color: var(--m);
  font-size: 14px;
  margin-top: 40px;
}
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
footer .flinks { display: flex; gap: 20px; flex-wrap: wrap; }
footer a:hover { color: var(--t); }

/* ─── Toast ────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  background: rgba(22, 18, 42, 0.96);
  border: 1px solid var(--a);
  box-shadow: 0 12px 36px -6px rgba(0, 0, 0, 0.7), 0 0 24px rgba(168, 85, 247, 0.35);
  padding: 12px 22px;
  border-radius: 14px;
  z-index: 9999;
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 14px; color: var(--t);
  max-width: min(92vw, 480px);
  animation: toastIn .4s cubic-bezier(.34, 1.56, .64, 1) both;
}
.toast.out { animation: toastOut .28s ease forwards; }
.toast-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--a); box-shadow: 0 0 8px var(--a); flex: none; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 20px) scale(.95); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes toastOut { to { opacity: 0; transform: translate(-50%, 12px) scale(.97); } }

/* ─── Inputs ───────────────────────────────────────────────── */
label { display: block; font-weight: 600; font-size: 14px; margin: 16px 0 6px; color: #e2e0ee; }
input[type=text], input[type=email], input[type=password] {
  width: 100%;
  padding: 12px 14px;
  background: rgba(11, 9, 25, 0.8);
  border: 1px solid var(--b);
  border-radius: 10px;
  color: var(--t);
  font: inherit;
  transition: border-color .2s, box-shadow .2s;
}
input:focus { outline: none; border-color: var(--a); box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.18); }
.er { color: var(--bad); font-size: 13px; min-height: 18px; margin-top: 6px; }
.eye-toggle { position: absolute; right: 4px; top: 4px; width: 38px; height: 38px; padding: 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; }

/* ─── Progress bar ─────────────────────────────────────────── */
.pb { height: 8px; background: rgba(255, 255, 255, 0.08); border-radius: 99px; overflow: hidden; }
.pb i { display: block; height: 100%; background: linear-gradient(90deg, #7c3aed, #a855f7, #c084fc); border-radius: 99px; box-shadow: 0 0 12px rgba(168, 85, 247, 0.55); transition: width .35s ease; }

/* ─── Scroll reveal ────────────────────────────────────────── */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.rv.in { opacity: 1; transform: none; }

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 800px) {
  .links { display: none; }
  .links.open { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--bg2); padding: 18px 24px; border-bottom: 1px solid var(--b); gap: 16px; }
  #mb { display: inline-grid; place-items: center; background: rgba(255,255,255,.05); border: 1px solid var(--b); color: var(--t); border-radius: 10px; font-size: 20px; padding: 6px 12px; cursor: pointer; }
}

/* ─── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rv { opacity: 1 !important; transform: none !important; }
}
