/* Shared — all pages */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --bg-deep: #060a14;
  --bg: #0b1220;
  --bg-elevated: #0f172a;
  --bg-card: #111827;
  --border: #1e293b;
  --border-soft: #334155;
  --text: #e5e7eb;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent: #6366f1;
  --accent-2: #06b6d4;
  --accent-glow: rgba(99, 102, 241, 0.35);
  --link: #38bdf8;
  --scrollbar-track: #0b1220;
  --scrollbar-thumb: #334155;
  --scrollbar-thumb-hover: #475569;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --font: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  --header-h: 56px;
  --site-max: 1280px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

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

/** Plain support email — visible when Cloudflare obfuscates mailto links. */
.contact-email {
  display: inline;
  white-space: nowrap;
}

.contact-email__plain {
  font-weight: 500;
  color: #e2e8f0;
}

.contact-email__action {
  margin-left: 0.35em;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.55;
}

/* Consistent custom scrollbar across app UI (Chromium + Firefox). */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

*::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 999px;
  border: 2px solid var(--scrollbar-track);
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(6, 182, 212, 0.08), transparent),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 100%);
  pointer-events: none;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: #7dd3fc;
}

.site-nav-auth {
  font-size: 0.75rem;
  font-weight: 600;
  color: #34d399;
  white-space: nowrap;
}

/* Top site header — all 3 pages */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header-inner {
  max-width: var(--site-max);
  margin: 0 auto;
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #f8fafc;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.site-brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  flex-shrink: 0;
  display: block;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(51, 65, 85, 0.5);
}

.site-nav a.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.5), rgba(6, 182, 212, 0.35));
  border: 1px solid rgba(99, 102, 241, 0.4);
}

.site-footer {
  padding: 20px 0 32px;
  font-size: 13px;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
}

.site-footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: space-between;
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--link);
}

.site-footer-dot {
  color: var(--border-soft);
  user-select: none;
}

/* Shared page container — all pages (1280px) */
.site-container {
  width: 100%;
  max-width: var(--site-max);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.site-page-shell {
  padding-top: 40px;
  padding-bottom: 48px;
}

.site-page-shell--app {
  padding-top: 16px;
  padding-bottom: 16px;
}

@media (max-width: 520px) {
  .site-header-inner {
    padding: 0 12px;
  }
  .site-nav a {
    padding: 5px 10px;
    font-size: 12px;
  }
}
