/* ==========================================================================
   Base Reset & Accessibility Defaults
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Accounts for navbar height when scrolling to anchors */
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
}

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

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

button, input, textarea, select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

/* Accessibility Focus Outlines */
:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 4px;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

/* Button Base Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--border-radius-pill);
  transition: transform var(--transition-normal), background-color var(--transition-normal), box-shadow var(--transition-normal);
  cursor: pointer;
  min-height: 48px; /* Mobile touch accessibility standard */
}

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

.btn-primary {
  background-color: var(--accent-primary);
  color: var(--text-inverse);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
  background-color: var(--accent-primary-hover);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.45);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color-hover);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--text-primary);
}

.btn-amazon-store {
  background-color: var(--bg-surface);
  color: var(--accent-secondary);
  border: 1px solid rgba(129, 140, 248, 0.3);
  padding: 0.6rem 1.25rem;
  font-size: 0.95rem;
}

.btn-amazon-store:hover {
  background-color: rgba(129, 140, 248, 0.1);
  border-color: var(--accent-secondary);
}

/* Battery Efficiency & Vestibular Accessibility */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .btn:hover {
    transform: none;
  }
}
