@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

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

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --grey-50: #fafafa;
  --grey-100: #f0f0f0;
  --grey-200: #e0e0e0;
  --grey-400: #999999;
  --grey-600: #666666;
  --grey-800: #333333;
  --accent: #0a0a0a;
  --grid-color: rgba(0, 0, 0, 0.06);
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

/* Navigation */
header {
  border-bottom: 1px solid var(--grey-200);
  padding: 1.5rem 0;
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--black);
  font-family: 'Space Mono', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.brand-icon { width: 24px; height: 24px; flex-shrink: 0; vertical-align: middle; margin-right: 6px; }


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

.nav-links a {
  text-decoration: none;
  color: var(--grey-600);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--black);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  margin: 5px 0;
  transition: 0.3s;
}

/* Hero */
.hero {
  padding: 8rem 2rem;
  background: var(--grey-50);
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.hero h1 {
  font-family: 'Inter', sans-serif;
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  max-width: 700px;
}

.hero p {
  font-size: 1.15rem;
  color: var(--grey-600);
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero .btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--black);
  color: var(--white);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  transition: background 0.2s;
}

.hero .btn:hover {
  background: var(--grey-800);
}

/* Sections */
section {
  padding: 6rem 0;
}

section.alt {
  background: var(--grey-50);
}

section.dark {
  background: var(--black);
  color: var(--white);
}

section.dark h2,
section.dark h3 {
  color: var(--white);
}

section.dark p {
  color: var(--grey-400);
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--grey-600);
}

.overline {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-400);
  margin-bottom: 1rem;
  display: block;
}

/* Grid */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Cards */
.card {
  border: 1px solid var(--grey-200);
  overflow: hidden;
  transition: transform 0.2s;
  background: var(--white);
}

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

.card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.3s;
}

.card:hover img {
  filter: grayscale(0%);
}

.card-body {
  padding: 1.5rem;
}

.card-body .tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-400);
  margin-bottom: 0.5rem;
  display: block;
}

/* Images */
.img-rounded {
  width: 100%;
  height: auto;
  display: block;
}

.img-feature {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

/* Stats */
.stat {
  text-align: center;
  padding: 2rem;
}

.stat-number {
  font-family: 'Space Mono', monospace;
  font-size: 3rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
}

/* Article */
.article-content {
  max-width: 680px;
  margin: 0 auto;
}

.article-content h2 {
  margin-top: 3rem;
}

.article-content ul, .article-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--grey-600);
}

.article-content li {
  margin-bottom: 0.6rem;
}

.article-content blockquote {
  border-left: 3px solid var(--black);
  padding: 1rem 0 1rem 2rem;
  margin: 2rem 0;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--black);
  line-height: 1.5;
}

/* Page header */
.page-header {
  padding: 5rem 2rem;
  background: var(--grey-50);
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 60px 60px;
}

.page-header h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
}

.page-header p {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
  color: var(--grey-600);
  font-size: 1.1rem;
}

/* Divider */
.divider {
  width: 40px;
  height: 3px;
  background: var(--black);
  margin-bottom: 2rem;
}

/* Footer */
footer {
  background: var(--black);
  color: var(--grey-400);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.footer-links a {
  color: var(--grey-400);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--grey-600);
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 5rem 1.5rem;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .grid-3 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .grid-4 {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .page-header h1 {
    font-size: 2.2rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  section {
    padding: 4rem 0;
  }

  h2 {
    font-size: 1.6rem;
  }
}
