/* shadex.css — Unified design language for Shadex Landing, Auth & Dashboard */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --bg: #040404;
  --fg: #ffffff;
  --mut: rgba(255, 255, 255, 0.66);
  --glass: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.10);
  --bd: rgba(255, 255, 255, 0.15);
  --bd-hover: rgba(255, 255, 255, 0.35);
  --accent: #ffffff;
  --accent-glow: rgba(255, 255, 255, 0.35);
  --red: #ef4444;
  --green: #22c55e;
  --yellow: #eab308;
  --purple: #a855f7;
  --cyan: #06b6d4;
  color-scheme: dark;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  height: 100%;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  line-height: 1.55;
  min-height: 100vh;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: none;
  border: none;
}

a, summary {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* Background Glowing Mesh & Spotlight */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  background: #fff;
  animation: drift 22s ease-in-out infinite alternate;
}

.b1 {
  width: 560px;
  height: 560px;
  opacity: 0.12;
  top: -160px;
  left: -120px;
}

.b2 {
  width: 480px;
  height: 480px;
  opacity: 0.08;
  top: 35%;
  right: -160px;
  animation-delay: -8s;
  animation-duration: 28s;
}

.b3 {
  width: 420px;
  height: 420px;
  opacity: 0.06;
  bottom: -140px;
  left: 25%;
  animation-delay: -14s;
}

@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(90px, 60px) scale(1.2); }
  100% { transform: translate(-40px, 110px) scale(0.9); }
}

#glow {
  position: fixed;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 65%);
  z-index: 1;
  pointer-events: none;
  transform: translate(-50%, -50%);
  left: 50%;
  top: 30%;
  transition: transform 0.08s ease-out;
}

/* Glassmorphism Containers */
.glass {
  background: var(--glass);
  border: 1px solid var(--bd);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border-radius: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 24px 70px rgba(0, 0, 0, 0.55);
}

.glass-subtle {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(16px);
  border-radius: 18px;
}

/* Navigation */
nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  margin: 14px auto 0;
  max-width: 1040px;
  width: calc(100% - 28px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 10px 22px;
  border-radius: 999px;
  z-index: 40;
  animation: down .9s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes down {
  from { opacity: 0; transform: translateY(-30px); }
}

.logo {
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 20px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.logo span { opacity: 0.5; font-weight: 400; }

.links {
  display: flex;
  gap: 26px;
  font-size: 14px;
}

.links a {
  color: var(--mut);
  transition: 0.2s;
  position: relative;
}

.links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 1px;
  width: 0;
  background: #fff;
  transition: 0.3s;
}

.links a:hover {
  color: #fff;
}

.links a:hover::after {
  width: 100%;
}

/* Buttons */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--bd);
  color: #fff;
  background: var(--glass);
  backdrop-filter: blur(14px);
  transition: transform .25s, background .25s, box-shadow .25s, border-color .25s;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--bd-hover);
  transform: translateY(-2px);
}

.btn.p {
  background: #fff;
  color: #000;
  border-color: #fff;
  animation: pulse 3s ease-in-out infinite;
}

.btn.p:hover {
  background: #ececec;
  transform: translateY(-2px);
}

.btn.p::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(0, 0, 0, 0.18), transparent);
  transform: skewX(-20deg);
  animation: shine 3.5s infinite;
}

@keyframes shine {
  to { left: 130%; }
}

@keyframes pulse {
  50% { box-shadow: 0 0 50px rgba(255, 255, 255, 0.35); }
  0%, 100% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.12); }
}

.btn.sm {
  padding: 9px 20px;
  font-size: 13px;
}

.btn.danger {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.btn.danger:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #fff;
}

/* Badges and Pills */
.pill {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font: 500 12px "JetBrains Mono", monospace;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--mut);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: blink 1.6s infinite;
}

@keyframes blink {
  50% { opacity: 0.2; transform: scale(0.6); }
}

.mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Icons */
svg.i {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
