:root {
  --bg: #f3f6fb;
  --surface: #ffffff;
  --surface-strong: #f8faff;
  --text: #1f2a37;
  --text-muted: #5b6676;
  --primary: #2f5bff;
  --primary-soft: #e8eeff;
  --border: #dce3ef;
  --success: #0f8c67;
  --shadow: 0 10px 25px rgba(25, 35, 58, 0.08);
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at 10% 10%, #eef3ff, var(--bg));
  color: var(--text);
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.hero {
  position: relative;
  padding: 24px 0 18px;
  overflow: visible;
}

.hero__shell {
  position: relative;
  display: block;
  border: 1px solid var(--border);
  border-radius: 26px;
  background:
    radial-gradient(90% 95% at 5% 10%, var(--primary-soft) 0%, transparent 58%),
    linear-gradient(150deg, var(--surface) 10%, #f7f9ff 55%, var(--surface) 100%);
  box-shadow:
    0 18px 42px rgba(25, 35, 58, 0.1),
    0 6px 14px rgba(25, 35, 58, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  padding: clamp(24px, 4.2vw, 40px);
}

.hero__shell::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -16px;
  transform: translateX(-50%);
  width: 92%;
  height: 24px;
  border-radius: 999px;
  background: rgba(30, 52, 96, 0.16);
  filter: blur(16px);
  pointer-events: none;
  z-index: -1;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(560px 180px at 12% 8%, rgba(47, 91, 255, 0.15), transparent 72%),
    radial-gradient(460px 220px at 92% 6%, rgba(47, 91, 255, 0.09), transparent 72%),
    linear-gradient(180deg, #f6f9ff 0%, rgba(246, 249, 255, 0) 100%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 740px;
}

.hero__tag {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #24407f;
  font-size: 0.78rem;
}

.hero__tag::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2f5bff, #68d4a0);
}

.hero__title {
  display: block;
  width: fit-content;
  margin: 14px 0 14px;
  font-size: clamp(1.6rem, 4vw, 3.3rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  padding: 0 10px 6px 0;
  color: transparent;
  background: linear-gradient(90deg, #1e3669 0%, #2f5bff 50%, #39a3ef 100%);
  -webkit-background-clip: text;
  background-clip: text;
  white-space: nowrap;
  position: relative;
}

.hero__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(47, 91, 255, 0.28), rgba(58, 167, 242, 0.55));
}

.hero__subtitle {
  margin: 0;
  max-width: 54ch;
  color: #51607a;
  line-height: 1.55;
}

.section {
  flex: 1;
  padding: 18px 0 64px;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 22px;
}

.toolbar h2 {
  margin: 0;
}

.muted {
  color: var(--text-muted);
  margin: 6px 0 0;
}

.counter {
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid #d8e2ff;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
  white-space: nowrap;
}

.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 220px;
}

.card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--primary);
  background: var(--primary-soft);
}

.card__icon {
  font-size: 1.35rem;
}

.card h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

.card__desc {
  color: var(--text-muted);
  margin: 10px 0 14px;
  line-height: 1.45;
  font-size: 0.93rem;
}

.meta {
  margin-top: auto;
  display: grid;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.card__actions {
  margin-top: 14px;
}

.btn {
  width: 100%;
  border: 0;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-weight: 600;
  color: #ffffff;
  background: var(--primary);
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.btn:hover {
  filter: brightness(0.95);
}

.empty-state {
  background: var(--surface-strong);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.hidden {
  display: none;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 18px 0 24px;
  color: var(--text-muted);
}

code {
  background: #edf2fb;
  border-radius: 7px;
  padding: 2px 6px;
}

@media (max-width: 720px) {
  .hero {
    padding-top: 14px;
  }

  .hero__shell {
    border-radius: 20px;
    padding: 18px;
  }

  .hero__title {
    line-height: 1.02;
    padding-right: 6px;
  }

  .toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
}
