:root {
  /* Design Tokens */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1000px;
  --radius: 8px;

  /* Light Theme (Default) */
  --bg-color: #fdfdfd;
  --bg-secondary: #f3f4f6;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --accent-color: #2563eb;
  --accent-hover: #1d4ed8;
  --border-color: #e5e7eb;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #0a0a0a;
    --bg-secondary: #171717;
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --accent-color: #3b82f6;
    --accent-hover: #60a5fa;
    --border-color: #262626;
  }
}

/* Global Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

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

/* Typography */
h1,
h2,
h3 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
  }
}

/* Layout Utilities */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

/* Navigation */
nav {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-item {
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-item.active {
  color: var(--text-primary);
  font-weight: 600;
}

.logo img {
  height: 32px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--text-primary);
  color: var(--bg-color);
}

.btn-primary:hover {
  background-color: var(--text-secondary);
  opacity: 1;
  /* Override default opacity hover */
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border-color);
  color: var(--text-primary);
}

.btn-outline:hover {
  background-color: var(--bg-secondary);
}

.btn-group {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* Hero Section */
.hero {
  padding: 6rem 0;
  max-width: 800px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
}

/* Cards Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background-color: var(--bg-secondary);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  transition: transform 0.2s ease;
}

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

.card h3 {
  margin-bottom: 0.5rem;
}

.card ul {
  list-style: none;
  margin: 1rem 0 1.5rem 0;
}

.card li {
  margin-bottom: 0.5rem;
  padding-left: 1.25rem;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.card li::before {
  content: "•";
  color: var(--text-primary);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.card-link {
  font-weight: 600;
  color: var(--accent-color);
  display: inline-flex;
  align-items: center;
}

.card-link:hover {
  color: var(--accent-hover);
}

.card-link::after {
  content: "→";
  margin-left: 0.25rem;
  transition: transform 0.2s;
}

.card-link:hover::after {
  transform: translateX(3px);
}

/* Mission Strip */
.mission-strip {
  text-align: center;
  padding: 3rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin: 2rem 0;
}

.mission-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Contact */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.contact-container {
  max-width: 600px;
}

/* Footer */
footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border-color);
  margin-top: 2rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

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

/* WIP Banner */
.wip-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 1rem;
  margin: 2rem 0;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: var(--radius);
  text-align: center;
  --ground-color: #d4d4d4;
}

@media (prefers-color-scheme: dark) {
  .wip-banner {
    background: linear-gradient(135deg, #422006 0%, #78350f 100%);
    --ground-color: #57534e;
  }
}

.wip-illustration {
  width: 150px;
  height: 120px;
}

.construction-svg {
  width: 100%;
  height: 100%;
}

.wip-text {
  font-size: 1rem;
  font-weight: 600;
  color: #92400e;
  margin: 0;
}

@media (prefers-color-scheme: dark) {
  .wip-text {
    color: #fde68a;
  }
}

/* Worker arm animation - looks like placing bricks */
.arm {
  transform-origin: 48px 53px;
  animation: place-brick 2s ease-in-out infinite;
}

@keyframes place-brick {

  0%,
  100% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(-25deg);
  }
}

/* Floating brick animation */
.floating-brick {
  animation: float-brick 2s ease-in-out infinite;
}

@keyframes float-brick {

  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }

  40% {
    transform: translateY(-8px);
    opacity: 1;
  }

  50% {
    transform: translateY(-8px);
    opacity: 0;
  }

  51% {
    transform: translateY(0);
    opacity: 0;
  }

  60% {
    opacity: 1;
  }
}