:root {
  --p: #4f46e5;
  --bg: #f8f9ff;
  --b: #e0e7ff;
  --t: #1e1b4b;
  --m: #6b7280;
}

* {
  box-sizing: border-box;
  font-family: Inter, system-ui, Arial;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--t);
}
header {
  padding: 16px 20px;
  background: linear-gradient(135deg, #030d1d 0%, #0d1b2d 40%, #111a2d 100%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.25);
}
.logo {
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.03em;
  color: #edf6ff;
}
.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(147, 197, 253, 0.45);
  box-shadow: 0 10px 26px rgba(96, 165, 250, 0.18);
  overflow: hidden;
}
.logo-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.hero {
  text-align: center;
  padding: 36px 20px 50px;
  background:
    radial-gradient(
      circle at 50% 18%,
      rgba(99, 102, 241, 0.12),
      rgba(15, 23, 42, 0) 32%
    ),
    linear-gradient(
      180deg,
      rgba(16, 24, 39, 0.96) 0%,
      rgba(16, 24, 39, 0.84) 20%,
      #f8f9ff 100%
    );
}
.hero-title {
  color: #f5f7ff;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.12;
  margin: 16px 0;
  text-shadow: 0 3px 18px rgba(15, 23, 42, 0.28);
}
.hero-sub {
  color: rgba(226, 232, 240, 0.82) !important;
  max-width: 620px;
  margin: 0 auto;
}
.badge {
  border: 1px solid #c7d2fe;
  background: #fff;
  color: var(--p);
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
}
.grid {
  max-width: 1150px;
  margin: 20px auto;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}
.card {
  background: #fff;
  border: 1px solid var(--b);
  border-radius: 16px;
  padding: 18px;
  cursor: pointer;
  transition: 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.12);
}
.icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.btn {
  background: var(--p);
  color: #fff;
  border: 0;
  padding: 12px;
  border-radius: 12px;
  font-weight: 700;
  width: 100%;
  cursor: pointer;
}
.modal {
  position: fixed;
  inset: 0;
  background: rgba(30, 27, 75, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 16px;
}
.modal.open {
  display: flex;
}
.box {
  background: #fff;
  max-width: 560px;
  width: 100%;
  border-radius: 20px;
  padding: 22px;
}
.drop {
  border: 2px dashed #c7d2fe;
  background: #f5f3ff;
  border-radius: 12px;
  padding: 26px;
  text-align: center;
  margin: 12px 0;
}
.lang {
  border: 1px solid rgba(147, 197, 253, 0.32);
  border-radius: 8px;
  padding: 6px 10px;
  background: rgba(15, 23, 42, 0.6);
  color: #edf6ff;
}
footer {
  padding: 24px 20px 30px;
  background: #071225;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #94a3b8;
  text-align: center;
  font-size: 13px;
}
footer a {
  color: #c7d2fe;
  text-decoration: none;
  transition: color 0.2s ease;
}
footer a:hover {
  color: #fff;
}
.site-info {
  max-width: 980px;
  margin: 26px auto 52px;
  padding: 30px 34px;
  background: linear-gradient(135deg, #ffffff 0%, #eef2ff 100%);
  border: 1px solid var(--b);
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(30, 27, 75, 0.08);
}
.site-info h2 {
  margin: 0 0 10px;
  color: var(--t);
  font-size: 25px;
  line-height: 1.2;
}
.site-info p {
  max-width: 820px;
  margin: 10px 0 0;
  color: #475569;
  line-height: 1.75;
}
.site-info p:last-child {
  color: #64748b;
  font-size: 14px;
}
.blog-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--p);
  font-weight: 800;
  text-decoration: none;
}
.blog-link:hover {
  text-decoration: underline;
}

@media (max-width: 560px) {
  .logo {
    gap: 8px;
    font-size: 14px;
  }
  .logo-mark {
    width: 38px;
    height: 38px;
  }
  .hero-title {
    font-size: 32px;
  }
  .site-info {
    margin: 18px 20px 40px;
    padding: 24px;
  }
}
