* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f5f5;
  color: #222;
}
.topbar {
  background: #fff;
  border-bottom: 1px solid #e2e2e2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .75rem 1rem;
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .4rem;
  color: #222;
  font-weight: 600;
}
.brand-icon {
  background: #0F62FE;
  color: #fff;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: .65rem;
  font-weight: 700;
}
.nav {
  display: flex;
  gap: .9rem;
}
.nav a {
  text-decoration: none;
  color: #444;
  font-size: .9rem;
}
.nav a.active {
  font-weight: 600;
  color: #0F62FE;
}
.dropdown {
  position: relative;
}
.dropbtn {
  background: none;
  border: none;
  cursor: pointer;
  color: #444;
}
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 160px;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
  z-index: 10;
  border-radius: .5rem;
  overflow: hidden;
}
.dropdown-content a {
  color: #222;
  padding: 10px 14px;
  text-decoration: none;
  display: block;
}
.dropdown:hover .dropdown-content {
  display: block;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
}
.mobile-nav {
  display: none;
  flex-direction: column;
  background: #fff;
  border-bottom: 1px solid #e2e2e2;
}
.mobile-nav a {
  padding: .6rem 1rem;
  text-decoration: none;
  color: #444;
}
.page {
  max-width: 1100px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}
.hero h1 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}
.tagline {
  color: #555;
  margin-top: .4rem;
  max-width: 520px;
}
.cards-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 1.5rem;
}
.card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 6px 20px rgba(15,98,254,.04);
  text-decoration: none;
  color: #222;
  border: 1px solid rgba(15,98,254,.02);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(15,98,254,.08);
}
.card-icon {
  font-size: 1.6rem;
  margin-bottom: .4rem;
}
.form {
  background: #fff;
  padding: 1rem;
  border-radius: .75rem;
  box-shadow: 0 4px 14px rgba(0,0,0,.02);
  display: grid;
  gap: .75rem;
  max-width: 520px;
}
.form label {
  display: grid;
  gap: .35rem;
  font-weight: 500;
}
.form input,
.form select {
  padding: .5rem .6rem;
  border: 1px solid #dcdcdc;
  border-radius: .5rem;
}
.form button {
  background: #0F62FE;
  color: #fff;
  border: none;
  border-radius: .5rem;
  padding: .55rem .8rem;
  cursor: pointer;
}
.result {
  background: #fff;
  margin-top: 1.2rem;
  padding: 1rem;
  border-radius: .75rem;
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th,
.table td {
  padding: .4rem .3rem;
  border-bottom: 1px solid #eee;
}
.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  text-decoration: none;
  color: #0F62FE;
}
.footer {
  text-align: center;
  padding: 2.5rem 1rem 3rem;
  font-size: .85rem;
  color: #777;
}
@media (max-width: 760px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
}
