:root {
  --bg: #0c0f0e;
  --bg-elevated: #131816;
  --bg-surface: #181f1c;
  --bg-nav: rgba(12, 15, 14, 0.82);
  --text: #f4f6f5;
  --text-muted: #98a39d;
  --text-dim: #8c9892;
  --border: rgba(244, 246, 245, 0.1);
  --border-strong: rgba(244, 246, 245, 0.2);
  --emerald: #2ecc71;
  --emerald-deep: #1e5c3f;
  --emerald-glow: rgba(46, 204, 113, 0.14);
  --amber: #f59e0b;
  --red: #ef4444;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  scrollbar-color: var(--emerald-deep) var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Archivo", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--emerald);
  color: #08120c;
}

:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 3px;
}

.container {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

.navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 8px 10px 8px 14px;
  border-radius: 9999px;
  background: var(--bg-nav);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.app-icon-img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: block;
  object-fit: cover;
}

.app-icon-img-lg {
  width: 44px;
  height: 44px;
  border-radius: 11px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.18s ease;
}

.nav-links a:hover { color: var(--text); }

@keyframes btn-beam-fluid {
  0% { top: 0%; left: 50%; }
  19% { top: 0%; left: calc(100% - 18px); }
  25% { top: 50%; left: 100%; }
  31% { top: 100%; left: calc(100% - 18px); }
  50% { top: 100%; left: 50%; }
  69% { top: 100%; left: 18px; }
  75% { top: 50%; left: 0%; }
  81% { top: 0%; left: 18px; }
  100% { top: 0%; left: 50%; }
}

.btn-primary {
  --btn-fond: #131b17;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease;
}

.btn-primary::before {
  content: "";
  position: absolute;
  width: 86px;
  height: 86px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, rgba(46, 204, 113, 0.9) 38%, rgba(46, 204, 113, 0.25) 65%, transparent 78%);
  z-index: -2;
  pointer-events: none;
  animation: btn-beam-fluid 4s linear infinite;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 9999px;
  background: var(--btn-fond);
  z-index: -1;
  pointer-events: none;
}

.btn-primary:hover {
  transform: translateY(-1px);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

.btn-primary:hover::before {
  width: 220px;
  height: 220px;
  filter: blur(14px);
}

.btn-primary:hover::after {
  background: radial-gradient(circle 140px at var(--mx, 50%) var(--my, 50%), rgba(46, 204, 113, 0.35) 0%, rgba(19, 36, 27, 0.9) 55%, #131b17 100%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.btn-primary.is-tracking::before {
  animation: none;
  left: var(--mx, 50%);
  top: var(--my, 50%);
}

.btn-nav { padding: 8px 16px; font-size: 13px; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 9999px;
  background: var(--bg-surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border-strong);
  transition: transform 0.2s var(--ease-out), border-color 0.18s ease;
}

.btn-secondary:hover {
  transform: translateY(-1px);
  border-color: var(--emerald);
}
