/* Global BonusAxiom UI primitives */
:root {
  --bg: #040610;
  --bg-soft: rgba(10, 14, 30, 0.82);
  --bg-panel: rgba(8, 12, 24, 0.92);
  --card: rgba(14, 20, 42, 0.86);
  --border: rgba(255, 255, 255, 0.08);
  --accent: #7df9ff;
  --accent-2: #f9a825;
  --text: #f8fbff;
  --muted: rgba(248, 251, 255, 0.7);
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 25px 45px rgba(3, 8, 25, 0.55);
  --transition: all 0.25s ease;
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-2);
}

.grid-aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(125, 249, 255, 0.12), transparent 45%),
    radial-gradient(circle at 80% 0, rgba(249, 168, 37, 0.14), transparent 55%),
    radial-gradient(circle at 50% 80%, rgba(80, 110, 255, 0.1), transparent 55%);
  filter: blur(45px);
  z-index: -1;
}

.site-shell {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: clamp(16px, 4vw, 32px);
}

.site-header {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px clamp(20px, 6vw, 64px);
  background: rgba(4, 6, 16, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  z-index: 30;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand strong {
  display: block;
  font-size: 17px;
  letter-spacing: 0.02em;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  position: relative;
}

.brand-mark .orbit {
  width: 70%;
  height: 70%;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}

.brand-mark .dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  top: 8px;
  right: 8px;
  animation: pulse 3s linear infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.6; }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav a {
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.language-switch select {
  appearance: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 32px 8px 12px;
  color: var(--text);
  font-size: 0.9rem;
}

.language-switch .chevron {
  position: absolute;
  right: 12px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.hero-shell {
  padding: clamp(32px, 5vw, 48px);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.78rem;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: var(--transition);
}

.btn.primary {
  background: linear-gradient(135deg, #7df9ff, #4fb6ff);
  color: #020308;
  border: none;
}

.btn.ghost {
  border: 1px solid var(--border);
  color: var(--text);
}

.brand-anchors {
  background: rgba(5, 7, 18, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  margin: 48px clamp(20px, 6vw, 64px);
  padding: clamp(24px, 5vw, 48px);
  box-shadow: var(--shadow);
}

.brand-anchors .section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 32px;
}

.brand-anchors .anchor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.anchor-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 18px;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: var(--transition);
}

.anchor-card strong {
  font-size: 1.05rem;
}

.anchor-card p {
  color: var(--muted);
  margin: 0;
}

.anchor-card a {
  align-self: flex-start;
  font-weight: 600;
  color: var(--accent);
}

.anchor-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-4px);
}

.site-footer {
  margin-top: 64px;
  padding: 36px clamp(20px, 6vw, 64px);
  background: radial-gradient(circle at top, rgba(125,249,255,0.08), transparent 55%), rgba(3, 6, 14, 0.95);
  border-top: 1px solid var(--border);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-brand strong {
  font-size: 1.05rem;
}

.footer-brand p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-cta {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.footer-link {
  color: var(--accent);
  font-weight: 600;
}

.footer-link--onbirsoft {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.footer-onbirsoft-mark {
  color: #f9a825;
  background: linear-gradient(120deg, #f6c343, #f9a825, #ffe9a0);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: footer-glint 2.8s linear infinite;
  position: relative;
  display: inline-flex;
  align-items: center;
}

.footer-onbirsoft-mark::after {
  content: '';
  position: absolute;
  top: -10%;
  bottom: -10%;
  left: 0;
  width: 110%;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.85), rgba(255,255,255,0));
  transform: translateX(-100%);
  animation: lightning 2.6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes footer-glint {
  0% { background-position: 0% 20%; }
  50% { background-position: 50% 50%; }
  100% { background-position: 100% 20%; }
}

@keyframes lightning {
  0% { transform: translateX(-100%); opacity: 0; }
  35% { opacity: 1; }
  65% { opacity: 0.9; }
  100% { transform: translateX(100%); opacity: 0; }
}

@media (max-width: 768px) {
  .site-footer {
    text-align: center;
    flex-direction: column;
  }
  .footer-cta {
    text-align: center;
    align-items: center;
  }
  .site-header {
    flex-direction: column;
    gap: 18px;
  }
  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}
