/* Pursuit brand theme — values match pursuit-website/assets/styles.css */
:root {
  --primary: #7c5cff;
  --primary-dark: #5f42e8;
  --primary-soft: #a78bfa;
  --bg: #0b0d10;
  --surface: #171a20;
  --surface-2: #21262f;
  --text: #ffffff;
  --muted: #b6bdc8;
  --muted-2: #8e96a3;
  --line: rgba(255, 255, 255, 0.1);
  --success: #22c55e;
  --danger: #f87171;
  --max: 1180px;
  --radius: 24px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(circle at 50% -20%, rgba(124, 92, 255, 0.28), transparent 42rem), var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img,
svg {
  max-width: 100%;
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 999;
  background: white;
  color: #111;
  padding: 10px 14px;
  border-radius: 10px;
}

.skip-link:focus {
  left: 12px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 13, 16, 0.76);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-mark {
  width: 30px;
  height: 30px;
}

.brand span span {
  color: var(--primary-soft);
}

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

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.93rem;
}

.nav-links a[aria-current="page"] {
  color: white;
}

#market-select {
  height: 36px;
  padding: 0 28px 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background-color: var(--surface-2);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23B6BDC8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

#market-select:hover {
  border-color: var(--primary-soft);
}

#market-select:focus-visible {
  outline: 2px solid var(--primary-soft);
  outline-offset: 2px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: white;
}

.sandbox-badge {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #d7ccff;
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.26);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.sandbox-badge-dot {
  width: 7px;
  height: 7px;
  background: var(--primary-soft);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary-soft);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 999px;
  padding: 13px 20px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, border-color 0.2s, opacity 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:focus-visible {
  outline: 2px solid var(--primary-soft);
  outline-offset: 3px;
}

.btn:disabled {
  cursor: not-allowed;
  transform: none;
  opacity: 0.6;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 14px 34px rgba(124, 92, 255, 0.28);
  color: white;
}

.btn-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  color: var(--muted-2);
  font-size: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

@media (max-width: 700px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    height: auto;
    flex-wrap: wrap;
    padding: 14px 0;
    gap: 12px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 14px;
  }
}
