/* ────────────────────────────────────────────
   FLOW RP  ·  base.css
   Shared across main site + forum
──────────────────────────────────────────── */

/* GOOGLE FONTS — loaded in HTML */

/* ── TOKENS ─────────────────────────────── */
:root {
  /* surfaces */
  --bg:        #070C13;
  --surf-1:    #0D1420;
  --surf-2:    #111C2C;
  --surf-3:    #172234;

  /* accents */
  --blue:      #3E98FF;
  --blue-d:    #2468CC;
  --blue-glow: rgba(62,152,255,.13);

  /* text */
  --text-1:    #C6D2E8;
  --text-2:    #7888A4;
  --text-3:    #3E4F68;

  /* semantic */
  --green:     #38C47A;
  --amber:     #F2B726;
  --red:       #E03C3C;
  --purple:    #9860E0;

  /* borders */
  --bd:        rgba(255,255,255,.06);
  --bd-b:      rgba(62,152,255,.2);

  /* radius */
  --r-s:  5px;
  --r-m:  9px;
  --r-l:  14px;

  /* type */
  --font-h: 'Unbounded', sans-serif;
  --font-b: 'Mulish', sans-serif;
}

/* ── RESET ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font-family: var(--font-b); }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--blue-d); border-radius: 4px; }

/* ── TOPNAV ──────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: 60px; display: flex; align-items: center;
  justify-content: space-between; padding: 0 44px;
  background: rgba(7,12,19,.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bd);
}
.nav-brand {
  display: flex; align-items: center; gap: 11px; flex-shrink: 0;
}
.nav-logo {
  width: 32px; height: 32px; border-radius: 7px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue), var(--blue-d));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 18px rgba(62,152,255,.32);
}
.nav-logo svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2.2; }
.nav-wordmark {
  font-family: var(--font-h); font-weight: 700; font-size: 13.5px;
  letter-spacing: 1.8px; color: #fff;
}
.nav-links { display: flex; gap: 2px; }
.nav-links a {
  padding: 7px 12px; border-radius: var(--r-s); font-size: 12.5px;
  font-weight: 600; color: var(--text-2); transition: all .15s; letter-spacing: .2px;
}
.nav-links a:hover  { color: var(--text-1); background: rgba(255,255,255,.04); }
.nav-links a.active { color: var(--blue);   background: var(--blue-glow); }
.nav-right { display: flex; align-items: center; gap: 9px; }

/* Nav icon buttons (bell, PM) */
.nav-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: var(--r-s);
  color: var(--text-2); transition: all .15s;
}
.nav-icon-btn:hover { color: var(--text-1); background: rgba(255,255,255,.04); }
.nav-notif-badge {
  position: absolute; top: -2px; right: -4px;
  background: var(--red); color: #fff; font-size: 9px; font-weight: 700;
  min-width: 14px; height: 14px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px; line-height: 1;
}

/* ── BUTTONS ─────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  border: none; cursor: pointer;
  font-family: var(--font-b); font-weight: 700;
  border-radius: var(--r-s); transition: all .18s;
  letter-spacing: .2px; white-space: nowrap; line-height: 1;
}
.btn svg { flex-shrink: 0; }
.btn:disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }

.btn-xs  { padding: 5px 12px;  font-size: 11.5px; }
.btn-sm  { padding: 8px  17px; font-size: 12.5px; }
.btn-md  { padding: 10px 22px; font-size: 13.5px; }
.btn-lg  { padding: 13px 32px; font-size: 15px; }
.btn-full { width: 100%; justify-content: center; }

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-d));
  color: #fff;
  box-shadow: 0 3px 16px rgba(62,152,255,.24);
}
.btn-primary:hover  { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(62,152,255,.38); }
.btn-primary:active { transform: none; }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--bd-b);
  color: var(--blue);
}
.btn-ghost:hover { background: var(--blue-glow); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--bd);
  color: var(--text-1);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-glow); }

.btn-danger {
  background: rgba(224,60,60,.1);
  border: 1px solid rgba(224,60,60,.22);
  color: var(--red);
}
.btn-danger:hover { background: rgba(224,60,60,.18); }

.btn-muted {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--bd);
  color: var(--text-2);
}
.btn-muted:hover { color: var(--text-1); background: rgba(255,255,255,.07); }

/* ── FOOTER ──────────────────────────────── */
footer {
  border-top: 1px solid var(--bd);
  padding: 30px 44px;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-logo {
  font-family: var(--font-h); font-weight: 800;
  font-size: 13px; letter-spacing: 1.2px; color: var(--blue);
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 12px; color: var(--text-2); transition: color .15s; }
.footer-links a:hover { color: var(--text-1); }
.footer-copy { font-size: 11.5px; color: var(--text-3); }

/* ── TYPOGRAPHY HELPERS ──────────────────── */
.tag-label {
  font-size: 10.5px; color: var(--blue); text-transform: uppercase;
  letter-spacing: 2px; font-weight: 700; margin-bottom: 10px;
}
.section-h {
  font-family: var(--font-h);
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 800; letter-spacing: -1px; color: #fff;
}
.section-p { font-size: 15px; color: var(--text-2); line-height: 1.75; max-width: 480px; }

/* ── ANIMATIONS ──────────────────────────── */
@keyframes pulse  { 0%,100% { opacity: 1 } 50% { opacity: .25 } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px) } to { opacity: 1; transform: translateY(0) } }
@keyframes spin   { to { transform: rotate(360deg) } }

.anim { animation: fadeUp .5s ease both; }
.d1 { animation-delay: .08s; }
.d2 { animation-delay: .16s; }
.d3 { animation-delay: .24s; }
.d4 { animation-delay: .32s; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.revealed { opacity: 1; transform: translateY(0); }
