:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --bg: #ffffff;
  --text: #1f2937;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --surface: #f9fafb;
  --max-width: 1100px;
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
  background-color: var(--bg);
}

img { max-width: 100%; height: auto; }

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

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

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.025em;
}

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

/* New Menu Styles */
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
}

.nav-item {
  position: relative;
}

.nav-item a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s;
  display: block;
  padding: 0.5rem 0;
}

.nav-item a:hover { color: var(--primary); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  min-width: 200px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s;
  z-index: 100;
}

.nav-item:hover > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown .nav-list {
  flex-direction: column;
  gap: 0;
  padding: 0.5rem 0;
}

.dropdown .nav-item a {
  padding: 0.75rem 1.5rem;
}

.dropdown .nav-item a:hover {
  background: var(--surface);
}

/* Footer Nav */
.footer-nav {
  margin-bottom: 2rem;
}

.footer-nav .nav-list {
  justify-content: center;
}

main {
  padding: 4rem 0;
  min-height: 80vh;
}

footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 4rem 0;
  margin-top: 4rem;
  color: var(--text-muted);
  text-align: center;
}

/* Typography */
h1, h2, h3 { 
  margin-top: 0; 
  line-height: 1.2; 
  letter-spacing: -0.025em;
}

h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 1.5rem; }
h2 { font-size: 2.25rem; font-weight: 700; margin-bottom: 1.25rem; }

/* Components */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover { background: var(--primary-hover); }

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

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

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

.feature-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.feature-card h3 { margin-bottom: 0.75rem; }

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

.article-header { margin-bottom: 3rem; text-align: center; }
.article-meta { color: var(--text-muted); margin-bottom: 1rem; }
.article-content { font-size: 1.125rem; }
.article-content p { margin-bottom: 1.5rem; }
