/* ============================================
   AURA ROBOTICS — base.css
   Reset + Design Tokens
   ============================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-primary);
  background: var(--bg);
  overflow-x: hidden;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 800;
  overflow-wrap: break-word;
}

p {
  overflow-wrap: break-word;
}

/* --- Design Tokens --- */
:root {
  /* Colors — Deep Space Robotics */
  --bg: #0A0E1A;
  --surface: #111833;
  --surface-2: #1A2347;
  --primary: #4A9FFF;
  --primary-hover: #2B7FE0;
  --secondary: #00D4AA;
  --indigo: #6366F1;
  --text-primary: #E8ECF4;
  --text-secondary: #8B95B0;
  --cursor-glow: rgba(74, 159, 255, 0.15);
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.12);
  --cta-gradient: linear-gradient(135deg, #4A9FFF, #6366F1);
  --cta-gradient-hover: linear-gradient(135deg, #2B7FE0, #4F46E5);
  --hero-overlay: linear-gradient(180deg, rgba(10,14,26,0.3) 0%, rgba(10,14,26,0.85) 100%);

  /* Typography */
  --font-display: 'Cabinet Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'Satoshi', system-ui, -apple-system, sans-serif;

  /* Type Scale (fluid clamp) */
  --text-xs: clamp(0.6875rem, 0.65rem + 0.15vw, 0.75rem);       /* 11-12px */
  --text-sm: clamp(0.75rem, 0.7rem + 0.2vw, 0.875rem);          /* 12-14px */
  --text-base: clamp(0.875rem, 0.825rem + 0.25vw, 1rem);        /* 14-16px */
  --text-md: clamp(1rem, 0.925rem + 0.35vw, 1.125rem);          /* 16-18px */
  --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);            /* 18-20px */
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);           /* 20-24px */
  --text-2xl: clamp(1.5rem, 1.2rem + 1.25vw, 2rem);             /* 24-32px */
  --text-3xl: clamp(2rem, 1.5rem + 2vw, 2.75rem);               /* 32-44px */
  --text-4xl: clamp(2.5rem, 1.75rem + 3vw, 3.5rem);             /* 40-56px */
  --text-hero: clamp(3rem, 2rem + 4vw, 5rem);                   /* 48-80px */

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Layout */
  --container: min(1280px, calc(100% - 2 * var(--gutter)));
  --gutter: clamp(16px, 4vw, 40px);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 30px rgba(74,159,255,0.15);
  --shadow-glow-strong: 0 0 60px rgba(74,159,255,0.25);
}

/* --- Utility --- */
.container {
  width: var(--container);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transition: opacity 0.8s var(--ease-out);
}
.fade-in.visible {
  opacity: 1;
}

/* 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;
  }
  .fade-in {
    opacity: 1;
  }
}

/* Selection */
::selection {
  background: rgba(74, 159, 255, 0.3);
  color: var(--text-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--surface-2);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}
