/* ==========================================================================
   BF Connect Base Styles (base.css)
   Clean reset, typography, ambient background, zero horizontal overflow.
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  line-height: 1.5;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text-1);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--trans-smooth), color var(--trans-smooth);
}

/* Ambient glow pseudo-elements */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 680px;
  background: var(--glow-ambient);
  pointer-events: none;
  z-index: 0;
  transition: background var(--trans-smooth);
}

body::after {
  content: '';
  position: fixed;
  bottom: -200px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transition: background var(--trans-smooth);
}

/* Selection */
::selection {
  background: var(--accent);
  color: var(--accent-text);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: var(--radius-pill);
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-3);
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-1);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

p {
  color: var(--text-2);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--trans-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

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

/* Layout container */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .container {
    padding: 0 32px;
  }
}

/* Accessibility / Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .animated-pulse {
    display: none !important;
  }
  .globe-static-fallback {
    display: block !important;
  }
}
