:root{
  --text:#111827;
  --muted:#6b7280;
  --border:#e5e7eb;
  --bg:#ffffff;
  --link:#4f46e5;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Inter,Arial,sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.6;
}

header{
  border-bottom:1px solid var(--border);
  padding:14px 22px;
  position:sticky;
  top:0;
  background:rgba(255,255,255,.9);
  backdrop-filter:saturate(180%) blur(10px);
}

nav{
  max-width:1100px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:inherit;
}

.brand img{height:48px}

.brand .sub{
  display:block;
  font-size:12px;
  color:var(--muted);
  margin-top:-2px;
}

.navlinks a{
  margin-left:16px;
  text-decoration:none;
  color:#374151;
  font-weight:500;
}

.navlinks a:hover{color:var(--link)}

.container{
  max-width:1100px;
  margin:0 auto;
  padding:44px 22px;
}

.hero{
  padding:22px 0 10px;
}

h1{font-size:40px; line-height:1.15; margin:0 0 10px}
h2{margin-top:34px}
.lead{font-size:18px; color:#374151; max-width:760px}

.cards{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:14px;
  margin-top:18px;
}

.card{
  border:1px solid var(--border);
  border-radius:12px;
  padding:16px;
}

.card p{margin:8px 0 0; color:#374151}

.btn{
  display:inline-block;
  margin-top:14px;
  padding:10px 14px;
  border-radius:10px;
  background:var(--link);
  color:#fff;
  text-decoration:none;
  font-weight:600;
}

.btn:hover{filter:brightness(.95)}

.small{
  font-size:14px;
  color:var(--muted);
}

footer{
  border-top:1px solid var(--border);
  padding:22px;
  text-align:center;
  font-size:14px;
  color:var(--muted);
}

/* Mobile header fix */
@media (max-width: 720px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .navlinks {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
  }

  .navlinks a {
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.2;
    text-decoration: none;
  }

  .brand img {
    height: 36px; /* slightly larger on mobile */
    width: auto;
  }
}