/* Fonts */
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/jetbrainsmono-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: #1a1a1a;
  background: #fafafa;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

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

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
}

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

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navigation */
.nav {
  background: white;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 2rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: opacity 0.2s;
}

.logo-link:hover {
  opacity: 0.8;
}

.logo {
  height: 40px;
  width: auto;
}

.wordmark {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1.25rem;
  color: #1a1a1a;
}

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

.nav-links a {
  font-size: 1rem;
  transition: color 0.2s;
}

.nav-links a:not(.btn-primary):hover {
  color: #4A90C8;
}

/* Buttons */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.btn-primary {
  background: #4A90C8;
  color: white;
}

.btn-primary:hover {
  background: #3a7eb8;
  transform: translateY(-1px);
}

.btn-secondary {
  background: white;
  color: #1a1a1a;
  border-color: #e5e5e5;
}

.btn-secondary:hover {
  border-color: #4A90C8;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Hero */
.hero {
  background: white;
  padding: 6rem 0;
  text-align: center;
}

.hero h1 {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.subhead {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  color: #4a4a4a;
  line-height: 1.7;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: white;
}

.lead {
  font-size: 1.25rem;
  max-width: 800px;
  color: #4a4a4a;
  line-height: 1.7;
}

.note {
  margin-top: 2rem;
  color: #6a6a6a;
  font-size: 1rem;
}

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

.card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  position: relative;
  overflow: hidden;
}

.section-alt .card {
  background: #fafafa;
  border-color: #e0e0e0;
}

.card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

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

.card p {
  margin-bottom: 0;
  color: #4a4a4a;
}

/* Steps */
.steps {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1.25rem;
}

.step-content h3 {
  margin-bottom: 0.5rem;
}

.step-content p {
  margin-bottom: 0;
  color: #4a4a4a;
}

/* About */
.about-content {
  max-width: 700px;
}

.role {
  font-weight: 600;
  color: #4A90C8;
  margin-bottom: 1rem;
}

.link-arrow {
  color: #4A90C8;
  font-weight: 600;
  transition: transform 0.2s;
  display: inline-block;
}

.link-arrow::after {
  content: ' →';
}

.link-arrow:hover {
  transform: translateX(4px);
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 6rem 0;
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section .lead {
  margin: 0 auto 2.5rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto 1.5rem;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-field-full {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.form-field label,
.form-field-full label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.optional {
  font-weight: 400;
  color: #6a6a6a;
}

.form-field input,
.form-field-full textarea {
  padding: 0.75rem;
  border: 1px solid #d5d5d5;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-field input:focus,
.form-field-full textarea:focus {
  outline: none;
  border-color: #4A90C8;
}

.form-field-full textarea {
  resize: vertical;
  min-height: 90px;
}

.contact-form button[type="submit"] {
  margin-top: 0.5rem;
}

.form-message {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 6px;
  text-align: left;
}

.form-message.success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.form-message.error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

.form-message p {
  margin: 0;
}

.form-message a {
  color: inherit;
  text-decoration: underline;
}

.contact-alt {
  margin-top: 2rem;
  color: #4a4a4a;
}

.link-email {
  color: #4A90C8;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.link-email:hover {
  color: #3a7eb8;
  text-decoration: underline;
}

/* Footer */
.footer {
  background: #1a1a1a;
  color: #fafafa;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.95rem;
}

.footer p {
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .container {
    padding: 0 1.5rem;
  }

  .nav-content {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    font-size: 0.95rem;
  }

  .hero {
    padding: 4rem 0;
  }

  .section {
    padding: 3.5rem 0;
  }

  .cta-section {
    padding: 4rem 0;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .step {
    flex-direction: column;
    gap: 1rem;
  }

  .btn-large {
    padding: 0.875rem 1.75rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .subhead, .lead {
    font-size: 1.125rem;
  }
}
