/* Sofos Robotics — Base Styles & Typography */

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: var(--nav-height);
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--weight-normal);
  line-height: var(--leading-relaxed);
  color: var(--color-text-body);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

::selection {
  background-color: rgba(26, 140, 48, 0.15);
  color: var(--color-navy);
}

:focus-visible {
  outline: 2px solid var(--color-green);
  outline-offset: 2px;
}

/* --- Typography --- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: -0.03em;
  color: var(--color-navy);
}

h1 { font-size: var(--text-hero); font-weight: var(--weight-extrabold); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  color: var(--color-text-body);
  line-height: var(--leading-relaxed);
  max-width: 65ch;
}

a {
  color: var(--color-navy);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover,
a:active { color: var(--color-green); }

ul, ol { list-style: none; }

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Utility classes --- */

.eyebrow {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-green);
  display: block;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

section {
  padding: var(--space-section) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header h2 {
  margin-top: var(--space-sm);
  margin-bottom: var(--space-md);
}

.section-header p {
  color: var(--color-text-secondary);
  margin: 0 auto;
}

.section-alt {
  background-color: var(--color-surface);
}
