* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, Arial, sans-serif;
  color: #222;
  background: #f7f7f7;
}
a { color: inherit; text-decoration: none; }

.header {
  position: sticky; 
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.logo a { font-weight: 800; }
.nav { display: flex; gap: 12px; flex-wrap: wrap; }
.nav a { padding: 6px 8px; border-radius: 8px; }
.nav a:hover { background: #f0f0f0; }

.btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 8px;
  background: #0077ff;
  color: #fff;
  font-weight: 700;
}
.btn.outline {
  background: transparent;
  color: #0077ff;
  border: 2px solid #0077ff;
}

.hero {
  text-align: center;
  padding: 40px 16px;
  background: #e9f2ff;
}
.hero h2 { margin-top: 0; }

.features, .newsletter {
  max-width: 1000px;
  margin: 24px auto;
  padding: 0 16px;
}
.features h3, .newsletter h3 { margin: 12px 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 12px;
}

.newsletter form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.newsletter input {
  flex: 1;
  min-width: 220px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.footer {
  text-align: center;
  padding: 16px;
  color: #666;
  background: #fff;
  border-top: 1px solid #e5e5e5;
}

@media (max-width: 800px) {
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
}