:root {
  color-scheme: light;
  --bg: #eef3ff;
  --bg-2: #f7fbff;
  --text: #0f172a;
  --muted: #475569;
  --primary: #2563eb;
  --accent: #7c3aed;
  --glass: rgba(255, 255, 255, 0.6);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --border: rgba(255, 255, 255, 0.9);
  --shadow: rgba(37, 99, 235, 0.15);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at -10% 0%, #dbeafe 0%, transparent 60%),
    radial-gradient(900px 600px at 110% -10%, #ede9fe 0%, transparent 56%),
    linear-gradient(165deg, var(--bg), var(--bg-2));
  min-height: 100%;
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 999px;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
  animation: floatBlob 8s ease-in-out infinite;
}

body::before {
  width: 280px;
  height: 280px;
  top: 12%;
  left: -90px;
  background: rgba(59, 130, 246, 0.2);
}

body::after {
  width: 330px;
  height: 330px;
  bottom: -70px;
  right: -100px;
  background: rgba(124, 58, 237, 0.18);
  animation-delay: 1.2s;
}

.site {
  position: relative;
  z-index: 1;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.glass {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 22px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 55px -24px var(--shadow);
}

.topbar-wrap {
  position: sticky;
  top: 0;
  padding: 16px 0 10px;
  z-index: 20;
  background: linear-gradient(180deg, rgba(238, 243, 255, 0.92), rgba(238, 243, 255, 0.45), transparent);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
}

.brand {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-link {
  text-decoration: none;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 0.9rem;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.pill-link:hover {
  transform: translateY(-2px);
  color: var(--primary);
  background: rgba(255, 255, 255, 0.95);
}

.hero {
  margin-top: 18px;
  padding: clamp(24px, 4vw, 42px);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: conic-gradient(from 90deg at 50% 50%, rgba(59, 130, 246, 0.17), transparent 35%, rgba(124, 58, 237, 0.16), transparent 70%);
  animation: spin 16s linear infinite;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.25);
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
  color: #1d4ed8;
  font-weight: 700;
}

h1 {
  margin: 12px 0 10px;
  font-size: clamp(1.7rem, 4vw, 3rem);
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.12rem, 2.4vw, 1.42rem);
}

p,
li {
  color: var(--muted);
  line-height: 1.7;
}

main {
  padding: 20px 0 42px;
  display: grid;
  gap: 16px;
}

.section {
  padding: 22px;
  animation: cardEnter 0.65s ease both;
}

.section:nth-child(2) {
  animation-delay: 0.06s;
}
.section:nth-child(3) {
  animation-delay: 0.12s;
}
.section:nth-child(4) {
  animation-delay: 0.18s;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.mini-card {
  border: 1px solid var(--border);
  background: var(--glass-strong);
  border-radius: 16px;
  padding: 14px;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.mini-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -26px rgba(30, 64, 175, 0.5);
}

.list {
  margin: 8px 0 0;
  padding-left: 20px;
}

a {
  color: #1d4ed8;
}

.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.78);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -20px rgba(37, 99, 235, 0.55);
}

.btn.primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #3b82f6, #7c3aed);
}

.footer {
  margin: 12px 0 34px;
  padding: 14px;
  text-align: center;
  color: #64748b;
  font-size: 0.92rem;
}

.subnav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

@media (max-width: 760px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .brand {
    text-align: center;
  }

  .nav-links {
    justify-content: center;
  }
}

@keyframes floatBlob {
  0%,
  100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-16px) scale(1.04);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes cardEnter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
