*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #6b6b6b;
  --color-border: #e8e8e8;
  --color-accent: #2c3e50;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1080px;
  --spacing: 1.5rem;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing);
}

.narrow {
  max-width: 640px;
}

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--color-text);
}

.nav-cta {
  color: var(--color-text) !important;
  font-weight: 500;
}

/* Hero */

.hero {
  padding: 6rem 0 5rem;
}

.hero-label {
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  max-width: 18ch;
}

.hero-text {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  max-width: 42ch;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-surface);
  background: var(--color-accent);
  text-decoration: none;
  border-radius: 4px;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.88;
}

/* Sections */

.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-title {
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
}

/* Grid */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
}

.card {
  background: var(--color-surface);
  padding: 2rem;
}

.card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* About */

.about-text {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.75;
}

/* Contact */

.contact-text {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

.contact-email {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.contact-email:hover {
  border-bottom-color: var(--color-accent);
}

/* Footer */

.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--color-border);
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* Responsive */

@media (max-width: 640px) {
  .nav {
    gap: 1.25rem;
  }

  .nav a:not(.nav-cta) {
    display: none;
  }

  .hero {
    padding: 4rem 0 3.5rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .footer .container {
    flex-direction: column;
    align-items: flex-start;
  }
}
